2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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="lib/mdct.c"
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT V_LIB_CURRENT V_LIB_REVISION V_LIB_AGE VF_LIB_CURRENT VF_LIB_REVISION VF_LIB_AGE VE_LIB_CURRENT VE_LIB_REVISION VE_LIB_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP 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 STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL XSLTPROC PDFXMLTEX BUILD_DOCS_TRUE BUILD_DOCS_FALSE OGG_CFLAGS OGG_LIBS ALLOCA LIBOBJS DEBUG PROFILE pthread_lib 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 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
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)
1035 --enable-docs build the documentation
1036 --disable-oggtest Do not try to compile and run a test Ogg program
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1045 include additional configurations [automatic]
1046 --with-ogg=PFX Prefix where libogg is installed (optional)
1047 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
1048 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
1050 Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 ac_dir_suffix= ac_top_builddir=
1086 .) # No --srcdir option. We are building in place.
1088 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 # Do not use `cd foo && pwd` to compute absolute paths, because
1102 # the directories may not exist.
1104 .) ac_abs_builddir="$ac_dir";;
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1151 $ac_configure --help
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1163 Copyright (C) 2003 Free Software Foundation, Inc.
1164 This configure script is free software; the Free Software Foundation
1165 gives unlimited permission to copy, distribute and modify it.
1171 This file contains any messages produced by compilers while
1172 running configure, to aid debugging if configure makes a mistake.
1174 It was created by $as_me, which was
1175 generated by GNU Autoconf 2.58. Invocation command line was
1186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1195 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1196 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1199 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1200 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1201 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 test -z "$as_dir" && as_dir=.
1210 echo "PATH: $as_dir"
1225 # Keep a trace of the command line.
1226 # Strip out --no-create and --no-recursion so they do not pile up.
1227 # Strip out --silent because we don't want to record it for future runs.
1228 # Also quote any args containing shell meta-characters.
1229 # Make two passes to allow for proper duplicate-argument suppression.
1234 ac_must_keep_next=false
1240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251 if test $ac_must_keep_next = true; then
1252 ac_must_keep_next=false # Got value, back to normal.
1255 *=* | --config-cache | -C | -disable-* | --disable-* \
1256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258 | -with-* | --with-* | -without-* | --without-* | --x)
1259 case "$ac_configure_args0 " in
1260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263 -* ) ac_must_keep_next=true ;;
1266 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267 # Get rid of the leading space.
1273 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276 # When interrupted or exit'd, cleanup temporary files, and complete
1277 # config.log. We remove comments because anyway the quotes in there
1278 # would cause problems or look ugly.
1279 # WARNING: Be sure not to use single quotes in there, as some shells,
1280 # such as our DU 5.0 friend, will then `close' the trap.
1281 trap 'exit_status=$?
1282 # Save into config.log some information that might help in debugging.
1287 ## ---------------- ##
1288 ## Cache variables. ##
1289 ## ---------------- ##
1292 # The following way of writing the cache mishandles newlines in values,
1295 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ## ----------------- ##
1311 ## Output variables. ##
1312 ## ----------------- ##
1315 for ac_var in $ac_subst_vars
1317 eval ac_val=$`echo $ac_var`
1318 echo "$ac_var='"'"'$ac_val'"'"'"
1322 if test -n "$ac_subst_files"; then
1329 for ac_var in $ac_subst_files
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1337 if test -s confdefs.h; then
1344 sed "/^$/d" confdefs.h | sort
1347 test "$ac_signal" != 0 &&
1348 echo "$as_me: caught signal $ac_signal"
1349 echo "$as_me: exit $exit_status"
1351 rm -f core *.core &&
1352 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355 for ac_signal in 1 2 13 15; do
1356 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1361 rm -rf conftest* confdefs.h
1362 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365 # Predefined preprocessor variables.
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 # Let the site file select an alternate cache file if it wants to.
1393 # Prefer explicitly selected file to automatically selected ones.
1394 if test -z "$CONFIG_SITE"; then
1395 if test "x$prefix" != xNONE; then
1396 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401 for ac_site_file in $CONFIG_SITE; do
1402 if test -r "$ac_site_file"; then
1403 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404 echo "$as_me: loading site script $ac_site_file" >&6;}
1405 sed 's/^/| /' "$ac_site_file" >&5
1410 if test -r "$cache_file"; then
1411 # Some versions of bash will fail to source /dev/null (special
1412 # files actually), so we avoid doing that.
1413 if test -f "$cache_file"; then
1414 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415 echo "$as_me: loading cache $cache_file" >&6;}
1417 [\\/]* | ?:[\\/]* ) . $cache_file;;
1418 *) . ./$cache_file;;
1422 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423 echo "$as_me: creating cache $cache_file" >&6;}
1427 # Check that the precious variables saved in the cache have kept the same
1429 ac_cache_corrupted=false
1430 for ac_var in `(set) 2>&1 |
1431 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433 eval ac_new_set=\$ac_env_${ac_var}_set
1434 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435 eval ac_new_val="\$ac_env_${ac_var}_value"
1436 case $ac_old_set,$ac_new_set in
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1447 if test "x$ac_old_val" != "x$ac_new_val"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1451 echo "$as_me: former value: $ac_old_val" >&2;}
1452 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1453 echo "$as_me: current value: $ac_new_val" >&2;}
1454 ac_cache_corrupted=:
1457 # Pass precious variables to config.status.
1458 if test "$ac_new_set" = set; then
1460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462 *) ac_arg=$ac_var=$ac_new_val ;;
1464 case " $ac_configure_args " in
1465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1466 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470 if $ac_cache_corrupted; then
1471 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475 { (exit 1); exit 1; }; }
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502 am__api_version="1.4"
1504 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1505 if test -f $ac_dir/install-sh; then
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1509 elif test -f $ac_dir/install.sh; then
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1513 elif test -f $ac_dir/shtool; then
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1519 if test -z "$ac_aux_dir"; then
1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522 { (exit 1); exit 1; }; }
1524 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528 # Find a good install program. We prefer a C program (faster),
1529 # so one script is as good as another. But avoid the broken or
1530 # incompatible versions:
1531 # SysV /etc/install, /usr/sbin/install
1532 # SunOS /usr/etc/install
1533 # IRIX /sbin/install
1535 # AmigaOS /C/install, which installs bootblocks on floppy discs
1536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1539 # OS/2's system install, which has a completely different semantic
1540 # ./install, which can be erroneously created by make from ./install.sh.
1541 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1543 if test -z "$INSTALL"; then
1544 if test "${ac_cv_path_install+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir=.
1552 # Account for people who put trailing slashes in PATH elements.
1554 ./ | .// | /cC/* | \
1555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1556 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1559 # OSF1 and SCO ODT 3.0 have their own names for install.
1560 # Don't use installbsd from OSF since it installs stuff as root
1562 for ac_prog in ginstall scoinst install; do
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1565 if test $ac_prog = install &&
1566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567 # AIX install. It has an incompatible calling convention.
1569 elif test $ac_prog = install &&
1570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571 # program-specific install script used by HP pwplus--don't use.
1574 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1586 if test "${ac_cv_path_install+set}" = set; then
1587 INSTALL=$ac_cv_path_install
1589 # As a last resort, use the slow shell script. We don't cache a
1590 # path for INSTALL within a source directory, because that will
1591 # break other packages using the cache if that directory is
1592 # removed, or if the path is relative.
1593 INSTALL=$ac_install_sh
1596 echo "$as_me:$LINENO: result: $INSTALL" >&5
1597 echo "${ECHO_T}$INSTALL" >&6
1599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1600 # It thinks the first close brace ends the variable substitution.
1601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1608 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1611 echo timestamp > conftestfile
1612 # Do `set' in a subshell so we don't clobber the current shell's
1613 # arguments. Must try -L first in case configure is actually a
1614 # symlink; some systems play weird games with the mod time of symlinks
1615 # (eg FreeBSD returns the mod time of the symlink's containing
1618 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1619 if test "$*" = "X"; then
1621 set X `ls -t $srcdir/configure conftestfile`
1623 if test "$*" != "X $srcdir/configure conftestfile" \
1624 && test "$*" != "X conftestfile $srcdir/configure"; then
1626 # If neither matched, then we have a broken ls. This can happen
1627 # if, for instance, CONFIG_SHELL is bash and it inherits a
1628 # broken ls alias from the environment. This has actually
1629 # happened. Such a system could not be considered "sane".
1630 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&5
1632 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&2;}
1634 { (exit 1); exit 1; }; }
1637 test "$2" = conftestfile
1643 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1644 Check your system clock" >&5
1645 echo "$as_me: error: newly created file is older than distributed files!
1646 Check your system clock" >&2;}
1647 { (exit 1); exit 1; }; }
1650 echo "$as_me:$LINENO: result: yes" >&5
1651 echo "${ECHO_T}yes" >&6
1652 test "$program_prefix" != NONE &&
1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1654 # Use a double $ so make ignores it.
1655 test "$program_suffix" != NONE &&
1656 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657 # Double any \ or $. echo might interpret backslashes.
1658 # By default was `s,x,x', remove it if useless.
1659 cat <<\_ACEOF >conftest.sed
1660 s/[\\$]/&&/g;s/;s,x,x,$//
1662 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1665 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1666 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1667 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1668 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 cat >conftest.make <<\_ACEOF
1673 @echo 'ac_maketemp="$(MAKE)"'
1675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1676 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1677 if test -n "$ac_maketemp"; then
1678 eval ac_cv_prog_make_${ac_make}_set=yes
1680 eval ac_cv_prog_make_${ac_make}_set=no
1684 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1685 echo "$as_me:$LINENO: result: yes" >&5
1686 echo "${ECHO_T}yes" >&6
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 SET_MAKE="MAKE=${MAKE-make}"
1699 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1700 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1701 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1702 { (exit 1); exit 1; }; }
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE "$PACKAGE"
1710 cat >>confdefs.h <<_ACEOF
1711 #define VERSION "$VERSION"
1716 missing_dir=`cd $ac_aux_dir && pwd`
1717 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1718 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1719 # Run test in a subshell; some versions of sh will print an error if
1720 # an executable is not found, even if stderr is redirected.
1721 # Redirect stdin to placate older versions of autoconf. Sigh.
1722 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1723 ACLOCAL=aclocal-${am__api_version}
1724 echo "$as_me:$LINENO: result: found" >&5
1725 echo "${ECHO_T}found" >&6
1727 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1728 echo "$as_me:$LINENO: result: missing" >&5
1729 echo "${ECHO_T}missing" >&6
1732 echo "$as_me:$LINENO: checking for working autoconf" >&5
1733 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1734 # Run test in a subshell; some versions of sh will print an error if
1735 # an executable is not found, even if stderr is redirected.
1736 # Redirect stdin to placate older versions of autoconf. Sigh.
1737 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1739 echo "$as_me:$LINENO: result: found" >&5
1740 echo "${ECHO_T}found" >&6
1742 AUTOCONF="$missing_dir/missing autoconf"
1743 echo "$as_me:$LINENO: result: missing" >&5
1744 echo "${ECHO_T}missing" >&6
1747 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1748 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1749 # Run test in a subshell; some versions of sh will print an error if
1750 # an executable is not found, even if stderr is redirected.
1751 # Redirect stdin to placate older versions of autoconf. Sigh.
1752 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1753 AUTOMAKE=automake-${am__api_version}
1754 echo "$as_me:$LINENO: result: found" >&5
1755 echo "${ECHO_T}found" >&6
1757 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1758 echo "$as_me:$LINENO: result: missing" >&5
1759 echo "${ECHO_T}missing" >&6
1762 echo "$as_me:$LINENO: checking for working autoheader" >&5
1763 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1764 # Run test in a subshell; some versions of sh will print an error if
1765 # an executable is not found, even if stderr is redirected.
1766 # Redirect stdin to placate older versions of autoconf. Sigh.
1767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1768 AUTOHEADER=autoheader
1769 echo "$as_me:$LINENO: result: found" >&5
1770 echo "${ECHO_T}found" >&6
1772 AUTOHEADER="$missing_dir/missing autoheader"
1773 echo "$as_me:$LINENO: result: missing" >&5
1774 echo "${ECHO_T}missing" >&6
1777 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1778 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1779 # Run test in a subshell; some versions of sh will print an error if
1780 # an executable is not found, even if stderr is redirected.
1781 # Redirect stdin to placate older versions of autoconf. Sigh.
1782 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1784 echo "$as_me:$LINENO: result: found" >&5
1785 echo "${ECHO_T}found" >&6
1787 MAKEINFO="$missing_dir/missing makeinfo"
1788 echo "$as_me:$LINENO: result: missing" >&5
1789 echo "${ECHO_T}missing" >&6
1793 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1794 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1795 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1796 if test "${enable_maintainer_mode+set}" = set; then
1797 enableval="$enable_maintainer_mode"
1798 USE_MAINTAINER_MODE=$enableval
1800 USE_MAINTAINER_MODE=no
1802 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1803 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1806 if test $USE_MAINTAINER_MODE = yes; then
1807 MAINTAINER_MODE_TRUE=
1808 MAINTAINER_MODE_FALSE='#'
1810 MAINTAINER_MODE_TRUE='#'
1811 MAINTAINER_MODE_FALSE=
1813 MAINT=$MAINTAINER_MODE_TRUE
1838 cflags_save="$CFLAGS"
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844 if test -n "$ac_tool_prefix"; then
1845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 if test -n "$CC"; then
1853 ac_cv_prog_CC="$CC" # Let the user override the test.
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 if test -n "$CC"; then
1873 echo "$as_me:$LINENO: result: $CC" >&5
1874 echo "${ECHO_T}$CC" >&6
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1881 if test -z "$ac_cv_prog_CC"; then
1883 # Extract the first word of "gcc", so it can be a program name with args.
1884 set dummy gcc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$ac_ct_CC"; then
1891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_ac_ct_CC="gcc"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1910 if test -n "$ac_ct_CC"; then
1911 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1912 echo "${ECHO_T}$ac_ct_CC" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1923 if test -z "$CC"; then
1924 if test -n "$ac_tool_prefix"; then
1925 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1926 set dummy ${ac_tool_prefix}cc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 if test -n "$CC"; then
1933 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_CC="${ac_tool_prefix}cc"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1961 if test -z "$ac_cv_prog_CC"; then
1963 # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$ac_ct_CC"; then
1971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_ac_ct_CC="cc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990 if test -n "$ac_ct_CC"; then
1991 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1992 echo "${ECHO_T}$ac_ct_CC" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
2004 if test -z "$CC"; then
2005 # Extract the first word of "cc", so it can be a program name with args.
2006 set dummy cc; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$CC"; then
2013 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2024 ac_prog_rejected=yes
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 if test $ac_prog_rejected = yes; then
2035 # We found a bogon in the path, so make sure we never use it.
2036 set dummy $ac_cv_prog_CC
2038 if test $# != 0; then
2039 # We chose a different compiler from the bogus one.
2040 # However, it has the same basename, so the bogon will be chosen
2041 # first if we set CC to just the basename; use the full file name.
2043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2049 if test -n "$CC"; then
2050 echo "$as_me:$LINENO: result: $CC" >&5
2051 echo "${ECHO_T}$CC" >&6
2053 echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6
2058 if test -z "$CC"; then
2059 if test -n "$ac_tool_prefix"; then
2062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test -n "$CC"; then
2070 ac_cv_prog_CC="$CC" # Let the user override the test.
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 if test -n "$CC"; then
2090 echo "$as_me:$LINENO: result: $CC" >&5
2091 echo "${ECHO_T}$CC" >&6
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 test -n "$CC" && break
2100 if test -z "$CC"; then
2104 # Extract the first word of "$ac_prog", so it can be a program name with args.
2105 set dummy $ac_prog; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 if test -n "$ac_ct_CC"; then
2112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 ac_cv_prog_ac_ct_CC="$ac_prog"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2131 if test -n "$ac_ct_CC"; then
2132 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2133 echo "${ECHO_T}$ac_ct_CC" >&6
2135 echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2139 test -n "$ac_ct_CC" && break
2148 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2149 See \`config.log' for more details." >&5
2150 echo "$as_me: error: no acceptable C compiler found in \$PATH
2151 See \`config.log' for more details." >&2;}
2152 { (exit 1); exit 1; }; }
2154 # Provide some information about the compiler.
2155 echo "$as_me:$LINENO:" \
2156 "checking for C compiler version" >&5
2157 ac_compiler=`set X $ac_compile; echo $2`
2158 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2159 (eval $ac_compiler --version </dev/null >&5) 2>&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2164 (eval $ac_compiler -v </dev/null >&5) 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2169 (eval $ac_compiler -V </dev/null >&5) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2174 cat >conftest.$ac_ext <<_ACEOF
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h. */
2189 ac_clean_files_save=$ac_clean_files
2190 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2191 # Try to create an executable without -o first, disregard a.out.
2192 # It will help us diagnose broken compilers, and finding out an intuition
2194 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2195 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2196 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2197 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2198 (eval $ac_link_default) 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; then
2202 # Find the output, starting from the most likely. This scheme is
2203 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2206 # Be careful to initialize this variable, since it used to be cached.
2207 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2209 # b.out is created by i960 compilers.
2210 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2212 test -f "$ac_file" || continue
2214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2217 # This is the source file.
2220 # We found the default executable, but exeext='' is most
2224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225 # FIXME: I believe we export ac_cv_exeext for Libtool,
2226 # but it would be cool to find out if it's true. Does anybody
2227 # maintain Libtool? --akim.
2235 echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2238 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&2;}
2242 { (exit 77); exit 77; }; }
2245 ac_exeext=$ac_cv_exeext
2246 echo "$as_me:$LINENO: result: $ac_file" >&5
2247 echo "${ECHO_T}$ac_file" >&6
2249 # Check the compiler produces executables we can run. If not, either
2250 # the compiler is broken, or we cross compile.
2251 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2252 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2253 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2254 # If not cross compiling, check that we can run a simple program.
2255 if test "$cross_compiling" != yes; then
2256 if { ac_try='./$ac_file'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2264 if test "$cross_compiling" = maybe; then
2267 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot run C compiled programs.
2271 If you meant to cross compile, use \`--host'.
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2277 echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6
2280 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2281 ac_clean_files=$ac_clean_files_save
2282 # Check the compiler produces executables we can run. If not, either
2283 # the compiler is broken, or we cross compile.
2284 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2285 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2286 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2287 echo "${ECHO_T}$cross_compiling" >&6
2289 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2290 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2292 (eval $ac_link) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; then
2296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2297 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2298 # work properly (i.e., refer to `conftest.exe'), while it won't with
2300 for ac_file in conftest.exe conftest conftest.*; do
2301 test -f "$ac_file" || continue
2303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2311 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }
2318 rm -f conftest$ac_cv_exeext
2319 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2320 echo "${ECHO_T}$ac_cv_exeext" >&6
2322 rm -f conftest.$ac_ext
2323 EXEEXT=$ac_cv_exeext
2325 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2326 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2327 if test "${ac_cv_objext+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 cat >conftest.$ac_ext <<_ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2345 rm -f conftest.o conftest.obj
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; then
2351 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&2;}
2366 { (exit 1); exit 1; }; }
2369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372 echo "${ECHO_T}$ac_cv_objext" >&6
2373 OBJEXT=$ac_cv_objext
2375 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2377 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2402 grep -v '^ *+' conftest.er1 >conftest.err
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2431 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2433 GCC=`test $ac_compiler_gnu = yes && echo yes`
2434 ac_test_CFLAGS=${CFLAGS+set}
2435 ac_save_CFLAGS=$CFLAGS
2437 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2461 grep -v '^ *+' conftest.er1 >conftest.err
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_c_werror_flag"
2467 || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490 if test "$ac_test_CFLAGS" = set; then
2491 CFLAGS=$ac_save_CFLAGS
2492 elif test $ac_cv_prog_cc_g = yes; then
2493 if test "$GCC" = yes; then
2499 if test "$GCC" = yes; then
2505 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2506 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 ac_cv_prog_cc_stdc=no
2512 cat >conftest.$ac_ext <<_ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2523 struct buf { int x; };
2524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2525 static char *e (p, i)
2531 static char *f (char * (*g) (char **, int), char **p, ...)
2536 s = g (p, va_arg (v,int));
2541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2542 function prototypes and stuff, but not '\xHH' hex character constants.
2543 These don't provoke an error unfortunately, instead are silently treated
2544 as 'x'. The following induces an error, until -std1 is added to get
2545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2546 array size at least. It's necessary to write '\x00'==0 to get something
2547 that's true only with -std1. */
2548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2564 # Don't try gcc -ansi; that turns off useful extensions and
2565 # breaks some systems' header files.
2566 # AIX -qlanglvl=ansi
2567 # Ultrix and OSF/1 -std1
2568 # HP-UX 10.20 and later -Ae
2569 # HP-UX older versions -Aa -D_HPUX_SOURCE
2570 # SVR4 -Xc -D__EXTENSIONS__
2571 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2573 CC="$ac_save_CC $ac_arg"
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2578 grep -v '^ *+' conftest.er1 >conftest.err
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag"
2584 || test ! -s conftest.err'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 ac_cv_prog_cc_stdc=$ac_arg
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2603 rm -f conftest.err conftest.$ac_objext
2605 rm -f conftest.$ac_ext conftest.$ac_objext
2610 case "x$ac_cv_prog_cc_stdc" in
2612 echo "$as_me:$LINENO: result: none needed" >&5
2613 echo "${ECHO_T}none needed" >&6 ;;
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2617 CC="$CC $ac_cv_prog_cc_stdc" ;;
2620 # Some people use a C++ compiler to compile C. Since we use `exit',
2621 # in C++ we need to declare it. In case someone uses the same compiler
2622 # for both compiling C and C++ we need to have the C++ compiler decide
2623 # the declaration of exit, since it's the most demanding environment.
2624 cat >conftest.$ac_ext <<_ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_c_werror_flag"
2639 || test ! -s conftest.err'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2651 for ac_declaration in \
2653 'extern "C" void std::exit (int) throw (); using std::exit;' \
2654 'extern "C" void std::exit (int); using std::exit;' \
2655 'extern "C" void exit (int) throw ();' \
2656 'extern "C" void exit (int);' \
2659 cat >conftest.$ac_ext <<_ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>conftest.er1
2679 grep -v '^ *+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -z "$ac_c_werror_flag"
2685 || test ! -s conftest.err'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; } &&
2691 { ac_try='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705 cat >conftest.$ac_ext <<_ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 if test -n "$ac_declaration"; then
2752 echo '#ifdef __cplusplus' >>confdefs.h
2753 echo $ac_declaration >>confdefs.h
2754 echo '#endif' >>confdefs.h
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2776 # On Suns, sometimes $CPP names a directory.
2777 if test -n "$CPP" && test -d "$CPP"; then
2780 if test -z "$CPP"; then
2781 if test "${ac_cv_prog_CPP+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 # Double quotes because CPP needs to be expanded
2785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2788 for ac_c_preproc_warn_flag in '' yes
2790 # Use a header file that comes with gcc, so configuring glibc
2791 # with a fresh cross-compiler works.
2792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2793 # <limits.h> exists even on freestanding compilers.
2794 # On the NeXT, cc -E runs the code through the compiler's parser,
2795 # not just through cpp. "Syntax error" is here to catch this case.
2796 cat >conftest.$ac_ext <<_ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2803 # include <limits.h>
2805 # include <assert.h>
2809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2812 grep -v '^ *+' conftest.er1 >conftest.err
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } >/dev/null; then
2817 if test -s conftest.err; then
2818 ac_cpp_err=$ac_c_preproc_warn_flag
2819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2826 if test -z "$ac_cpp_err"; then
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 # Broken: fails on valid input.
2835 rm -f conftest.err conftest.$ac_ext
2837 # OK, works on sane cases. Now check whether non-existent headers
2838 # can be detected and how.
2839 cat >conftest.$ac_ext <<_ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2845 #include <ac_nonexistent.h>
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev/null; then
2855 if test -s conftest.err; then
2856 ac_cpp_err=$ac_c_preproc_warn_flag
2857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2864 if test -z "$ac_cpp_err"; then
2865 # Broken: success on invalid input.
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2871 # Passes both tests.
2875 rm -f conftest.err conftest.$ac_ext
2878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2879 rm -f conftest.err conftest.$ac_ext
2880 if $ac_preproc_ok; then
2892 echo "$as_me:$LINENO: result: $CPP" >&5
2893 echo "${ECHO_T}$CPP" >&6
2895 for ac_c_preproc_warn_flag in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2910 # include <limits.h>
2912 # include <assert.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2933 if test -z "$ac_cpp_err"; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2939 # Broken: fails on valid input.
2942 rm -f conftest.err conftest.$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.$ac_ext <<_ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Passes both tests.
2982 rm -f conftest.err conftest.$ac_ext
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2990 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2993 See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 CFLAGS="$cflags_save"
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 && break
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'
3326 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3327 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3328 if test "${lt_cv_path_NM+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 if test -n "$NM"; then
3332 # Let the user override the test.
3335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3336 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3338 test -z "$ac_dir" && ac_dir=.
3339 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3340 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3341 # Check to see if the nm accepts a BSD-compat flag.
3342 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3343 # nm: unknown option "B" ignored
3344 # Tru64's nm complains that /dev/null is an invalid object file
3345 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3346 */dev/null* | *'Invalid file or object type'*)
3347 lt_cv_path_NM="$tmp_nm -B"
3351 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3353 lt_cv_path_NM="$tmp_nm -p"
3357 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3358 continue # so that we can try to find one that supports BSD flags
3365 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3368 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3369 echo "${ECHO_T}$lt_cv_path_NM" >&6
3372 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3373 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3375 if test "$LN_S" = "ln -s"; then
3376 echo "$as_me:$LINENO: result: yes" >&5
3377 echo "${ECHO_T}yes" >&6
3379 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3380 echo "${ECHO_T}no, using $LN_S" >&6
3383 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3384 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3385 if test "${lt_cv_deplibs_check_method+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 lt_cv_file_magic_cmd='$MAGIC_CMD'
3389 lt_cv_file_magic_test_file=
3390 lt_cv_deplibs_check_method='unknown'
3391 # Need to set the preceding variable on all platforms that support
3392 # interlibrary dependencies.
3393 # 'none' -- dependencies not supported.
3394 # `unknown' -- same as none, but documents that we really don't know.
3395 # 'pass_all' -- all dependencies passed with no checks.
3396 # 'test_compile' -- check by making test program.
3397 # 'file_magic [[regex]]' -- check by looking for files in library path
3398 # which responds to the $file_magic_cmd with a given extended regex.
3399 # If you have `file' or equivalent on your system and you're not sure
3400 # whether `pass_all' will *always* work, you probably want this one.
3404 lt_cv_deplibs_check_method=pass_all
3408 lt_cv_deplibs_check_method=pass_all
3412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3413 lt_cv_file_magic_cmd='/usr/bin/file -L'
3414 lt_cv_file_magic_test_file=/shlib/libc.so
3417 cygwin* | mingw* | pw32*)
3418 # win32_libid is a shell function defined in ltmain.sh
3419 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3420 lt_cv_file_magic_cmd='win32_libid'
3423 darwin* | rhapsody*)
3424 lt_cv_deplibs_check_method=pass_all
3427 freebsd* | kfreebsd*-gnu)
3428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3431 # Not sure whether the presence of OpenBSD here was a mistake.
3432 # Let's accept both of them until this is cleared up.
3433 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3434 lt_cv_file_magic_cmd=/usr/bin/file
3435 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3439 lt_cv_deplibs_check_method=pass_all
3444 lt_cv_deplibs_check_method=pass_all
3447 hpux10.20* | hpux11*)
3448 lt_cv_file_magic_cmd=/usr/bin/file
3451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3452 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3455 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]'
3456 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3460 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3465 irix5* | irix6* | nonstopux*)
3467 *-32|*"-32 ") libmagic=32-bit;;
3468 *-n32|*"-n32 ") libmagic=N32;;
3469 *-64|*"-64 ") libmagic=64-bit;;
3470 *) libmagic=never-match;;
3472 lt_cv_deplibs_check_method=pass_all
3475 # This must be Linux ELF.
3477 lt_cv_deplibs_check_method=pass_all
3481 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3490 lt_cv_file_magic_cmd=/usr/bin/file
3491 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3495 lt_cv_deplibs_check_method=unknown
3499 lt_cv_file_magic_cmd=/usr/bin/file
3500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3504 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3508 osf3* | osf4* | osf5*)
3509 lt_cv_deplibs_check_method=pass_all
3513 lt_cv_deplibs_check_method=pass_all
3517 lt_cv_deplibs_check_method=pass_all
3520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3521 case $host_vendor in
3523 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]'
3524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3527 lt_cv_deplibs_check_method=pass_all
3530 lt_cv_file_magic_cmd='/bin/file'
3531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3534 lt_cv_file_magic_cmd='/bin/file'
3535 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3536 lt_cv_file_magic_test_file=/lib/libc.so
3539 lt_cv_deplibs_check_method=pass_all
3544 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3545 lt_cv_deplibs_check_method=pass_all
3550 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3552 file_magic_cmd=$lt_cv_file_magic_cmd
3553 deplibs_check_method=$lt_cv_deplibs_check_method
3554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3559 # If no C compiler was specified, use CC.
3562 # Allow CC to be a program name with arguments.
3566 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3567 if test "${enable_libtool_lock+set}" = set; then
3568 enableval="$enable_libtool_lock"
3571 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3573 # Some flags need to be propagated to the compiler or linker for good
3577 # Find out which ABI we are using.
3578 echo 'int i;' > conftest.$ac_ext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; then
3584 case `/usr/bin/file conftest.$ac_objext` in
3596 # Find out which ABI we are using.
3597 echo '#line 3597 "configure"' > conftest.$ac_ext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; then
3603 if test "$lt_cv_prog_gnu_ld" = yes; then
3604 case `/usr/bin/file conftest.$ac_objext` in
3606 LD="${LD-ld} -melf32bsmip"
3609 LD="${LD-ld} -melf32bmipn32"
3612 LD="${LD-ld} -melf64bmip"
3616 case `/usr/bin/file conftest.$ac_objext` in
3632 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3633 # Find out which ABI we are using.
3634 echo 'int i;' > conftest.$ac_ext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; then
3640 case "`/usr/bin/file conftest.o`" in
3644 LD="${LD-ld} -m elf_i386"
3646 ppc64-*linux*|powerpc64-*linux*)
3647 LD="${LD-ld} -m elf32ppclinux"
3650 LD="${LD-ld} -m elf_s390"
3653 LD="${LD-ld} -m elf32_sparc"
3660 LD="${LD-ld} -m elf_x86_64"
3662 ppc*-*linux*|powerpc*-*linux*)
3663 LD="${LD-ld} -m elf64ppc"
3666 LD="${LD-ld} -m elf64_s390"
3669 LD="${LD-ld} -m elf64_sparc"
3679 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3680 SAVE_CFLAGS="$CFLAGS"
3681 CFLAGS="$CFLAGS -belf"
3682 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3683 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3684 if test "${lt_cv_cc_needs_belf+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 lt_cv_cc_needs_belf=yes
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 lt_cv_cc_needs_belf=no
3737 rm -f conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3747 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3748 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3749 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3750 CFLAGS="$SAVE_CFLAGS"
3756 need_locks="$enable_libtool_lock"
3760 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3762 if test "${ac_cv_header_stdc+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_header_stdc=yes
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 ac_cv_header_stdc=no
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 if test $ac_cv_header_stdc = yes; then
3816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "memchr" >/dev/null 2>&1; then
3830 ac_cv_header_stdc=no
3836 if test $ac_cv_header_stdc = yes; then
3837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 $EGREP "free" >/dev/null 2>&1; then
3851 ac_cv_header_stdc=no
3857 if test $ac_cv_header_stdc = yes; then
3858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859 if test "$cross_compiling" = yes; then
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3869 #if ((' ' & 0x0FF) == 0x020)
3870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3873 # define ISLOWER(c) \
3874 (('a' <= (c) && (c) <= 'i') \
3875 || ('j' <= (c) && (c) <= 'r') \
3876 || ('s' <= (c) && (c) <= 'z'))
3877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3885 for (i = 0; i < 256; i++)
3886 if (XOR (islower (i), ISLOWER (i))
3887 || toupper (i) != TOUPPER (i))
3892 rm -f conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3905 echo "$as_me: program exited with status $ac_status" >&5
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3910 ac_cv_header_stdc=no
3912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3916 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3917 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3918 if test $ac_cv_header_stdc = yes; then
3920 cat >>confdefs.h <<\_ACEOF
3921 #define STDC_HEADERS 1
3926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3937 inttypes.h stdint.h unistd.h
3939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 $ac_includes_default
3953 #include <$ac_header>
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_c_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 eval "$as_ac_Header=yes"
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 eval "$as_ac_Header=no"
3984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989 cat >>confdefs.h <<_ACEOF
3990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3999 for ac_header in dlfcn.h
4001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4003 echo "$as_me:$LINENO: checking for $ac_header" >&5
4004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4011 # Is the header compilable?
4012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4014 cat >conftest.$ac_ext <<_ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 $ac_includes_default
4021 #include <$ac_header>
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_c_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_header_compiler=yes
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_header_compiler=no
4052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4054 echo "${ECHO_T}$ac_header_compiler" >&6
4056 # Is the header present?
4057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 #include <$ac_header>
4067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4070 grep -v '^ *+' conftest.er1 >conftest.err
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } >/dev/null; then
4075 if test -s conftest.err; then
4076 ac_cpp_err=$ac_c_preproc_warn_flag
4077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4084 if test -z "$ac_cpp_err"; then
4085 ac_header_preproc=yes
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 ac_header_preproc=no
4092 rm -f conftest.err conftest.$ac_ext
4093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4094 echo "${ECHO_T}$ac_header_preproc" >&6
4096 # So? What about this header?
4097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4103 ac_header_preproc=yes
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4120 ## ------------------------------------------ ##
4121 ## Report this to the AC_PACKAGE_NAME lists. ##
4122 ## ------------------------------------------ ##
4125 sed "s/^/$as_me: WARNING: /" >&2
4128 echo "$as_me:$LINENO: checking for $ac_header" >&5
4129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 eval "$as_ac_Header=\$ac_header_preproc"
4135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4140 cat >>confdefs.h <<_ACEOF
4141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4149 ac_cpp='$CXXCPP $CPPFLAGS'
4150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4153 if test -n "$ac_tool_prefix"; then
4154 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_CXX+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test -n "$CXX"; then
4164 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 if test -n "$CXX"; then
4184 echo "$as_me:$LINENO: result: $CXX" >&5
4185 echo "${ECHO_T}$CXX" >&6
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4191 test -n "$CXX" && break
4194 if test -z "$CXX"; then
4196 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4198 # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$ac_ct_CXX"; then
4206 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_ac_ct_CXX="$ac_prog"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4225 if test -n "$ac_ct_CXX"; then
4226 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4227 echo "${ECHO_T}$ac_ct_CXX" >&6
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4233 test -n "$ac_ct_CXX" && break
4235 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4241 # Provide some information about the compiler.
4242 echo "$as_me:$LINENO:" \
4243 "checking for C++ compiler version" >&5
4244 ac_compiler=`set X $ac_compile; echo $2`
4245 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4246 (eval $ac_compiler --version </dev/null >&5) 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }
4250 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4251 (eval $ac_compiler -v </dev/null >&5) 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }
4255 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4256 (eval $ac_compiler -V </dev/null >&5) 2>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }
4261 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4262 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4263 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4284 rm -f conftest.$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_cxx_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4317 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4318 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4319 GXX=`test $ac_compiler_gnu = yes && echo yes`
4320 ac_test_CXXFLAGS=${CXXFLAGS+set}
4321 ac_save_CXXFLAGS=$CXXFLAGS
4323 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4324 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4325 if test "${ac_cv_prog_cxx_g+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_cxx_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_prog_cxx_g=yes
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4375 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4376 if test "$ac_test_CXXFLAGS" = set; then
4377 CXXFLAGS=$ac_save_CXXFLAGS
4378 elif test $ac_cv_prog_cxx_g = yes; then
4379 if test "$GXX" = yes; then
4385 if test "$GXX" = yes; then
4391 for ac_declaration in \
4393 'extern "C" void std::exit (int) throw (); using std::exit;' \
4394 'extern "C" void std::exit (int); using std::exit;' \
4395 'extern "C" void exit (int) throw ();' \
4396 'extern "C" void exit (int);' \
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4419 grep -v '^ *+' conftest.er1 >conftest.err
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_cxx_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>conftest.er1
4464 grep -v '^ *+' conftest.er1 >conftest.err
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_cxx_werror_flag"
4470 || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest.$ac_objext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4491 if test -n "$ac_declaration"; then
4492 echo '#ifdef __cplusplus' >>confdefs.h
4493 echo $ac_declaration >>confdefs.h
4494 echo '#endif' >>confdefs.h
4498 ac_cpp='$CXXCPP $CPPFLAGS'
4499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4504 ac_cpp='$CXXCPP $CPPFLAGS'
4505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4508 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4509 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4510 if test -z "$CXXCPP"; then
4511 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 # Double quotes because CXXCPP needs to be expanded
4515 for CXXCPP in "$CXX -E" "/lib/cpp"
4518 for ac_cxx_preproc_warn_flag in '' yes
4520 # Use a header file that comes with gcc, so configuring glibc
4521 # with a fresh cross-compiler works.
4522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4523 # <limits.h> exists even on freestanding compilers.
4524 # On the NeXT, cc -E runs the code through the compiler's parser,
4525 # not just through cpp. "Syntax error" is here to catch this case.
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4533 # include <limits.h>
4535 # include <assert.h>
4539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev/null; then
4547 if test -s conftest.err; then
4548 ac_cpp_err=$ac_cxx_preproc_warn_flag
4549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4556 if test -z "$ac_cpp_err"; then
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 # Broken: fails on valid input.
4565 rm -f conftest.err conftest.$ac_ext
4567 # OK, works on sane cases. Now check whether non-existent headers
4568 # can be detected and how.
4569 cat >conftest.$ac_ext <<_ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575 #include <ac_nonexistent.h>
4577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4580 grep -v '^ *+' conftest.er1 >conftest.err
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } >/dev/null; then
4585 if test -s conftest.err; then
4586 ac_cpp_err=$ac_cxx_preproc_warn_flag
4587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4594 if test -z "$ac_cpp_err"; then
4595 # Broken: success on invalid input.
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4601 # Passes both tests.
4605 rm -f conftest.err conftest.$ac_ext
4608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4609 rm -f conftest.err conftest.$ac_ext
4610 if $ac_preproc_ok; then
4615 ac_cv_prog_CXXCPP=$CXXCPP
4618 CXXCPP=$ac_cv_prog_CXXCPP
4620 ac_cv_prog_CXXCPP=$CXXCPP
4622 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4623 echo "${ECHO_T}$CXXCPP" >&6
4625 for ac_cxx_preproc_warn_flag in '' yes
4627 # Use a header file that comes with gcc, so configuring glibc
4628 # with a fresh cross-compiler works.
4629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4630 # <limits.h> exists even on freestanding compilers.
4631 # On the NeXT, cc -E runs the code through the compiler's parser,
4632 # not just through cpp. "Syntax error" is here to catch this case.
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4640 # include <limits.h>
4642 # include <assert.h>
4646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } >/dev/null; then
4654 if test -s conftest.err; then
4655 ac_cpp_err=$ac_cxx_preproc_warn_flag
4656 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4663 if test -z "$ac_cpp_err"; then
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 # Broken: fails on valid input.
4672 rm -f conftest.err conftest.$ac_ext
4674 # OK, works on sane cases. Now check whether non-existent headers
4675 # can be detected and how.
4676 cat >conftest.$ac_ext <<_ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <ac_nonexistent.h>
4684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4687 grep -v '^ *+' conftest.er1 >conftest.err
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } >/dev/null; then
4692 if test -s conftest.err; then
4693 ac_cpp_err=$ac_cxx_preproc_warn_flag
4694 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4701 if test -z "$ac_cpp_err"; then
4702 # Broken: success on invalid input.
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 # Passes both tests.
4712 rm -f conftest.err conftest.$ac_ext
4715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4716 rm -f conftest.err conftest.$ac_ext
4717 if $ac_preproc_ok; then
4720 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; }
4728 ac_cpp='$CXXCPP $CPPFLAGS'
4729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4735 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4736 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4738 if test -n "$ac_tool_prefix"; then
4739 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_prog_F77+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 if test -n "$F77"; then
4749 ac_cv_prog_F77="$F77" # Let the user override the test.
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 if test -n "$F77"; then
4769 echo "$as_me:$LINENO: result: $F77" >&5
4770 echo "${ECHO_T}$F77" >&6
4772 echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4776 test -n "$F77" && break
4779 if test -z "$F77"; then
4781 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4783 # Extract the first word of "$ac_prog", so it can be a program name with args.
4784 set dummy $ac_prog; ac_word=$2
4785 echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 if test -n "$ac_ct_F77"; then
4791 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_prog_ac_ct_F77="$ac_prog"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4810 if test -n "$ac_ct_F77"; then
4811 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4812 echo "${ECHO_T}$ac_ct_F77" >&6
4814 echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6
4818 test -n "$ac_ct_F77" && break
4825 # Provide some information about the compiler.
4826 echo "$as_me:4826:" \
4827 "checking for Fortran 77 compiler version" >&5
4828 ac_compiler=`set X $ac_compile; echo $2`
4829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4830 (eval $ac_compiler --version </dev/null >&5) 2>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }
4834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4835 (eval $ac_compiler -v </dev/null >&5) 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }
4839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4840 (eval $ac_compiler -V </dev/null >&5) 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }
4846 # If we don't use `.F' as extension, the preprocessor is not run on the
4847 # input file. (Note that this only needs to work for GNU compilers.)
4850 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4851 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4852 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865 (eval $ac_compile) 2>conftest.er1
4867 grep -v '^ *+' conftest.er1 >conftest.err
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } &&
4872 { ac_try='test -z "$ac_f77_werror_flag"
4873 || test ! -s conftest.err'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; } &&
4879 { ac_try='test -s conftest.$ac_objext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4896 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4897 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4899 ac_test_FFLAGS=${FFLAGS+set}
4900 ac_save_FFLAGS=$FFLAGS
4902 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4903 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4904 if test "${ac_cv_prog_f77_g+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 cat >conftest.$ac_ext <<_ACEOF
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_f77_werror_flag"
4923 || test ! -s conftest.err'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 ac_cv_prog_f77_g=yes
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4946 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4947 if test "$ac_test_FFLAGS" = set; then
4948 FFLAGS=$ac_save_FFLAGS
4949 elif test $ac_cv_prog_f77_g = yes; then
4950 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4956 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4963 G77=`test $ac_compiler_gnu = yes && echo yes`
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4974 # find the maximum length of command line arguments
4975 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4976 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4977 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 # On DJGPP, this test can blow up pretty badly due to problems in libc
4986 # (any single argument exceeding 2000 bytes causes a buffer overrun
4987 # during glob expansion). Even if it were fixed, the result of this
4988 # check would be larger than it should be.
4989 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4993 # Under GNU Hurd, this test is not required because there is
4994 # no limit to the length of command line arguments.
4995 # Libtool will interpret -1 as no limit whatsoever
4996 lt_cv_sys_max_cmd_len=-1;
5000 # On Win9x/ME, this test blows up -- it succeeds, but takes
5001 # about 5 minutes as the teststring grows exponentially.
5002 # Worse, since 9x/ME are not pre-emptively multitasking,
5003 # you end up with a "frozen" computer, even though with patience
5004 # the test eventually succeeds (with a max line length of 256k).
5005 # Instead, let's just punt: use the minimum linelength reported by
5006 # all of the supported platforms: 8192 (on NT/2K/XP).
5007 lt_cv_sys_max_cmd_len=8192;
5011 # On AmigaOS with pdksh, this test takes hours, literally.
5012 # So we just punt and use a minimum line length of 8192.
5013 lt_cv_sys_max_cmd_len=8192;
5017 # If test is not a shell built-in, we'll probably end up computing a
5018 # maximum length that is only half of the actual maximum length, but
5020 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5021 = "XX$testring") >/dev/null 2>&1 &&
5022 new_result=`expr "X$testring" : ".*" 2>&1` &&
5023 lt_cv_sys_max_cmd_len=$new_result &&
5024 test $i != 17 # 1/2 MB should be enough
5027 testring=$testring$testring
5030 # Add a significant safety factor because C++ compilers can tack on massive
5031 # amounts of additional arguments before passing them to the linker.
5032 # It appears as though 1/2 is a usable value.
5033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5039 if test -n $lt_cv_sys_max_cmd_len ; then
5040 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5041 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5043 echo "$as_me:$LINENO: result: none" >&5
5044 echo "${ECHO_T}none" >&6
5050 # Check for command to grab the raw symbol name followed by C symbol from nm.
5051 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5052 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5053 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 # These are sane defaults that work on at least a few old systems.
5058 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5060 # Character class describing NM global symbol codes.
5061 symcode='[BCDEGRST]'
5063 # Regexp to match symbols that can be accessed directly from C.
5064 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5066 # Transform the above into a raw symbol and a C symbol.
5067 symxfrm='\1 \2\3 \3'
5069 # Transform an extracted symbol line into a proper C declaration
5070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5072 # Transform an extracted symbol line into symbol name and symbol address
5073 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'"
5075 # Define system-specific variables.
5080 cygwin* | mingw* | pw32*)
5081 symcode='[ABCDGISTW]'
5083 hpux*) # Its linker distinguishes data from code symbols
5084 if test "$host_cpu" = ia64; then
5085 symcode='[ABCDEGRST]'
5087 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5088 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'"
5091 symcode='[BCDEGRST]'
5094 symcode='[BCDEGQRST]'
5104 # Handle CRLF in mingw tool chain
5108 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5112 # If we're using GNU nm, then use its standard symbol codes.
5113 case `$NM -V 2>&1` in
5114 *GNU* | *'with BFD'*)
5115 symcode='[ABCDGIRSTW]' ;;
5118 # Try without a prefix undercore, then with it.
5119 for ac_symprfx in "" "_"; do
5121 # Write the raw and C identifiers.
5122 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5124 # Check to see that the pipe works correctly.
5128 cat > conftest.$ac_ext <<EOF
5133 void nm_test_func(){}
5137 int main(){nm_test_var='a';nm_test_func();return(0);}
5140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5141 (eval $ac_compile) 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; then
5145 # Now try to grab the symbols.
5147 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5148 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && test -s "$nlist"; then
5152 # Try sorting and uniquifying the output.
5153 if sort "$nlist" | uniq > "$nlist"T; then
5154 mv -f "$nlist"T "$nlist"
5159 # Make sure that we snagged all the symbols we need.
5160 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5161 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5162 cat <<EOF > conftest.$ac_ext
5168 # Now generate the symbol file.
5169 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5171 cat <<EOF >> conftest.$ac_ext
5172 #if defined (__STDC__) && __STDC__
5173 # define lt_ptr_t void *
5175 # define lt_ptr_t char *
5179 /* The mapping between symbol names and symbols. */
5184 lt_preloaded_symbols[] =
5187 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5188 cat <<\EOF >> conftest.$ac_ext
5196 # Now try linking the two files.
5197 mv conftest.$ac_objext conftstm.$ac_objext
5198 lt_save_LIBS="$LIBS"
5199 lt_save_CFLAGS="$CFLAGS"
5200 LIBS="conftstm.$ac_objext"
5201 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203 (eval $ac_link) 2>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5209 LIBS="$lt_save_LIBS"
5210 CFLAGS="$lt_save_CFLAGS"
5212 echo "cannot find nm_test_func in $nlist" >&5
5215 echo "cannot find nm_test_var in $nlist" >&5
5218 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5221 echo "$progname: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 rm -f conftest* conftst*
5226 # Do not use the global_symbol_pipe unless it works.
5227 if test "$pipe_works" = yes; then
5230 lt_cv_sys_global_symbol_pipe=
5236 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5237 lt_cv_sys_global_symbol_to_cdecl=
5239 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5240 echo "$as_me:$LINENO: result: failed" >&5
5241 echo "${ECHO_T}failed" >&6
5243 echo "$as_me:$LINENO: result: ok" >&5
5244 echo "${ECHO_T}ok" >&6
5247 echo "$as_me:$LINENO: checking for objdir" >&5
5248 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5249 if test "${lt_cv_objdir+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 rm -f .libs 2>/dev/null
5253 mkdir .libs 2>/dev/null
5254 if test -d .libs; then
5257 # MS-DOS does not allow filenames that begin with a dot.
5260 rmdir .libs 2>/dev/null
5262 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5263 echo "${ECHO_T}$lt_cv_objdir" >&6
5264 objdir=$lt_cv_objdir
5272 # AIX sometimes has problems with the GCC collect2 program. For some
5273 # reason, if we set the COLLECT_NAMES environment variable, the problems
5274 # vanish in a puff of smoke.
5275 if test "X${COLLECT_NAMES+set}" != Xset; then
5277 export COLLECT_NAMES
5282 # Sed substitution that helps us do robust quoting. It backslashifies
5283 # metacharacters that are still active within double-quoted strings.
5284 Xsed='sed -e s/^X//'
5285 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5287 # Same as above, but do not quote variable references.
5288 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5290 # Sed substitution to delay expansion of an escaped shell variable in a
5291 # double_quote_subst'ed string.
5292 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5294 # Sed substitution to avoid accidental globbing in evaled expressions
5295 no_glob_subst='s/\*/\\\*/g'
5301 default_ofile=libtool
5302 can_build_shared=yes
5304 # All known linkers require a `.a' archive for static linking (except M$VC,
5305 # which needs '.lib').
5307 ltmain="$ac_aux_dir/ltmain.sh"
5308 ofile="$default_ofile"
5309 with_gnu_ld="$lt_cv_prog_gnu_ld"
5311 if test -n "$ac_tool_prefix"; then
5312 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}ar; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_AR+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 if test -n "$AR"; then
5320 ac_cv_prog_AR="$AR" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_AR="${ac_tool_prefix}ar"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 if test -n "$AR"; then
5340 echo "$as_me:$LINENO: result: $AR" >&5
5341 echo "${ECHO_T}$AR" >&6
5343 echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6
5348 if test -z "$ac_cv_prog_AR"; then
5350 # Extract the first word of "ar", so it can be a program name with args.
5351 set dummy ar; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 if test -n "$ac_ct_AR"; then
5358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_ac_ct_AR="ar"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5378 if test -n "$ac_ct_AR"; then
5379 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5380 echo "${ECHO_T}$ac_ct_AR" >&6
5382 echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5391 if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_prog_RANLIB+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 if test -n "$RANLIB"; then
5400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 RANLIB=$ac_cv_prog_RANLIB
5419 if test -n "$RANLIB"; then
5420 echo "$as_me:$LINENO: result: $RANLIB" >&5
5421 echo "${ECHO_T}$RANLIB" >&6
5423 echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6
5428 if test -z "$ac_cv_prog_RANLIB"; then
5429 ac_ct_RANLIB=$RANLIB
5430 # Extract the first word of "ranlib", so it can be a program name with args.
5431 set dummy ranlib; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 if test -n "$ac_ct_RANLIB"; then
5438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_ac_ct_RANLIB="ranlib"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5458 if test -n "$ac_ct_RANLIB"; then
5459 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5460 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5462 echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5466 RANLIB=$ac_ct_RANLIB
5468 RANLIB="$ac_cv_prog_RANLIB"
5471 if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}strip; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_prog_STRIP+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 if test -n "$STRIP"; then
5480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 STRIP=$ac_cv_prog_STRIP
5499 if test -n "$STRIP"; then
5500 echo "$as_me:$LINENO: result: $STRIP" >&5
5501 echo "${ECHO_T}$STRIP" >&6
5503 echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5508 if test -z "$ac_cv_prog_STRIP"; then
5510 # Extract the first word of "strip", so it can be a program name with args.
5511 set dummy strip; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 if test -n "$ac_ct_STRIP"; then
5518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_ac_ct_STRIP="strip"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5538 if test -n "$ac_ct_STRIP"; then
5539 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5540 echo "${ECHO_T}$ac_ct_STRIP" >&6
5542 echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5548 STRIP="$ac_cv_prog_STRIP"
5553 old_CFLAGS="$CFLAGS"
5555 # Set sane defaults for various variables
5556 test -z "$AR" && AR=ar
5557 test -z "$AR_FLAGS" && AR_FLAGS=cru
5558 test -z "$AS" && AS=as
5559 test -z "$CC" && CC=cc
5560 test -z "$LTCC" && LTCC=$CC
5561 test -z "$DLLTOOL" && DLLTOOL=dlltool
5562 test -z "$LD" && LD=ld
5563 test -z "$LN_S" && LN_S="ln -s"
5564 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5565 test -z "$NM" && NM=nm
5566 test -z "$SED" && SED=sed
5567 test -z "$OBJDUMP" && OBJDUMP=objdump
5568 test -z "$RANLIB" && RANLIB=:
5569 test -z "$STRIP" && STRIP=:
5570 test -z "$ac_objext" && ac_objext=o
5572 # Determine commands to create old-style static archives.
5573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5574 old_postinstall_cmds='chmod 644 $oldlib'
5575 old_postuninstall_cmds=
5577 if test -n "$RANLIB"; then
5580 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5583 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5586 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5589 # Only perform the check for file, if the check method requires it
5590 case $deplibs_check_method in
5592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5593 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5594 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5603 lt_save_MAGIC_CMD="$MAGIC_CMD"
5604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5606 for ac_dir in $ac_dummy; do
5608 test -z "$ac_dir" && ac_dir=.
5609 if test -f $ac_dir/${ac_tool_prefix}file; then
5610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5611 if test -n "$file_magic_test_file"; then
5612 case $deplibs_check_method in
5614 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5617 $EGREP "$file_magic_regex" > /dev/null; then
5622 *** Warning: the command libtool uses to detect shared libraries,
5623 *** $file_magic_cmd, produces output that libtool cannot recognize.
5624 *** The result is that libtool may fail to recognize shared libraries
5625 *** as such. This will affect the creation of libtool libraries that
5626 *** depend on shared libraries, but programs linked with such libtool
5627 *** libraries will work regardless of this problem. Nevertheless, you
5628 *** may want to report the problem to your system manager and/or to
5629 *** bug-libtool@gnu.org
5639 MAGIC_CMD="$lt_save_MAGIC_CMD"
5644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5645 if test -n "$MAGIC_CMD"; then
5646 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5647 echo "${ECHO_T}$MAGIC_CMD" >&6
5649 echo "$as_me:$LINENO: result: no" >&5
5650 echo "${ECHO_T}no" >&6
5653 if test -z "$lt_cv_path_MAGIC_CMD"; then
5654 if test -n "$ac_tool_prefix"; then
5655 echo "$as_me:$LINENO: checking for file" >&5
5656 echo $ECHO_N "checking for file... $ECHO_C" >&6
5657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5665 lt_save_MAGIC_CMD="$MAGIC_CMD"
5666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5667 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5668 for ac_dir in $ac_dummy; do
5670 test -z "$ac_dir" && ac_dir=.
5671 if test -f $ac_dir/file; then
5672 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5673 if test -n "$file_magic_test_file"; then
5674 case $deplibs_check_method in
5676 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5679 $EGREP "$file_magic_regex" > /dev/null; then
5684 *** Warning: the command libtool uses to detect shared libraries,
5685 *** $file_magic_cmd, produces output that libtool cannot recognize.
5686 *** The result is that libtool may fail to recognize shared libraries
5687 *** as such. This will affect the creation of libtool libraries that
5688 *** depend on shared libraries, but programs linked with such libtool
5689 *** libraries will work regardless of this problem. Nevertheless, you
5690 *** may want to report the problem to your system manager and/or to
5691 *** bug-libtool@gnu.org
5701 MAGIC_CMD="$lt_save_MAGIC_CMD"
5706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5707 if test -n "$MAGIC_CMD"; then
5708 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5709 echo "${ECHO_T}$MAGIC_CMD" >&6
5711 echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5727 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5728 if test "${enable_libtool_lock+set}" = set; then
5729 enableval="$enable_libtool_lock"
5732 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5735 # Check whether --with-pic or --without-pic was given.
5736 if test "${with_pic+set}" = set; then
5742 test -z "$pic_mode" && pic_mode=default
5744 # Use C for the default configuration in the libtool script
5748 ac_cpp='$CPP $CPPFLAGS'
5749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754 # Source file extension for C test sources.
5757 # Object file extension for compiled C test sources.
5761 # Code to be used in simple compile tests
5762 lt_simple_compile_test_code="int some_variable = 0;\n"
5764 # Code to be used in simple link tests
5765 lt_simple_link_test_code='int main(){return(0);}\n'
5768 # If no C compiler was specified, use CC.
5771 # Allow CC to be a program name with arguments.
5776 # Check for any special shared library compilation flags.
5779 if test "$GCC" = no; then
5782 lt_prog_cc_shlib='-belf'
5786 if test -n "$lt_prog_cc_shlib"; then
5787 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5788 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5789 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5791 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5792 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5793 lt_cv_prog_cc_can_build_shared=no
5799 # Check to make sure the static flag actually works.
5801 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5802 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5803 if test "${lt_prog_compiler_static_works+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 lt_prog_compiler_static_works=no
5807 save_LDFLAGS="$LDFLAGS"
5808 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5809 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5811 # The compiler can only warn and ignore the option if not recognized
5812 # So say no if there are warnings
5813 if test -s conftest.err; then
5814 # Append any errors to the config.log.
5815 cat conftest.err 1>&5
5817 lt_prog_compiler_static_works=yes
5821 LDFLAGS="$save_LDFLAGS"
5824 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5825 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5827 if test x"$lt_prog_compiler_static_works" = xyes; then
5830 lt_prog_compiler_static=
5836 lt_prog_compiler_no_builtin_flag=
5838 if test "$GCC" = yes; then
5839 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5842 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5843 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5844 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 lt_cv_prog_compiler_rtti_exceptions=no
5848 ac_outfile=conftest.$ac_objext
5849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5850 lt_compiler_flag="-fno-rtti -fno-exceptions"
5851 # Insert the option either (1) after the last *FLAGS variable, or
5852 # (2) before a word containing "conftest.", or (3) at the end.
5853 # Note that $ac_compile itself does not contain backslashes and begins
5854 # with a dollar sign (not a hyphen), so the echo should work correctly.
5855 # The option is referenced via a variable to avoid confusing sed.
5856 lt_compile=`echo "$ac_compile" | $SED \
5857 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5859 -e 's:$: $lt_compiler_flag:'`
5860 (eval echo "\"\$as_me:5860: $lt_compile\"" >&5)
5861 (eval "$lt_compile" 2>conftest.err)
5863 cat conftest.err >&5
5864 echo "$as_me:5864: \$? = $ac_status" >&5
5865 if (exit $ac_status) && test -s "$ac_outfile"; then
5866 # The compiler can only warn and ignore the option if not recognized
5867 # So say no if there are warnings
5868 if test ! -s conftest.err; then
5869 lt_cv_prog_compiler_rtti_exceptions=yes
5875 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5876 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5878 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5879 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5886 lt_prog_compiler_wl=
5887 lt_prog_compiler_pic=
5888 lt_prog_compiler_static=
5890 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5891 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5893 if test "$GCC" = yes; then
5894 lt_prog_compiler_wl='-Wl,'
5895 lt_prog_compiler_static='-static'
5899 # All AIX code is PIC.
5900 if test "$host_cpu" = ia64; then
5901 # AIX 5 now supports IA64 processor
5902 lt_prog_compiler_static='-Bstatic'
5907 # FIXME: we need at least 68020 code to build shared libraries, but
5908 # adding the `-m68020' flag to GCC prevents building anything better,
5910 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5913 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5914 # PIC is the default for these OSes.
5917 mingw* | pw32* | os2*)
5918 # This hack is so that the source file can tell whether it is being
5919 # built for inclusion in a dll (and should export symbols for example).
5920 lt_prog_compiler_pic='-DDLL_EXPORT'
5923 darwin* | rhapsody*)
5924 # PIC is the default on this platform
5925 # Common symbols not allowed in MH_DYLIB files
5926 lt_prog_compiler_pic='-fno-common'
5930 # Just because we use GCC doesn't mean we suddenly get shared libraries
5931 # on systems that don't support them.
5932 lt_prog_compiler_can_build_shared=no
5937 if test -d /usr/nec; then
5938 lt_prog_compiler_pic=-Kconform_pic
5943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5950 lt_prog_compiler_pic='-fPIC'
5956 lt_prog_compiler_pic='-fPIC'
5960 # PORTME Check for flag to pass linker flags through the system compiler.
5963 lt_prog_compiler_wl='-Wl,'
5964 if test "$host_cpu" = ia64; then
5965 # AIX 5 now supports IA64 processor
5966 lt_prog_compiler_static='-Bstatic'
5968 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5972 mingw* | pw32* | os2*)
5973 # This hack is so that the source file can tell whether it is being
5974 # built for inclusion in a dll (and should export symbols for example).
5975 lt_prog_compiler_pic='-DDLL_EXPORT'
5978 hpux9* | hpux10* | hpux11*)
5979 lt_prog_compiler_wl='-Wl,'
5980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5987 lt_prog_compiler_pic='+Z'
5990 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5991 lt_prog_compiler_static='${wl}-a ${wl}archive'
5994 irix5* | irix6* | nonstopux*)
5995 lt_prog_compiler_wl='-Wl,'
5996 # PIC (with -KPIC) is the default.
5997 lt_prog_compiler_static='-non_shared'
6001 lt_prog_compiler_pic='-KPIC'
6002 lt_prog_compiler_static='-Bstatic'
6008 lt_prog_compiler_wl='-Wl,'
6009 lt_prog_compiler_pic='-KPIC'
6010 lt_prog_compiler_static='-static'
6013 lt_prog_compiler_wl='-Wl,'
6014 # All Alpha code is PIC.
6015 lt_prog_compiler_static='-non_shared'
6020 osf3* | osf4* | osf5*)
6021 lt_prog_compiler_wl='-Wl,'
6022 # All OSF/1 code is PIC.
6023 lt_prog_compiler_static='-non_shared'
6027 lt_prog_compiler_pic='-Kpic'
6028 lt_prog_compiler_static='-dn'
6032 lt_prog_compiler_wl='-Wl,'
6033 lt_prog_compiler_pic='-KPIC'
6034 lt_prog_compiler_static='-Bstatic'
6038 lt_prog_compiler_wl='-Qoption ld '
6039 lt_prog_compiler_pic='-PIC'
6040 lt_prog_compiler_static='-Bstatic'
6043 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6044 lt_prog_compiler_wl='-Wl,'
6045 lt_prog_compiler_pic='-KPIC'
6046 lt_prog_compiler_static='-Bstatic'
6050 if test -d /usr/nec ;then
6051 lt_prog_compiler_pic='-Kconform_pic'
6052 lt_prog_compiler_static='-Bstatic'
6057 lt_prog_compiler_pic='-pic'
6058 lt_prog_compiler_static='-Bstatic'
6062 lt_prog_compiler_can_build_shared=no
6067 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6068 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6071 # Check to make sure the PIC flag actually works.
6073 if test -n "$lt_prog_compiler_pic"; then
6075 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6076 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6077 if test "${lt_prog_compiler_pic_works+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 lt_prog_compiler_pic_works=no
6081 ac_outfile=conftest.$ac_objext
6082 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6083 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6084 # Insert the option either (1) after the last *FLAGS variable, or
6085 # (2) before a word containing "conftest.", or (3) at the end.
6086 # Note that $ac_compile itself does not contain backslashes and begins
6087 # with a dollar sign (not a hyphen), so the echo should work correctly.
6088 # The option is referenced via a variable to avoid confusing sed.
6089 lt_compile=`echo "$ac_compile" | $SED \
6090 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6092 -e 's:$: $lt_compiler_flag:'`
6093 (eval echo "\"\$as_me:6093: $lt_compile\"" >&5)
6094 (eval "$lt_compile" 2>conftest.err)
6096 cat conftest.err >&5
6097 echo "$as_me:6097: \$? = $ac_status" >&5
6098 if (exit $ac_status) && test -s "$ac_outfile"; then
6099 # The compiler can only warn and ignore the option if not recognized
6100 # So say no if there are warnings
6101 if test ! -s conftest.err; then
6102 lt_prog_compiler_pic_works=yes
6108 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6109 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6111 if test x"$lt_prog_compiler_pic_works" = xyes; then
6112 case $lt_prog_compiler_pic in
6114 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6117 lt_prog_compiler_pic=
6118 lt_prog_compiler_can_build_shared=no
6123 # For platforms which do not support PIC, -DPIC is meaningless:
6125 lt_prog_compiler_pic=
6128 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6132 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6133 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6134 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 lt_cv_prog_compiler_c_o=no
6138 $rm -r conftest 2>/dev/null
6142 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6144 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6145 # that will create temporary files in the current directory regardless of
6146 # the output directory. Thus, making CWD read-only will cause this test
6147 # to fail, enabling locking or at least warning the user not to do parallel
6151 lt_compiler_flag="-o out/conftest2.$ac_objext"
6152 # Insert the option either (1) after the last *FLAGS variable, or
6153 # (2) before a word containing "conftest.", or (3) at the end.
6154 # Note that $ac_compile itself does not contain backslashes and begins
6155 # with a dollar sign (not a hyphen), so the echo should work correctly.
6156 lt_compile=`echo "$ac_compile" | $SED \
6157 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6159 -e 's:$: $lt_compiler_flag:'`
6160 (eval echo "\"\$as_me:6160: $lt_compile\"" >&5)
6161 (eval "$lt_compile" 2>out/conftest.err)
6163 cat out/conftest.err >&5
6164 echo "$as_me:6164: \$? = $ac_status" >&5
6165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6167 # The compiler can only warn and ignore the option if not recognized
6168 # So say no if there are warnings
6169 if test ! -s out/conftest.err; then
6170 lt_cv_prog_compiler_c_o=yes
6175 # SGI C++ compiler will create directory out/ii_files/ for
6176 # template instantiation
6177 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6178 $rm out/* && rmdir out
6184 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6185 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6188 hard_links="nottested"
6189 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6190 # do not overwrite the value of need_locks provided by the user
6191 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6192 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6197 ln conftest.a conftest.b 2>&5 || hard_links=no
6198 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6199 echo "$as_me:$LINENO: result: $hard_links" >&5
6200 echo "${ECHO_T}$hard_links" >&6
6201 if test "$hard_links" = no; then
6202 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6203 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6210 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6211 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6214 allow_undefined_flag=
6215 enable_shared_with_static_runtimes=no
6217 archive_expsym_cmds=
6218 old_archive_From_new_cmds=
6219 old_archive_from_expsyms_cmds=
6220 export_dynamic_flag_spec=
6221 whole_archive_flag_spec=
6222 thread_safe_flag_spec=
6223 hardcode_libdir_flag_spec=
6224 hardcode_libdir_flag_spec_ld=
6225 hardcode_libdir_separator=
6228 hardcode_shlibpath_var=unsupported
6229 link_all_deplibs=unknown
6230 hardcode_automatic=no
6233 always_export_symbols=no
6234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6235 # include_expsyms should be a list of space-separated symbols to be *always*
6236 # included in the symbol list
6238 # exclude_expsyms can be an extended regexp of symbols to exclude
6239 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6240 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6241 # as well as any symbol that contains `d'.
6242 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6243 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6244 # platforms (ab)use it in PIC code, but their linkers get confused if
6245 # the symbol is explicitly referenced. Since portable code cannot
6246 # rely on this symbol name, it's probably fine to never include it in
6247 # preloaded symbol tables.
6248 extract_expsyms_cmds=
6251 cygwin* | mingw* | pw32*)
6252 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6253 # When not using gcc, we currently assume that we are using
6254 # Microsoft Visual C++.
6255 if test "$GCC" != yes; then
6265 if test "$with_gnu_ld" = yes; then
6266 # If archive_cmds runs LD, not CC, wlarc should be empty
6269 # See if GNU ld supports shared libraries.
6271 aix3* | aix4* | aix5*)
6272 # On AIX/PPC, the GNU linker is very broken
6273 if test "$host_cpu" != ia64; then
6277 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6278 *** to be unable to reliably create shared libraries on AIX.
6279 *** Therefore, libtool is disabling shared libraries support. If you
6280 *** really care for shared libraries, you may want to modify your PATH
6281 *** so that a non-GNU linker is found, and then restart.
6288 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)'
6289 hardcode_libdir_flag_spec='-L$libdir'
6290 hardcode_minus_L=yes
6292 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6293 # that the semantics of dynamic libraries on AmigaOS, at least up
6294 # to version 4, is to share data among multiple programs linked
6295 # with the same dynamic library. Since this doesn't match the
6296 # behavior of shared libraries on other platforms, we can't use
6302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6303 allow_undefined_flag=unsupported
6304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6305 # support --undefined. This deserves some investigation. FIXME
6306 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6312 cygwin* | mingw* | pw32*)
6313 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6314 # as there is no search path for DLLs.
6315 hardcode_libdir_flag_spec='-L$libdir'
6316 allow_undefined_flag=unsupported
6317 always_export_symbols=no
6318 enable_shared_with_static_runtimes=yes
6319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6321 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6323 # If the export-symbols file already is a .def file (1st line
6324 # is EXPORTS), use it as is; otherwise, prepend...
6325 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6326 cp $export_symbols $output_objdir/$soname.def;
6328 echo EXPORTS > $output_objdir/$soname.def;
6329 cat $export_symbols >> $output_objdir/$soname.def;
6331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6339 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6348 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6353 *** create shared libraries on Solaris systems. Therefore, libtool
6354 *** is disabling shared libraries support. We urge you to upgrade GNU
6355 *** binutils to release 2.9.1 or newer. Another option is to modify
6356 *** your PATH or compiler configuration so that the native linker is
6357 *** used, and then restart.
6360 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6369 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6372 hardcode_shlibpath_var=no
6376 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6377 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6378 archive_cmds="$tmp_archive_cmds"
6379 supports_anon_versioning=no
6380 case `$LD -v 2>/dev/null` in
6381 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6384 *\ 2.11.*) ;; # other 2.11 versions
6385 *) supports_anon_versioning=yes ;;
6387 if test $supports_anon_versioning = yes; then
6388 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6390 $echo "local: *; };" >> $output_objdir/$libname.ver~
6391 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6393 archive_expsym_cmds="$tmp_archive_cmds"
6401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6410 if test "$ld_shlibs" = yes; then
6411 runpath_var=LD_RUN_PATH
6412 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6413 export_dynamic_flag_spec='${wl}--export-dynamic'
6414 # ancient GNU ld didn't support --whole-archive et. al.
6415 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6416 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6418 whole_archive_flag_spec=
6422 # PORTME fill in a description of your system's linker (not GNU ld)
6425 allow_undefined_flag=unsupported
6426 always_export_symbols=yes
6427 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'
6428 # Note: this linker hardcodes the directories in LIBPATH if there
6429 # are no directories specified by -L.
6430 hardcode_minus_L=yes
6431 if test "$GCC" = yes && test -z "$link_static_flag"; then
6432 # Neither direct hardcoding nor static linking is supported with a
6434 hardcode_direct=unsupported
6439 if test "$host_cpu" = ia64; then
6440 # On IA64, the linker does run time linking by default, so we don't
6441 # have to do anything special.
6442 aix_use_runtimelinking=no
6443 exp_sym_flag='-Bexport'
6446 # If we're using GNU nm, then we don't want the "-C" option.
6447 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6448 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6449 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'
6451 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'
6453 aix_use_runtimelinking=no
6455 # Test if we are trying to use run time linking or normal
6456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6457 # need to do runtime linking.
6458 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6459 for ld_flag in $LDFLAGS; do
6460 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6461 aix_use_runtimelinking=yes
6467 exp_sym_flag='-bexport'
6468 no_entry_flag='-bnoentry'
6471 # When large executables or shared objects are built, AIX ld can
6472 # have problems creating the table of contents. If linking a library
6473 # or program results in "error TOC overflow" add -mminimal-toc to
6474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6479 hardcode_libdir_separator=':'
6480 link_all_deplibs=yes
6482 if test "$GCC" = yes; then
6483 case $host_os in aix4.012|aix4.012.*)
6484 # We only want to do this on AIX 4.2 and lower, the check
6485 # below for broken collect2 doesn't work under 4.3+
6486 collect2name=`${CC} -print-prog-name=collect2`
6487 if test -f "$collect2name" && \
6488 strings "$collect2name" | grep resolve_lib_name >/dev/null
6490 # We have reworked collect2
6493 # We have old collect2
6494 hardcode_direct=unsupported
6495 # It fails to find uninstalled libraries when the uninstalled
6496 # path is not listed in the libpath. Setting hardcode_minus_L
6497 # to unsupported forces relinking
6498 hardcode_minus_L=yes
6499 hardcode_libdir_flag_spec='-L$libdir'
6500 hardcode_libdir_separator=
6503 shared_flag='-shared'
6506 if test "$host_cpu" = ia64; then
6507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6508 # chokes on -Wl,-G. The following line is correct:
6511 if test "$aix_use_runtimelinking" = yes; then
6512 shared_flag='${wl}-G'
6514 shared_flag='${wl}-bM:SRE'
6519 # It seems that -bexpall does not export symbols beginning with
6520 # underscore (_), so it is better to generate a list of symbols to export.
6521 always_export_symbols=yes
6522 if test "$aix_use_runtimelinking" = yes; then
6523 # Warning - without using the other runtime loading flags (-brtl),
6524 # -berok will link without error, but may produce a broken library.
6525 allow_undefined_flag='-berok'
6526 # Determine the default libpath from the value encoded in an empty executable.
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6542 rm -f conftest.$ac_objext conftest$ac_exeext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544 (eval $ac_link) 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest$ac_exeext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6567 # Check for a 64-bit object if we didn't find anything.
6568 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; }
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f conftest.err conftest.$ac_objext \
6576 conftest$ac_exeext conftest.$ac_ext
6577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6579 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6580 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"
6582 if test "$host_cpu" = ia64; then
6583 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6584 allow_undefined_flag="-z nodefs"
6585 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"
6587 # Determine the default libpath from the value encoded in an empty executable.
6588 cat >conftest.$ac_ext <<_ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>conftest.er1
6607 grep -v '^ *+' conftest.er1 >conftest.err
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try='test -z "$ac_c_werror_flag"
6613 || test ! -s conftest.err'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest$ac_exeext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6628 # Check for a 64-bit object if we didn't find anything.
6629 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; }
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6636 rm -f conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6640 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6641 # Warning - without using the other run time loading flags,
6642 # -berok will link without error, but may produce a broken library.
6643 no_undefined_flag=' ${wl}-bernotok'
6644 allow_undefined_flag=' ${wl}-berok'
6645 # -bexpall does not export symbols beginning with underscore (_)
6646 always_export_symbols=yes
6647 # Exported symbols can be pulled into shared objects from archives
6648 whole_archive_flag_spec=' '
6649 archive_cmds_need_lc=yes
6650 # This is similar to how AIX traditionally builds it's shared libraries.
6651 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'
6657 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)'
6658 hardcode_libdir_flag_spec='-L$libdir'
6659 hardcode_minus_L=yes
6660 # see comment about different semantics on the GNU ld section
6665 export_dynamic_flag_spec=-rdynamic
6668 cygwin* | mingw* | pw32*)
6669 # When not using gcc, we currently assume that we are using
6670 # Microsoft Visual C++.
6671 # hardcode_libdir_flag_spec is actually meaningless, as there is
6672 # no search path for DLLs.
6673 hardcode_libdir_flag_spec=' '
6674 allow_undefined_flag=unsupported
6675 # Tell ltmain to make .lib files, not .a files.
6677 # Tell ltmain to make .dll files, not .so files.
6679 # FIXME: Setting linknames here is a bad hack.
6680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6681 # The linker will automatically build a .lib file if we build a DLL.
6682 old_archive_From_new_cmds='true'
6683 # FIXME: Should let the user specify the lib program.
6684 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6685 fix_srcfile_path='`cygpath -w "$srcfile"`'
6686 enable_shared_with_static_runtimes=yes
6689 darwin* | rhapsody*)
6690 if test "$GXX" = yes ; then
6691 archive_cmds_need_lc=no
6693 rhapsody* | darwin1.[012])
6694 allow_undefined_flag='-undefined suppress'
6697 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6698 allow_undefined_flag='-flat_namespace -undefined suppress'
6700 case ${MACOSX_DEPLOYMENT_TARGET} in
6702 allow_undefined_flag='-flat_namespace -undefined suppress'
6705 allow_undefined_flag='-undefined dynamic_lookup'
6711 lt_int_apple_cc_single_mod=no
6712 output_verbose_link_cmd='echo'
6713 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6714 lt_int_apple_cc_single_mod=yes
6716 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6717 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6719 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6721 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6722 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6723 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6724 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6726 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6728 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}'
6730 hardcode_automatic=yes
6731 hardcode_shlibpath_var=unsupported
6732 whole_archive_flag_spec='-all_load $convenience'
6733 link_all_deplibs=yes
6740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6741 hardcode_libdir_flag_spec='-L$libdir'
6742 hardcode_shlibpath_var=no
6749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6750 # support. Future versions do this automatically, but an explicit c++rt0.o
6751 # does not break anything, and helps significantly (at the cost of a little
6754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6755 hardcode_libdir_flag_spec='-R$libdir'
6757 hardcode_shlibpath_var=no
6760 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6764 hardcode_minus_L=yes
6765 hardcode_shlibpath_var=no
6768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6769 freebsd* | kfreebsd*-gnu)
6770 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6771 hardcode_libdir_flag_spec='-R$libdir'
6773 hardcode_shlibpath_var=no
6777 if test "$GCC" = yes; then
6778 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'
6780 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'
6782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6783 hardcode_libdir_separator=:
6786 # hardcode_minus_L: Not really in the search PATH,
6787 # but as the default location of the library.
6788 hardcode_minus_L=yes
6789 export_dynamic_flag_spec='${wl}-E'
6793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6796 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6799 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6805 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6812 if test "$with_gnu_ld" = no; then
6815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6816 hardcode_libdir_flag_spec_ld='+b $libdir'
6817 hardcode_libdir_separator=:
6819 hardcode_shlibpath_var=no
6822 hardcode_libdir_flag_spec='-L$libdir'
6824 hardcode_shlibpath_var=no
6826 # hardcode_minus_L: Not really in the search PATH,
6827 # but as the default location of the library.
6828 hardcode_minus_L=yes
6831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6832 hardcode_libdir_separator=:
6834 export_dynamic_flag_spec='${wl}-E'
6836 # hardcode_minus_L: Not really in the search PATH,
6837 # but as the default location of the library.
6838 hardcode_minus_L=yes
6844 irix5* | irix6* | nonstopux*)
6845 if test "$GCC" = yes; then
6846 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'
6848 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'
6849 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6852 hardcode_libdir_separator=:
6853 link_all_deplibs=yes
6857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6860 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6862 hardcode_libdir_flag_spec='-R$libdir'
6864 hardcode_shlibpath_var=no
6868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6871 hardcode_libdir_separator=:
6872 hardcode_shlibpath_var=no
6877 hardcode_shlibpath_var=no
6878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6881 export_dynamic_flag_spec='${wl}-E'
6884 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6886 hardcode_libdir_flag_spec='-R$libdir'
6889 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6897 hardcode_libdir_flag_spec='-L$libdir'
6898 hardcode_minus_L=yes
6899 allow_undefined_flag=unsupported
6900 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'
6901 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6905 if test "$GCC" = yes; then
6906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6907 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'
6909 allow_undefined_flag=' -expect_unresolved \*'
6910 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'
6912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6913 hardcode_libdir_separator=:
6916 osf4* | osf5*) # as osf3* with the addition of -msym flag
6917 if test "$GCC" = yes; then
6918 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6919 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'
6920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6922 allow_undefined_flag=' -expect_unresolved \*'
6923 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'
6924 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6925 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6927 # Both c and cxx compiler support -rpath directly
6928 hardcode_libdir_flag_spec='-rpath $libdir'
6930 hardcode_libdir_separator=:
6934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6935 hardcode_shlibpath_var=no
6936 export_dynamic_flag_spec='${wl}-Bexport'
6937 runpath_var=LD_RUN_PATH
6938 hardcode_runpath_var=yes
6942 no_undefined_flag=' -z text'
6943 if test "$GCC" = yes; then
6944 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6945 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6946 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6948 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6949 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6950 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6952 hardcode_libdir_flag_spec='-R$libdir'
6953 hardcode_shlibpath_var=no
6955 solaris2.[0-5] | solaris2.[0-5].*) ;;
6956 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6957 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6959 link_all_deplibs=yes
6963 if test "x$host_vendor" = xsequent; then
6964 # Use $CC to link under sequent, because it throws in some extra .o
6965 # files that make .init and .fini sections work.
6966 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6968 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6970 hardcode_libdir_flag_spec='-L$libdir'
6972 hardcode_minus_L=yes
6973 hardcode_shlibpath_var=no
6977 case $host_vendor in
6979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980 hardcode_direct=yes # is this really true???
6983 ## LD is ld it makes a PLAMLIB
6984 ## CC just makes a GrossModule.
6985 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6986 reload_cmds='$CC -r -o $output$reload_objs'
6990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6991 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6994 runpath_var='LD_RUN_PATH'
6995 hardcode_shlibpath_var=no
6999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7000 hardcode_shlibpath_var=no
7001 export_dynamic_flag_spec='-Bexport'
7005 if test -d /usr/nec; then
7006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7007 hardcode_shlibpath_var=no
7008 runpath_var=LD_RUN_PATH
7009 hardcode_runpath_var=yes
7015 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7018 hardcode_shlibpath_var=no
7019 hardcode_runpath_var=yes
7020 runpath_var=LD_RUN_PATH
7023 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7024 no_undefined_flag='${wl}-z ${wl}text'
7025 if test "$GCC" = yes; then
7026 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7028 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7030 runpath_var='LD_RUN_PATH'
7031 hardcode_shlibpath_var=no
7035 no_undefined_flag=' -z text'
7036 # $CC -shared without GNU ld will not create a library from C++
7037 # object files and a static libstdc++, better avoid it by now
7038 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7039 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7040 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7041 hardcode_libdir_flag_spec=
7042 hardcode_shlibpath_var=no
7043 runpath_var='LD_RUN_PATH'
7047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7048 hardcode_libdir_flag_spec='-L$libdir'
7049 hardcode_shlibpath_var=no
7058 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7059 echo "${ECHO_T}$ld_shlibs" >&6
7060 test "$ld_shlibs" = no && can_build_shared=no
7062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7063 if test "$GCC" = yes; then
7064 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7068 # Do we need to explicitly link libc?
7070 case "x$archive_cmds_need_lc" in
7072 # Assume -lc should be added
7073 archive_cmds_need_lc=yes
7075 if test "$enable_shared" = yes && test "$GCC" = yes; then
7076 case $archive_cmds in
7078 # FIXME: we may have to deal with multi-command sequences.
7081 # Test whether the compiler implicitly links with -lc since on some
7082 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7083 # to ld, don't add -lc before -lgcc.
7084 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7085 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7087 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090 (eval $ac_compile) 2>&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } 2>conftest.err; then
7096 libobjs=conftest.$ac_objext
7098 wl=$lt_prog_compiler_wl
7104 lt_save_allow_undefined_flag=$allow_undefined_flag
7105 allow_undefined_flag=
7106 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7107 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }
7112 archive_cmds_need_lc=no
7114 archive_cmds_need_lc=yes
7116 allow_undefined_flag=$lt_save_allow_undefined_flag
7118 cat conftest.err 1>&5
7121 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7122 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7129 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7130 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7132 libname_spec='lib$name'
7140 shlibpath_overrides_runpath=unknown
7142 dynamic_linker="$host_os ld.so"
7143 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7144 if test "$GCC" = yes; then
7145 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7146 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7147 # if the path contains ";" then we assume it to be the separator
7148 # otherwise default to the standard path separator (i.e. ":") - it is
7149 # assumed that no part of a normal pathname contains ";" but that should
7150 # okay in the real world where ";" in dirpaths is itself problematic.
7151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7156 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7158 need_lib_prefix=unknown
7159 hardcode_into_libs=no
7161 # when you set need_version to no, make sure it does not cause -set_version
7162 # flags to be left without arguments
7163 need_version=unknown
7168 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7169 shlibpath_var=LIBPATH
7171 # AIX 3 has no versioning support, so we append a major version to the name.
7172 soname_spec='${libname}${release}${shared_ext}$major'
7179 hardcode_into_libs=yes
7180 if test "$host_cpu" = ia64; then
7181 # AIX 5 supports IA64
7182 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7183 shlibpath_var=LD_LIBRARY_PATH
7185 # With GCC up to 2.95.x, collect2 would create an import file
7186 # for dependence libraries. The import file would start with
7187 # the line `#! .'. This would cause the generated library to
7188 # depend on `.', always an invalid library. This was fixed in
7189 # development snapshots of GCC prior to 3.0.
7191 aix4 | aix4.[01] | aix4.[01].*)
7192 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7194 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7201 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7202 # soname into executable. Probably we can add versioning support to
7203 # collect2, so additional links can be useful in future.
7204 if test "$aix_use_runtimelinking" = yes; then
7205 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7206 # instead of lib<name>.a to let people know that these are not
7207 # typical AIX shared libraries.
7208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7210 # We preserve .a as extension for shared libraries through AIX4.2
7211 # and later when we are not doing run time linking.
7212 library_names_spec='${libname}${release}.a $libname.a'
7213 soname_spec='${libname}${release}${shared_ext}$major'
7215 shlibpath_var=LIBPATH
7220 library_names_spec='$libname.ixlibrary $libname.a'
7221 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7222 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'
7226 library_names_spec='${libname}${shared_ext}'
7227 dynamic_linker="$host_os ld.so"
7228 shlibpath_var=LIBRARY_PATH
7234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7235 soname_spec='${libname}${release}${shared_ext}$major'
7236 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7237 shlibpath_var=LD_LIBRARY_PATH
7238 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7239 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7240 # the default ld.so.conf also contains /usr/contrib/lib and
7241 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7242 # libtool to hard-code these into programs
7245 cygwin* | mingw* | pw32*)
7246 version_type=windows
7251 case $GCC,$host_os in
7252 yes,cygwin* | yes,mingw* | yes,pw32*)
7253 library_names_spec='$libname.dll.a'
7254 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7255 postinstall_cmds='base_file=`basename \${file}`~
7256 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7257 dldir=$destdir/`dirname \$dlpath`~
7258 test -d \$dldir || mkdir -p \$dldir~
7259 $install_prog $dir/$dlname \$dldir/$dlname'
7260 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7261 dlpath=$dir/\$dldll~
7263 shlibpath_overrides_runpath=yes
7267 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7268 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7269 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7272 # MinGW DLLs use traditional 'lib' prefix
7273 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7274 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7275 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7276 # It is most probably a Windows format PATH printed by
7277 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7278 # path with ; separators, and with drive letters. We can handle the
7279 # drive letters (cygwin fileutils understands them), so leave them,
7280 # especially as we might pass files found there to a mingw objdump,
7281 # which wouldn't understand a cygwinified path. Ahh.
7282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7288 # pw32 DLLs use 'pw' prefix rather than 'lib'
7289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7295 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7298 dynamic_linker='Win32 ld.exe'
7299 # FIXME: first we should search . and the directory the executable is in
7303 darwin* | rhapsody*)
7304 dynamic_linker="$host_os dyld"
7308 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7309 soname_spec='${libname}${release}${major}$shared_ext'
7310 shlibpath_overrides_runpath=yes
7311 shlibpath_var=DYLD_LIBRARY_PATH
7312 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7313 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7314 if test "$GCC" = yes; then
7315 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"`
7317 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7319 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7327 soname_spec='${libname}${release}${shared_ext}$major'
7328 shlibpath_var=LD_LIBRARY_PATH
7339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7340 soname_spec='${libname}${release}${shared_ext}$major'
7341 shlibpath_var=LD_LIBRARY_PATH
7342 shlibpath_overrides_runpath=no
7343 hardcode_into_libs=yes
7344 dynamic_linker='GNU ld.so'
7348 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7349 version_type=freebsd-$objformat
7350 case $version_type in
7352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7361 shlibpath_var=LD_LIBRARY_PATH
7364 shlibpath_overrides_runpath=yes
7366 freebsd3.01* | freebsdelf3.01*)
7367 shlibpath_overrides_runpath=yes
7368 hardcode_into_libs=yes
7371 shlibpath_overrides_runpath=no
7372 hardcode_into_libs=yes
7381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7382 soname_spec='${libname}${release}${shared_ext}$major'
7383 shlibpath_var=LD_LIBRARY_PATH
7384 hardcode_into_libs=yes
7387 hpux9* | hpux10* | hpux11*)
7388 # Give a soname corresponding to the major version so that dld.sl refuses to
7389 # link against other versions.
7396 hardcode_into_libs=yes
7397 dynamic_linker="$host_os dld.so"
7398 shlibpath_var=LD_LIBRARY_PATH
7399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7401 soname_spec='${libname}${release}${shared_ext}$major'
7402 if test "X$HPUX_IA64_MODE" = X32; then
7403 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7405 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7411 hardcode_into_libs=yes
7412 dynamic_linker="$host_os dld.sl"
7413 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7416 soname_spec='${libname}${release}${shared_ext}$major'
7417 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7422 dynamic_linker="$host_os dld.sl"
7423 shlibpath_var=SHLIB_PATH
7424 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7426 soname_spec='${libname}${release}${shared_ext}$major'
7429 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7430 postinstall_cmds='chmod 555 $lib'
7433 irix5* | irix6* | nonstopux*)
7435 nonstopux*) version_type=nonstopux ;;
7437 if test "$lt_cv_prog_gnu_ld" = yes; then
7445 soname_spec='${libname}${release}${shared_ext}$major'
7446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7448 irix5* | nonstopux*)
7452 case $LD in # libtool.m4 will add one of these switches to LD
7453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7454 libsuff= shlibsuff= libmagic=32-bit;;
7455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7456 libsuff=32 shlibsuff=N32 libmagic=N32;;
7457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7459 *) libsuff= shlibsuff= libmagic=never-match;;
7463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7464 shlibpath_overrides_runpath=no
7465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7467 hardcode_into_libs=yes
7470 # No shared lib support for Linux oldld, aout, or coff.
7471 linux*oldld* | linux*aout* | linux*coff*)
7475 # This must be Linux ELF.
7480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7481 soname_spec='${libname}${release}${shared_ext}$major'
7482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7483 shlibpath_var=LD_LIBRARY_PATH
7484 shlibpath_overrides_runpath=no
7485 # This implies no fast_install, which is unacceptable.
7486 # Some rework will be needed to allow for fast_install
7487 # before this can be enabled.
7488 hardcode_into_libs=yes
7490 # /usr/X11R6/lib and /usr/local/lib are common enough...
7491 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
7493 # We used to test for /lib/ld.so.1 and disable shared libraries on
7494 # powerpc, because MkLinux only supported shared libraries with the
7495 # GNU dynamic linker. Since this was broken with cross compilers,
7496 # most powerpc-linux boxes support dynamic linking these days and
7497 # people can always --disable-shared, the test was removed, and we
7498 # assume the GNU/Linux dynamic linker is in use.
7499 dynamic_linker='GNU/Linux ld.so'
7506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7507 soname_spec='${libname}${release}${shared_ext}$major'
7508 shlibpath_var=LD_LIBRARY_PATH
7509 shlibpath_overrides_runpath=no
7510 hardcode_into_libs=yes
7511 dynamic_linker='GNU ld.so'
7518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7521 dynamic_linker='NetBSD (a.out) ld.so'
7523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7524 soname_spec='${libname}${release}${shared_ext}$major'
7525 dynamic_linker='NetBSD ld.elf_so'
7527 shlibpath_var=LD_LIBRARY_PATH
7528 shlibpath_overrides_runpath=yes
7529 hardcode_into_libs=yes
7534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7535 shlibpath_var=LD_LIBRARY_PATH
7536 shlibpath_overrides_runpath=yes
7543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7544 soname_spec='${libname}${release}${shared_ext}$major'
7545 shlibpath_var=LD_LIBRARY_PATH
7546 shlibpath_overrides_runpath=yes
7553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7555 shlibpath_var=LD_LIBRARY_PATH
7556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7558 openbsd2.[89] | openbsd2.[89].*)
7559 shlibpath_overrides_runpath=no
7562 shlibpath_overrides_runpath=yes
7566 shlibpath_overrides_runpath=yes
7571 libname_spec='$name'
7574 library_names_spec='$libname${shared_ext} $libname.a'
7575 dynamic_linker='OS/2 ld.exe'
7576 shlibpath_var=LIBPATH
7579 osf3* | osf4* | osf5*)
7583 soname_spec='${libname}${release}${shared_ext}$major'
7584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7585 shlibpath_var=LD_LIBRARY_PATH
7586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7587 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7592 soname_spec='${libname}${release}${shared_ext}$major'
7593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7594 shlibpath_var=LD_LIBRARY_PATH
7601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602 soname_spec='${libname}${release}${shared_ext}$major'
7603 shlibpath_var=LD_LIBRARY_PATH
7604 shlibpath_overrides_runpath=yes
7605 hardcode_into_libs=yes
7606 # ldd complains unless libraries are executable
7607 postinstall_cmds='chmod +x $lib'
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7614 shlibpath_var=LD_LIBRARY_PATH
7615 shlibpath_overrides_runpath=yes
7616 if test "$with_gnu_ld" = yes; then
7622 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625 soname_spec='${libname}${release}${shared_ext}$major'
7626 shlibpath_var=LD_LIBRARY_PATH
7627 case $host_vendor in
7629 shlibpath_overrides_runpath=no
7631 export_dynamic_flag_spec='${wl}-Blargedynsym'
7632 runpath_var=LD_RUN_PATH
7640 shlibpath_overrides_runpath=no
7641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7647 if test -d /usr/nec ;then
7649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7650 soname_spec='$libname${shared_ext}.$major'
7651 shlibpath_var=LD_LIBRARY_PATH
7657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7658 soname_spec='${libname}${release}${shared_ext}$major'
7659 shlibpath_var=LD_LIBRARY_PATH
7666 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7667 echo "${ECHO_T}$dynamic_linker" >&6
7668 test "$dynamic_linker" = no && can_build_shared=no
7670 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7671 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7673 if test -n "$hardcode_libdir_flag_spec" || \
7674 test -n "$runpath_var " || \
7675 test "X$hardcode_automatic"="Xyes" ; then
7677 # We can hardcode non-existant directories.
7678 if test "$hardcode_direct" != no &&
7679 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7680 # have to relink, otherwise we might link with an installed library
7681 # when we should be linking with a yet-to-be-installed one
7682 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7683 test "$hardcode_minus_L" != no; then
7684 # Linking always hardcodes the temporary library directory.
7685 hardcode_action=relink
7687 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7688 hardcode_action=immediate
7691 # We cannot hardcode anything, or else we can only hardcode existing
7693 hardcode_action=unsupported
7695 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7696 echo "${ECHO_T}$hardcode_action" >&6
7698 if test "$hardcode_action" = relink; then
7699 # Fast installation is not supported
7700 enable_fast_install=no
7701 elif test "$shlibpath_overrides_runpath" = yes ||
7702 test "$enable_shared" = no; then
7703 # Fast installation is not necessary
7704 enable_fast_install=needless
7709 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7710 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7711 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7712 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7713 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7714 echo "$as_me:$LINENO: result: yes" >&5
7715 echo "${ECHO_T}yes" >&6
7717 # FIXME - insert some real tests, host_os isn't really good enough
7720 if test -n "$STRIP" ; then
7721 striplib="$STRIP -x"
7722 echo "$as_me:$LINENO: result: yes" >&5
7723 echo "${ECHO_T}yes" >&6
7725 echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7730 echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6
7736 if test "x$enable_dlopen" != xyes; then
7737 enable_dlopen=unknown
7738 enable_dlopen_self=unknown
7739 enable_dlopen_self_static=unknown
7746 lt_cv_dlopen="load_add_on"
7748 lt_cv_dlopen_self=yes
7752 lt_cv_dlopen="LoadLibrary"
7757 lt_cv_dlopen="dlopen"
7762 # if libdl is installed we need to link against it
7763 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7764 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 ac_check_lib_save_LIBS=$LIBS
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7777 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794 (eval $ac_link) 2>conftest.er1
7796 grep -v '^ *+' conftest.er1 >conftest.err
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try='test -z "$ac_c_werror_flag"
7802 || test ! -s conftest.err'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; } &&
7808 { ac_try='test -s conftest$ac_exeext'
7809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 ac_cv_lib_dl_dlopen=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_cv_lib_dl_dlopen=no
7821 rm -f conftest.err conftest.$ac_objext \
7822 conftest$ac_exeext conftest.$ac_ext
7823 LIBS=$ac_check_lib_save_LIBS
7825 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7826 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7827 if test $ac_cv_lib_dl_dlopen = yes; then
7828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7833 lt_cv_dlopen_self=yes
7840 echo "$as_me:$LINENO: checking for shl_load" >&5
7841 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7842 if test "${ac_cv_func_shl_load+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7853 #define shl_load innocuous_shl_load
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char shl_load (); below.
7857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7858 <limits.h> exists even on freestanding compilers. */
7861 # include <limits.h>
7863 # include <assert.h>
7868 /* Override any gcc2 internal prototype to avoid an error. */
7873 /* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7876 /* The GNU C library defines this for functions which it implements
7877 to always fail with ENOSYS. Some functions are actually named
7878 something starting with __ and the normal name is an alias. */
7879 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7882 char (*f) () = shl_load;
7891 return f != shl_load;
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898 (eval $ac_link) 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_cv_func_shl_load=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 ac_cv_func_shl_load=no
7925 rm -f conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext conftest.$ac_ext
7928 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7929 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7930 if test $ac_cv_func_shl_load = yes; then
7931 lt_cv_dlopen="shl_load"
7933 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7934 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7935 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 ac_check_lib_save_LIBS=$LIBS
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7947 /* Override any gcc2 internal prototype to avoid an error. */
7951 /* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>conftest.er1
7966 grep -v '^ *+' conftest.er1 >conftest.err
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag"
7972 || test ! -s conftest.err'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_lib_dld_shl_load=yes
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 ac_cv_lib_dld_shl_load=no
7991 rm -f conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7995 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7997 if test $ac_cv_lib_dld_shl_load = yes; then
7998 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8000 echo "$as_me:$LINENO: checking for dlopen" >&5
8001 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8002 if test "${ac_cv_func_dlopen+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8013 #define dlopen innocuous_dlopen
8015 /* System header to define __stub macros and hopefully few prototypes,
8016 which can conflict with char dlopen (); below.
8017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8018 <limits.h> exists even on freestanding compilers. */
8021 # include <limits.h>
8023 # include <assert.h>
8028 /* Override any gcc2 internal prototype to avoid an error. */
8033 /* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8036 /* The GNU C library defines this for functions which it implements
8037 to always fail with ENOSYS. Some functions are actually named
8038 something starting with __ and the normal name is an alias. */
8039 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8042 char (*f) () = dlopen;
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>conftest.er1
8060 grep -v '^ *+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_func_dlopen=yes
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_cv_func_dlopen=no
8085 rm -f conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8088 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8089 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8090 if test $ac_cv_func_dlopen = yes; then
8091 lt_cv_dlopen="dlopen"
8093 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8094 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8095 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 ac_check_lib_save_LIBS=$LIBS
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8107 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -z "$ac_c_werror_flag"
8132 || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_cv_lib_dl_dlopen=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_cv_lib_dl_dlopen=no
8151 rm -f conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153 LIBS=$ac_check_lib_save_LIBS
8155 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8156 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8157 if test $ac_cv_lib_dl_dlopen = yes; then
8158 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8160 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8161 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8162 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_check_lib_save_LIBS=$LIBS
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -z "$ac_c_werror_flag"
8199 || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_lib_svld_dlopen=yes
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_cv_lib_svld_dlopen=no
8218 rm -f conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
8220 LIBS=$ac_check_lib_save_LIBS
8222 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8223 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8224 if test $ac_cv_lib_svld_dlopen = yes; then
8225 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8227 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8228 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8229 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 ac_check_lib_save_LIBS=$LIBS
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 /* Override any gcc2 internal prototype to avoid an error. */
8245 /* We use char because int might match the return type of a gcc2
8246 builtin and then its argument prototype would still apply. */
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258 (eval $ac_link) 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_c_werror_flag"
8266 || test ! -s conftest.err'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest$ac_exeext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_lib_dld_dld_link=yes
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 ac_cv_lib_dld_dld_link=no
8285 rm -f conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8287 LIBS=$ac_check_lib_save_LIBS
8289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8291 if test $ac_cv_lib_dld_dld_link = yes; then
8292 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8313 if test "x$lt_cv_dlopen" != xno; then
8319 case $lt_cv_dlopen in
8321 save_CPPFLAGS="$CPPFLAGS"
8322 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8324 save_LDFLAGS="$LDFLAGS"
8325 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8328 LIBS="$lt_cv_dlopen_libs $LIBS"
8330 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8331 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8332 if test "${lt_cv_dlopen_self+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 if test "$cross_compiling" = yes; then :
8336 lt_cv_dlopen_self=cross
8338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8339 lt_status=$lt_dlunknown
8340 cat > conftest.$ac_ext <<EOF
8341 #line 8341 "configure"
8342 #include "confdefs.h"
8351 # define LT_DLGLOBAL RTLD_GLOBAL
8354 # define LT_DLGLOBAL DL_GLOBAL
8356 # define LT_DLGLOBAL 0
8360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8361 find out it does not work in some platform. */
8362 #ifndef LT_DLLAZY_OR_NOW
8364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8367 # define LT_DLLAZY_OR_NOW DL_LAZY
8370 # define LT_DLLAZY_OR_NOW RTLD_NOW
8373 # define LT_DLLAZY_OR_NOW DL_NOW
8375 # define LT_DLLAZY_OR_NOW 0
8383 extern "C" void exit (int);
8386 void fnord() { int i=42;}
8389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8390 int status = $lt_dlunknown;
8394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8396 /* dlclose (self); */
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403 (eval $ac_link) 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8407 (./conftest; exit; ) 2>/dev/null
8410 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8411 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8412 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8415 # compilation failed
8416 lt_cv_dlopen_self=no
8423 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8424 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8426 if test "x$lt_cv_dlopen_self" = xyes; then
8427 LDFLAGS="$LDFLAGS $link_static_flag"
8428 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8429 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8430 if test "${lt_cv_dlopen_self_static+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 if test "$cross_compiling" = yes; then :
8434 lt_cv_dlopen_self_static=cross
8436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8437 lt_status=$lt_dlunknown
8438 cat > conftest.$ac_ext <<EOF
8439 #line 8439 "configure"
8440 #include "confdefs.h"
8449 # define LT_DLGLOBAL RTLD_GLOBAL
8452 # define LT_DLGLOBAL DL_GLOBAL
8454 # define LT_DLGLOBAL 0
8458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8459 find out it does not work in some platform. */
8460 #ifndef LT_DLLAZY_OR_NOW
8462 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8465 # define LT_DLLAZY_OR_NOW DL_LAZY
8468 # define LT_DLLAZY_OR_NOW RTLD_NOW
8471 # define LT_DLLAZY_OR_NOW DL_NOW
8473 # define LT_DLLAZY_OR_NOW 0
8481 extern "C" void exit (int);
8484 void fnord() { int i=42;}
8487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8488 int status = $lt_dlunknown;
8492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8494 /* dlclose (self); */
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8505 (./conftest; exit; ) 2>/dev/null
8508 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8509 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8510 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8513 # compilation failed
8514 lt_cv_dlopen_self_static=no
8521 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8522 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8525 CPPFLAGS="$save_CPPFLAGS"
8526 LDFLAGS="$save_LDFLAGS"
8531 case $lt_cv_dlopen_self in
8532 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8533 *) enable_dlopen_self=unknown ;;
8536 case $lt_cv_dlopen_self_static in
8537 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8538 *) enable_dlopen_self_static=unknown ;;
8543 # Report which librarie types wil actually be built
8544 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8545 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8546 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8547 echo "${ECHO_T}$can_build_shared" >&6
8549 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8550 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8551 test "$can_build_shared" = "no" && enable_shared=no
8553 # On AIX, shared libraries and static libraries use the same namespace, and
8554 # are all built from PIC.
8557 test "$enable_shared" = yes && enable_static=no
8558 if test -n "$RANLIB"; then
8559 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8560 postinstall_cmds='$RANLIB $lib'
8565 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8566 test "$enable_shared" = yes && enable_static=no
8569 darwin* | rhapsody*)
8570 if test "$GCC" = yes; then
8571 archive_cmds_need_lc=no
8573 rhapsody* | darwin1.[012])
8574 allow_undefined_flag='-undefined suppress'
8577 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8578 allow_undefined_flag='-flat_namespace -undefined suppress'
8580 case ${MACOSX_DEPLOYMENT_TARGET} in
8582 allow_undefined_flag='-flat_namespace -undefined suppress'
8585 allow_undefined_flag='-undefined dynamic_lookup'
8591 output_verbose_link_cmd='echo'
8592 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8593 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8594 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8595 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}'
8596 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}'
8598 hardcode_automatic=yes
8599 hardcode_shlibpath_var=unsupported
8600 whole_archive_flag_spec='-all_load $convenience'
8601 link_all_deplibs=yes
8607 echo "$as_me:$LINENO: result: $enable_shared" >&5
8608 echo "${ECHO_T}$enable_shared" >&6
8610 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8611 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8612 # Make sure either enable_shared or enable_static is yes.
8613 test "$enable_shared" = yes || enable_static=yes
8614 echo "$as_me:$LINENO: result: $enable_static" >&5
8615 echo "${ECHO_T}$enable_static" >&6
8617 # The else clause should only fire when bootstrapping the
8618 # libtool distribution, otherwise you forgot to ship ltmain.sh
8619 # with your package, and you will get complaints that there are
8620 # no rules to generate ltmain.sh.
8621 if test -f "$ltmain"; then
8622 # See if we are running on zsh, and set the options which allow our commands through
8623 # without removal of \ escapes.
8624 if test -n "${ZSH_VERSION+set}" ; then
8625 setopt NO_GLOB_SUBST
8627 # Now quote all the things that may contain metacharacters while being
8628 # careful not to overquote the AC_SUBSTed values. We take copies of the
8629 # variables and quote the copies for generation of the libtool script.
8630 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8632 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8633 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8634 deplibs_check_method reload_flag reload_cmds need_locks \
8635 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8636 lt_cv_sys_global_symbol_to_c_name_address \
8637 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8638 old_postinstall_cmds old_postuninstall_cmds \
8642 lt_prog_compiler_wl \
8643 lt_prog_compiler_pic \
8644 lt_prog_compiler_static \
8645 lt_prog_compiler_no_builtin_flag \
8646 export_dynamic_flag_spec \
8647 thread_safe_flag_spec \
8648 whole_archive_flag_spec \
8649 enable_shared_with_static_runtimes \
8651 old_archive_from_new_cmds \
8656 compiler_lib_search_path \
8658 archive_expsym_cmds \
8660 postuninstall_cmds \
8661 old_archive_from_expsyms_cmds \
8662 allow_undefined_flag \
8664 export_symbols_cmds \
8665 hardcode_libdir_flag_spec \
8666 hardcode_libdir_flag_spec_ld \
8667 hardcode_libdir_separator \
8668 hardcode_automatic \
8670 module_expsym_cmds \
8671 lt_cv_prog_compiler_c_o \
8676 old_archive_cmds | \
8677 old_archive_from_new_cmds | \
8679 archive_expsym_cmds | \
8681 module_expsym_cmds | \
8682 old_archive_from_expsyms_cmds | \
8683 export_symbols_cmds | \
8684 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8685 postinstall_cmds | postuninstall_cmds | \
8686 old_postinstall_cmds | old_postuninstall_cmds | \
8687 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8688 # Double-quote double-evaled strings.
8689 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8698 *'\$0 --fallback-echo"')
8699 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8704 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8706 { echo "$as_me:$LINENO: creating $ofile" >&5
8707 echo "$as_me: creating $ofile" >&6;}
8709 cat <<__EOF__ >> "$cfgfile"
8712 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8713 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8714 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8716 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8717 # Free Software Foundation, Inc.
8719 # This file is part of GNU Libtool:
8720 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8722 # This program is free software; you can redistribute it and/or modify
8723 # it under the terms of the GNU General Public License as published by
8724 # the Free Software Foundation; either version 2 of the License, or
8725 # (at your option) any later version.
8727 # This program is distributed in the hope that it will be useful, but
8728 # WITHOUT ANY WARRANTY; without even the implied warranty of
8729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8730 # General Public License for more details.
8732 # You should have received a copy of the GNU General Public License
8733 # along with this program; if not, write to the Free Software
8734 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8736 # As a special exception to the GNU General Public License, if you
8737 # distribute this file as part of a program that contains a
8738 # configuration script generated by Autoconf, you may include it under
8739 # the same distribution terms that you use for the rest of that program.
8741 # A sed program that does not truncate output.
8744 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8745 Xsed="$SED -e s/^X//"
8747 # The HP-UX ksh and POSIX shell print the target directory to stdout
8749 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8751 # The names of the tagged configurations supported by this script.
8754 # ### BEGIN LIBTOOL CONFIG
8756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8758 # Shell to use when invoking shell scripts.
8761 # Whether or not to build shared libraries.
8762 build_libtool_libs=$enable_shared
8764 # Whether or not to build static libraries.
8765 build_old_libs=$enable_static
8767 # Whether or not to add -lc for building shared libraries.
8768 build_libtool_need_lc=$archive_cmds_need_lc
8770 # Whether or not to disallow shared libs when runtime libs are static
8771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8773 # Whether or not to optimize for fast installation.
8774 fast_install=$enable_fast_install
8777 host_alias=$host_alias
8780 # An echo program that does not interpret backslashes.
8785 AR_FLAGS=$lt_AR_FLAGS
8790 # A language-specific compiler.
8793 # Is the compiler the GNU C compiler?
8799 # The linker used to build libraries.
8802 # Whether we need hard or soft links.
8805 # A BSD-compatible nm program.
8808 # A symbol stripping program
8811 # Used to examine libraries when file_magic_cmd begins "file"
8812 MAGIC_CMD=$MAGIC_CMD
8814 # Used on cygwin: DLL creation program.
8817 # Used on cygwin: object dumper.
8820 # Used on cygwin: assembler.
8823 # The name of the directory that contains temporary libtool files.
8826 # How to create reloadable object files.
8827 reload_flag=$lt_reload_flag
8828 reload_cmds=$lt_reload_cmds
8830 # How to pass a linker flag through the compiler.
8831 wl=$lt_lt_prog_compiler_wl
8833 # Object file suffix (normally "o").
8836 # Old archive suffix (normally "a").
8839 # Shared library suffix (normally ".so").
8842 # Executable file suffix (normally "").
8845 # Additional compiler flags for building library objects.
8846 pic_flag=$lt_lt_prog_compiler_pic
8849 # What is the maximum length of a command?
8850 max_cmd_len=$lt_cv_sys_max_cmd_len
8852 # Does compiler simultaneously support -c and -o options?
8853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8855 # Must we lock files when doing compilation ?
8856 need_locks=$lt_need_locks
8858 # Do we need the lib prefix for modules?
8859 need_lib_prefix=$need_lib_prefix
8861 # Do we need a version for libraries?
8862 need_version=$need_version
8864 # Whether dlopen is supported.
8865 dlopen_support=$enable_dlopen
8867 # Whether dlopen of programs is supported.
8868 dlopen_self=$enable_dlopen_self
8870 # Whether dlopen of statically linked programs is supported.
8871 dlopen_self_static=$enable_dlopen_self_static
8873 # Compiler flag to prevent dynamic linking.
8874 link_static_flag=$lt_lt_prog_compiler_static
8876 # Compiler flag to turn off builtin functions.
8877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8879 # Compiler flag to allow reflexive dlopens.
8880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8882 # Compiler flag to generate shared objects directly from archives.
8883 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8885 # Compiler flag to generate thread-safe objects.
8886 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8888 # Library versioning type.
8889 version_type=$version_type
8891 # Format of library name prefix.
8892 libname_spec=$lt_libname_spec
8894 # List of archive names. First name is the real one, the rest are links.
8895 # The last name is the one that the linker finds with -lNAME.
8896 library_names_spec=$lt_library_names_spec
8898 # The coded name of the library, if different from the real name.
8899 soname_spec=$lt_soname_spec
8901 # Commands used to build and install an old-style archive.
8903 old_archive_cmds=$lt_old_archive_cmds
8904 old_postinstall_cmds=$lt_old_postinstall_cmds
8905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8907 # Create an old-style archive from a shared archive.
8908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8910 # Create a temporary old-style archive to link instead of a shared archive.
8911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8913 # Commands used to build and install a shared archive.
8914 archive_cmds=$lt_archive_cmds
8915 archive_expsym_cmds=$lt_archive_expsym_cmds
8916 postinstall_cmds=$lt_postinstall_cmds
8917 postuninstall_cmds=$lt_postuninstall_cmds
8919 # Commands used to build a loadable module (assumed same as above if empty)
8920 module_cmds=$lt_module_cmds
8921 module_expsym_cmds=$lt_module_expsym_cmds
8923 # Commands to strip libraries.
8924 old_striplib=$lt_old_striplib
8925 striplib=$lt_striplib
8927 # Dependencies to place before the objects being linked to create a
8929 predep_objects=$lt_predep_objects
8931 # Dependencies to place after the objects being linked to create a
8933 postdep_objects=$lt_postdep_objects
8935 # Dependencies to place before the objects being linked to create a
8939 # Dependencies to place after the objects being linked to create a
8941 postdeps=$lt_postdeps
8943 # The library search path used internally by the compiler when linking
8945 compiler_lib_search_path=$lt_compiler_lib_search_path
8947 # Method to check whether dependent libraries are shared objects.
8948 deplibs_check_method=$lt_deplibs_check_method
8950 # Command to use when deplibs_check_method == file_magic.
8951 file_magic_cmd=$lt_file_magic_cmd
8953 # Flag that allows shared libraries with undefined symbols to be built.
8954 allow_undefined_flag=$lt_allow_undefined_flag
8956 # Flag that forces no undefined symbols.
8957 no_undefined_flag=$lt_no_undefined_flag
8959 # Commands used to finish a libtool library installation in a directory.
8960 finish_cmds=$lt_finish_cmds
8962 # Same as above, but a single script fragment to be evaled but not shown.
8963 finish_eval=$lt_finish_eval
8965 # Take the output of nm and produce a listing of raw symbols and C names.
8966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8968 # Transform the output of nm in a proper C declaration
8969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8971 # Transform the output of nm in a C name address pair
8972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8974 # This is the shared library runtime path variable.
8975 runpath_var=$runpath_var
8977 # This is the shared library path variable.
8978 shlibpath_var=$shlibpath_var
8980 # Is shlibpath searched before the hard-coded library search path?
8981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8983 # How to hardcode a shared library path into an executable.
8984 hardcode_action=$hardcode_action
8986 # Whether we should hardcode library paths into libraries.
8987 hardcode_into_libs=$hardcode_into_libs
8989 # Flag to hardcode \$libdir into a binary during linking.
8990 # This must work even if \$libdir does not exist.
8991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8993 # If ld is used when linking, flag to hardcode \$libdir into
8994 # a binary during linking. This must work even if \$libdir does
8996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8998 # Whether we need a single -rpath flag with a separated argument.
8999 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9003 hardcode_direct=$hardcode_direct
9005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9007 hardcode_minus_L=$hardcode_minus_L
9009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9010 # the resulting binary.
9011 hardcode_shlibpath_var=$hardcode_shlibpath_var
9013 # Set to yes if building a shared library automatically hardcodes DIR into the library
9014 # and all subsequent libraries and executables linked against it.
9015 hardcode_automatic=$hardcode_automatic
9017 # Variables whose values should be saved in libtool wrapper scripts and
9018 # restored at relink time.
9019 variables_saved_for_relink="$variables_saved_for_relink"
9021 # Whether libtool must link a program against all its dependency libraries.
9022 link_all_deplibs=$link_all_deplibs
9024 # Compile-time system search path for libraries
9025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9027 # Run-time system search path for libraries
9028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9030 # Fix the shell variable \$srcfile for the compiler.
9031 fix_srcfile_path="$fix_srcfile_path"
9033 # Set to yes if exported symbols are required.
9034 always_export_symbols=$always_export_symbols
9036 # The commands to list exported symbols.
9037 export_symbols_cmds=$lt_export_symbols_cmds
9039 # The commands to extract the exported symbol list from a shared archive.
9040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9042 # Symbols that should not be listed in the preloaded symbols.
9043 exclude_expsyms=$lt_exclude_expsyms
9045 # Symbols that must always be exported.
9046 include_expsyms=$lt_include_expsyms
9048 # ### END LIBTOOL CONFIG
9055 cat <<\EOF >> "$cfgfile"
9057 # AIX sometimes has problems with the GCC collect2 program. For some
9058 # reason, if we set the COLLECT_NAMES environment variable, the problems
9059 # vanish in a puff of smoke.
9060 if test "X${COLLECT_NAMES+set}" != Xset; then
9062 export COLLECT_NAMES
9068 # We use sed instead of cat because bash on DJGPP gets confused if
9069 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9070 # text mode, it properly converts lines to CR/LF. This bash problem
9071 # is reportedly fixed, but why not run on old versions too?
9072 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9074 mv -f "$cfgfile" "$ofile" || \
9075 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9079 # If there is no Makefile yet, we rely on a make rule to execute
9080 # `config.status --recheck' to rerun these tests and create the
9081 # libtool script then.
9082 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9083 if test -f "$ltmain_in"; then
9084 test -f Makefile && make "$ltmain"
9090 ac_cpp='$CPP $CPPFLAGS'
9091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9098 # Check whether --with-tags or --without-tags was given.
9099 if test "${with_tags+set}" = set; then
9100 withval="$with_tags"
9104 if test -f "$ltmain" && test -n "$tagnames"; then
9105 if test ! -f "${ofile}"; then
9106 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9107 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9110 if test -z "$LTCC"; then
9111 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9112 if test -z "$LTCC"; then
9113 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9114 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9116 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9117 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9121 # Extract list of available tagged configurations in $ofile.
9122 # Note that this assumes the entire list is on one line.
9123 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9126 for tagname in $tagnames; do
9128 # Check whether tagname contains only valid characters
9129 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9131 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9132 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9133 { (exit 1); exit 1; }; }
9137 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9139 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9140 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9141 { (exit 1); exit 1; }; }
9144 # Update the list of available tags.
9145 if test -n "$tagname"; then
9146 echo appending configuration tag \"$tagname\" to $ofile
9150 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9152 ac_cpp='$CXXCPP $CPPFLAGS'
9153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9160 archive_cmds_need_lc_CXX=no
9161 allow_undefined_flag_CXX=
9162 always_export_symbols_CXX=no
9163 archive_expsym_cmds_CXX=
9164 export_dynamic_flag_spec_CXX=
9165 hardcode_direct_CXX=no
9166 hardcode_libdir_flag_spec_CXX=
9167 hardcode_libdir_flag_spec_ld_CXX=
9168 hardcode_libdir_separator_CXX=
9169 hardcode_minus_L_CXX=no
9170 hardcode_automatic_CXX=no
9172 module_expsym_cmds_CXX=
9173 link_all_deplibs_CXX=unknown
9174 old_archive_cmds_CXX=$old_archive_cmds
9175 no_undefined_flag_CXX=
9176 whole_archive_flag_spec_CXX=
9177 enable_shared_with_static_runtimes_CXX=no
9179 # Dependencies to place before and after the object being linked:
9181 postdep_objects_CXX=
9184 compiler_lib_search_path_CXX=
9186 # Source file extension for C++ test sources.
9189 # Object file extension for compiled C++ test sources.
9193 # Code to be used in simple compile tests
9194 lt_simple_compile_test_code="int some_variable = 0;\n"
9196 # Code to be used in simple link tests
9197 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9199 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9201 # If no C compiler was specified, use CC.
9204 # Allow CC to be a program name with arguments.
9208 # Allow CC to be a program name with arguments.
9213 lt_save_with_gnu_ld=$with_gnu_ld
9214 lt_save_path_LD=$lt_cv_path_LD
9215 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9216 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9218 unset lt_cv_prog_gnu_ld
9220 if test -n "${lt_cv_path_LDCXX+set}"; then
9221 lt_cv_path_LD=$lt_cv_path_LDCXX
9225 test -z "${LDCXX+set}" || LD=$LDCXX
9229 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9231 # We don't want -fno-exception wen compiling C++ code, so set the
9232 # no_builtin_flag separately
9233 if test "$GXX" = yes; then
9234 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9236 lt_prog_compiler_no_builtin_flag_CXX=
9239 if test "$GXX" = yes; then
9240 # Set up default GNU C++ configuration
9243 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9244 if test "${with_gnu_ld+set}" = set; then
9245 withval="$with_gnu_ld"
9246 test "$withval" = no || with_gnu_ld=yes
9251 if test "$GCC" = yes; then
9252 # Check if gcc -print-prog-name=ld gives a path.
9253 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9254 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9257 # gcc leaves a trailing carriage return which upsets mingw
9258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9263 # Accept absolute paths.
9265 re_direlt='/[^/][^/]*/\.\./'
9266 # Canonicalize the pathname of ld
9267 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9268 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9269 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9271 test -z "$LD" && LD="$ac_prog"
9274 # If it fails, then pretend we aren't using GCC.
9278 # If it is relative, then search for the first ld in PATH.
9282 elif test "$with_gnu_ld" = yes; then
9283 echo "$as_me:$LINENO: checking for GNU ld" >&5
9284 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9286 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9287 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9289 if test "${lt_cv_path_LD+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 if test -z "$LD"; then
9293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294 for ac_dir in $PATH; do
9296 test -z "$ac_dir" && ac_dir=.
9297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9298 lt_cv_path_LD="$ac_dir/$ac_prog"
9299 # Check to see if the program is GNU ld. I'd rather use --version,
9300 # but apparently some GNU ld's only accept -v.
9301 # Break only if it was the GNU/non-GNU ld that we prefer.
9302 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9303 *GNU* | *'with BFD'*)
9304 test "$with_gnu_ld" != no && break
9307 test "$with_gnu_ld" != yes && break
9314 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9319 if test -n "$LD"; then
9320 echo "$as_me:$LINENO: result: $LD" >&5
9321 echo "${ECHO_T}$LD" >&6
9323 echo "$as_me:$LINENO: result: no" >&5
9324 echo "${ECHO_T}no" >&6
9326 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9327 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9328 { (exit 1); exit 1; }; }
9329 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9330 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9331 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9335 case `$LD -v 2>&1 </dev/null` in
9336 *GNU* | *'with BFD'*)
9337 lt_cv_prog_gnu_ld=yes
9340 lt_cv_prog_gnu_ld=no
9344 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9345 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9346 with_gnu_ld=$lt_cv_prog_gnu_ld
9350 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9351 # archiving commands below assume that GNU ld is being used.
9352 if test "$with_gnu_ld" = yes; then
9353 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354 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'
9356 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9357 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9359 # If archive_cmds runs LD, not CC, wlarc should be empty
9360 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9361 # investigate it a little bit more. (MM)
9364 # ancient GNU ld didn't support --whole-archive et. al.
9365 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9366 grep 'no-whole-archive' > /dev/null; then
9367 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9369 whole_archive_flag_spec_CXX=
9375 # A generic and very simple default shared library creation
9376 # command for GNU C++ for the case where it uses the native
9377 # linker, instead of GNU ld. If possible, this setting should
9378 # overridden to take advantage of the native linker features on
9379 # the platform it is being used on.
9380 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9383 # Commands to make compiler produce verbose output that lists
9384 # what "hidden" libraries, object files and flags are used when
9385 # linking a shared library.
9386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9394 # PORTME: fill in a description of your system's C++ link characteristics
9395 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9396 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9400 # FIXME: insert proper C++ library support
9404 if test "$host_cpu" = ia64; then
9405 # On IA64, the linker does run time linking by default, so we don't
9406 # have to do anything special.
9407 aix_use_runtimelinking=no
9408 exp_sym_flag='-Bexport'
9411 aix_use_runtimelinking=no
9413 # Test if we are trying to use run time linking or normal
9414 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9415 # need to do runtime linking.
9416 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9417 for ld_flag in $LDFLAGS; do
9420 aix_use_runtimelinking=yes
9427 exp_sym_flag='-bexport'
9428 no_entry_flag='-bnoentry'
9431 # When large executables or shared objects are built, AIX ld can
9432 # have problems creating the table of contents. If linking a library
9433 # or program results in "error TOC overflow" add -mminimal-toc to
9434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9438 hardcode_direct_CXX=yes
9439 hardcode_libdir_separator_CXX=':'
9440 link_all_deplibs_CXX=yes
9442 if test "$GXX" = yes; then
9443 case $host_os in aix4.012|aix4.012.*)
9444 # We only want to do this on AIX 4.2 and lower, the check
9445 # below for broken collect2 doesn't work under 4.3+
9446 collect2name=`${CC} -print-prog-name=collect2`
9447 if test -f "$collect2name" && \
9448 strings "$collect2name" | grep resolve_lib_name >/dev/null
9450 # We have reworked collect2
9451 hardcode_direct_CXX=yes
9453 # We have old collect2
9454 hardcode_direct_CXX=unsupported
9455 # It fails to find uninstalled libraries when the uninstalled
9456 # path is not listed in the libpath. Setting hardcode_minus_L
9457 # to unsupported forces relinking
9458 hardcode_minus_L_CXX=yes
9459 hardcode_libdir_flag_spec_CXX='-L$libdir'
9460 hardcode_libdir_separator_CXX=
9463 shared_flag='-shared'
9466 if test "$host_cpu" = ia64; then
9467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9468 # chokes on -Wl,-G. The following line is correct:
9471 if test "$aix_use_runtimelinking" = yes; then
9472 shared_flag='${wl}-G'
9474 shared_flag='${wl}-bM:SRE'
9479 # It seems that -bexpall does not export symbols beginning with
9480 # underscore (_), so it is better to generate a list of symbols to export.
9481 always_export_symbols_CXX=yes
9482 if test "$aix_use_runtimelinking" = yes; then
9483 # Warning - without using the other runtime loading flags (-brtl),
9484 # -berok will link without error, but may produce a broken library.
9485 allow_undefined_flag_CXX='-berok'
9486 # Determine the default libpath from the value encoded in an empty executable.
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>conftest.er1
9506 grep -v '^ *+' conftest.er1 >conftest.err
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_cxx_werror_flag"
9512 || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9527 # Check for a 64-bit object if we didn't find anything.
9528 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; }
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9535 rm -f conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9539 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9541 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"
9543 if test "$host_cpu" = ia64; then
9544 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9545 allow_undefined_flag_CXX="-z nodefs"
9546 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"
9548 # Determine the default libpath from the value encoded in an empty executable.
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566 (eval $ac_link) 2>conftest.er1
9568 grep -v '^ *+' conftest.er1 >conftest.err
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -z "$ac_cxx_werror_flag"
9574 || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try='test -s conftest$ac_exeext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9589 # Check for a 64-bit object if we didn't find anything.
9590 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; }
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9597 rm -f conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9601 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9602 # Warning - without using the other run time loading flags,
9603 # -berok will link without error, but may produce a broken library.
9604 no_undefined_flag_CXX=' ${wl}-bernotok'
9605 allow_undefined_flag_CXX=' ${wl}-berok'
9606 # -bexpall does not export symbols beginning with underscore (_)
9607 always_export_symbols_CXX=yes
9608 # Exported symbols can be pulled into shared objects from archives
9609 whole_archive_flag_spec_CXX=' '
9610 archive_cmds_need_lc_CXX=yes
9611 # This is similar to how AIX traditionally builds it's shared libraries.
9612 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'
9617 case $cc_basename in
9619 # FIXME: insert proper C++ library support
9625 cygwin* | mingw* | pw32*)
9626 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9627 # as there is no search path for DLLs.
9628 hardcode_libdir_flag_spec_CXX='-L$libdir'
9629 allow_undefined_flag_CXX=unsupported
9630 always_export_symbols_CXX=no
9631 enable_shared_with_static_runtimes_CXX=yes
9633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9634 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'
9635 # If the export-symbols file already is a .def file (1st line
9636 # is EXPORTS), use it as is; otherwise, prepend...
9637 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9638 cp $export_symbols $output_objdir/$soname.def;
9640 echo EXPORTS > $output_objdir/$soname.def;
9641 cat $export_symbols >> $output_objdir/$soname.def;
9643 $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'
9649 darwin* | rhapsody*)
9650 if test "$GXX" = yes; then
9651 archive_cmds_need_lc_CXX=no
9653 rhapsody* | darwin1.[012])
9654 allow_undefined_flag_CXX='-undefined suppress'
9657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9658 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9660 case ${MACOSX_DEPLOYMENT_TARGET} in
9662 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9665 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9671 lt_int_apple_cc_single_mod=no
9672 output_verbose_link_cmd='echo'
9673 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9674 lt_int_apple_cc_single_mod=yes
9676 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9677 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9679 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9681 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9683 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9684 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9685 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}'
9687 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9689 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}'
9690 hardcode_direct_CXX=no
9691 hardcode_automatic_CXX=yes
9692 hardcode_shlibpath_var_CXX=unsupported
9693 whole_archive_flag_spec_CXX='-all_load $convenience'
9694 link_all_deplibs_CXX=yes
9701 case $cc_basename in
9703 # FIXME: insert proper C++ library support
9707 # Green Hills C++ Compiler
9708 # FIXME: insert proper C++ library support
9712 # FIXME: insert proper C++ library support
9718 # C++ shared libraries reported to be fairly broken before switch to ELF
9722 archive_cmds_need_lc_CXX=no
9724 freebsd* | kfreebsd*-gnu)
9725 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9732 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9733 hardcode_libdir_separator_CXX=:
9734 export_dynamic_flag_spec_CXX='${wl}-E'
9735 hardcode_direct_CXX=yes
9736 hardcode_minus_L_CXX=yes # Not in the search PATH,
9737 # but as the default
9738 # location of the library.
9740 case $cc_basename in
9742 # FIXME: insert proper C++ library support
9746 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'
9747 # Commands to make compiler produce verbose output that lists
9748 # what "hidden" libraries, object files and flags are used when
9749 # linking a shared library.
9751 # There doesn't appear to be a way to prevent this compiler from
9752 # explicitly linking system object files so we need to strip them
9753 # from the output so that they don't get included in the library
9755 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9758 if test "$GXX" = yes; then
9759 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'
9761 # FIXME: insert proper C++ library support
9768 if test $with_gnu_ld = no; then
9771 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9772 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9773 hardcode_libdir_separator_CXX=:
9776 hardcode_libdir_flag_spec_CXX='-L$libdir'
9779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9780 hardcode_libdir_separator_CXX=:
9781 export_dynamic_flag_spec_CXX='${wl}-E'
9787 hardcode_direct_CXX=no
9788 hardcode_shlibpath_var_CXX=no
9791 hardcode_direct_CXX=no
9792 hardcode_shlibpath_var_CXX=no
9793 hardcode_minus_L_CXX=yes # Not in the search PATH,
9794 # but as the default
9795 # location of the library.
9798 hardcode_direct_CXX=yes
9799 hardcode_minus_L_CXX=yes # Not in the search PATH,
9800 # but as the default
9801 # location of the library.
9805 case $cc_basename in
9807 # FIXME: insert proper C++ library support
9813 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9816 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9819 # Commands to make compiler produce verbose output that lists
9820 # what "hidden" libraries, object files and flags are used when
9821 # linking a shared library.
9823 # There doesn't appear to be a way to prevent this compiler from
9824 # explicitly linking system object files so we need to strip them
9825 # from the output so that they don't get included in the library
9827 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'
9830 if test "$GXX" = yes; then
9831 if test $with_gnu_ld = no; then
9834 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9837 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'
9842 # FIXME: insert proper C++ library support
9849 case $cc_basename in
9852 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9854 # Archives containing C++ object files must be created using
9855 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9856 # necessary to make sure instantiated templates are included
9858 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9861 if test "$GXX" = yes; then
9862 if test "$with_gnu_ld" = no; then
9863 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9865 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'
9868 link_all_deplibs_CXX=yes
9871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9872 hardcode_libdir_separator_CXX=:
9875 case $cc_basename in
9877 # Kuck and Associates, Inc. (KAI) C++ Compiler
9879 # KCC will only create a shared library if the output file
9880 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9881 # to its proper name (with version) after linking.
9882 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'
9883 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'
9884 # Commands to make compiler produce verbose output that lists
9885 # what "hidden" libraries, object files and flags are used when
9886 # linking a shared library.
9888 # There doesn't appear to be a way to prevent this compiler from
9889 # explicitly linking system object files so we need to strip them
9890 # from the output so that they don't get included in the library
9892 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'
9894 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9895 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9897 # Archives containing C++ object files must be created using
9898 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9899 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9904 archive_cmds_need_lc_CXX=no
9905 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 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'
9907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9908 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9909 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9913 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914 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'
9916 runpath_var=LD_RUN_PATH
9917 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9918 hardcode_libdir_separator_CXX=:
9920 # Commands to make compiler produce verbose output that lists
9921 # what "hidden" libraries, object files and flags are used when
9922 # linking a shared library.
9924 # There doesn't appear to be a way to prevent this compiler from
9925 # explicitly linking system object files so we need to strip them
9926 # from the output so that they don't get included in the library
9928 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'
9933 # FIXME: insert proper C++ library support
9937 # FIXME: insert proper C++ library support
9941 case $cc_basename in
9943 # FIXME: insert proper C++ library support
9947 # FIXME: insert proper C++ library support
9953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9954 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9956 hardcode_libdir_flag_spec_CXX='-R$libdir'
9957 hardcode_direct_CXX=yes
9958 hardcode_shlibpath_var_CXX=no
9960 # Workaround some broken pre-1.5 toolchains
9961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9964 case $cc_basename in
9966 # Kuck and Associates, Inc. (KAI) C++ Compiler
9968 # KCC will only create a shared library if the output file
9969 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9970 # to its proper name (with version) after linking.
9971 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'
9973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9974 hardcode_libdir_separator_CXX=:
9976 # Archives containing C++ object files must be created using
9977 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9978 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9982 # Rational C++ 2.4.1
9983 # FIXME: insert proper C++ library support
9987 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9988 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9991 hardcode_libdir_separator_CXX=:
9993 # Commands to make compiler produce verbose output that lists
9994 # what "hidden" libraries, object files and flags are used when
9995 # linking a shared library.
9997 # There doesn't appear to be a way to prevent this compiler from
9998 # explicitly linking system object files so we need to strip them
9999 # from the output so that they don't get included in the library
10001 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'
10004 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10005 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10006 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10009 hardcode_libdir_separator_CXX=:
10011 # Commands to make compiler produce verbose output that lists
10012 # what "hidden" libraries, object files and flags are used when
10013 # linking a shared library.
10014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10017 # FIXME: insert proper C++ library support
10024 case $cc_basename in
10026 # Kuck and Associates, Inc. (KAI) C++ Compiler
10028 # KCC will only create a shared library if the output file
10029 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10030 # to its proper name (with version) after linking.
10031 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'
10033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10034 hardcode_libdir_separator_CXX=:
10036 # Archives containing C++ object files must be created using
10037 # the KAI C++ compiler.
10038 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10041 # Rational C++ 2.4.1
10042 # FIXME: insert proper C++ library support
10046 allow_undefined_flag_CXX=' -expect_unresolved \*'
10047 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10048 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10049 echo "-hidden">> $lib.exp~
10050 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10053 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10054 hardcode_libdir_separator_CXX=:
10056 # Commands to make compiler produce verbose output that lists
10057 # what "hidden" libraries, object files and flags are used when
10058 # linking a shared library.
10060 # There doesn't appear to be a way to prevent this compiler from
10061 # explicitly linking system object files so we need to strip them
10062 # from the output so that they don't get included in the library
10064 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'
10067 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10068 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10069 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10072 hardcode_libdir_separator_CXX=:
10074 # Commands to make compiler produce verbose output that lists
10075 # what "hidden" libraries, object files and flags are used when
10076 # linking a shared library.
10077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10080 # FIXME: insert proper C++ library support
10087 # FIXME: insert proper C++ library support
10091 archive_cmds_need_lc_CXX=no
10092 case $cc_basename in
10094 # FIXME: insert proper C++ library support
10098 # FIXME: insert proper C++ library support
10104 case $cc_basename in
10107 # FIXME: insert proper C++ library support
10112 # FIXME: insert proper C++ library support
10116 # FIXME: insert proper C++ library support
10122 case $cc_basename in
10124 # Sun C++ 4.2, 5.x and Centerline C++
10125 no_undefined_flag_CXX=' -zdefs'
10126 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10127 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10128 $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'
10130 hardcode_libdir_flag_spec_CXX='-R$libdir'
10131 hardcode_shlibpath_var_CXX=no
10133 solaris2.0-5 | solaris2.0-5.*) ;;
10135 # The C++ compiler is used as linker so we must use $wl
10136 # flag to pass the commands to the underlying system
10138 # Supported since Solaris 2.6 (maybe 2.5.1?)
10139 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10142 link_all_deplibs_CXX=yes
10144 # Commands to make compiler produce verbose output that lists
10145 # what "hidden" libraries, object files and flags are used when
10146 # linking a shared library.
10148 # There doesn't appear to be a way to prevent this compiler from
10149 # explicitly linking system object files so we need to strip them
10150 # from the output so that they don't get included in the library
10152 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'
10154 # Archives containing C++ object files must be created using
10155 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10156 # necessary to make sure instantiated templates are included
10158 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10161 # Green Hills C++ Compiler
10162 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10164 # The C++ compiler must be used to create the archive.
10165 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10168 # GNU C++ compiler with Solaris linker
10169 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10170 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10171 if $CC --version | grep -v '^2\.7' > /dev/null; then
10172 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10173 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10174 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10176 # Commands to make compiler produce verbose output that lists
10177 # what "hidden" libraries, object files and flags are used when
10178 # linking a shared library.
10179 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10181 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10183 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10184 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10185 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10187 # Commands to make compiler produce verbose output that lists
10188 # what "hidden" libraries, object files and flags are used when
10189 # linking a shared library.
10190 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10193 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10198 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10199 archive_cmds_need_lc_CXX=no
10202 case $cc_basename in
10204 # NonStop-UX NCC 3.20
10205 # FIXME: insert proper C++ library support
10209 # FIXME: insert proper C++ library support
10215 # FIXME: insert proper C++ library support
10219 # FIXME: insert proper C++ library support
10223 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10224 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10225 test "$ld_shlibs_CXX" = no && can_build_shared=no
10231 cat > conftest.$ac_ext <<EOF
10235 Foo (void) { a = 0; }
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242 (eval $ac_compile) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; then
10246 # Parse the compiler output and extract the necessary
10247 # objects, libraries and library flags.
10249 # Sentinel used to keep track of whether or not we are before
10250 # the conftest object file.
10251 pre_test_object_deps_done=no
10253 # The `*' in the case matches for architectures that use `case' in
10254 # $output_verbose_cmd can trigger glob expansion during the loop
10255 # eval without this substitution.
10256 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10258 for p in `eval $output_verbose_link_cmd`; do
10262 # Some compilers place space between "-{L,R}" and the path.
10263 # Remove the space.
10264 if test $p = "-L" \
10265 || test $p = "-R"; then
10272 if test "$pre_test_object_deps_done" = no; then
10275 # Internal compiler library paths should come after those
10276 # provided the user. The postdeps already come after the
10277 # user supplied libs so there is no need to process them.
10278 if test -z "$compiler_lib_search_path_CXX"; then
10279 compiler_lib_search_path_CXX="${prev}${p}"
10281 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10284 # The "-l" case would never come before the object being
10285 # linked, so don't bother handling this case.
10288 if test -z "$postdeps_CXX"; then
10289 postdeps_CXX="${prev}${p}"
10291 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10297 # This assumes that the test object file only shows up
10298 # once in the compiler output.
10299 if test "$p" = "conftest.$objext"; then
10300 pre_test_object_deps_done=yes
10304 if test "$pre_test_object_deps_done" = no; then
10305 if test -z "$predep_objects_CXX"; then
10306 predep_objects_CXX="$p"
10308 predep_objects_CXX="$predep_objects_CXX $p"
10311 if test -z "$postdep_objects_CXX"; then
10312 postdep_objects_CXX="$p"
10314 postdep_objects_CXX="$postdep_objects_CXX $p"
10319 *) ;; # Ignore the rest.
10327 echo "libtool.m4: error: problem compiling CXX test program"
10330 $rm -f confest.$objext
10332 case " $postdeps_CXX " in
10333 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10336 lt_prog_compiler_wl_CXX=
10337 lt_prog_compiler_pic_CXX=
10338 lt_prog_compiler_static_CXX=
10340 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10341 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10343 # C++ specific cases for pic, static, wl, etc.
10344 if test "$GXX" = yes; then
10345 lt_prog_compiler_wl_CXX='-Wl,'
10346 lt_prog_compiler_static_CXX='-static'
10350 # All AIX code is PIC.
10351 if test "$host_cpu" = ia64; then
10352 # AIX 5 now supports IA64 processor
10353 lt_prog_compiler_static_CXX='-Bstatic'
10357 # FIXME: we need at least 68020 code to build shared libraries, but
10358 # adding the `-m68020' flag to GCC prevents building anything better,
10360 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10362 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10363 # PIC is the default for these OSes.
10365 mingw* | os2* | pw32*)
10366 # This hack is so that the source file can tell whether it is being
10367 # built for inclusion in a dll (and should export symbols for example).
10368 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10370 darwin* | rhapsody*)
10371 # PIC is the default on this platform
10372 # Common symbols not allowed in MH_DYLIB files
10373 lt_prog_compiler_pic_CXX='-fno-common'
10376 # DJGPP does not support shared libraries at all
10377 lt_prog_compiler_pic_CXX=
10380 if test -d /usr/nec; then
10381 lt_prog_compiler_pic_CXX=-Kconform_pic
10385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10386 # not for PA HP-UX.
10387 case "$host_cpu" in
10391 lt_prog_compiler_pic_CXX='-fPIC'
10396 lt_prog_compiler_pic_CXX='-fPIC'
10402 # All AIX code is PIC.
10403 if test "$host_cpu" = ia64; then
10404 # AIX 5 now supports IA64 processor
10405 lt_prog_compiler_static_CXX='-Bstatic'
10407 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10411 case $cc_basename in
10413 # Green Hills C++ Compiler
10414 # _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"
10419 case $cc_basename in
10421 lt_prog_compiler_pic_CXX='-KPIC'
10424 # Green Hills C++ Compiler
10425 lt_prog_compiler_pic_CXX='-pic'
10431 freebsd* | kfreebsd*-gnu)
10432 # FreeBSD uses GNU C++
10434 hpux9* | hpux10* | hpux11*)
10435 case $cc_basename in
10437 lt_prog_compiler_wl_CXX='-Wl,'
10438 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10439 if test "$host_cpu" != ia64; then
10440 lt_prog_compiler_pic_CXX='+Z'
10444 lt_prog_compiler_wl_CXX='-Wl,'
10445 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10446 case "$host_cpu" in
10451 lt_prog_compiler_pic_CXX='+Z'
10459 irix5* | irix6* | nonstopux*)
10460 case $cc_basename in
10462 lt_prog_compiler_wl_CXX='-Wl,'
10463 lt_prog_compiler_static_CXX='-non_shared'
10464 # CC pic flag -KPIC is the default.
10471 case $cc_basename in
10474 lt_prog_compiler_wl_CXX='--backend -Wl,'
10475 lt_prog_compiler_pic_CXX='-fPIC'
10479 lt_prog_compiler_wl_CXX='-Wl,'
10480 lt_prog_compiler_pic_CXX='-KPIC'
10481 lt_prog_compiler_static_CXX='-static'
10485 # Make sure the PIC flag is empty. It appears that all Alpha
10486 # Linux and Compaq Tru64 Unix objects are PIC.
10487 lt_prog_compiler_pic_CXX=
10488 lt_prog_compiler_static_CXX='-non_shared'
10499 case $cc_basename in
10501 lt_prog_compiler_pic_CXX='-W c,exportall'
10509 osf3* | osf4* | osf5*)
10510 case $cc_basename in
10512 lt_prog_compiler_wl_CXX='--backend -Wl,'
10515 # Rational C++ 2.4.1
10516 lt_prog_compiler_pic_CXX='-pic'
10519 # Digital/Compaq C++
10520 lt_prog_compiler_wl_CXX='-Wl,'
10521 # Make sure the PIC flag is empty. It appears that all Alpha
10522 # Linux and Compaq Tru64 Unix objects are PIC.
10523 lt_prog_compiler_pic_CXX=
10524 lt_prog_compiler_static_CXX='-non_shared'
10533 case $cc_basename in
10535 lt_prog_compiler_pic_CXX='-fPIC'
10542 case $cc_basename in
10544 # Sun C++ 4.2, 5.x and Centerline C++
10545 lt_prog_compiler_pic_CXX='-KPIC'
10546 lt_prog_compiler_static_CXX='-Bstatic'
10547 lt_prog_compiler_wl_CXX='-Qoption ld '
10550 # Green Hills C++ Compiler
10551 lt_prog_compiler_pic_CXX='-PIC'
10558 case $cc_basename in
10561 lt_prog_compiler_pic_CXX='-pic'
10562 lt_prog_compiler_static_CXX='-Bstatic'
10566 lt_prog_compiler_pic_CXX='-pic'
10573 case $cc_basename in
10575 # NonStop-UX NCC 3.20
10576 lt_prog_compiler_pic_CXX='-KPIC'
10587 lt_prog_compiler_can_build_shared_CXX=no
10592 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10593 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10596 # Check to make sure the PIC flag actually works.
10598 if test -n "$lt_prog_compiler_pic_CXX"; then
10600 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10601 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10602 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 lt_prog_compiler_pic_works_CXX=no
10606 ac_outfile=conftest.$ac_objext
10607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10608 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10609 # Insert the option either (1) after the last *FLAGS variable, or
10610 # (2) before a word containing "conftest.", or (3) at the end.
10611 # Note that $ac_compile itself does not contain backslashes and begins
10612 # with a dollar sign (not a hyphen), so the echo should work correctly.
10613 # The option is referenced via a variable to avoid confusing sed.
10614 lt_compile=`echo "$ac_compile" | $SED \
10615 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10617 -e 's:$: $lt_compiler_flag:'`
10618 (eval echo "\"\$as_me:10618: $lt_compile\"" >&5)
10619 (eval "$lt_compile" 2>conftest.err)
10621 cat conftest.err >&5
10622 echo "$as_me:10622: \$? = $ac_status" >&5
10623 if (exit $ac_status) && test -s "$ac_outfile"; then
10624 # The compiler can only warn and ignore the option if not recognized
10625 # So say no if there are warnings
10626 if test ! -s conftest.err; then
10627 lt_prog_compiler_pic_works_CXX=yes
10633 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10634 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10636 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10637 case $lt_prog_compiler_pic_CXX in
10639 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10642 lt_prog_compiler_pic_CXX=
10643 lt_prog_compiler_can_build_shared_CXX=no
10648 # For platforms which do not support PIC, -DPIC is meaningless:
10650 lt_prog_compiler_pic_CXX=
10653 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10657 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10658 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10659 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 lt_cv_prog_compiler_c_o_CXX=no
10663 $rm -r conftest 2>/dev/null
10667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10669 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10670 # that will create temporary files in the current directory regardless of
10671 # the output directory. Thus, making CWD read-only will cause this test
10672 # to fail, enabling locking or at least warning the user not to do parallel
10676 lt_compiler_flag="-o out/conftest2.$ac_objext"
10677 # Insert the option either (1) after the last *FLAGS variable, or
10678 # (2) before a word containing "conftest.", or (3) at the end.
10679 # Note that $ac_compile itself does not contain backslashes and begins
10680 # with a dollar sign (not a hyphen), so the echo should work correctly.
10681 lt_compile=`echo "$ac_compile" | $SED \
10682 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10684 -e 's:$: $lt_compiler_flag:'`
10685 (eval echo "\"\$as_me:10685: $lt_compile\"" >&5)
10686 (eval "$lt_compile" 2>out/conftest.err)
10688 cat out/conftest.err >&5
10689 echo "$as_me:10689: \$? = $ac_status" >&5
10690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10692 # The compiler can only warn and ignore the option if not recognized
10693 # So say no if there are warnings
10694 if test ! -s out/conftest.err; then
10695 lt_cv_prog_compiler_c_o_CXX=yes
10700 # SGI C++ compiler will create directory out/ii_files/ for
10701 # template instantiation
10702 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10703 $rm out/* && rmdir out
10709 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10710 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10713 hard_links="nottested"
10714 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10715 # do not overwrite the value of need_locks provided by the user
10716 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10717 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10722 ln conftest.a conftest.b 2>&5 || hard_links=no
10723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10724 echo "$as_me:$LINENO: result: $hard_links" >&5
10725 echo "${ECHO_T}$hard_links" >&6
10726 if test "$hard_links" = no; then
10727 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10728 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10735 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10736 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10741 # If we're using GNU nm, then we don't want the "-C" option.
10742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10743 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10744 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'
10746 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'
10750 export_symbols_cmds_CXX="$ltdll_cmds"
10753 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10756 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10760 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10761 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10762 test "$ld_shlibs_CXX" = no && can_build_shared=no
10764 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10765 if test "$GCC" = yes; then
10766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10770 # Do we need to explicitly link libc?
10772 case "x$archive_cmds_need_lc_CXX" in
10774 # Assume -lc should be added
10775 archive_cmds_need_lc_CXX=yes
10777 if test "$enable_shared" = yes && test "$GCC" = yes; then
10778 case $archive_cmds_CXX in
10780 # FIXME: we may have to deal with multi-command sequences.
10783 # Test whether the compiler implicitly links with -lc since on some
10784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10785 # to ld, don't add -lc before -lgcc.
10786 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10787 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10792 (eval $ac_compile) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } 2>conftest.err; then
10798 libobjs=conftest.$ac_objext
10800 wl=$lt_prog_compiler_wl_CXX
10806 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10807 allow_undefined_flag_CXX=
10808 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10809 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }
10814 archive_cmds_need_lc_CXX=no
10816 archive_cmds_need_lc_CXX=yes
10818 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10820 cat conftest.err 1>&5
10823 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10824 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10831 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10833 library_names_spec=
10834 libname_spec='lib$name'
10838 postuninstall_cmds=
10842 shlibpath_overrides_runpath=unknown
10844 dynamic_linker="$host_os ld.so"
10845 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10846 if test "$GCC" = yes; then
10847 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10848 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10849 # if the path contains ";" then we assume it to be the separator
10850 # otherwise default to the standard path separator (i.e. ":") - it is
10851 # assumed that no part of a normal pathname contains ";" but that should
10852 # okay in the real world where ";" in dirpaths is itself problematic.
10853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10860 need_lib_prefix=unknown
10861 hardcode_into_libs=no
10863 # when you set need_version to no, make sure it does not cause -set_version
10864 # flags to be left without arguments
10865 need_version=unknown
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10871 shlibpath_var=LIBPATH
10873 # AIX 3 has no versioning support, so we append a major version to the name.
10874 soname_spec='${libname}${release}${shared_ext}$major'
10881 hardcode_into_libs=yes
10882 if test "$host_cpu" = ia64; then
10883 # AIX 5 supports IA64
10884 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10885 shlibpath_var=LD_LIBRARY_PATH
10887 # With GCC up to 2.95.x, collect2 would create an import file
10888 # for dependence libraries. The import file would start with
10889 # the line `#! .'. This would cause the generated library to
10890 # depend on `.', always an invalid library. This was fixed in
10891 # development snapshots of GCC prior to 3.0.
10893 aix4 | aix4.[01] | aix4.[01].*)
10894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10896 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10899 can_build_shared=no
10903 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10904 # soname into executable. Probably we can add versioning support to
10905 # collect2, so additional links can be useful in future.
10906 if test "$aix_use_runtimelinking" = yes; then
10907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10908 # instead of lib<name>.a to let people know that these are not
10909 # typical AIX shared libraries.
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 # We preserve .a as extension for shared libraries through AIX4.2
10913 # and later when we are not doing run time linking.
10914 library_names_spec='${libname}${release}.a $libname.a'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10917 shlibpath_var=LIBPATH
10922 library_names_spec='$libname.ixlibrary $libname.a'
10923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10924 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'
10928 library_names_spec='${libname}${shared_ext}'
10929 dynamic_linker="$host_os ld.so"
10930 shlibpath_var=LIBRARY_PATH
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10941 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10942 # the default ld.so.conf also contains /usr/contrib/lib and
10943 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10944 # libtool to hard-code these into programs
10947 cygwin* | mingw* | pw32*)
10948 version_type=windows
10953 case $GCC,$host_os in
10954 yes,cygwin* | yes,mingw* | yes,pw32*)
10955 library_names_spec='$libname.dll.a'
10956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10957 postinstall_cmds='base_file=`basename \${file}`~
10958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10959 dldir=$destdir/`dirname \$dlpath`~
10960 test -d \$dldir || mkdir -p \$dldir~
10961 $install_prog $dir/$dlname \$dldir/$dlname'
10962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10963 dlpath=$dir/\$dldll~
10965 shlibpath_overrides_runpath=yes
10969 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10971 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10974 # MinGW DLLs use traditional 'lib' prefix
10975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10977 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10978 # It is most probably a Windows format PATH printed by
10979 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10980 # path with ; separators, and with drive letters. We can handle the
10981 # drive letters (cygwin fileutils understands them), so leave them,
10982 # especially as we might pass files found there to a mingw objdump,
10983 # which wouldn't understand a cygwinified path. Ahh.
10984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10990 # pw32 DLLs use 'pw' prefix rather than 'lib'
10991 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10997 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11000 dynamic_linker='Win32 ld.exe'
11001 # FIXME: first we should search . and the directory the executable is in
11005 darwin* | rhapsody*)
11006 dynamic_linker="$host_os dyld"
11007 version_type=darwin
11010 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11011 soname_spec='${libname}${release}${major}$shared_ext'
11012 shlibpath_overrides_runpath=yes
11013 shlibpath_var=DYLD_LIBRARY_PATH
11014 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11015 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11016 if test "$GCC" = yes; then
11017 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"`
11019 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=no
11045 hardcode_into_libs=yes
11046 dynamic_linker='GNU ld.so'
11050 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11051 version_type=freebsd-$objformat
11052 case $version_type in
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11063 shlibpath_var=LD_LIBRARY_PATH
11066 shlibpath_overrides_runpath=yes
11068 freebsd3.01* | freebsdelf3.01*)
11069 shlibpath_overrides_runpath=yes
11070 hardcode_into_libs=yes
11073 shlibpath_overrides_runpath=no
11074 hardcode_into_libs=yes
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 shlibpath_var=LD_LIBRARY_PATH
11086 hardcode_into_libs=yes
11089 hpux9* | hpux10* | hpux11*)
11090 # Give a soname corresponding to the major version so that dld.sl refuses to
11091 # link against other versions.
11095 case "$host_cpu" in
11098 hardcode_into_libs=yes
11099 dynamic_linker="$host_os dld.so"
11100 shlibpath_var=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 if test "X$HPUX_IA64_MODE" = X32; then
11105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11113 hardcode_into_libs=yes
11114 dynamic_linker="$host_os dld.sl"
11115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11124 dynamic_linker="$host_os dld.sl"
11125 shlibpath_var=SHLIB_PATH
11126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11132 postinstall_cmds='chmod 555 $lib'
11135 irix5* | irix6* | nonstopux*)
11137 nonstopux*) version_type=nonstopux ;;
11139 if test "$lt_cv_prog_gnu_ld" = yes; then
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11150 irix5* | nonstopux*)
11151 libsuff= shlibsuff=
11154 case $LD in # libtool.m4 will add one of these switches to LD
11155 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11156 libsuff= shlibsuff= libmagic=32-bit;;
11157 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11158 libsuff=32 shlibsuff=N32 libmagic=N32;;
11159 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11160 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11161 *) libsuff= shlibsuff= libmagic=never-match;;
11165 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11166 shlibpath_overrides_runpath=no
11167 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11168 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11169 hardcode_into_libs=yes
11172 # No shared lib support for Linux oldld, aout, or coff.
11173 linux*oldld* | linux*aout* | linux*coff*)
11177 # This must be Linux ELF.
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath=no
11187 # This implies no fast_install, which is unacceptable.
11188 # Some rework will be needed to allow for fast_install
11189 # before this can be enabled.
11190 hardcode_into_libs=yes
11192 # /usr/X11R6/lib and /usr/local/lib are common enough...
11193 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
11195 # We used to test for /lib/ld.so.1 and disable shared libraries on
11196 # powerpc, because MkLinux only supported shared libraries with the
11197 # GNU dynamic linker. Since this was broken with cross compilers,
11198 # most powerpc-linux boxes support dynamic linking these days and
11199 # people can always --disable-shared, the test was removed, and we
11200 # assume the GNU/Linux dynamic linker is in use.
11201 dynamic_linker='GNU/Linux ld.so'
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 shlibpath_overrides_runpath=no
11212 hardcode_into_libs=yes
11213 dynamic_linker='GNU ld.so'
11220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11223 dynamic_linker='NetBSD (a.out) ld.so'
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 dynamic_linker='NetBSD ld.elf_so'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 shlibpath_overrides_runpath=yes
11231 hardcode_into_libs=yes
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246 soname_spec='${libname}${release}${shared_ext}$major'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 shlibpath_overrides_runpath=yes
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11260 openbsd2.[89] | openbsd2.[89].*)
11261 shlibpath_overrides_runpath=no
11264 shlibpath_overrides_runpath=yes
11268 shlibpath_overrides_runpath=yes
11273 libname_spec='$name'
11276 library_names_spec='$libname${shared_ext} $libname.a'
11277 dynamic_linker='OS/2 ld.exe'
11278 shlibpath_var=LIBPATH
11281 osf3* | osf4* | osf5*)
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11289 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 shlibpath_var=LD_LIBRARY_PATH
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 shlibpath_overrides_runpath=yes
11307 hardcode_into_libs=yes
11308 # ldd complains unless libraries are executable
11309 postinstall_cmds='chmod +x $lib'
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=yes
11318 if test "$with_gnu_ld" = yes; then
11324 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 case $host_vendor in
11331 shlibpath_overrides_runpath=no
11333 export_dynamic_flag_spec='${wl}-Blargedynsym'
11334 runpath_var=LD_RUN_PATH
11342 shlibpath_overrides_runpath=no
11343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11349 if test -d /usr/nec ;then
11351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11352 soname_spec='$libname${shared_ext}.$major'
11353 shlibpath_var=LD_LIBRARY_PATH
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11368 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11369 echo "${ECHO_T}$dynamic_linker" >&6
11370 test "$dynamic_linker" = no && can_build_shared=no
11372 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11373 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11374 hardcode_action_CXX=
11375 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11376 test -n "$runpath_var CXX" || \
11377 test "X$hardcode_automatic_CXX"="Xyes" ; then
11379 # We can hardcode non-existant directories.
11380 if test "$hardcode_direct_CXX" != no &&
11381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11382 # have to relink, otherwise we might link with an installed library
11383 # when we should be linking with a yet-to-be-installed one
11384 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11385 test "$hardcode_minus_L_CXX" != no; then
11386 # Linking always hardcodes the temporary library directory.
11387 hardcode_action_CXX=relink
11389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11390 hardcode_action_CXX=immediate
11393 # We cannot hardcode anything, or else we can only hardcode existing
11395 hardcode_action_CXX=unsupported
11397 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11398 echo "${ECHO_T}$hardcode_action_CXX" >&6
11400 if test "$hardcode_action_CXX" = relink; then
11401 # Fast installation is not supported
11402 enable_fast_install=no
11403 elif test "$shlibpath_overrides_runpath" = yes ||
11404 test "$enable_shared" = no; then
11405 # Fast installation is not necessary
11406 enable_fast_install=needless
11411 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11412 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11413 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11414 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11415 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11416 echo "$as_me:$LINENO: result: yes" >&5
11417 echo "${ECHO_T}yes" >&6
11419 # FIXME - insert some real tests, host_os isn't really good enough
11422 if test -n "$STRIP" ; then
11423 striplib="$STRIP -x"
11424 echo "$as_me:$LINENO: result: yes" >&5
11425 echo "${ECHO_T}yes" >&6
11427 echo "$as_me:$LINENO: result: no" >&5
11428 echo "${ECHO_T}no" >&6
11432 echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6
11438 if test "x$enable_dlopen" != xyes; then
11439 enable_dlopen=unknown
11440 enable_dlopen_self=unknown
11441 enable_dlopen_self_static=unknown
11448 lt_cv_dlopen="load_add_on"
11450 lt_cv_dlopen_self=yes
11454 lt_cv_dlopen="LoadLibrary"
11459 lt_cv_dlopen="dlopen"
11464 # if libdl is installed we need to link against it
11465 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_check_lib_save_LIBS=$LIBS
11472 cat >conftest.$ac_ext <<_ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11479 /* Override any gcc2 internal prototype to avoid an error. */
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11498 grep -v '^ *+' conftest.er1 >conftest.err
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_cxx_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_lib_dl_dlopen=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_cv_lib_dl_dlopen=no
11523 rm -f conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11527 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11528 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11529 if test $ac_cv_lib_dl_dlopen = yes; then
11530 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11533 lt_cv_dlopen="dyld"
11535 lt_cv_dlopen_self=yes
11542 echo "$as_me:$LINENO: checking for shl_load" >&5
11543 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11544 if test "${ac_cv_func_shl_load+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 cat >conftest.$ac_ext <<_ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11555 #define shl_load innocuous_shl_load
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char shl_load (); below.
11559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 <limits.h> exists even on freestanding compilers. */
11563 # include <limits.h>
11565 # include <assert.h>
11570 /* Override any gcc2 internal prototype to avoid an error. */
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11584 char (*f) () = shl_load;
11593 return f != shl_load;
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>conftest.er1
11602 grep -v '^ *+' conftest.er1 >conftest.err
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_cxx_werror_flag"
11608 || test ! -s conftest.err'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest$ac_exeext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 ac_cv_func_shl_load=yes
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 ac_cv_func_shl_load=no
11627 rm -f conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11631 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11632 if test $ac_cv_func_shl_load = yes; then
11633 lt_cv_dlopen="shl_load"
11635 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11636 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11637 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 ac_check_lib_save_LIBS=$LIBS
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11649 /* Override any gcc2 internal prototype to avoid an error. */
11653 /* We use char because int might match the return type of a gcc2
11654 builtin and then its argument prototype would still apply. */
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666 (eval $ac_link) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -z "$ac_cxx_werror_flag"
11674 || test ! -s conftest.err'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; } &&
11680 { ac_try='test -s conftest$ac_exeext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_lib_dld_shl_load=yes
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_cv_lib_dld_shl_load=no
11693 rm -f conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11698 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11699 if test $ac_cv_lib_dld_shl_load = yes; then
11700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11702 echo "$as_me:$LINENO: checking for dlopen" >&5
11703 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11704 if test "${ac_cv_func_dlopen+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 cat >conftest.$ac_ext <<_ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11715 #define dlopen innocuous_dlopen
11717 /* System header to define __stub macros and hopefully few prototypes,
11718 which can conflict with char dlopen (); below.
11719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11720 <limits.h> exists even on freestanding compilers. */
11723 # include <limits.h>
11725 # include <assert.h>
11730 /* Override any gcc2 internal prototype to avoid an error. */
11735 /* We use char because int might match the return type of a gcc2
11736 builtin and then its argument prototype would still apply. */
11738 /* The GNU C library defines this for functions which it implements
11739 to always fail with ENOSYS. Some functions are actually named
11740 something starting with __ and the normal name is an alias. */
11741 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11744 char (*f) () = dlopen;
11753 return f != dlopen;
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760 (eval $ac_link) 2>conftest.er1
11762 grep -v '^ *+' conftest.er1 >conftest.err
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -z "$ac_cxx_werror_flag"
11768 || test ! -s conftest.err'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; } &&
11774 { ac_try='test -s conftest$ac_exeext'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11780 ac_cv_func_dlopen=yes
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 ac_cv_func_dlopen=no
11787 rm -f conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11790 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11791 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11792 if test $ac_cv_func_dlopen = yes; then
11793 lt_cv_dlopen="dlopen"
11795 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11796 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11797 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 ac_check_lib_save_LIBS=$LIBS
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11809 /* Override any gcc2 internal prototype to avoid an error. */
11813 /* We use char because int might match the return type of a gcc2
11814 builtin and then its argument prototype would still apply. */
11824 rm -f conftest.$ac_objext conftest$ac_exeext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11826 (eval $ac_link) 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -z "$ac_cxx_werror_flag"
11834 || test ! -s conftest.err'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 ac_cv_lib_dl_dlopen=yes
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 ac_cv_lib_dl_dlopen=no
11853 rm -f conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11857 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11858 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11859 if test $ac_cv_lib_dl_dlopen = yes; then
11860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11862 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11863 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11864 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-lsvld $LIBS"
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11876 /* Override any gcc2 internal prototype to avoid an error. */
11880 /* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893 (eval $ac_link) 2>conftest.er1
11895 grep -v '^ *+' conftest.er1 >conftest.err
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_cxx_werror_flag"
11901 || test ! -s conftest.err'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; } &&
11907 { ac_try='test -s conftest$ac_exeext'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_cv_lib_svld_dlopen=yes
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 ac_cv_lib_svld_dlopen=no
11920 rm -f conftest.err conftest.$ac_objext \
11921 conftest$ac_exeext conftest.$ac_ext
11922 LIBS=$ac_check_lib_save_LIBS
11924 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11925 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11926 if test $ac_cv_lib_svld_dlopen = yes; then
11927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11929 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11930 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11931 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 ac_check_lib_save_LIBS=$LIBS
11936 cat >conftest.$ac_ext <<_ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11943 /* Override any gcc2 internal prototype to avoid an error. */
11947 /* We use char because int might match the return type of a gcc2
11948 builtin and then its argument prototype would still apply. */
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960 (eval $ac_link) 2>conftest.er1
11962 grep -v '^ *+' conftest.er1 >conftest.err
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -z "$ac_cxx_werror_flag"
11968 || test ! -s conftest.err'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; } &&
11974 { ac_try='test -s conftest$ac_exeext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_lib_dld_dld_link=yes
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 ac_cv_lib_dld_dld_link=no
11987 rm -f conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11992 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11993 if test $ac_cv_lib_dld_dld_link = yes; then
11994 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12015 if test "x$lt_cv_dlopen" != xno; then
12021 case $lt_cv_dlopen in
12023 save_CPPFLAGS="$CPPFLAGS"
12024 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12026 save_LDFLAGS="$LDFLAGS"
12027 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12030 LIBS="$lt_cv_dlopen_libs $LIBS"
12032 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12033 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12034 if test "${lt_cv_dlopen_self+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 if test "$cross_compiling" = yes; then :
12038 lt_cv_dlopen_self=cross
12040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12041 lt_status=$lt_dlunknown
12042 cat > conftest.$ac_ext <<EOF
12043 #line 12043 "configure"
12044 #include "confdefs.h"
12053 # define LT_DLGLOBAL RTLD_GLOBAL
12056 # define LT_DLGLOBAL DL_GLOBAL
12058 # define LT_DLGLOBAL 0
12062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12063 find out it does not work in some platform. */
12064 #ifndef LT_DLLAZY_OR_NOW
12066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12069 # define LT_DLLAZY_OR_NOW DL_LAZY
12072 # define LT_DLLAZY_OR_NOW RTLD_NOW
12075 # define LT_DLLAZY_OR_NOW DL_NOW
12077 # define LT_DLLAZY_OR_NOW 0
12085 extern "C" void exit (int);
12088 void fnord() { int i=42;}
12091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12092 int status = $lt_dlunknown;
12096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12097 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12098 /* dlclose (self); */
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105 (eval $ac_link) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12109 (./conftest; exit; ) 2>/dev/null
12111 case x$lt_status in
12112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12114 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12117 # compilation failed
12118 lt_cv_dlopen_self=no
12125 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12126 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12128 if test "x$lt_cv_dlopen_self" = xyes; then
12129 LDFLAGS="$LDFLAGS $link_static_flag"
12130 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12131 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12132 if test "${lt_cv_dlopen_self_static+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 if test "$cross_compiling" = yes; then :
12136 lt_cv_dlopen_self_static=cross
12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139 lt_status=$lt_dlunknown
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12141 "configure"
12142 #include "confdefs.h"
12151 # define LT_DLGLOBAL RTLD_GLOBAL
12154 # define LT_DLGLOBAL DL_GLOBAL
12156 # define LT_DLGLOBAL 0
12160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161 find out it does not work in some platform. */
12162 #ifndef LT_DLLAZY_OR_NOW
12164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12167 # define LT_DLLAZY_OR_NOW DL_LAZY
12170 # define LT_DLLAZY_OR_NOW RTLD_NOW
12173 # define LT_DLLAZY_OR_NOW DL_NOW
12175 # define LT_DLLAZY_OR_NOW 0
12183 extern "C" void exit (int);
12186 void fnord() { int i=42;}
12189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12190 int status = $lt_dlunknown;
12194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12196 /* dlclose (self); */
12202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12203 (eval $ac_link) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12207 (./conftest; exit; ) 2>/dev/null
12209 case x$lt_status in
12210 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12211 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12212 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12215 # compilation failed
12216 lt_cv_dlopen_self_static=no
12223 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12224 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12227 CPPFLAGS="$save_CPPFLAGS"
12228 LDFLAGS="$save_LDFLAGS"
12233 case $lt_cv_dlopen_self in
12234 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12235 *) enable_dlopen_self=unknown ;;
12238 case $lt_cv_dlopen_self_static in
12239 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12240 *) enable_dlopen_self_static=unknown ;;
12245 # The else clause should only fire when bootstrapping the
12246 # libtool distribution, otherwise you forgot to ship ltmain.sh
12247 # with your package, and you will get complaints that there are
12248 # no rules to generate ltmain.sh.
12249 if test -f "$ltmain"; then
12250 # See if we are running on zsh, and set the options which allow our commands through
12251 # without removal of \ escapes.
12252 if test -n "${ZSH_VERSION+set}" ; then
12253 setopt NO_GLOB_SUBST
12255 # Now quote all the things that may contain metacharacters while being
12256 # careful not to overquote the AC_SUBSTed values. We take copies of the
12257 # variables and quote the copies for generation of the libtool script.
12258 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12260 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12261 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12262 deplibs_check_method reload_flag reload_cmds need_locks \
12263 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12264 lt_cv_sys_global_symbol_to_c_name_address \
12265 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12266 old_postinstall_cmds old_postuninstall_cmds \
12270 lt_prog_compiler_wl_CXX \
12271 lt_prog_compiler_pic_CXX \
12272 lt_prog_compiler_static_CXX \
12273 lt_prog_compiler_no_builtin_flag_CXX \
12274 export_dynamic_flag_spec_CXX \
12275 thread_safe_flag_spec_CXX \
12276 whole_archive_flag_spec_CXX \
12277 enable_shared_with_static_runtimes_CXX \
12278 old_archive_cmds_CXX \
12279 old_archive_from_new_cmds_CXX \
12280 predep_objects_CXX \
12281 postdep_objects_CXX \
12284 compiler_lib_search_path_CXX \
12286 archive_expsym_cmds_CXX \
12287 postinstall_cmds_CXX \
12288 postuninstall_cmds_CXX \
12289 old_archive_from_expsyms_cmds_CXX \
12290 allow_undefined_flag_CXX \
12291 no_undefined_flag_CXX \
12292 export_symbols_cmds_CXX \
12293 hardcode_libdir_flag_spec_CXX \
12294 hardcode_libdir_flag_spec_ld_CXX \
12295 hardcode_libdir_separator_CXX \
12296 hardcode_automatic_CXX \
12298 module_expsym_cmds_CXX \
12299 lt_cv_prog_compiler_c_o_CXX \
12300 exclude_expsyms_CXX \
12301 include_expsyms_CXX; do
12304 old_archive_cmds_CXX | \
12305 old_archive_from_new_cmds_CXX | \
12306 archive_cmds_CXX | \
12307 archive_expsym_cmds_CXX | \
12308 module_cmds_CXX | \
12309 module_expsym_cmds_CXX | \
12310 old_archive_from_expsyms_cmds_CXX | \
12311 export_symbols_cmds_CXX | \
12312 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12313 postinstall_cmds | postuninstall_cmds | \
12314 old_postinstall_cmds | old_postuninstall_cmds | \
12315 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12316 # Double-quote double-evaled strings.
12317 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12326 *'\$0 --fallback-echo"')
12327 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12333 cat <<__EOF__ >> "$cfgfile"
12334 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12336 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12338 # Shell to use when invoking shell scripts.
12341 # Whether or not to build shared libraries.
12342 build_libtool_libs=$enable_shared
12344 # Whether or not to build static libraries.
12345 build_old_libs=$enable_static
12347 # Whether or not to add -lc for building shared libraries.
12348 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12350 # Whether or not to disallow shared libs when runtime libs are static
12351 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12353 # Whether or not to optimize for fast installation.
12354 fast_install=$enable_fast_install
12357 host_alias=$host_alias
12360 # An echo program that does not interpret backslashes.
12365 AR_FLAGS=$lt_AR_FLAGS
12370 # A language-specific compiler.
12371 CC=$lt_compiler_CXX
12373 # Is the compiler the GNU C compiler?
12379 # The linker used to build libraries.
12382 # Whether we need hard or soft links.
12385 # A BSD-compatible nm program.
12388 # A symbol stripping program
12391 # Used to examine libraries when file_magic_cmd begins "file"
12392 MAGIC_CMD=$MAGIC_CMD
12394 # Used on cygwin: DLL creation program.
12397 # Used on cygwin: object dumper.
12400 # Used on cygwin: assembler.
12403 # The name of the directory that contains temporary libtool files.
12406 # How to create reloadable object files.
12407 reload_flag=$lt_reload_flag
12408 reload_cmds=$lt_reload_cmds
12410 # How to pass a linker flag through the compiler.
12411 wl=$lt_lt_prog_compiler_wl_CXX
12413 # Object file suffix (normally "o").
12414 objext="$ac_objext"
12416 # Old archive suffix (normally "a").
12419 # Shared library suffix (normally ".so").
12422 # Executable file suffix (normally "").
12425 # Additional compiler flags for building library objects.
12426 pic_flag=$lt_lt_prog_compiler_pic_CXX
12429 # What is the maximum length of a command?
12430 max_cmd_len=$lt_cv_sys_max_cmd_len
12432 # Does compiler simultaneously support -c and -o options?
12433 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12435 # Must we lock files when doing compilation ?
12436 need_locks=$lt_need_locks
12438 # Do we need the lib prefix for modules?
12439 need_lib_prefix=$need_lib_prefix
12441 # Do we need a version for libraries?
12442 need_version=$need_version
12444 # Whether dlopen is supported.
12445 dlopen_support=$enable_dlopen
12447 # Whether dlopen of programs is supported.
12448 dlopen_self=$enable_dlopen_self
12450 # Whether dlopen of statically linked programs is supported.
12451 dlopen_self_static=$enable_dlopen_self_static
12453 # Compiler flag to prevent dynamic linking.
12454 link_static_flag=$lt_lt_prog_compiler_static_CXX
12456 # Compiler flag to turn off builtin functions.
12457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12459 # Compiler flag to allow reflexive dlopens.
12460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12462 # Compiler flag to generate shared objects directly from archives.
12463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12465 # Compiler flag to generate thread-safe objects.
12466 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12468 # Library versioning type.
12469 version_type=$version_type
12471 # Format of library name prefix.
12472 libname_spec=$lt_libname_spec
12474 # List of archive names. First name is the real one, the rest are links.
12475 # The last name is the one that the linker finds with -lNAME.
12476 library_names_spec=$lt_library_names_spec
12478 # The coded name of the library, if different from the real name.
12479 soname_spec=$lt_soname_spec
12481 # Commands used to build and install an old-style archive.
12483 old_archive_cmds=$lt_old_archive_cmds_CXX
12484 old_postinstall_cmds=$lt_old_postinstall_cmds
12485 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12487 # Create an old-style archive from a shared archive.
12488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12490 # Create a temporary old-style archive to link instead of a shared archive.
12491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12493 # Commands used to build and install a shared archive.
12494 archive_cmds=$lt_archive_cmds_CXX
12495 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12496 postinstall_cmds=$lt_postinstall_cmds
12497 postuninstall_cmds=$lt_postuninstall_cmds
12499 # Commands used to build a loadable module (assumed same as above if empty)
12500 module_cmds=$lt_module_cmds_CXX
12501 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12503 # Commands to strip libraries.
12504 old_striplib=$lt_old_striplib
12505 striplib=$lt_striplib
12507 # Dependencies to place before the objects being linked to create a
12509 predep_objects=$lt_predep_objects_CXX
12511 # Dependencies to place after the objects being linked to create a
12513 postdep_objects=$lt_postdep_objects_CXX
12515 # Dependencies to place before the objects being linked to create a
12517 predeps=$lt_predeps_CXX
12519 # Dependencies to place after the objects being linked to create a
12521 postdeps=$lt_postdeps_CXX
12523 # The library search path used internally by the compiler when linking
12524 # a shared library.
12525 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12527 # Method to check whether dependent libraries are shared objects.
12528 deplibs_check_method=$lt_deplibs_check_method
12530 # Command to use when deplibs_check_method == file_magic.
12531 file_magic_cmd=$lt_file_magic_cmd
12533 # Flag that allows shared libraries with undefined symbols to be built.
12534 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12536 # Flag that forces no undefined symbols.
12537 no_undefined_flag=$lt_no_undefined_flag_CXX
12539 # Commands used to finish a libtool library installation in a directory.
12540 finish_cmds=$lt_finish_cmds
12542 # Same as above, but a single script fragment to be evaled but not shown.
12543 finish_eval=$lt_finish_eval
12545 # Take the output of nm and produce a listing of raw symbols and C names.
12546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12548 # Transform the output of nm in a proper C declaration
12549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12551 # Transform the output of nm in a C name address pair
12552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12554 # This is the shared library runtime path variable.
12555 runpath_var=$runpath_var
12557 # This is the shared library path variable.
12558 shlibpath_var=$shlibpath_var
12560 # Is shlibpath searched before the hard-coded library search path?
12561 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12563 # How to hardcode a shared library path into an executable.
12564 hardcode_action=$hardcode_action_CXX
12566 # Whether we should hardcode library paths into libraries.
12567 hardcode_into_libs=$hardcode_into_libs
12569 # Flag to hardcode \$libdir into a binary during linking.
12570 # This must work even if \$libdir does not exist.
12571 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12573 # If ld is used when linking, flag to hardcode \$libdir into
12574 # a binary during linking. This must work even if \$libdir does
12576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12578 # Whether we need a single -rpath flag with a separated argument.
12579 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12581 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12582 # resulting binary.
12583 hardcode_direct=$hardcode_direct_CXX
12585 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12586 # resulting binary.
12587 hardcode_minus_L=$hardcode_minus_L_CXX
12589 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12590 # the resulting binary.
12591 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12593 # Set to yes if building a shared library automatically hardcodes DIR into the library
12594 # and all subsequent libraries and executables linked against it.
12595 hardcode_automatic=$hardcode_automatic_CXX
12597 # Variables whose values should be saved in libtool wrapper scripts and
12598 # restored at relink time.
12599 variables_saved_for_relink="$variables_saved_for_relink"
12601 # Whether libtool must link a program against all its dependency libraries.
12602 link_all_deplibs=$link_all_deplibs_CXX
12604 # Compile-time system search path for libraries
12605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12607 # Run-time system search path for libraries
12608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12610 # Fix the shell variable \$srcfile for the compiler.
12611 fix_srcfile_path="$fix_srcfile_path_CXX"
12613 # Set to yes if exported symbols are required.
12614 always_export_symbols=$always_export_symbols_CXX
12616 # The commands to list exported symbols.
12617 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12619 # The commands to extract the exported symbol list from a shared archive.
12620 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12622 # Symbols that should not be listed in the preloaded symbols.
12623 exclude_expsyms=$lt_exclude_expsyms_CXX
12625 # Symbols that must always be exported.
12626 include_expsyms=$lt_include_expsyms_CXX
12628 # ### END LIBTOOL TAG CONFIG: $tagname
12634 # If there is no Makefile yet, we rely on a make rule to execute
12635 # `config.status --recheck' to rerun these tests and create the
12636 # libtool script then.
12637 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12638 if test -f "$ltmain_in"; then
12639 test -f Makefile && make "$ltmain"
12645 ac_cpp='$CPP $CPPFLAGS'
12646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654 with_gnu_ldcxx=$with_gnu_ld
12655 with_gnu_ld=$lt_save_with_gnu_ld
12656 lt_cv_path_LDCXX=$lt_cv_path_LD
12657 lt_cv_path_LD=$lt_save_path_LD
12658 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12659 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12667 if test -n "$F77" && test "X$F77" != "Xno"; then
12670 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12671 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12675 archive_cmds_need_lc_F77=no
12676 allow_undefined_flag_F77=
12677 always_export_symbols_F77=no
12678 archive_expsym_cmds_F77=
12679 export_dynamic_flag_spec_F77=
12680 hardcode_direct_F77=no
12681 hardcode_libdir_flag_spec_F77=
12682 hardcode_libdir_flag_spec_ld_F77=
12683 hardcode_libdir_separator_F77=
12684 hardcode_minus_L_F77=no
12685 hardcode_automatic_F77=no
12687 module_expsym_cmds_F77=
12688 link_all_deplibs_F77=unknown
12689 old_archive_cmds_F77=$old_archive_cmds
12690 no_undefined_flag_F77=
12691 whole_archive_flag_spec_F77=
12692 enable_shared_with_static_runtimes_F77=no
12694 # Source file extension for f77 test sources.
12697 # Object file extension for compiled f77 test sources.
12701 # Code to be used in simple compile tests
12702 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12704 # Code to be used in simple link tests
12705 lt_simple_link_test_code=" program t\n end\n"
12707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12709 # If no C compiler was specified, use CC.
12712 # Allow CC to be a program name with arguments.
12716 # Allow CC to be a program name with arguments.
12721 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12723 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12724 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12725 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12726 echo "${ECHO_T}$can_build_shared" >&6
12728 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12729 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12730 test "$can_build_shared" = "no" && enable_shared=no
12732 # On AIX, shared libraries and static libraries use the same namespace, and
12733 # are all built from PIC.
12736 test "$enable_shared" = yes && enable_static=no
12737 if test -n "$RANLIB"; then
12738 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12739 postinstall_cmds='$RANLIB $lib'
12743 test "$enable_shared" = yes && enable_static=no
12746 echo "$as_me:$LINENO: result: $enable_shared" >&5
12747 echo "${ECHO_T}$enable_shared" >&6
12749 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12750 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12751 # Make sure either enable_shared or enable_static is yes.
12752 test "$enable_shared" = yes || enable_static=yes
12753 echo "$as_me:$LINENO: result: $enable_static" >&5
12754 echo "${ECHO_T}$enable_static" >&6
12756 test "$ld_shlibs_F77" = no && can_build_shared=no
12761 lt_prog_compiler_wl_F77=
12762 lt_prog_compiler_pic_F77=
12763 lt_prog_compiler_static_F77=
12765 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12766 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12768 if test "$GCC" = yes; then
12769 lt_prog_compiler_wl_F77='-Wl,'
12770 lt_prog_compiler_static_F77='-static'
12774 # All AIX code is PIC.
12775 if test "$host_cpu" = ia64; then
12776 # AIX 5 now supports IA64 processor
12777 lt_prog_compiler_static_F77='-Bstatic'
12782 # FIXME: we need at least 68020 code to build shared libraries, but
12783 # adding the `-m68020' flag to GCC prevents building anything better,
12785 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12788 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12789 # PIC is the default for these OSes.
12792 mingw* | pw32* | os2*)
12793 # This hack is so that the source file can tell whether it is being
12794 # built for inclusion in a dll (and should export symbols for example).
12795 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12798 darwin* | rhapsody*)
12799 # PIC is the default on this platform
12800 # Common symbols not allowed in MH_DYLIB files
12801 lt_prog_compiler_pic_F77='-fno-common'
12805 # Just because we use GCC doesn't mean we suddenly get shared libraries
12806 # on systems that don't support them.
12807 lt_prog_compiler_can_build_shared_F77=no
12812 if test -d /usr/nec; then
12813 lt_prog_compiler_pic_F77=-Kconform_pic
12818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12819 # not for PA HP-UX.
12820 case "$host_cpu" in
12825 lt_prog_compiler_pic_F77='-fPIC'
12831 lt_prog_compiler_pic_F77='-fPIC'
12835 # PORTME Check for flag to pass linker flags through the system compiler.
12838 lt_prog_compiler_wl_F77='-Wl,'
12839 if test "$host_cpu" = ia64; then
12840 # AIX 5 now supports IA64 processor
12841 lt_prog_compiler_static_F77='-Bstatic'
12843 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12847 mingw* | pw32* | os2*)
12848 # This hack is so that the source file can tell whether it is being
12849 # built for inclusion in a dll (and should export symbols for example).
12850 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12853 hpux9* | hpux10* | hpux11*)
12854 lt_prog_compiler_wl_F77='-Wl,'
12855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12856 # not for PA HP-UX.
12857 case "$host_cpu" in
12862 lt_prog_compiler_pic_F77='+Z'
12865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12866 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12869 irix5* | irix6* | nonstopux*)
12870 lt_prog_compiler_wl_F77='-Wl,'
12871 # PIC (with -KPIC) is the default.
12872 lt_prog_compiler_static_F77='-non_shared'
12876 lt_prog_compiler_pic_F77='-KPIC'
12877 lt_prog_compiler_static_F77='-Bstatic'
12883 lt_prog_compiler_wl_F77='-Wl,'
12884 lt_prog_compiler_pic_F77='-KPIC'
12885 lt_prog_compiler_static_F77='-static'
12888 lt_prog_compiler_wl_F77='-Wl,'
12889 # All Alpha code is PIC.
12890 lt_prog_compiler_static_F77='-non_shared'
12895 osf3* | osf4* | osf5*)
12896 lt_prog_compiler_wl_F77='-Wl,'
12897 # All OSF/1 code is PIC.
12898 lt_prog_compiler_static_F77='-non_shared'
12902 lt_prog_compiler_pic_F77='-Kpic'
12903 lt_prog_compiler_static_F77='-dn'
12907 lt_prog_compiler_wl_F77='-Wl,'
12908 lt_prog_compiler_pic_F77='-KPIC'
12909 lt_prog_compiler_static_F77='-Bstatic'
12913 lt_prog_compiler_wl_F77='-Qoption ld '
12914 lt_prog_compiler_pic_F77='-PIC'
12915 lt_prog_compiler_static_F77='-Bstatic'
12918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12919 lt_prog_compiler_wl_F77='-Wl,'
12920 lt_prog_compiler_pic_F77='-KPIC'
12921 lt_prog_compiler_static_F77='-Bstatic'
12925 if test -d /usr/nec ;then
12926 lt_prog_compiler_pic_F77='-Kconform_pic'
12927 lt_prog_compiler_static_F77='-Bstatic'
12932 lt_prog_compiler_pic_F77='-pic'
12933 lt_prog_compiler_static_F77='-Bstatic'
12937 lt_prog_compiler_can_build_shared_F77=no
12942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12943 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12946 # Check to make sure the PIC flag actually works.
12948 if test -n "$lt_prog_compiler_pic_F77"; then
12950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12952 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 lt_prog_compiler_pic_works_F77=no
12956 ac_outfile=conftest.$ac_objext
12957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12958 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12959 # Insert the option either (1) after the last *FLAGS variable, or
12960 # (2) before a word containing "conftest.", or (3) at the end.
12961 # Note that $ac_compile itself does not contain backslashes and begins
12962 # with a dollar sign (not a hyphen), so the echo should work correctly.
12963 # The option is referenced via a variable to avoid confusing sed.
12964 lt_compile=`echo "$ac_compile" | $SED \
12965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12967 -e 's:$: $lt_compiler_flag:'`
12968 (eval echo "\"\$as_me:12968: $lt_compile\"" >&5)
12969 (eval "$lt_compile" 2>conftest.err)
12971 cat conftest.err >&5
12972 echo "$as_me:12972: \$? = $ac_status" >&5
12973 if (exit $ac_status) && test -s "$ac_outfile"; then
12974 # The compiler can only warn and ignore the option if not recognized
12975 # So say no if there are warnings
12976 if test ! -s conftest.err; then
12977 lt_prog_compiler_pic_works_F77=yes
12983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12984 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12986 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12987 case $lt_prog_compiler_pic_F77 in
12989 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12992 lt_prog_compiler_pic_F77=
12993 lt_prog_compiler_can_build_shared_F77=no
12998 # For platforms which do not support PIC, -DPIC is meaningless:
13000 lt_prog_compiler_pic_F77=
13003 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13009 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 lt_cv_prog_compiler_c_o_F77=no
13013 $rm -r conftest 2>/dev/null
13017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13019 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13020 # that will create temporary files in the current directory regardless of
13021 # the output directory. Thus, making CWD read-only will cause this test
13022 # to fail, enabling locking or at least warning the user not to do parallel
13026 lt_compiler_flag="-o out/conftest2.$ac_objext"
13027 # Insert the option either (1) after the last *FLAGS variable, or
13028 # (2) before a word containing "conftest.", or (3) at the end.
13029 # Note that $ac_compile itself does not contain backslashes and begins
13030 # with a dollar sign (not a hyphen), so the echo should work correctly.
13031 lt_compile=`echo "$ac_compile" | $SED \
13032 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13034 -e 's:$: $lt_compiler_flag:'`
13035 (eval echo "\"\$as_me:13035: $lt_compile\"" >&5)
13036 (eval "$lt_compile" 2>out/conftest.err)
13038 cat out/conftest.err >&5
13039 echo "$as_me:13039: \$? = $ac_status" >&5
13040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13042 # The compiler can only warn and ignore the option if not recognized
13043 # So say no if there are warnings
13044 if test ! -s out/conftest.err; then
13045 lt_cv_prog_compiler_c_o_F77=yes
13050 # SGI C++ compiler will create directory out/ii_files/ for
13051 # template instantiation
13052 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13053 $rm out/* && rmdir out
13059 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13060 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13063 hard_links="nottested"
13064 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13065 # do not overwrite the value of need_locks provided by the user
13066 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13067 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13072 ln conftest.a conftest.b 2>&5 || hard_links=no
13073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13074 echo "$as_me:$LINENO: result: $hard_links" >&5
13075 echo "${ECHO_T}$hard_links" >&6
13076 if test "$hard_links" = no; then
13077 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13078 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13085 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13086 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13089 allow_undefined_flag_F77=
13090 enable_shared_with_static_runtimes_F77=no
13092 archive_expsym_cmds_F77=
13093 old_archive_From_new_cmds_F77=
13094 old_archive_from_expsyms_cmds_F77=
13095 export_dynamic_flag_spec_F77=
13096 whole_archive_flag_spec_F77=
13097 thread_safe_flag_spec_F77=
13098 hardcode_libdir_flag_spec_F77=
13099 hardcode_libdir_flag_spec_ld_F77=
13100 hardcode_libdir_separator_F77=
13101 hardcode_direct_F77=no
13102 hardcode_minus_L_F77=no
13103 hardcode_shlibpath_var_F77=unsupported
13104 link_all_deplibs_F77=unknown
13105 hardcode_automatic_F77=no
13107 module_expsym_cmds_F77=
13108 always_export_symbols_F77=no
13109 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13110 # include_expsyms should be a list of space-separated symbols to be *always*
13111 # included in the symbol list
13112 include_expsyms_F77=
13113 # exclude_expsyms can be an extended regexp of symbols to exclude
13114 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13115 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13116 # as well as any symbol that contains `d'.
13117 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13118 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13119 # platforms (ab)use it in PIC code, but their linkers get confused if
13120 # the symbol is explicitly referenced. Since portable code cannot
13121 # rely on this symbol name, it's probably fine to never include it in
13122 # preloaded symbol tables.
13123 extract_expsyms_cmds=
13126 cygwin* | mingw* | pw32*)
13127 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13128 # When not using gcc, we currently assume that we are using
13129 # Microsoft Visual C++.
13130 if test "$GCC" != yes; then
13140 if test "$with_gnu_ld" = yes; then
13141 # If archive_cmds runs LD, not CC, wlarc should be empty
13144 # See if GNU ld supports shared libraries.
13146 aix3* | aix4* | aix5*)
13147 # On AIX/PPC, the GNU linker is very broken
13148 if test "$host_cpu" != ia64; then
13152 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13153 *** to be unable to reliably create shared libraries on AIX.
13154 *** Therefore, libtool is disabling shared libraries support. If you
13155 *** really care for shared libraries, you may want to modify your PATH
13156 *** so that a non-GNU linker is found, and then restart.
13163 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)'
13164 hardcode_libdir_flag_spec_F77='-L$libdir'
13165 hardcode_minus_L_F77=yes
13167 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13168 # that the semantics of dynamic libraries on AmigaOS, at least up
13169 # to version 4, is to share data among multiple programs linked
13170 # with the same dynamic library. Since this doesn't match the
13171 # behavior of shared libraries on other platforms, we can't use
13177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13178 allow_undefined_flag_F77=unsupported
13179 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13180 # support --undefined. This deserves some investigation. FIXME
13181 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13187 cygwin* | mingw* | pw32*)
13188 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13189 # as there is no search path for DLLs.
13190 hardcode_libdir_flag_spec_F77='-L$libdir'
13191 allow_undefined_flag_F77=unsupported
13192 always_export_symbols_F77=no
13193 enable_shared_with_static_runtimes_F77=yes
13194 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13196 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13197 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13198 # If the export-symbols file already is a .def file (1st line
13199 # is EXPORTS), use it as is; otherwise, prepend...
13200 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13201 cp $export_symbols $output_objdir/$soname.def;
13203 echo EXPORTS > $output_objdir/$soname.def;
13204 cat $export_symbols >> $output_objdir/$soname.def;
13206 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13214 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13217 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13218 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13223 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13228 *** create shared libraries on Solaris systems. Therefore, libtool
13229 *** is disabling shared libraries support. We urge you to upgrade GNU
13230 *** binutils to release 2.9.1 or newer. Another option is to modify
13231 *** your PATH or compiler configuration so that the native linker is
13232 *** used, and then restart.
13235 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13236 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13244 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13246 hardcode_direct_F77=yes
13247 hardcode_shlibpath_var_F77=no
13251 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13252 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13253 archive_cmds_F77="$tmp_archive_cmds"
13254 supports_anon_versioning=no
13255 case `$LD -v 2>/dev/null` in
13256 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13259 *\ 2.11.*) ;; # other 2.11 versions
13260 *) supports_anon_versioning=yes ;;
13262 if test $supports_anon_versioning = yes; then
13263 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13265 $echo "local: *; };" >> $output_objdir/$libname.ver~
13266 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13268 archive_expsym_cmds_F77="$tmp_archive_cmds"
13276 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13277 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13285 if test "$ld_shlibs_F77" = yes; then
13286 runpath_var=LD_RUN_PATH
13287 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13288 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13289 # ancient GNU ld didn't support --whole-archive et. al.
13290 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13291 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13293 whole_archive_flag_spec_F77=
13297 # PORTME fill in a description of your system's linker (not GNU ld)
13300 allow_undefined_flag_F77=unsupported
13301 always_export_symbols_F77=yes
13302 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'
13303 # Note: this linker hardcodes the directories in LIBPATH if there
13304 # are no directories specified by -L.
13305 hardcode_minus_L_F77=yes
13306 if test "$GCC" = yes && test -z "$link_static_flag"; then
13307 # Neither direct hardcoding nor static linking is supported with a
13309 hardcode_direct_F77=unsupported
13314 if test "$host_cpu" = ia64; then
13315 # On IA64, the linker does run time linking by default, so we don't
13316 # have to do anything special.
13317 aix_use_runtimelinking=no
13318 exp_sym_flag='-Bexport'
13321 # If we're using GNU nm, then we don't want the "-C" option.
13322 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13323 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13324 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'
13326 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'
13328 aix_use_runtimelinking=no
13330 # Test if we are trying to use run time linking or normal
13331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13332 # need to do runtime linking.
13333 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13334 for ld_flag in $LDFLAGS; do
13335 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13336 aix_use_runtimelinking=yes
13342 exp_sym_flag='-bexport'
13343 no_entry_flag='-bnoentry'
13346 # When large executables or shared objects are built, AIX ld can
13347 # have problems creating the table of contents. If linking a library
13348 # or program results in "error TOC overflow" add -mminimal-toc to
13349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13352 archive_cmds_F77=''
13353 hardcode_direct_F77=yes
13354 hardcode_libdir_separator_F77=':'
13355 link_all_deplibs_F77=yes
13357 if test "$GCC" = yes; then
13358 case $host_os in aix4.012|aix4.012.*)
13359 # We only want to do this on AIX 4.2 and lower, the check
13360 # below for broken collect2 doesn't work under 4.3+
13361 collect2name=`${CC} -print-prog-name=collect2`
13362 if test -f "$collect2name" && \
13363 strings "$collect2name" | grep resolve_lib_name >/dev/null
13365 # We have reworked collect2
13366 hardcode_direct_F77=yes
13368 # We have old collect2
13369 hardcode_direct_F77=unsupported
13370 # It fails to find uninstalled libraries when the uninstalled
13371 # path is not listed in the libpath. Setting hardcode_minus_L
13372 # to unsupported forces relinking
13373 hardcode_minus_L_F77=yes
13374 hardcode_libdir_flag_spec_F77='-L$libdir'
13375 hardcode_libdir_separator_F77=
13378 shared_flag='-shared'
13381 if test "$host_cpu" = ia64; then
13382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13383 # chokes on -Wl,-G. The following line is correct:
13386 if test "$aix_use_runtimelinking" = yes; then
13387 shared_flag='${wl}-G'
13389 shared_flag='${wl}-bM:SRE'
13394 # It seems that -bexpall does not export symbols beginning with
13395 # underscore (_), so it is better to generate a list of symbols to export.
13396 always_export_symbols_F77=yes
13397 if test "$aix_use_runtimelinking" = yes; then
13398 # Warning - without using the other runtime loading flags (-brtl),
13399 # -berok will link without error, but may produce a broken library.
13400 allow_undefined_flag_F77='-berok'
13401 # Determine the default libpath from the value encoded in an empty executable.
13402 cat >conftest.$ac_ext <<_ACEOF
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409 (eval $ac_link) 2>conftest.er1
13411 grep -v '^ *+' conftest.er1 >conftest.err
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_f77_werror_flag"
13417 || test ! -s conftest.err'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest$ac_exeext'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13432 # Check for a 64-bit object if we didn't find anything.
13433 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; }
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13440 rm -f conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13444 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13445 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"
13447 if test "$host_cpu" = ia64; then
13448 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13449 allow_undefined_flag_F77="-z nodefs"
13450 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"
13452 # Determine the default libpath from the value encoded in an empty executable.
13453 cat >conftest.$ac_ext <<_ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460 (eval $ac_link) 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -z "$ac_f77_werror_flag"
13468 || test ! -s conftest.err'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest$ac_exeext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13483 # Check for a 64-bit object if we didn't find anything.
13484 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; }
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13491 rm -f conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13495 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13496 # Warning - without using the other run time loading flags,
13497 # -berok will link without error, but may produce a broken library.
13498 no_undefined_flag_F77=' ${wl}-bernotok'
13499 allow_undefined_flag_F77=' ${wl}-berok'
13500 # -bexpall does not export symbols beginning with underscore (_)
13501 always_export_symbols_F77=yes
13502 # Exported symbols can be pulled into shared objects from archives
13503 whole_archive_flag_spec_F77=' '
13504 archive_cmds_need_lc_F77=yes
13505 # This is similar to how AIX traditionally builds it's shared libraries.
13506 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'
13512 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)'
13513 hardcode_libdir_flag_spec_F77='-L$libdir'
13514 hardcode_minus_L_F77=yes
13515 # see comment about different semantics on the GNU ld section
13520 export_dynamic_flag_spec_F77=-rdynamic
13523 cygwin* | mingw* | pw32*)
13524 # When not using gcc, we currently assume that we are using
13525 # Microsoft Visual C++.
13526 # hardcode_libdir_flag_spec is actually meaningless, as there is
13527 # no search path for DLLs.
13528 hardcode_libdir_flag_spec_F77=' '
13529 allow_undefined_flag_F77=unsupported
13530 # Tell ltmain to make .lib files, not .a files.
13532 # Tell ltmain to make .dll files, not .so files.
13534 # FIXME: Setting linknames here is a bad hack.
13535 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13536 # The linker will automatically build a .lib file if we build a DLL.
13537 old_archive_From_new_cmds_F77='true'
13538 # FIXME: Should let the user specify the lib program.
13539 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13540 fix_srcfile_path='`cygpath -w "$srcfile"`'
13541 enable_shared_with_static_runtimes_F77=yes
13544 darwin* | rhapsody*)
13545 if test "$GXX" = yes ; then
13546 archive_cmds_need_lc_F77=no
13548 rhapsody* | darwin1.[012])
13549 allow_undefined_flag_F77='-undefined suppress'
13552 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13553 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13555 case ${MACOSX_DEPLOYMENT_TARGET} in
13557 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13560 allow_undefined_flag_F77='-undefined dynamic_lookup'
13566 lt_int_apple_cc_single_mod=no
13567 output_verbose_link_cmd='echo'
13568 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13569 lt_int_apple_cc_single_mod=yes
13571 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13572 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13574 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13576 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13577 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13578 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13579 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13581 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13583 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}'
13584 hardcode_direct_F77=no
13585 hardcode_automatic_F77=yes
13586 hardcode_shlibpath_var_F77=unsupported
13587 whole_archive_flag_spec_F77='-all_load $convenience'
13588 link_all_deplibs_F77=yes
13595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596 hardcode_libdir_flag_spec_F77='-L$libdir'
13597 hardcode_shlibpath_var_F77=no
13604 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13605 # support. Future versions do this automatically, but an explicit c++rt0.o
13606 # does not break anything, and helps significantly (at the cost of a little
13609 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13610 hardcode_libdir_flag_spec_F77='-R$libdir'
13611 hardcode_direct_F77=yes
13612 hardcode_shlibpath_var_F77=no
13615 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13617 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_direct_F77=yes
13619 hardcode_minus_L_F77=yes
13620 hardcode_shlibpath_var_F77=no
13623 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13624 freebsd* | kfreebsd*-gnu)
13625 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13626 hardcode_libdir_flag_spec_F77='-R$libdir'
13627 hardcode_direct_F77=yes
13628 hardcode_shlibpath_var_F77=no
13632 if test "$GCC" = yes; then
13633 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'
13635 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'
13637 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13638 hardcode_libdir_separator_F77=:
13639 hardcode_direct_F77=yes
13641 # hardcode_minus_L: Not really in the search PATH,
13642 # but as the default location of the library.
13643 hardcode_minus_L_F77=yes
13644 export_dynamic_flag_spec_F77='${wl}-E'
13648 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13649 case "$host_cpu" in
13651 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13658 case "$host_cpu" in
13660 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13663 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13667 if test "$with_gnu_ld" = no; then
13668 case "$host_cpu" in
13670 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13671 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13672 hardcode_libdir_separator_F77=:
13673 hardcode_direct_F77=no
13674 hardcode_shlibpath_var_F77=no
13677 hardcode_libdir_flag_spec_F77='-L$libdir'
13678 hardcode_direct_F77=no
13679 hardcode_shlibpath_var_F77=no
13681 # hardcode_minus_L: Not really in the search PATH,
13682 # but as the default location of the library.
13683 hardcode_minus_L_F77=yes
13686 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13687 hardcode_libdir_separator_F77=:
13688 hardcode_direct_F77=yes
13689 export_dynamic_flag_spec_F77='${wl}-E'
13691 # hardcode_minus_L: Not really in the search PATH,
13692 # but as the default location of the library.
13693 hardcode_minus_L_F77=yes
13699 irix5* | irix6* | nonstopux*)
13700 if test "$GCC" = yes; then
13701 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'
13703 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'
13704 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13706 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13707 hardcode_libdir_separator_F77=:
13708 link_all_deplibs_F77=yes
13712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13713 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13715 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13717 hardcode_libdir_flag_spec_F77='-R$libdir'
13718 hardcode_direct_F77=yes
13719 hardcode_shlibpath_var_F77=no
13723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13724 hardcode_direct_F77=yes
13725 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13726 hardcode_libdir_separator_F77=:
13727 hardcode_shlibpath_var_F77=no
13731 hardcode_direct_F77=yes
13732 hardcode_shlibpath_var_F77=no
13733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13734 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13735 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13736 export_dynamic_flag_spec_F77='${wl}-E'
13739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13741 hardcode_libdir_flag_spec_F77='-R$libdir'
13744 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13745 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13752 hardcode_libdir_flag_spec_F77='-L$libdir'
13753 hardcode_minus_L_F77=yes
13754 allow_undefined_flag_F77=unsupported
13755 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'
13756 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13760 if test "$GCC" = yes; then
13761 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13762 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'
13764 allow_undefined_flag_F77=' -expect_unresolved \*'
13765 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'
13767 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13768 hardcode_libdir_separator_F77=:
13771 osf4* | osf5*) # as osf3* with the addition of -msym flag
13772 if test "$GCC" = yes; then
13773 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13774 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'
13775 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13777 allow_undefined_flag_F77=' -expect_unresolved \*'
13778 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'
13779 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~
13780 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13782 # Both c and cxx compiler support -rpath directly
13783 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13785 hardcode_libdir_separator_F77=:
13789 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13790 hardcode_shlibpath_var_F77=no
13791 export_dynamic_flag_spec_F77='${wl}-Bexport'
13792 runpath_var=LD_RUN_PATH
13793 hardcode_runpath_var=yes
13797 no_undefined_flag_F77=' -z text'
13798 if test "$GCC" = yes; then
13799 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13801 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13803 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13805 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13807 hardcode_libdir_flag_spec_F77='-R$libdir'
13808 hardcode_shlibpath_var_F77=no
13810 solaris2.[0-5] | solaris2.[0-5].*) ;;
13811 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13812 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13814 link_all_deplibs_F77=yes
13818 if test "x$host_vendor" = xsequent; then
13819 # Use $CC to link under sequent, because it throws in some extra .o
13820 # files that make .init and .fini sections work.
13821 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13823 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_libdir_flag_spec_F77='-L$libdir'
13826 hardcode_direct_F77=yes
13827 hardcode_minus_L_F77=yes
13828 hardcode_shlibpath_var_F77=no
13832 case $host_vendor in
13834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835 hardcode_direct_F77=yes # is this really true???
13838 ## LD is ld it makes a PLAMLIB
13839 ## CC just makes a GrossModule.
13840 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13841 reload_cmds_F77='$CC -r -o $output$reload_objs'
13842 hardcode_direct_F77=no
13845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13849 runpath_var='LD_RUN_PATH'
13850 hardcode_shlibpath_var_F77=no
13854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855 hardcode_shlibpath_var_F77=no
13856 export_dynamic_flag_spec_F77='-Bexport'
13860 if test -d /usr/nec; then
13861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862 hardcode_shlibpath_var_F77=no
13863 runpath_var=LD_RUN_PATH
13864 hardcode_runpath_var=yes
13870 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13871 hardcode_direct_F77=yes
13872 hardcode_minus_L_F77=no
13873 hardcode_shlibpath_var_F77=no
13874 hardcode_runpath_var=yes
13875 runpath_var=LD_RUN_PATH
13878 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13879 no_undefined_flag_F77='${wl}-z ${wl}text'
13880 if test "$GCC" = yes; then
13881 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13883 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13885 runpath_var='LD_RUN_PATH'
13886 hardcode_shlibpath_var_F77=no
13890 no_undefined_flag_F77=' -z text'
13891 # $CC -shared without GNU ld will not create a library from C++
13892 # object files and a static libstdc++, better avoid it by now
13893 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13895 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13896 hardcode_libdir_flag_spec_F77=
13897 hardcode_shlibpath_var_F77=no
13898 runpath_var='LD_RUN_PATH'
13902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903 hardcode_libdir_flag_spec_F77='-L$libdir'
13904 hardcode_shlibpath_var_F77=no
13913 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13914 echo "${ECHO_T}$ld_shlibs_F77" >&6
13915 test "$ld_shlibs_F77" = no && can_build_shared=no
13917 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13918 if test "$GCC" = yes; then
13919 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13923 # Do we need to explicitly link libc?
13925 case "x$archive_cmds_need_lc_F77" in
13927 # Assume -lc should be added
13928 archive_cmds_need_lc_F77=yes
13930 if test "$enable_shared" = yes && test "$GCC" = yes; then
13931 case $archive_cmds_F77 in
13933 # FIXME: we may have to deal with multi-command sequences.
13936 # Test whether the compiler implicitly links with -lc since on some
13937 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13938 # to ld, don't add -lc before -lgcc.
13939 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13940 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } 2>conftest.err; then
13951 libobjs=conftest.$ac_objext
13953 wl=$lt_prog_compiler_wl_F77
13959 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13960 allow_undefined_flag_F77=
13961 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13962 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }
13967 archive_cmds_need_lc_F77=no
13969 archive_cmds_need_lc_F77=yes
13971 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13973 cat conftest.err 1>&5
13976 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13977 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13984 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13985 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13986 library_names_spec=
13987 libname_spec='lib$name'
13991 postuninstall_cmds=
13995 shlibpath_overrides_runpath=unknown
13997 dynamic_linker="$host_os ld.so"
13998 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13999 if test "$GCC" = yes; then
14000 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14001 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14002 # if the path contains ";" then we assume it to be the separator
14003 # otherwise default to the standard path separator (i.e. ":") - it is
14004 # assumed that no part of a normal pathname contains ";" but that should
14005 # okay in the real world where ";" in dirpaths is itself problematic.
14006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14011 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14013 need_lib_prefix=unknown
14014 hardcode_into_libs=no
14016 # when you set need_version to no, make sure it does not cause -set_version
14017 # flags to be left without arguments
14018 need_version=unknown
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14024 shlibpath_var=LIBPATH
14026 # AIX 3 has no versioning support, so we append a major version to the name.
14027 soname_spec='${libname}${release}${shared_ext}$major'
14034 hardcode_into_libs=yes
14035 if test "$host_cpu" = ia64; then
14036 # AIX 5 supports IA64
14037 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14038 shlibpath_var=LD_LIBRARY_PATH
14040 # With GCC up to 2.95.x, collect2 would create an import file
14041 # for dependence libraries. The import file would start with
14042 # the line `#! .'. This would cause the generated library to
14043 # depend on `.', always an invalid library. This was fixed in
14044 # development snapshots of GCC prior to 3.0.
14046 aix4 | aix4.[01] | aix4.[01].*)
14047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14049 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14052 can_build_shared=no
14056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14057 # soname into executable. Probably we can add versioning support to
14058 # collect2, so additional links can be useful in future.
14059 if test "$aix_use_runtimelinking" = yes; then
14060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14061 # instead of lib<name>.a to let people know that these are not
14062 # typical AIX shared libraries.
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14065 # We preserve .a as extension for shared libraries through AIX4.2
14066 # and later when we are not doing run time linking.
14067 library_names_spec='${libname}${release}.a $libname.a'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14070 shlibpath_var=LIBPATH
14075 library_names_spec='$libname.ixlibrary $libname.a'
14076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14077 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'
14081 library_names_spec='${libname}${shared_ext}'
14082 dynamic_linker="$host_os ld.so"
14083 shlibpath_var=LIBRARY_PATH
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090 soname_spec='${libname}${release}${shared_ext}$major'
14091 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14094 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14095 # the default ld.so.conf also contains /usr/contrib/lib and
14096 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14097 # libtool to hard-code these into programs
14100 cygwin* | mingw* | pw32*)
14101 version_type=windows
14106 case $GCC,$host_os in
14107 yes,cygwin* | yes,mingw* | yes,pw32*)
14108 library_names_spec='$libname.dll.a'
14109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14110 postinstall_cmds='base_file=`basename \${file}`~
14111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14112 dldir=$destdir/`dirname \$dlpath`~
14113 test -d \$dldir || mkdir -p \$dldir~
14114 $install_prog $dir/$dlname \$dldir/$dlname'
14115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14116 dlpath=$dir/\$dldll~
14118 shlibpath_overrides_runpath=yes
14122 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14123 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14124 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14127 # MinGW DLLs use traditional 'lib' prefix
14128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14129 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14130 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14131 # It is most probably a Windows format PATH printed by
14132 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14133 # path with ; separators, and with drive letters. We can handle the
14134 # drive letters (cygwin fileutils understands them), so leave them,
14135 # especially as we might pass files found there to a mingw objdump,
14136 # which wouldn't understand a cygwinified path. Ahh.
14137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14143 # pw32 DLLs use 'pw' prefix rather than 'lib'
14144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14150 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14153 dynamic_linker='Win32 ld.exe'
14154 # FIXME: first we should search . and the directory the executable is in
14158 darwin* | rhapsody*)
14159 dynamic_linker="$host_os dyld"
14160 version_type=darwin
14163 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14164 soname_spec='${libname}${release}${major}$shared_ext'
14165 shlibpath_overrides_runpath=yes
14166 shlibpath_var=DYLD_LIBRARY_PATH
14167 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14168 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14169 if test "$GCC" = yes; then
14170 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"`
14172 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14174 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14182 soname_spec='${libname}${release}${shared_ext}$major'
14183 shlibpath_var=LD_LIBRARY_PATH
14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14195 soname_spec='${libname}${release}${shared_ext}$major'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 shlibpath_overrides_runpath=no
14198 hardcode_into_libs=yes
14199 dynamic_linker='GNU ld.so'
14203 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14204 version_type=freebsd-$objformat
14205 case $version_type in
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14216 shlibpath_var=LD_LIBRARY_PATH
14219 shlibpath_overrides_runpath=yes
14221 freebsd3.01* | freebsdelf3.01*)
14222 shlibpath_overrides_runpath=yes
14223 hardcode_into_libs=yes
14226 shlibpath_overrides_runpath=no
14227 hardcode_into_libs=yes
14236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14237 soname_spec='${libname}${release}${shared_ext}$major'
14238 shlibpath_var=LD_LIBRARY_PATH
14239 hardcode_into_libs=yes
14242 hpux9* | hpux10* | hpux11*)
14243 # Give a soname corresponding to the major version so that dld.sl refuses to
14244 # link against other versions.
14248 case "$host_cpu" in
14251 hardcode_into_libs=yes
14252 dynamic_linker="$host_os dld.so"
14253 shlibpath_var=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 if test "X$HPUX_IA64_MODE" = X32; then
14258 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14260 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14266 hardcode_into_libs=yes
14267 dynamic_linker="$host_os dld.sl"
14268 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14277 dynamic_linker="$host_os dld.sl"
14278 shlibpath_var=SHLIB_PATH
14279 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14281 soname_spec='${libname}${release}${shared_ext}$major'
14284 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14285 postinstall_cmds='chmod 555 $lib'
14288 irix5* | irix6* | nonstopux*)
14290 nonstopux*) version_type=nonstopux ;;
14292 if test "$lt_cv_prog_gnu_ld" = yes; then
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14303 irix5* | nonstopux*)
14304 libsuff= shlibsuff=
14307 case $LD in # libtool.m4 will add one of these switches to LD
14308 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14309 libsuff= shlibsuff= libmagic=32-bit;;
14310 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14311 libsuff=32 shlibsuff=N32 libmagic=N32;;
14312 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14313 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14314 *) libsuff= shlibsuff= libmagic=never-match;;
14318 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14319 shlibpath_overrides_runpath=no
14320 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14321 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14322 hardcode_into_libs=yes
14325 # No shared lib support for Linux oldld, aout, or coff.
14326 linux*oldld* | linux*aout* | linux*coff*)
14330 # This must be Linux ELF.
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=no
14340 # This implies no fast_install, which is unacceptable.
14341 # Some rework will be needed to allow for fast_install
14342 # before this can be enabled.
14343 hardcode_into_libs=yes
14345 # /usr/X11R6/lib and /usr/local/lib are common enough...
14346 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
14348 # We used to test for /lib/ld.so.1 and disable shared libraries on
14349 # powerpc, because MkLinux only supported shared libraries with the
14350 # GNU dynamic linker. Since this was broken with cross compilers,
14351 # most powerpc-linux boxes support dynamic linking these days and
14352 # people can always --disable-shared, the test was removed, and we
14353 # assume the GNU/Linux dynamic linker is in use.
14354 dynamic_linker='GNU/Linux ld.so'
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14362 soname_spec='${libname}${release}${shared_ext}$major'
14363 shlibpath_var=LD_LIBRARY_PATH
14364 shlibpath_overrides_runpath=no
14365 hardcode_into_libs=yes
14366 dynamic_linker='GNU ld.so'
14373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14376 dynamic_linker='NetBSD (a.out) ld.so'
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 dynamic_linker='NetBSD ld.elf_so'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath=yes
14384 hardcode_into_libs=yes
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 shlibpath_var=LD_LIBRARY_PATH
14391 shlibpath_overrides_runpath=yes
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399 soname_spec='${libname}${release}${shared_ext}$major'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 shlibpath_overrides_runpath=yes
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14410 shlibpath_var=LD_LIBRARY_PATH
14411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14413 openbsd2.[89] | openbsd2.[89].*)
14414 shlibpath_overrides_runpath=no
14417 shlibpath_overrides_runpath=yes
14421 shlibpath_overrides_runpath=yes
14426 libname_spec='$name'
14429 library_names_spec='$libname${shared_ext} $libname.a'
14430 dynamic_linker='OS/2 ld.exe'
14431 shlibpath_var=LIBPATH
14434 osf3* | osf4* | osf5*)
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440 shlibpath_var=LD_LIBRARY_PATH
14441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14447 soname_spec='${libname}${release}${shared_ext}$major'
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 shlibpath_var=LD_LIBRARY_PATH
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457 soname_spec='${libname}${release}${shared_ext}$major'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 shlibpath_overrides_runpath=yes
14460 hardcode_into_libs=yes
14461 # ldd complains unless libraries are executable
14462 postinstall_cmds='chmod +x $lib'
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14468 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=yes
14471 if test "$with_gnu_ld" = yes; then
14477 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480 soname_spec='${libname}${release}${shared_ext}$major'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 case $host_vendor in
14484 shlibpath_overrides_runpath=no
14486 export_dynamic_flag_spec='${wl}-Blargedynsym'
14487 runpath_var=LD_RUN_PATH
14495 shlibpath_overrides_runpath=no
14496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14502 if test -d /usr/nec ;then
14504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14505 soname_spec='$libname${shared_ext}.$major'
14506 shlibpath_var=LD_LIBRARY_PATH
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 soname_spec='${libname}${release}${shared_ext}$major'
14514 shlibpath_var=LD_LIBRARY_PATH
14521 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14522 echo "${ECHO_T}$dynamic_linker" >&6
14523 test "$dynamic_linker" = no && can_build_shared=no
14525 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14527 hardcode_action_F77=
14528 if test -n "$hardcode_libdir_flag_spec_F77" || \
14529 test -n "$runpath_var F77" || \
14530 test "X$hardcode_automatic_F77"="Xyes" ; then
14532 # We can hardcode non-existant directories.
14533 if test "$hardcode_direct_F77" != no &&
14534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14535 # have to relink, otherwise we might link with an installed library
14536 # when we should be linking with a yet-to-be-installed one
14537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14538 test "$hardcode_minus_L_F77" != no; then
14539 # Linking always hardcodes the temporary library directory.
14540 hardcode_action_F77=relink
14542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14543 hardcode_action_F77=immediate
14546 # We cannot hardcode anything, or else we can only hardcode existing
14548 hardcode_action_F77=unsupported
14550 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14551 echo "${ECHO_T}$hardcode_action_F77" >&6
14553 if test "$hardcode_action_F77" = relink; then
14554 # Fast installation is not supported
14555 enable_fast_install=no
14556 elif test "$shlibpath_overrides_runpath" = yes ||
14557 test "$enable_shared" = no; then
14558 # Fast installation is not necessary
14559 enable_fast_install=needless
14564 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14565 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14566 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14567 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14568 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14569 echo "$as_me:$LINENO: result: yes" >&5
14570 echo "${ECHO_T}yes" >&6
14572 # FIXME - insert some real tests, host_os isn't really good enough
14575 if test -n "$STRIP" ; then
14576 striplib="$STRIP -x"
14577 echo "$as_me:$LINENO: result: yes" >&5
14578 echo "${ECHO_T}yes" >&6
14580 echo "$as_me:$LINENO: result: no" >&5
14581 echo "${ECHO_T}no" >&6
14585 echo "$as_me:$LINENO: result: no" >&5
14586 echo "${ECHO_T}no" >&6
14593 # The else clause should only fire when bootstrapping the
14594 # libtool distribution, otherwise you forgot to ship ltmain.sh
14595 # with your package, and you will get complaints that there are
14596 # no rules to generate ltmain.sh.
14597 if test -f "$ltmain"; then
14598 # See if we are running on zsh, and set the options which allow our commands through
14599 # without removal of \ escapes.
14600 if test -n "${ZSH_VERSION+set}" ; then
14601 setopt NO_GLOB_SUBST
14603 # Now quote all the things that may contain metacharacters while being
14604 # careful not to overquote the AC_SUBSTed values. We take copies of the
14605 # variables and quote the copies for generation of the libtool script.
14606 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14608 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14609 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14610 deplibs_check_method reload_flag reload_cmds need_locks \
14611 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14612 lt_cv_sys_global_symbol_to_c_name_address \
14613 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14614 old_postinstall_cmds old_postuninstall_cmds \
14618 lt_prog_compiler_wl_F77 \
14619 lt_prog_compiler_pic_F77 \
14620 lt_prog_compiler_static_F77 \
14621 lt_prog_compiler_no_builtin_flag_F77 \
14622 export_dynamic_flag_spec_F77 \
14623 thread_safe_flag_spec_F77 \
14624 whole_archive_flag_spec_F77 \
14625 enable_shared_with_static_runtimes_F77 \
14626 old_archive_cmds_F77 \
14627 old_archive_from_new_cmds_F77 \
14628 predep_objects_F77 \
14629 postdep_objects_F77 \
14632 compiler_lib_search_path_F77 \
14634 archive_expsym_cmds_F77 \
14635 postinstall_cmds_F77 \
14636 postuninstall_cmds_F77 \
14637 old_archive_from_expsyms_cmds_F77 \
14638 allow_undefined_flag_F77 \
14639 no_undefined_flag_F77 \
14640 export_symbols_cmds_F77 \
14641 hardcode_libdir_flag_spec_F77 \
14642 hardcode_libdir_flag_spec_ld_F77 \
14643 hardcode_libdir_separator_F77 \
14644 hardcode_automatic_F77 \
14646 module_expsym_cmds_F77 \
14647 lt_cv_prog_compiler_c_o_F77 \
14648 exclude_expsyms_F77 \
14649 include_expsyms_F77; do
14652 old_archive_cmds_F77 | \
14653 old_archive_from_new_cmds_F77 | \
14654 archive_cmds_F77 | \
14655 archive_expsym_cmds_F77 | \
14656 module_cmds_F77 | \
14657 module_expsym_cmds_F77 | \
14658 old_archive_from_expsyms_cmds_F77 | \
14659 export_symbols_cmds_F77 | \
14660 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14661 postinstall_cmds | postuninstall_cmds | \
14662 old_postinstall_cmds | old_postuninstall_cmds | \
14663 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14664 # Double-quote double-evaled strings.
14665 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14674 *'\$0 --fallback-echo"')
14675 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14681 cat <<__EOF__ >> "$cfgfile"
14682 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14686 # Shell to use when invoking shell scripts.
14689 # Whether or not to build shared libraries.
14690 build_libtool_libs=$enable_shared
14692 # Whether or not to build static libraries.
14693 build_old_libs=$enable_static
14695 # Whether or not to add -lc for building shared libraries.
14696 build_libtool_need_lc=$archive_cmds_need_lc_F77
14698 # Whether or not to disallow shared libs when runtime libs are static
14699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14701 # Whether or not to optimize for fast installation.
14702 fast_install=$enable_fast_install
14705 host_alias=$host_alias
14708 # An echo program that does not interpret backslashes.
14713 AR_FLAGS=$lt_AR_FLAGS
14718 # A language-specific compiler.
14719 CC=$lt_compiler_F77
14721 # Is the compiler the GNU C compiler?
14727 # The linker used to build libraries.
14730 # Whether we need hard or soft links.
14733 # A BSD-compatible nm program.
14736 # A symbol stripping program
14739 # Used to examine libraries when file_magic_cmd begins "file"
14740 MAGIC_CMD=$MAGIC_CMD
14742 # Used on cygwin: DLL creation program.
14745 # Used on cygwin: object dumper.
14748 # Used on cygwin: assembler.
14751 # The name of the directory that contains temporary libtool files.
14754 # How to create reloadable object files.
14755 reload_flag=$lt_reload_flag
14756 reload_cmds=$lt_reload_cmds
14758 # How to pass a linker flag through the compiler.
14759 wl=$lt_lt_prog_compiler_wl_F77
14761 # Object file suffix (normally "o").
14762 objext="$ac_objext"
14764 # Old archive suffix (normally "a").
14767 # Shared library suffix (normally ".so").
14770 # Executable file suffix (normally "").
14773 # Additional compiler flags for building library objects.
14774 pic_flag=$lt_lt_prog_compiler_pic_F77
14777 # What is the maximum length of a command?
14778 max_cmd_len=$lt_cv_sys_max_cmd_len
14780 # Does compiler simultaneously support -c and -o options?
14781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14783 # Must we lock files when doing compilation ?
14784 need_locks=$lt_need_locks
14786 # Do we need the lib prefix for modules?
14787 need_lib_prefix=$need_lib_prefix
14789 # Do we need a version for libraries?
14790 need_version=$need_version
14792 # Whether dlopen is supported.
14793 dlopen_support=$enable_dlopen
14795 # Whether dlopen of programs is supported.
14796 dlopen_self=$enable_dlopen_self
14798 # Whether dlopen of statically linked programs is supported.
14799 dlopen_self_static=$enable_dlopen_self_static
14801 # Compiler flag to prevent dynamic linking.
14802 link_static_flag=$lt_lt_prog_compiler_static_F77
14804 # Compiler flag to turn off builtin functions.
14805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14807 # Compiler flag to allow reflexive dlopens.
14808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14810 # Compiler flag to generate shared objects directly from archives.
14811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14813 # Compiler flag to generate thread-safe objects.
14814 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14816 # Library versioning type.
14817 version_type=$version_type
14819 # Format of library name prefix.
14820 libname_spec=$lt_libname_spec
14822 # List of archive names. First name is the real one, the rest are links.
14823 # The last name is the one that the linker finds with -lNAME.
14824 library_names_spec=$lt_library_names_spec
14826 # The coded name of the library, if different from the real name.
14827 soname_spec=$lt_soname_spec
14829 # Commands used to build and install an old-style archive.
14831 old_archive_cmds=$lt_old_archive_cmds_F77
14832 old_postinstall_cmds=$lt_old_postinstall_cmds
14833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14835 # Create an old-style archive from a shared archive.
14836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14838 # Create a temporary old-style archive to link instead of a shared archive.
14839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14841 # Commands used to build and install a shared archive.
14842 archive_cmds=$lt_archive_cmds_F77
14843 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14844 postinstall_cmds=$lt_postinstall_cmds
14845 postuninstall_cmds=$lt_postuninstall_cmds
14847 # Commands used to build a loadable module (assumed same as above if empty)
14848 module_cmds=$lt_module_cmds_F77
14849 module_expsym_cmds=$lt_module_expsym_cmds_F77
14851 # Commands to strip libraries.
14852 old_striplib=$lt_old_striplib
14853 striplib=$lt_striplib
14855 # Dependencies to place before the objects being linked to create a
14857 predep_objects=$lt_predep_objects_F77
14859 # Dependencies to place after the objects being linked to create a
14861 postdep_objects=$lt_postdep_objects_F77
14863 # Dependencies to place before the objects being linked to create a
14865 predeps=$lt_predeps_F77
14867 # Dependencies to place after the objects being linked to create a
14869 postdeps=$lt_postdeps_F77
14871 # The library search path used internally by the compiler when linking
14872 # a shared library.
14873 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14875 # Method to check whether dependent libraries are shared objects.
14876 deplibs_check_method=$lt_deplibs_check_method
14878 # Command to use when deplibs_check_method == file_magic.
14879 file_magic_cmd=$lt_file_magic_cmd
14881 # Flag that allows shared libraries with undefined symbols to be built.
14882 allow_undefined_flag=$lt_allow_undefined_flag_F77
14884 # Flag that forces no undefined symbols.
14885 no_undefined_flag=$lt_no_undefined_flag_F77
14887 # Commands used to finish a libtool library installation in a directory.
14888 finish_cmds=$lt_finish_cmds
14890 # Same as above, but a single script fragment to be evaled but not shown.
14891 finish_eval=$lt_finish_eval
14893 # Take the output of nm and produce a listing of raw symbols and C names.
14894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14896 # Transform the output of nm in a proper C declaration
14897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14899 # Transform the output of nm in a C name address pair
14900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14902 # This is the shared library runtime path variable.
14903 runpath_var=$runpath_var
14905 # This is the shared library path variable.
14906 shlibpath_var=$shlibpath_var
14908 # Is shlibpath searched before the hard-coded library search path?
14909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14911 # How to hardcode a shared library path into an executable.
14912 hardcode_action=$hardcode_action_F77
14914 # Whether we should hardcode library paths into libraries.
14915 hardcode_into_libs=$hardcode_into_libs
14917 # Flag to hardcode \$libdir into a binary during linking.
14918 # This must work even if \$libdir does not exist.
14919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14921 # If ld is used when linking, flag to hardcode \$libdir into
14922 # a binary during linking. This must work even if \$libdir does
14924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14926 # Whether we need a single -rpath flag with a separated argument.
14927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14930 # resulting binary.
14931 hardcode_direct=$hardcode_direct_F77
14933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14934 # resulting binary.
14935 hardcode_minus_L=$hardcode_minus_L_F77
14937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14938 # the resulting binary.
14939 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14941 # Set to yes if building a shared library automatically hardcodes DIR into the library
14942 # and all subsequent libraries and executables linked against it.
14943 hardcode_automatic=$hardcode_automatic_F77
14945 # Variables whose values should be saved in libtool wrapper scripts and
14946 # restored at relink time.
14947 variables_saved_for_relink="$variables_saved_for_relink"
14949 # Whether libtool must link a program against all its dependency libraries.
14950 link_all_deplibs=$link_all_deplibs_F77
14952 # Compile-time system search path for libraries
14953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14955 # Run-time system search path for libraries
14956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14958 # Fix the shell variable \$srcfile for the compiler.
14959 fix_srcfile_path="$fix_srcfile_path_F77"
14961 # Set to yes if exported symbols are required.
14962 always_export_symbols=$always_export_symbols_F77
14964 # The commands to list exported symbols.
14965 export_symbols_cmds=$lt_export_symbols_cmds_F77
14967 # The commands to extract the exported symbol list from a shared archive.
14968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14970 # Symbols that should not be listed in the preloaded symbols.
14971 exclude_expsyms=$lt_exclude_expsyms_F77
14973 # Symbols that must always be exported.
14974 include_expsyms=$lt_include_expsyms_F77
14976 # ### END LIBTOOL TAG CONFIG: $tagname
14982 # If there is no Makefile yet, we rely on a make rule to execute
14983 # `config.status --recheck' to rerun these tests and create the
14984 # libtool script then.
14985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14986 if test -f "$ltmain_in"; then
14987 test -f Makefile && make "$ltmain"
14993 ac_cpp='$CPP $CPPFLAGS'
14994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15006 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15010 # Source file extension for Java test sources.
15013 # Object file extension for compiled Java test sources.
15017 # Code to be used in simple compile tests
15018 lt_simple_compile_test_code="class foo {}\n"
15020 # Code to be used in simple link tests
15021 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15023 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15025 # If no C compiler was specified, use CC.
15028 # Allow CC to be a program name with arguments.
15032 # Allow CC to be a program name with arguments.
15038 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15039 archive_cmds_need_lc_GCJ=no
15042 lt_prog_compiler_no_builtin_flag_GCJ=
15044 if test "$GCC" = yes; then
15045 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15048 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15049 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15050 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 lt_cv_prog_compiler_rtti_exceptions=no
15054 ac_outfile=conftest.$ac_objext
15055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15056 lt_compiler_flag="-fno-rtti -fno-exceptions"
15057 # Insert the option either (1) after the last *FLAGS variable, or
15058 # (2) before a word containing "conftest.", or (3) at the end.
15059 # Note that $ac_compile itself does not contain backslashes and begins
15060 # with a dollar sign (not a hyphen), so the echo should work correctly.
15061 # The option is referenced via a variable to avoid confusing sed.
15062 lt_compile=`echo "$ac_compile" | $SED \
15063 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15065 -e 's:$: $lt_compiler_flag:'`
15066 (eval echo "\"\$as_me:15066: $lt_compile\"" >&5)
15067 (eval "$lt_compile" 2>conftest.err)
15069 cat conftest.err >&5
15070 echo "$as_me:15070: \$? = $ac_status" >&5
15071 if (exit $ac_status) && test -s "$ac_outfile"; then
15072 # The compiler can only warn and ignore the option if not recognized
15073 # So say no if there are warnings
15074 if test ! -s conftest.err; then
15075 lt_cv_prog_compiler_rtti_exceptions=yes
15081 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15082 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15084 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15085 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15092 lt_prog_compiler_wl_GCJ=
15093 lt_prog_compiler_pic_GCJ=
15094 lt_prog_compiler_static_GCJ=
15096 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15097 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15099 if test "$GCC" = yes; then
15100 lt_prog_compiler_wl_GCJ='-Wl,'
15101 lt_prog_compiler_static_GCJ='-static'
15105 # All AIX code is PIC.
15106 if test "$host_cpu" = ia64; then
15107 # AIX 5 now supports IA64 processor
15108 lt_prog_compiler_static_GCJ='-Bstatic'
15113 # FIXME: we need at least 68020 code to build shared libraries, but
15114 # adding the `-m68020' flag to GCC prevents building anything better,
15116 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15119 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15120 # PIC is the default for these OSes.
15123 mingw* | pw32* | os2*)
15124 # This hack is so that the source file can tell whether it is being
15125 # built for inclusion in a dll (and should export symbols for example).
15126 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15129 darwin* | rhapsody*)
15130 # PIC is the default on this platform
15131 # Common symbols not allowed in MH_DYLIB files
15132 lt_prog_compiler_pic_GCJ='-fno-common'
15136 # Just because we use GCC doesn't mean we suddenly get shared libraries
15137 # on systems that don't support them.
15138 lt_prog_compiler_can_build_shared_GCJ=no
15143 if test -d /usr/nec; then
15144 lt_prog_compiler_pic_GCJ=-Kconform_pic
15149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15150 # not for PA HP-UX.
15151 case "$host_cpu" in
15156 lt_prog_compiler_pic_GCJ='-fPIC'
15162 lt_prog_compiler_pic_GCJ='-fPIC'
15166 # PORTME Check for flag to pass linker flags through the system compiler.
15169 lt_prog_compiler_wl_GCJ='-Wl,'
15170 if test "$host_cpu" = ia64; then
15171 # AIX 5 now supports IA64 processor
15172 lt_prog_compiler_static_GCJ='-Bstatic'
15174 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15178 mingw* | pw32* | os2*)
15179 # This hack is so that the source file can tell whether it is being
15180 # built for inclusion in a dll (and should export symbols for example).
15181 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15184 hpux9* | hpux10* | hpux11*)
15185 lt_prog_compiler_wl_GCJ='-Wl,'
15186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15187 # not for PA HP-UX.
15188 case "$host_cpu" in
15193 lt_prog_compiler_pic_GCJ='+Z'
15196 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15197 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15200 irix5* | irix6* | nonstopux*)
15201 lt_prog_compiler_wl_GCJ='-Wl,'
15202 # PIC (with -KPIC) is the default.
15203 lt_prog_compiler_static_GCJ='-non_shared'
15207 lt_prog_compiler_pic_GCJ='-KPIC'
15208 lt_prog_compiler_static_GCJ='-Bstatic'
15214 lt_prog_compiler_wl_GCJ='-Wl,'
15215 lt_prog_compiler_pic_GCJ='-KPIC'
15216 lt_prog_compiler_static_GCJ='-static'
15219 lt_prog_compiler_wl_GCJ='-Wl,'
15220 # All Alpha code is PIC.
15221 lt_prog_compiler_static_GCJ='-non_shared'
15226 osf3* | osf4* | osf5*)
15227 lt_prog_compiler_wl_GCJ='-Wl,'
15228 # All OSF/1 code is PIC.
15229 lt_prog_compiler_static_GCJ='-non_shared'
15233 lt_prog_compiler_pic_GCJ='-Kpic'
15234 lt_prog_compiler_static_GCJ='-dn'
15238 lt_prog_compiler_wl_GCJ='-Wl,'
15239 lt_prog_compiler_pic_GCJ='-KPIC'
15240 lt_prog_compiler_static_GCJ='-Bstatic'
15244 lt_prog_compiler_wl_GCJ='-Qoption ld '
15245 lt_prog_compiler_pic_GCJ='-PIC'
15246 lt_prog_compiler_static_GCJ='-Bstatic'
15249 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15250 lt_prog_compiler_wl_GCJ='-Wl,'
15251 lt_prog_compiler_pic_GCJ='-KPIC'
15252 lt_prog_compiler_static_GCJ='-Bstatic'
15256 if test -d /usr/nec ;then
15257 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15258 lt_prog_compiler_static_GCJ='-Bstatic'
15263 lt_prog_compiler_pic_GCJ='-pic'
15264 lt_prog_compiler_static_GCJ='-Bstatic'
15268 lt_prog_compiler_can_build_shared_GCJ=no
15273 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15274 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15277 # Check to make sure the PIC flag actually works.
15279 if test -n "$lt_prog_compiler_pic_GCJ"; then
15281 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15282 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15283 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 lt_prog_compiler_pic_works_GCJ=no
15287 ac_outfile=conftest.$ac_objext
15288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15289 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15290 # Insert the option either (1) after the last *FLAGS variable, or
15291 # (2) before a word containing "conftest.", or (3) at the end.
15292 # Note that $ac_compile itself does not contain backslashes and begins
15293 # with a dollar sign (not a hyphen), so the echo should work correctly.
15294 # The option is referenced via a variable to avoid confusing sed.
15295 lt_compile=`echo "$ac_compile" | $SED \
15296 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15298 -e 's:$: $lt_compiler_flag:'`
15299 (eval echo "\"\$as_me:15299: $lt_compile\"" >&5)
15300 (eval "$lt_compile" 2>conftest.err)
15302 cat conftest.err >&5
15303 echo "$as_me:15303: \$? = $ac_status" >&5
15304 if (exit $ac_status) && test -s "$ac_outfile"; then
15305 # The compiler can only warn and ignore the option if not recognized
15306 # So say no if there are warnings
15307 if test ! -s conftest.err; then
15308 lt_prog_compiler_pic_works_GCJ=yes
15314 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15315 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15317 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15318 case $lt_prog_compiler_pic_GCJ in
15320 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15323 lt_prog_compiler_pic_GCJ=
15324 lt_prog_compiler_can_build_shared_GCJ=no
15329 # For platforms which do not support PIC, -DPIC is meaningless:
15331 lt_prog_compiler_pic_GCJ=
15334 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15338 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15339 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15340 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 lt_cv_prog_compiler_c_o_GCJ=no
15344 $rm -r conftest 2>/dev/null
15348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15350 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15351 # that will create temporary files in the current directory regardless of
15352 # the output directory. Thus, making CWD read-only will cause this test
15353 # to fail, enabling locking or at least warning the user not to do parallel
15357 lt_compiler_flag="-o out/conftest2.$ac_objext"
15358 # Insert the option either (1) after the last *FLAGS variable, or
15359 # (2) before a word containing "conftest.", or (3) at the end.
15360 # Note that $ac_compile itself does not contain backslashes and begins
15361 # with a dollar sign (not a hyphen), so the echo should work correctly.
15362 lt_compile=`echo "$ac_compile" | $SED \
15363 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15365 -e 's:$: $lt_compiler_flag:'`
15366 (eval echo "\"\$as_me:15366: $lt_compile\"" >&5)
15367 (eval "$lt_compile" 2>out/conftest.err)
15369 cat out/conftest.err >&5
15370 echo "$as_me:15370: \$? = $ac_status" >&5
15371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15373 # The compiler can only warn and ignore the option if not recognized
15374 # So say no if there are warnings
15375 if test ! -s out/conftest.err; then
15376 lt_cv_prog_compiler_c_o_GCJ=yes
15381 # SGI C++ compiler will create directory out/ii_files/ for
15382 # template instantiation
15383 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15384 $rm out/* && rmdir out
15390 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15391 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15394 hard_links="nottested"
15395 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15396 # do not overwrite the value of need_locks provided by the user
15397 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15398 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15403 ln conftest.a conftest.b 2>&5 || hard_links=no
15404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15405 echo "$as_me:$LINENO: result: $hard_links" >&5
15406 echo "${ECHO_T}$hard_links" >&6
15407 if test "$hard_links" = no; then
15408 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15409 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15416 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15417 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15420 allow_undefined_flag_GCJ=
15421 enable_shared_with_static_runtimes_GCJ=no
15423 archive_expsym_cmds_GCJ=
15424 old_archive_From_new_cmds_GCJ=
15425 old_archive_from_expsyms_cmds_GCJ=
15426 export_dynamic_flag_spec_GCJ=
15427 whole_archive_flag_spec_GCJ=
15428 thread_safe_flag_spec_GCJ=
15429 hardcode_libdir_flag_spec_GCJ=
15430 hardcode_libdir_flag_spec_ld_GCJ=
15431 hardcode_libdir_separator_GCJ=
15432 hardcode_direct_GCJ=no
15433 hardcode_minus_L_GCJ=no
15434 hardcode_shlibpath_var_GCJ=unsupported
15435 link_all_deplibs_GCJ=unknown
15436 hardcode_automatic_GCJ=no
15438 module_expsym_cmds_GCJ=
15439 always_export_symbols_GCJ=no
15440 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15441 # include_expsyms should be a list of space-separated symbols to be *always*
15442 # included in the symbol list
15443 include_expsyms_GCJ=
15444 # exclude_expsyms can be an extended regexp of symbols to exclude
15445 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15447 # as well as any symbol that contains `d'.
15448 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15450 # platforms (ab)use it in PIC code, but their linkers get confused if
15451 # the symbol is explicitly referenced. Since portable code cannot
15452 # rely on this symbol name, it's probably fine to never include it in
15453 # preloaded symbol tables.
15454 extract_expsyms_cmds=
15457 cygwin* | mingw* | pw32*)
15458 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15459 # When not using gcc, we currently assume that we are using
15460 # Microsoft Visual C++.
15461 if test "$GCC" != yes; then
15471 if test "$with_gnu_ld" = yes; then
15472 # If archive_cmds runs LD, not CC, wlarc should be empty
15475 # See if GNU ld supports shared libraries.
15477 aix3* | aix4* | aix5*)
15478 # On AIX/PPC, the GNU linker is very broken
15479 if test "$host_cpu" != ia64; then
15483 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15484 *** to be unable to reliably create shared libraries on AIX.
15485 *** Therefore, libtool is disabling shared libraries support. If you
15486 *** really care for shared libraries, you may want to modify your PATH
15487 *** so that a non-GNU linker is found, and then restart.
15494 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)'
15495 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15496 hardcode_minus_L_GCJ=yes
15498 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15499 # that the semantics of dynamic libraries on AmigaOS, at least up
15500 # to version 4, is to share data among multiple programs linked
15501 # with the same dynamic library. Since this doesn't match the
15502 # behavior of shared libraries on other platforms, we can't use
15508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15509 allow_undefined_flag_GCJ=unsupported
15510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15511 # support --undefined. This deserves some investigation. FIXME
15512 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15518 cygwin* | mingw* | pw32*)
15519 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15520 # as there is no search path for DLLs.
15521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15522 allow_undefined_flag_GCJ=unsupported
15523 always_export_symbols_GCJ=no
15524 enable_shared_with_static_runtimes_GCJ=yes
15525 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15527 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15529 # If the export-symbols file already is a .def file (1st line
15530 # is EXPORTS), use it as is; otherwise, prepend...
15531 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15532 cp $export_symbols $output_objdir/$soname.def;
15534 echo EXPORTS > $output_objdir/$soname.def;
15535 cat $export_symbols >> $output_objdir/$soname.def;
15537 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15544 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15545 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15548 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15549 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15554 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15558 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15559 *** create shared libraries on Solaris systems. Therefore, libtool
15560 *** is disabling shared libraries support. We urge you to upgrade GNU
15561 *** binutils to release 2.9.1 or newer. Another option is to modify
15562 *** your PATH or compiler configuration so that the native linker is
15563 *** used, and then restart.
15566 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15567 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15568 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15575 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15577 hardcode_direct_GCJ=yes
15578 hardcode_shlibpath_var_GCJ=no
15582 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15583 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15584 archive_cmds_GCJ="$tmp_archive_cmds"
15585 supports_anon_versioning=no
15586 case `$LD -v 2>/dev/null` in
15587 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15588 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15589 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15590 *\ 2.11.*) ;; # other 2.11 versions
15591 *) supports_anon_versioning=yes ;;
15593 if test $supports_anon_versioning = yes; then
15594 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15596 $echo "local: *; };" >> $output_objdir/$libname.ver~
15597 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15599 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15608 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15609 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15616 if test "$ld_shlibs_GCJ" = yes; then
15617 runpath_var=LD_RUN_PATH
15618 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15619 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15620 # ancient GNU ld didn't support --whole-archive et. al.
15621 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15622 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15624 whole_archive_flag_spec_GCJ=
15628 # PORTME fill in a description of your system's linker (not GNU ld)
15631 allow_undefined_flag_GCJ=unsupported
15632 always_export_symbols_GCJ=yes
15633 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'
15634 # Note: this linker hardcodes the directories in LIBPATH if there
15635 # are no directories specified by -L.
15636 hardcode_minus_L_GCJ=yes
15637 if test "$GCC" = yes && test -z "$link_static_flag"; then
15638 # Neither direct hardcoding nor static linking is supported with a
15640 hardcode_direct_GCJ=unsupported
15645 if test "$host_cpu" = ia64; then
15646 # On IA64, the linker does run time linking by default, so we don't
15647 # have to do anything special.
15648 aix_use_runtimelinking=no
15649 exp_sym_flag='-Bexport'
15652 # If we're using GNU nm, then we don't want the "-C" option.
15653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15654 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15655 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'
15657 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'
15659 aix_use_runtimelinking=no
15661 # Test if we are trying to use run time linking or normal
15662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15663 # need to do runtime linking.
15664 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15665 for ld_flag in $LDFLAGS; do
15666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15667 aix_use_runtimelinking=yes
15673 exp_sym_flag='-bexport'
15674 no_entry_flag='-bnoentry'
15677 # When large executables or shared objects are built, AIX ld can
15678 # have problems creating the table of contents. If linking a library
15679 # or program results in "error TOC overflow" add -mminimal-toc to
15680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15683 archive_cmds_GCJ=''
15684 hardcode_direct_GCJ=yes
15685 hardcode_libdir_separator_GCJ=':'
15686 link_all_deplibs_GCJ=yes
15688 if test "$GCC" = yes; then
15689 case $host_os in aix4.012|aix4.012.*)
15690 # We only want to do this on AIX 4.2 and lower, the check
15691 # below for broken collect2 doesn't work under 4.3+
15692 collect2name=`${CC} -print-prog-name=collect2`
15693 if test -f "$collect2name" && \
15694 strings "$collect2name" | grep resolve_lib_name >/dev/null
15696 # We have reworked collect2
15697 hardcode_direct_GCJ=yes
15699 # We have old collect2
15700 hardcode_direct_GCJ=unsupported
15701 # It fails to find uninstalled libraries when the uninstalled
15702 # path is not listed in the libpath. Setting hardcode_minus_L
15703 # to unsupported forces relinking
15704 hardcode_minus_L_GCJ=yes
15705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15706 hardcode_libdir_separator_GCJ=
15709 shared_flag='-shared'
15712 if test "$host_cpu" = ia64; then
15713 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15714 # chokes on -Wl,-G. The following line is correct:
15717 if test "$aix_use_runtimelinking" = yes; then
15718 shared_flag='${wl}-G'
15720 shared_flag='${wl}-bM:SRE'
15725 # It seems that -bexpall does not export symbols beginning with
15726 # underscore (_), so it is better to generate a list of symbols to export.
15727 always_export_symbols_GCJ=yes
15728 if test "$aix_use_runtimelinking" = yes; then
15729 # Warning - without using the other runtime loading flags (-brtl),
15730 # -berok will link without error, but may produce a broken library.
15731 allow_undefined_flag_GCJ='-berok'
15732 # Determine the default libpath from the value encoded in an empty executable.
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>conftest.er1
15752 grep -v '^ *+' conftest.er1 >conftest.err
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -z "$ac_c_werror_flag"
15758 || test ! -s conftest.err'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest$ac_exeext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15773 # Check for a 64-bit object if we didn't find anything.
15774 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; }
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15781 rm -f conftest.err conftest.$ac_objext \
15782 conftest$ac_exeext conftest.$ac_ext
15783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15785 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15786 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"
15788 if test "$host_cpu" = ia64; then
15789 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15790 allow_undefined_flag_GCJ="-z nodefs"
15791 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"
15793 # Determine the default libpath from the value encoded in an empty executable.
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15809 rm -f conftest.$ac_objext conftest$ac_exeext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811 (eval $ac_link) 2>conftest.er1
15813 grep -v '^ *+' conftest.er1 >conftest.err
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag"
15819 || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest$ac_exeext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15834 # Check for a 64-bit object if we didn't find anything.
15835 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; }
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15842 rm -f conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
15844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15846 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15847 # Warning - without using the other run time loading flags,
15848 # -berok will link without error, but may produce a broken library.
15849 no_undefined_flag_GCJ=' ${wl}-bernotok'
15850 allow_undefined_flag_GCJ=' ${wl}-berok'
15851 # -bexpall does not export symbols beginning with underscore (_)
15852 always_export_symbols_GCJ=yes
15853 # Exported symbols can be pulled into shared objects from archives
15854 whole_archive_flag_spec_GCJ=' '
15855 archive_cmds_need_lc_GCJ=yes
15856 # This is similar to how AIX traditionally builds it's shared libraries.
15857 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'
15863 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)'
15864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15865 hardcode_minus_L_GCJ=yes
15866 # see comment about different semantics on the GNU ld section
15871 export_dynamic_flag_spec_GCJ=-rdynamic
15874 cygwin* | mingw* | pw32*)
15875 # When not using gcc, we currently assume that we are using
15876 # Microsoft Visual C++.
15877 # hardcode_libdir_flag_spec is actually meaningless, as there is
15878 # no search path for DLLs.
15879 hardcode_libdir_flag_spec_GCJ=' '
15880 allow_undefined_flag_GCJ=unsupported
15881 # Tell ltmain to make .lib files, not .a files.
15883 # Tell ltmain to make .dll files, not .so files.
15885 # FIXME: Setting linknames here is a bad hack.
15886 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15887 # The linker will automatically build a .lib file if we build a DLL.
15888 old_archive_From_new_cmds_GCJ='true'
15889 # FIXME: Should let the user specify the lib program.
15890 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15891 fix_srcfile_path='`cygpath -w "$srcfile"`'
15892 enable_shared_with_static_runtimes_GCJ=yes
15895 darwin* | rhapsody*)
15896 if test "$GXX" = yes ; then
15897 archive_cmds_need_lc_GCJ=no
15899 rhapsody* | darwin1.[012])
15900 allow_undefined_flag_GCJ='-undefined suppress'
15903 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15904 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15906 case ${MACOSX_DEPLOYMENT_TARGET} in
15908 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15911 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15917 lt_int_apple_cc_single_mod=no
15918 output_verbose_link_cmd='echo'
15919 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15920 lt_int_apple_cc_single_mod=yes
15922 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15923 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15925 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15927 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15928 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15929 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15930 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15932 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15934 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}'
15935 hardcode_direct_GCJ=no
15936 hardcode_automatic_GCJ=yes
15937 hardcode_shlibpath_var_GCJ=unsupported
15938 whole_archive_flag_spec_GCJ='-all_load $convenience'
15939 link_all_deplibs_GCJ=yes
15946 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15948 hardcode_shlibpath_var_GCJ=no
15955 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15956 # support. Future versions do this automatically, but an explicit c++rt0.o
15957 # does not break anything, and helps significantly (at the cost of a little
15960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15961 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15962 hardcode_direct_GCJ=yes
15963 hardcode_shlibpath_var_GCJ=no
15966 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15968 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15969 hardcode_direct_GCJ=yes
15970 hardcode_minus_L_GCJ=yes
15971 hardcode_shlibpath_var_GCJ=no
15974 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15975 freebsd* | kfreebsd*-gnu)
15976 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15977 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15978 hardcode_direct_GCJ=yes
15979 hardcode_shlibpath_var_GCJ=no
15983 if test "$GCC" = yes; then
15984 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'
15986 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'
15988 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15989 hardcode_libdir_separator_GCJ=:
15990 hardcode_direct_GCJ=yes
15992 # hardcode_minus_L: Not really in the search PATH,
15993 # but as the default location of the library.
15994 hardcode_minus_L_GCJ=yes
15995 export_dynamic_flag_spec_GCJ='${wl}-E'
15999 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16000 case "$host_cpu" in
16002 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16005 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16009 case "$host_cpu" in
16011 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16014 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16018 if test "$with_gnu_ld" = no; then
16019 case "$host_cpu" in
16021 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16022 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16023 hardcode_libdir_separator_GCJ=:
16024 hardcode_direct_GCJ=no
16025 hardcode_shlibpath_var_GCJ=no
16028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16029 hardcode_direct_GCJ=no
16030 hardcode_shlibpath_var_GCJ=no
16032 # hardcode_minus_L: Not really in the search PATH,
16033 # but as the default location of the library.
16034 hardcode_minus_L_GCJ=yes
16037 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16038 hardcode_libdir_separator_GCJ=:
16039 hardcode_direct_GCJ=yes
16040 export_dynamic_flag_spec_GCJ='${wl}-E'
16042 # hardcode_minus_L: Not really in the search PATH,
16043 # but as the default location of the library.
16044 hardcode_minus_L_GCJ=yes
16050 irix5* | irix6* | nonstopux*)
16051 if test "$GCC" = yes; then
16052 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'
16054 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'
16055 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16058 hardcode_libdir_separator_GCJ=:
16059 link_all_deplibs_GCJ=yes
16063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16064 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16066 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16068 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16069 hardcode_direct_GCJ=yes
16070 hardcode_shlibpath_var_GCJ=no
16074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16075 hardcode_direct_GCJ=yes
16076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16077 hardcode_libdir_separator_GCJ=:
16078 hardcode_shlibpath_var_GCJ=no
16082 hardcode_direct_GCJ=yes
16083 hardcode_shlibpath_var_GCJ=no
16084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16085 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16087 export_dynamic_flag_spec_GCJ='${wl}-E'
16090 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16091 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16092 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16095 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16096 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16103 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16104 hardcode_minus_L_GCJ=yes
16105 allow_undefined_flag_GCJ=unsupported
16106 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'
16107 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16111 if test "$GCC" = yes; then
16112 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16113 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'
16115 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16116 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'
16118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16119 hardcode_libdir_separator_GCJ=:
16122 osf4* | osf5*) # as osf3* with the addition of -msym flag
16123 if test "$GCC" = yes; then
16124 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16125 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'
16126 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16128 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16129 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'
16130 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~
16131 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16133 # Both c and cxx compiler support -rpath directly
16134 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16136 hardcode_libdir_separator_GCJ=:
16140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141 hardcode_shlibpath_var_GCJ=no
16142 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16143 runpath_var=LD_RUN_PATH
16144 hardcode_runpath_var=yes
16148 no_undefined_flag_GCJ=' -z text'
16149 if test "$GCC" = yes; then
16150 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16151 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16152 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16154 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16156 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16158 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16159 hardcode_shlibpath_var_GCJ=no
16161 solaris2.[0-5] | solaris2.[0-5].*) ;;
16162 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16163 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16165 link_all_deplibs_GCJ=yes
16169 if test "x$host_vendor" = xsequent; then
16170 # Use $CC to link under sequent, because it throws in some extra .o
16171 # files that make .init and .fini sections work.
16172 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16174 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16177 hardcode_direct_GCJ=yes
16178 hardcode_minus_L_GCJ=yes
16179 hardcode_shlibpath_var_GCJ=no
16183 case $host_vendor in
16185 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_direct_GCJ=yes # is this really true???
16189 ## LD is ld it makes a PLAMLIB
16190 ## CC just makes a GrossModule.
16191 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16192 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16193 hardcode_direct_GCJ=no
16196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16200 runpath_var='LD_RUN_PATH'
16201 hardcode_shlibpath_var_GCJ=no
16205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16206 hardcode_shlibpath_var_GCJ=no
16207 export_dynamic_flag_spec_GCJ='-Bexport'
16211 if test -d /usr/nec; then
16212 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16213 hardcode_shlibpath_var_GCJ=no
16214 runpath_var=LD_RUN_PATH
16215 hardcode_runpath_var=yes
16221 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16222 hardcode_direct_GCJ=yes
16223 hardcode_minus_L_GCJ=no
16224 hardcode_shlibpath_var_GCJ=no
16225 hardcode_runpath_var=yes
16226 runpath_var=LD_RUN_PATH
16229 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16230 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16231 if test "$GCC" = yes; then
16232 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16234 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16236 runpath_var='LD_RUN_PATH'
16237 hardcode_shlibpath_var_GCJ=no
16241 no_undefined_flag_GCJ=' -z text'
16242 # $CC -shared without GNU ld will not create a library from C++
16243 # object files and a static libstdc++, better avoid it by now
16244 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16246 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16247 hardcode_libdir_flag_spec_GCJ=
16248 hardcode_shlibpath_var_GCJ=no
16249 runpath_var='LD_RUN_PATH'
16253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16254 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16255 hardcode_shlibpath_var_GCJ=no
16264 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16265 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16266 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16268 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16269 if test "$GCC" = yes; then
16270 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16274 # Do we need to explicitly link libc?
16276 case "x$archive_cmds_need_lc_GCJ" in
16278 # Assume -lc should be added
16279 archive_cmds_need_lc_GCJ=yes
16281 if test "$enable_shared" = yes && test "$GCC" = yes; then
16282 case $archive_cmds_GCJ in
16284 # FIXME: we may have to deal with multi-command sequences.
16287 # Test whether the compiler implicitly links with -lc since on some
16288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16289 # to ld, don't add -lc before -lgcc.
16290 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16291 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } 2>conftest.err; then
16302 libobjs=conftest.$ac_objext
16304 wl=$lt_prog_compiler_wl_GCJ
16310 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16311 allow_undefined_flag_GCJ=
16312 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16313 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }
16318 archive_cmds_need_lc_GCJ=no
16320 archive_cmds_need_lc_GCJ=yes
16322 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16324 cat conftest.err 1>&5
16327 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16328 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16335 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16336 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16337 library_names_spec=
16338 libname_spec='lib$name'
16342 postuninstall_cmds=
16346 shlibpath_overrides_runpath=unknown
16348 dynamic_linker="$host_os ld.so"
16349 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16350 if test "$GCC" = yes; then
16351 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16352 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16353 # if the path contains ";" then we assume it to be the separator
16354 # otherwise default to the standard path separator (i.e. ":") - it is
16355 # assumed that no part of a normal pathname contains ";" but that should
16356 # okay in the real world where ";" in dirpaths is itself problematic.
16357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16362 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16364 need_lib_prefix=unknown
16365 hardcode_into_libs=no
16367 # when you set need_version to no, make sure it does not cause -set_version
16368 # flags to be left without arguments
16369 need_version=unknown
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16375 shlibpath_var=LIBPATH
16377 # AIX 3 has no versioning support, so we append a major version to the name.
16378 soname_spec='${libname}${release}${shared_ext}$major'
16385 hardcode_into_libs=yes
16386 if test "$host_cpu" = ia64; then
16387 # AIX 5 supports IA64
16388 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16389 shlibpath_var=LD_LIBRARY_PATH
16391 # With GCC up to 2.95.x, collect2 would create an import file
16392 # for dependence libraries. The import file would start with
16393 # the line `#! .'. This would cause the generated library to
16394 # depend on `.', always an invalid library. This was fixed in
16395 # development snapshots of GCC prior to 3.0.
16397 aix4 | aix4.[01] | aix4.[01].*)
16398 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16403 can_build_shared=no
16407 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16408 # soname into executable. Probably we can add versioning support to
16409 # collect2, so additional links can be useful in future.
16410 if test "$aix_use_runtimelinking" = yes; then
16411 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16412 # instead of lib<name>.a to let people know that these are not
16413 # typical AIX shared libraries.
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 # We preserve .a as extension for shared libraries through AIX4.2
16417 # and later when we are not doing run time linking.
16418 library_names_spec='${libname}${release}.a $libname.a'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16421 shlibpath_var=LIBPATH
16426 library_names_spec='$libname.ixlibrary $libname.a'
16427 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16428 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'
16432 library_names_spec='${libname}${shared_ext}'
16433 dynamic_linker="$host_os ld.so"
16434 shlibpath_var=LIBRARY_PATH
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16443 shlibpath_var=LD_LIBRARY_PATH
16444 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16445 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16446 # the default ld.so.conf also contains /usr/contrib/lib and
16447 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16448 # libtool to hard-code these into programs
16451 cygwin* | mingw* | pw32*)
16452 version_type=windows
16457 case $GCC,$host_os in
16458 yes,cygwin* | yes,mingw* | yes,pw32*)
16459 library_names_spec='$libname.dll.a'
16460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16461 postinstall_cmds='base_file=`basename \${file}`~
16462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16463 dldir=$destdir/`dirname \$dlpath`~
16464 test -d \$dldir || mkdir -p \$dldir~
16465 $install_prog $dir/$dlname \$dldir/$dlname'
16466 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16467 dlpath=$dir/\$dldll~
16469 shlibpath_overrides_runpath=yes
16473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16474 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16475 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16478 # MinGW DLLs use traditional 'lib' prefix
16479 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16480 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16481 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16482 # It is most probably a Windows format PATH printed by
16483 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16484 # path with ; separators, and with drive letters. We can handle the
16485 # drive letters (cygwin fileutils understands them), so leave them,
16486 # especially as we might pass files found there to a mingw objdump,
16487 # which wouldn't understand a cygwinified path. Ahh.
16488 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16494 # pw32 DLLs use 'pw' prefix rather than 'lib'
16495 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16501 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16504 dynamic_linker='Win32 ld.exe'
16505 # FIXME: first we should search . and the directory the executable is in
16509 darwin* | rhapsody*)
16510 dynamic_linker="$host_os dyld"
16511 version_type=darwin
16514 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16515 soname_spec='${libname}${release}${major}$shared_ext'
16516 shlibpath_overrides_runpath=yes
16517 shlibpath_var=DYLD_LIBRARY_PATH
16518 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16519 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16520 if test "$GCC" = yes; then
16521 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"`
16523 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16533 soname_spec='${libname}${release}${shared_ext}$major'
16534 shlibpath_var=LD_LIBRARY_PATH
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 shlibpath_var=LD_LIBRARY_PATH
16548 shlibpath_overrides_runpath=no
16549 hardcode_into_libs=yes
16550 dynamic_linker='GNU ld.so'
16554 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16555 version_type=freebsd-$objformat
16556 case $version_type in
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16567 shlibpath_var=LD_LIBRARY_PATH
16570 shlibpath_overrides_runpath=yes
16572 freebsd3.01* | freebsdelf3.01*)
16573 shlibpath_overrides_runpath=yes
16574 hardcode_into_libs=yes
16577 shlibpath_overrides_runpath=no
16578 hardcode_into_libs=yes
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16588 soname_spec='${libname}${release}${shared_ext}$major'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 hardcode_into_libs=yes
16593 hpux9* | hpux10* | hpux11*)
16594 # Give a soname corresponding to the major version so that dld.sl refuses to
16595 # link against other versions.
16599 case "$host_cpu" in
16602 hardcode_into_libs=yes
16603 dynamic_linker="$host_os dld.so"
16604 shlibpath_var=LD_LIBRARY_PATH
16605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607 soname_spec='${libname}${release}${shared_ext}$major'
16608 if test "X$HPUX_IA64_MODE" = X32; then
16609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16617 hardcode_into_libs=yes
16618 dynamic_linker="$host_os dld.sl"
16619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16628 dynamic_linker="$host_os dld.sl"
16629 shlibpath_var=SHLIB_PATH
16630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16635 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16636 postinstall_cmds='chmod 555 $lib'
16639 irix5* | irix6* | nonstopux*)
16641 nonstopux*) version_type=nonstopux ;;
16643 if test "$lt_cv_prog_gnu_ld" = yes; then
16651 soname_spec='${libname}${release}${shared_ext}$major'
16652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16654 irix5* | nonstopux*)
16655 libsuff= shlibsuff=
16658 case $LD in # libtool.m4 will add one of these switches to LD
16659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16660 libsuff= shlibsuff= libmagic=32-bit;;
16661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16662 libsuff=32 shlibsuff=N32 libmagic=N32;;
16663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16665 *) libsuff= shlibsuff= libmagic=never-match;;
16669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16670 shlibpath_overrides_runpath=no
16671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16673 hardcode_into_libs=yes
16676 # No shared lib support for Linux oldld, aout, or coff.
16677 linux*oldld* | linux*aout* | linux*coff*)
16681 # This must be Linux ELF.
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath=no
16691 # This implies no fast_install, which is unacceptable.
16692 # Some rework will be needed to allow for fast_install
16693 # before this can be enabled.
16694 hardcode_into_libs=yes
16696 # /usr/X11R6/lib and /usr/local/lib are common enough...
16697 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
16699 # We used to test for /lib/ld.so.1 and disable shared libraries on
16700 # powerpc, because MkLinux only supported shared libraries with the
16701 # GNU dynamic linker. Since this was broken with cross compilers,
16702 # most powerpc-linux boxes support dynamic linking these days and
16703 # people can always --disable-shared, the test was removed, and we
16704 # assume the GNU/Linux dynamic linker is in use.
16705 dynamic_linker='GNU/Linux ld.so'
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=no
16716 hardcode_into_libs=yes
16717 dynamic_linker='GNU ld.so'
16724 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16727 dynamic_linker='NetBSD (a.out) ld.so'
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 dynamic_linker='NetBSD ld.elf_so'
16733 shlibpath_var=LD_LIBRARY_PATH
16734 shlibpath_overrides_runpath=yes
16735 hardcode_into_libs=yes
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 shlibpath_overrides_runpath=yes
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=yes
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16764 openbsd2.[89] | openbsd2.[89].*)
16765 shlibpath_overrides_runpath=no
16768 shlibpath_overrides_runpath=yes
16772 shlibpath_overrides_runpath=yes
16777 libname_spec='$name'
16780 library_names_spec='$libname${shared_ext} $libname.a'
16781 dynamic_linker='OS/2 ld.exe'
16782 shlibpath_var=LIBPATH
16785 osf3* | osf4* | osf5*)
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16798 soname_spec='${libname}${release}${shared_ext}$major'
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800 shlibpath_var=LD_LIBRARY_PATH
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 shlibpath_overrides_runpath=yes
16811 hardcode_into_libs=yes
16812 # ldd complains unless libraries are executable
16813 postinstall_cmds='chmod +x $lib'
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 shlibpath_overrides_runpath=yes
16822 if test "$with_gnu_ld" = yes; then
16828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 case $host_vendor in
16835 shlibpath_overrides_runpath=no
16837 export_dynamic_flag_spec='${wl}-Blargedynsym'
16838 runpath_var=LD_RUN_PATH
16846 shlibpath_overrides_runpath=no
16847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16853 if test -d /usr/nec ;then
16855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16856 soname_spec='$libname${shared_ext}.$major'
16857 shlibpath_var=LD_LIBRARY_PATH
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 shlibpath_var=LD_LIBRARY_PATH
16872 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16873 echo "${ECHO_T}$dynamic_linker" >&6
16874 test "$dynamic_linker" = no && can_build_shared=no
16876 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16878 hardcode_action_GCJ=
16879 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16880 test -n "$runpath_var GCJ" || \
16881 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16883 # We can hardcode non-existant directories.
16884 if test "$hardcode_direct_GCJ" != no &&
16885 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16886 # have to relink, otherwise we might link with an installed library
16887 # when we should be linking with a yet-to-be-installed one
16888 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16889 test "$hardcode_minus_L_GCJ" != no; then
16890 # Linking always hardcodes the temporary library directory.
16891 hardcode_action_GCJ=relink
16893 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16894 hardcode_action_GCJ=immediate
16897 # We cannot hardcode anything, or else we can only hardcode existing
16899 hardcode_action_GCJ=unsupported
16901 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16902 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16904 if test "$hardcode_action_GCJ" = relink; then
16905 # Fast installation is not supported
16906 enable_fast_install=no
16907 elif test "$shlibpath_overrides_runpath" = yes ||
16908 test "$enable_shared" = no; then
16909 # Fast installation is not necessary
16910 enable_fast_install=needless
16915 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16916 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16917 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16918 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16919 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16920 echo "$as_me:$LINENO: result: yes" >&5
16921 echo "${ECHO_T}yes" >&6
16923 # FIXME - insert some real tests, host_os isn't really good enough
16926 if test -n "$STRIP" ; then
16927 striplib="$STRIP -x"
16928 echo "$as_me:$LINENO: result: yes" >&5
16929 echo "${ECHO_T}yes" >&6
16931 echo "$as_me:$LINENO: result: no" >&5
16932 echo "${ECHO_T}no" >&6
16936 echo "$as_me:$LINENO: result: no" >&5
16937 echo "${ECHO_T}no" >&6
16942 if test "x$enable_dlopen" != xyes; then
16943 enable_dlopen=unknown
16944 enable_dlopen_self=unknown
16945 enable_dlopen_self_static=unknown
16952 lt_cv_dlopen="load_add_on"
16954 lt_cv_dlopen_self=yes
16958 lt_cv_dlopen="LoadLibrary"
16963 lt_cv_dlopen="dlopen"
16968 # if libdl is installed we need to link against it
16969 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 ac_check_lib_save_LIBS=$LIBS
16976 cat >conftest.$ac_ext <<_ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16983 /* Override any gcc2 internal prototype to avoid an error. */
16987 /* We use char because int might match the return type of a gcc2
16988 builtin and then its argument prototype would still apply. */
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000 (eval $ac_link) 2>conftest.er1
17002 grep -v '^ *+' conftest.er1 >conftest.err
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
17007 { ac_try='test -z "$ac_c_werror_flag"
17008 || test ! -s conftest.err'
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest$ac_exeext'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; }; then
17020 ac_cv_lib_dl_dlopen=yes
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ac_cv_lib_dl_dlopen=no
17027 rm -f conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17033 if test $ac_cv_lib_dl_dlopen = yes; then
17034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17037 lt_cv_dlopen="dyld"
17039 lt_cv_dlopen_self=yes
17046 echo "$as_me:$LINENO: checking for shl_load" >&5
17047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17048 if test "${ac_cv_func_shl_load+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 cat >conftest.$ac_ext <<_ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059 #define shl_load innocuous_shl_load
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char shl_load (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17067 # include <limits.h>
17069 # include <assert.h>
17074 /* Override any gcc2 internal prototype to avoid an error. */
17079 /* We use char because int might match the return type of a gcc2
17080 builtin and then its argument prototype would still apply. */
17082 /* The GNU C library defines this for functions which it implements
17083 to always fail with ENOSYS. Some functions are actually named
17084 something starting with __ and the normal name is an alias. */
17085 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17088 char (*f) () = shl_load;
17097 return f != shl_load;
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17104 (eval $ac_link) 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest$ac_exeext'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_cv_func_shl_load=yes
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_cv_func_shl_load=no
17131 rm -f conftest.err conftest.$ac_objext \
17132 conftest$ac_exeext conftest.$ac_ext
17134 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17135 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17136 if test $ac_cv_func_shl_load = yes; then
17137 lt_cv_dlopen="shl_load"
17139 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17140 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 ac_check_lib_save_LIBS=$LIBS
17146 cat >conftest.$ac_ext <<_ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17153 /* Override any gcc2 internal prototype to avoid an error. */
17157 /* We use char because int might match the return type of a gcc2
17158 builtin and then its argument prototype would still apply. */
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17170 (eval $ac_link) 2>conftest.er1
17172 grep -v '^ *+' conftest.er1 >conftest.err
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -z "$ac_c_werror_flag"
17178 || test ! -s conftest.err'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest$ac_exeext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_lib_dld_shl_load=yes
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 ac_cv_lib_dld_shl_load=no
17197 rm -f conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17199 LIBS=$ac_check_lib_save_LIBS
17201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17203 if test $ac_cv_lib_dld_shl_load = yes; then
17204 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17206 echo "$as_me:$LINENO: checking for dlopen" >&5
17207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17208 if test "${ac_cv_func_dlopen+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 cat >conftest.$ac_ext <<_ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17219 #define dlopen innocuous_dlopen
17221 /* System header to define __stub macros and hopefully few prototypes,
17222 which can conflict with char dlopen (); below.
17223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17224 <limits.h> exists even on freestanding compilers. */
17227 # include <limits.h>
17229 # include <assert.h>
17234 /* Override any gcc2 internal prototype to avoid an error. */
17239 /* We use char because int might match the return type of a gcc2
17240 builtin and then its argument prototype would still apply. */
17242 /* The GNU C library defines this for functions which it implements
17243 to always fail with ENOSYS. Some functions are actually named
17244 something starting with __ and the normal name is an alias. */
17245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17248 char (*f) () = dlopen;
17257 return f != dlopen;
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264 (eval $ac_link) 2>conftest.er1
17266 grep -v '^ *+' conftest.er1 >conftest.err
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try='test -z "$ac_c_werror_flag"
17272 || test ! -s conftest.err'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_cv_func_dlopen=yes
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 ac_cv_func_dlopen=no
17291 rm -f conftest.err conftest.$ac_objext \
17292 conftest$ac_exeext conftest.$ac_ext
17294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17296 if test $ac_cv_func_dlopen = yes; then
17297 lt_cv_dlopen="dlopen"
17299 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 ac_check_lib_save_LIBS=$LIBS
17306 cat >conftest.$ac_ext <<_ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17313 /* Override any gcc2 internal prototype to avoid an error. */
17317 /* We use char because int might match the return type of a gcc2
17318 builtin and then its argument prototype would still apply. */
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330 (eval $ac_link) 2>conftest.er1
17332 grep -v '^ *+' conftest.er1 >conftest.err
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } &&
17337 { ac_try='test -z "$ac_c_werror_flag"
17338 || test ! -s conftest.err'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_cv_lib_dl_dlopen=yes
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_cv_lib_dl_dlopen=no
17357 rm -f conftest.err conftest.$ac_objext \
17358 conftest$ac_exeext conftest.$ac_ext
17359 LIBS=$ac_check_lib_save_LIBS
17361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17363 if test $ac_cv_lib_dl_dlopen = yes; then
17364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17366 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 ac_check_lib_save_LIBS=$LIBS
17372 LIBS="-lsvld $LIBS"
17373 cat >conftest.$ac_ext <<_ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17380 /* Override any gcc2 internal prototype to avoid an error. */
17384 /* We use char because int might match the return type of a gcc2
17385 builtin and then its argument prototype would still apply. */
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397 (eval $ac_link) 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
17404 { ac_try='test -z "$ac_c_werror_flag"
17405 || test ! -s conftest.err'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest$ac_exeext'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ac_cv_lib_svld_dlopen=yes
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ac_cv_lib_svld_dlopen=no
17424 rm -f conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17426 LIBS=$ac_check_lib_save_LIBS
17428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17430 if test $ac_cv_lib_svld_dlopen = yes; then
17431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17433 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17434 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17435 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 ac_check_lib_save_LIBS=$LIBS
17440 cat >conftest.$ac_ext <<_ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17447 /* Override any gcc2 internal prototype to avoid an error. */
17451 /* We use char because int might match the return type of a gcc2
17452 builtin and then its argument prototype would still apply. */
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464 (eval $ac_link) 2>conftest.er1
17466 grep -v '^ *+' conftest.er1 >conftest.err
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag"
17472 || test ! -s conftest.err'
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; } &&
17478 { ac_try='test -s conftest$ac_exeext'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; }; then
17484 ac_cv_lib_dld_dld_link=yes
17486 echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17489 ac_cv_lib_dld_dld_link=no
17491 rm -f conftest.err conftest.$ac_objext \
17492 conftest$ac_exeext conftest.$ac_ext
17493 LIBS=$ac_check_lib_save_LIBS
17495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17497 if test $ac_cv_lib_dld_dld_link = yes; then
17498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17519 if test "x$lt_cv_dlopen" != xno; then
17525 case $lt_cv_dlopen in
17527 save_CPPFLAGS="$CPPFLAGS"
17528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17530 save_LDFLAGS="$LDFLAGS"
17531 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17534 LIBS="$lt_cv_dlopen_libs $LIBS"
17536 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17538 if test "${lt_cv_dlopen_self+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 if test "$cross_compiling" = yes; then :
17542 lt_cv_dlopen_self=cross
17544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17545 lt_status=$lt_dlunknown
17546 cat > conftest.$ac_ext <<EOF
17547 #line 17547 "configure"
17548 #include "confdefs.h"
17557 # define LT_DLGLOBAL RTLD_GLOBAL
17560 # define LT_DLGLOBAL DL_GLOBAL
17562 # define LT_DLGLOBAL 0
17566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17567 find out it does not work in some platform. */
17568 #ifndef LT_DLLAZY_OR_NOW
17570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17573 # define LT_DLLAZY_OR_NOW DL_LAZY
17576 # define LT_DLLAZY_OR_NOW RTLD_NOW
17579 # define LT_DLLAZY_OR_NOW DL_NOW
17581 # define LT_DLLAZY_OR_NOW 0
17589 extern "C" void exit (int);
17592 void fnord() { int i=42;}
17595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17596 int status = $lt_dlunknown;
17600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17602 /* dlclose (self); */
17608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17609 (eval $ac_link) 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17613 (./conftest; exit; ) 2>/dev/null
17615 case x$lt_status in
17616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17618 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17621 # compilation failed
17622 lt_cv_dlopen_self=no
17629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17632 if test "x$lt_cv_dlopen_self" = xyes; then
17633 LDFLAGS="$LDFLAGS $link_static_flag"
17634 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17636 if test "${lt_cv_dlopen_self_static+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 if test "$cross_compiling" = yes; then :
17640 lt_cv_dlopen_self_static=cross
17642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17643 lt_status=$lt_dlunknown
17644 cat > conftest.$ac_ext <<EOF
17645 #line 17645 "configure"
17646 #include "confdefs.h"
17655 # define LT_DLGLOBAL RTLD_GLOBAL
17658 # define LT_DLGLOBAL DL_GLOBAL
17660 # define LT_DLGLOBAL 0
17664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17665 find out it does not work in some platform. */
17666 #ifndef LT_DLLAZY_OR_NOW
17668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17671 # define LT_DLLAZY_OR_NOW DL_LAZY
17674 # define LT_DLLAZY_OR_NOW RTLD_NOW
17677 # define LT_DLLAZY_OR_NOW DL_NOW
17679 # define LT_DLLAZY_OR_NOW 0
17687 extern "C" void exit (int);
17690 void fnord() { int i=42;}
17693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17694 int status = $lt_dlunknown;
17698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17700 /* dlclose (self); */
17706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17707 (eval $ac_link) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17711 (./conftest; exit; ) 2>/dev/null
17713 case x$lt_status in
17714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17716 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17719 # compilation failed
17720 lt_cv_dlopen_self_static=no
17727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17731 CPPFLAGS="$save_CPPFLAGS"
17732 LDFLAGS="$save_LDFLAGS"
17737 case $lt_cv_dlopen_self in
17738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17739 *) enable_dlopen_self=unknown ;;
17742 case $lt_cv_dlopen_self_static in
17743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17744 *) enable_dlopen_self_static=unknown ;;
17749 # The else clause should only fire when bootstrapping the
17750 # libtool distribution, otherwise you forgot to ship ltmain.sh
17751 # with your package, and you will get complaints that there are
17752 # no rules to generate ltmain.sh.
17753 if test -f "$ltmain"; then
17754 # See if we are running on zsh, and set the options which allow our commands through
17755 # without removal of \ escapes.
17756 if test -n "${ZSH_VERSION+set}" ; then
17757 setopt NO_GLOB_SUBST
17759 # Now quote all the things that may contain metacharacters while being
17760 # careful not to overquote the AC_SUBSTed values. We take copies of the
17761 # variables and quote the copies for generation of the libtool script.
17762 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17764 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17765 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17766 deplibs_check_method reload_flag reload_cmds need_locks \
17767 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17768 lt_cv_sys_global_symbol_to_c_name_address \
17769 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17770 old_postinstall_cmds old_postuninstall_cmds \
17774 lt_prog_compiler_wl_GCJ \
17775 lt_prog_compiler_pic_GCJ \
17776 lt_prog_compiler_static_GCJ \
17777 lt_prog_compiler_no_builtin_flag_GCJ \
17778 export_dynamic_flag_spec_GCJ \
17779 thread_safe_flag_spec_GCJ \
17780 whole_archive_flag_spec_GCJ \
17781 enable_shared_with_static_runtimes_GCJ \
17782 old_archive_cmds_GCJ \
17783 old_archive_from_new_cmds_GCJ \
17784 predep_objects_GCJ \
17785 postdep_objects_GCJ \
17788 compiler_lib_search_path_GCJ \
17790 archive_expsym_cmds_GCJ \
17791 postinstall_cmds_GCJ \
17792 postuninstall_cmds_GCJ \
17793 old_archive_from_expsyms_cmds_GCJ \
17794 allow_undefined_flag_GCJ \
17795 no_undefined_flag_GCJ \
17796 export_symbols_cmds_GCJ \
17797 hardcode_libdir_flag_spec_GCJ \
17798 hardcode_libdir_flag_spec_ld_GCJ \
17799 hardcode_libdir_separator_GCJ \
17800 hardcode_automatic_GCJ \
17802 module_expsym_cmds_GCJ \
17803 lt_cv_prog_compiler_c_o_GCJ \
17804 exclude_expsyms_GCJ \
17805 include_expsyms_GCJ; do
17808 old_archive_cmds_GCJ | \
17809 old_archive_from_new_cmds_GCJ | \
17810 archive_cmds_GCJ | \
17811 archive_expsym_cmds_GCJ | \
17812 module_cmds_GCJ | \
17813 module_expsym_cmds_GCJ | \
17814 old_archive_from_expsyms_cmds_GCJ | \
17815 export_symbols_cmds_GCJ | \
17816 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17817 postinstall_cmds | postuninstall_cmds | \
17818 old_postinstall_cmds | old_postuninstall_cmds | \
17819 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17820 # Double-quote double-evaled strings.
17821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17830 *'\$0 --fallback-echo"')
17831 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17837 cat <<__EOF__ >> "$cfgfile"
17838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17842 # Shell to use when invoking shell scripts.
17845 # Whether or not to build shared libraries.
17846 build_libtool_libs=$enable_shared
17848 # Whether or not to build static libraries.
17849 build_old_libs=$enable_static
17851 # Whether or not to add -lc for building shared libraries.
17852 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17854 # Whether or not to disallow shared libs when runtime libs are static
17855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17857 # Whether or not to optimize for fast installation.
17858 fast_install=$enable_fast_install
17861 host_alias=$host_alias
17864 # An echo program that does not interpret backslashes.
17869 AR_FLAGS=$lt_AR_FLAGS
17874 # A language-specific compiler.
17875 CC=$lt_compiler_GCJ
17877 # Is the compiler the GNU C compiler?
17883 # The linker used to build libraries.
17886 # Whether we need hard or soft links.
17889 # A BSD-compatible nm program.
17892 # A symbol stripping program
17895 # Used to examine libraries when file_magic_cmd begins "file"
17896 MAGIC_CMD=$MAGIC_CMD
17898 # Used on cygwin: DLL creation program.
17901 # Used on cygwin: object dumper.
17904 # Used on cygwin: assembler.
17907 # The name of the directory that contains temporary libtool files.
17910 # How to create reloadable object files.
17911 reload_flag=$lt_reload_flag
17912 reload_cmds=$lt_reload_cmds
17914 # How to pass a linker flag through the compiler.
17915 wl=$lt_lt_prog_compiler_wl_GCJ
17917 # Object file suffix (normally "o").
17918 objext="$ac_objext"
17920 # Old archive suffix (normally "a").
17923 # Shared library suffix (normally ".so").
17926 # Executable file suffix (normally "").
17929 # Additional compiler flags for building library objects.
17930 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17933 # What is the maximum length of a command?
17934 max_cmd_len=$lt_cv_sys_max_cmd_len
17936 # Does compiler simultaneously support -c and -o options?
17937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17939 # Must we lock files when doing compilation ?
17940 need_locks=$lt_need_locks
17942 # Do we need the lib prefix for modules?
17943 need_lib_prefix=$need_lib_prefix
17945 # Do we need a version for libraries?
17946 need_version=$need_version
17948 # Whether dlopen is supported.
17949 dlopen_support=$enable_dlopen
17951 # Whether dlopen of programs is supported.
17952 dlopen_self=$enable_dlopen_self
17954 # Whether dlopen of statically linked programs is supported.
17955 dlopen_self_static=$enable_dlopen_self_static
17957 # Compiler flag to prevent dynamic linking.
17958 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17960 # Compiler flag to turn off builtin functions.
17961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17963 # Compiler flag to allow reflexive dlopens.
17964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17966 # Compiler flag to generate shared objects directly from archives.
17967 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17969 # Compiler flag to generate thread-safe objects.
17970 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17972 # Library versioning type.
17973 version_type=$version_type
17975 # Format of library name prefix.
17976 libname_spec=$lt_libname_spec
17978 # List of archive names. First name is the real one, the rest are links.
17979 # The last name is the one that the linker finds with -lNAME.
17980 library_names_spec=$lt_library_names_spec
17982 # The coded name of the library, if different from the real name.
17983 soname_spec=$lt_soname_spec
17985 # Commands used to build and install an old-style archive.
17987 old_archive_cmds=$lt_old_archive_cmds_GCJ
17988 old_postinstall_cmds=$lt_old_postinstall_cmds
17989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17991 # Create an old-style archive from a shared archive.
17992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17994 # Create a temporary old-style archive to link instead of a shared archive.
17995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17997 # Commands used to build and install a shared archive.
17998 archive_cmds=$lt_archive_cmds_GCJ
17999 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18000 postinstall_cmds=$lt_postinstall_cmds
18001 postuninstall_cmds=$lt_postuninstall_cmds
18003 # Commands used to build a loadable module (assumed same as above if empty)
18004 module_cmds=$lt_module_cmds_GCJ
18005 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18007 # Commands to strip libraries.
18008 old_striplib=$lt_old_striplib
18009 striplib=$lt_striplib
18011 # Dependencies to place before the objects being linked to create a
18013 predep_objects=$lt_predep_objects_GCJ
18015 # Dependencies to place after the objects being linked to create a
18017 postdep_objects=$lt_postdep_objects_GCJ
18019 # Dependencies to place before the objects being linked to create a
18021 predeps=$lt_predeps_GCJ
18023 # Dependencies to place after the objects being linked to create a
18025 postdeps=$lt_postdeps_GCJ
18027 # The library search path used internally by the compiler when linking
18028 # a shared library.
18029 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18031 # Method to check whether dependent libraries are shared objects.
18032 deplibs_check_method=$lt_deplibs_check_method
18034 # Command to use when deplibs_check_method == file_magic.
18035 file_magic_cmd=$lt_file_magic_cmd
18037 # Flag that allows shared libraries with undefined symbols to be built.
18038 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18040 # Flag that forces no undefined symbols.
18041 no_undefined_flag=$lt_no_undefined_flag_GCJ
18043 # Commands used to finish a libtool library installation in a directory.
18044 finish_cmds=$lt_finish_cmds
18046 # Same as above, but a single script fragment to be evaled but not shown.
18047 finish_eval=$lt_finish_eval
18049 # Take the output of nm and produce a listing of raw symbols and C names.
18050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18052 # Transform the output of nm in a proper C declaration
18053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18055 # Transform the output of nm in a C name address pair
18056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18058 # This is the shared library runtime path variable.
18059 runpath_var=$runpath_var
18061 # This is the shared library path variable.
18062 shlibpath_var=$shlibpath_var
18064 # Is shlibpath searched before the hard-coded library search path?
18065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18067 # How to hardcode a shared library path into an executable.
18068 hardcode_action=$hardcode_action_GCJ
18070 # Whether we should hardcode library paths into libraries.
18071 hardcode_into_libs=$hardcode_into_libs
18073 # Flag to hardcode \$libdir into a binary during linking.
18074 # This must work even if \$libdir does not exist.
18075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18077 # If ld is used when linking, flag to hardcode \$libdir into
18078 # a binary during linking. This must work even if \$libdir does
18080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18082 # Whether we need a single -rpath flag with a separated argument.
18083 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18085 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18086 # resulting binary.
18087 hardcode_direct=$hardcode_direct_GCJ
18089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18090 # resulting binary.
18091 hardcode_minus_L=$hardcode_minus_L_GCJ
18093 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18094 # the resulting binary.
18095 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18097 # Set to yes if building a shared library automatically hardcodes DIR into the library
18098 # and all subsequent libraries and executables linked against it.
18099 hardcode_automatic=$hardcode_automatic_GCJ
18101 # Variables whose values should be saved in libtool wrapper scripts and
18102 # restored at relink time.
18103 variables_saved_for_relink="$variables_saved_for_relink"
18105 # Whether libtool must link a program against all its dependency libraries.
18106 link_all_deplibs=$link_all_deplibs_GCJ
18108 # Compile-time system search path for libraries
18109 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18111 # Run-time system search path for libraries
18112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18114 # Fix the shell variable \$srcfile for the compiler.
18115 fix_srcfile_path="$fix_srcfile_path_GCJ"
18117 # Set to yes if exported symbols are required.
18118 always_export_symbols=$always_export_symbols_GCJ
18120 # The commands to list exported symbols.
18121 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18123 # The commands to extract the exported symbol list from a shared archive.
18124 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18126 # Symbols that should not be listed in the preloaded symbols.
18127 exclude_expsyms=$lt_exclude_expsyms_GCJ
18129 # Symbols that must always be exported.
18130 include_expsyms=$lt_include_expsyms_GCJ
18132 # ### END LIBTOOL TAG CONFIG: $tagname
18138 # If there is no Makefile yet, we rely on a make rule to execute
18139 # `config.status --recheck' to rerun these tests and create the
18140 # libtool script then.
18141 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18142 if test -f "$ltmain_in"; then
18143 test -f Makefile && make "$ltmain"
18149 ac_cpp='$CPP $CPPFLAGS'
18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18165 # Source file extension for RC test sources.
18168 # Object file extension for compiled RC test sources.
18172 # Code to be used in simple compile tests
18173 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18175 # Code to be used in simple link tests
18176 lt_simple_link_test_code="$lt_simple_compile_test_code"
18178 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18180 # If no C compiler was specified, use CC.
18183 # Allow CC to be a program name with arguments.
18187 # Allow CC to be a program name with arguments.
18192 lt_cv_prog_compiler_c_o_RC=yes
18194 # The else clause should only fire when bootstrapping the
18195 # libtool distribution, otherwise you forgot to ship ltmain.sh
18196 # with your package, and you will get complaints that there are
18197 # no rules to generate ltmain.sh.
18198 if test -f "$ltmain"; then
18199 # See if we are running on zsh, and set the options which allow our commands through
18200 # without removal of \ escapes.
18201 if test -n "${ZSH_VERSION+set}" ; then
18202 setopt NO_GLOB_SUBST
18204 # Now quote all the things that may contain metacharacters while being
18205 # careful not to overquote the AC_SUBSTed values. We take copies of the
18206 # variables and quote the copies for generation of the libtool script.
18207 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18209 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18210 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18211 deplibs_check_method reload_flag reload_cmds need_locks \
18212 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18213 lt_cv_sys_global_symbol_to_c_name_address \
18214 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18215 old_postinstall_cmds old_postuninstall_cmds \
18219 lt_prog_compiler_wl_RC \
18220 lt_prog_compiler_pic_RC \
18221 lt_prog_compiler_static_RC \
18222 lt_prog_compiler_no_builtin_flag_RC \
18223 export_dynamic_flag_spec_RC \
18224 thread_safe_flag_spec_RC \
18225 whole_archive_flag_spec_RC \
18226 enable_shared_with_static_runtimes_RC \
18227 old_archive_cmds_RC \
18228 old_archive_from_new_cmds_RC \
18229 predep_objects_RC \
18230 postdep_objects_RC \
18233 compiler_lib_search_path_RC \
18235 archive_expsym_cmds_RC \
18236 postinstall_cmds_RC \
18237 postuninstall_cmds_RC \
18238 old_archive_from_expsyms_cmds_RC \
18239 allow_undefined_flag_RC \
18240 no_undefined_flag_RC \
18241 export_symbols_cmds_RC \
18242 hardcode_libdir_flag_spec_RC \
18243 hardcode_libdir_flag_spec_ld_RC \
18244 hardcode_libdir_separator_RC \
18245 hardcode_automatic_RC \
18247 module_expsym_cmds_RC \
18248 lt_cv_prog_compiler_c_o_RC \
18249 exclude_expsyms_RC \
18250 include_expsyms_RC; do
18253 old_archive_cmds_RC | \
18254 old_archive_from_new_cmds_RC | \
18255 archive_cmds_RC | \
18256 archive_expsym_cmds_RC | \
18258 module_expsym_cmds_RC | \
18259 old_archive_from_expsyms_cmds_RC | \
18260 export_symbols_cmds_RC | \
18261 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18262 postinstall_cmds | postuninstall_cmds | \
18263 old_postinstall_cmds | old_postuninstall_cmds | \
18264 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18265 # Double-quote double-evaled strings.
18266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18275 *'\$0 --fallback-echo"')
18276 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18282 cat <<__EOF__ >> "$cfgfile"
18283 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18285 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18287 # Shell to use when invoking shell scripts.
18290 # Whether or not to build shared libraries.
18291 build_libtool_libs=$enable_shared
18293 # Whether or not to build static libraries.
18294 build_old_libs=$enable_static
18296 # Whether or not to add -lc for building shared libraries.
18297 build_libtool_need_lc=$archive_cmds_need_lc_RC
18299 # Whether or not to disallow shared libs when runtime libs are static
18300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18302 # Whether or not to optimize for fast installation.
18303 fast_install=$enable_fast_install
18306 host_alias=$host_alias
18309 # An echo program that does not interpret backslashes.
18314 AR_FLAGS=$lt_AR_FLAGS
18319 # A language-specific compiler.
18322 # Is the compiler the GNU C compiler?
18328 # The linker used to build libraries.
18331 # Whether we need hard or soft links.
18334 # A BSD-compatible nm program.
18337 # A symbol stripping program
18340 # Used to examine libraries when file_magic_cmd begins "file"
18341 MAGIC_CMD=$MAGIC_CMD
18343 # Used on cygwin: DLL creation program.
18346 # Used on cygwin: object dumper.
18349 # Used on cygwin: assembler.
18352 # The name of the directory that contains temporary libtool files.
18355 # How to create reloadable object files.
18356 reload_flag=$lt_reload_flag
18357 reload_cmds=$lt_reload_cmds
18359 # How to pass a linker flag through the compiler.
18360 wl=$lt_lt_prog_compiler_wl_RC
18362 # Object file suffix (normally "o").
18363 objext="$ac_objext"
18365 # Old archive suffix (normally "a").
18368 # Shared library suffix (normally ".so").
18371 # Executable file suffix (normally "").
18374 # Additional compiler flags for building library objects.
18375 pic_flag=$lt_lt_prog_compiler_pic_RC
18378 # What is the maximum length of a command?
18379 max_cmd_len=$lt_cv_sys_max_cmd_len
18381 # Does compiler simultaneously support -c and -o options?
18382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18384 # Must we lock files when doing compilation ?
18385 need_locks=$lt_need_locks
18387 # Do we need the lib prefix for modules?
18388 need_lib_prefix=$need_lib_prefix
18390 # Do we need a version for libraries?
18391 need_version=$need_version
18393 # Whether dlopen is supported.
18394 dlopen_support=$enable_dlopen
18396 # Whether dlopen of programs is supported.
18397 dlopen_self=$enable_dlopen_self
18399 # Whether dlopen of statically linked programs is supported.
18400 dlopen_self_static=$enable_dlopen_self_static
18402 # Compiler flag to prevent dynamic linking.
18403 link_static_flag=$lt_lt_prog_compiler_static_RC
18405 # Compiler flag to turn off builtin functions.
18406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18408 # Compiler flag to allow reflexive dlopens.
18409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18411 # Compiler flag to generate shared objects directly from archives.
18412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18414 # Compiler flag to generate thread-safe objects.
18415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18417 # Library versioning type.
18418 version_type=$version_type
18420 # Format of library name prefix.
18421 libname_spec=$lt_libname_spec
18423 # List of archive names. First name is the real one, the rest are links.
18424 # The last name is the one that the linker finds with -lNAME.
18425 library_names_spec=$lt_library_names_spec
18427 # The coded name of the library, if different from the real name.
18428 soname_spec=$lt_soname_spec
18430 # Commands used to build and install an old-style archive.
18432 old_archive_cmds=$lt_old_archive_cmds_RC
18433 old_postinstall_cmds=$lt_old_postinstall_cmds
18434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18436 # Create an old-style archive from a shared archive.
18437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18439 # Create a temporary old-style archive to link instead of a shared archive.
18440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18442 # Commands used to build and install a shared archive.
18443 archive_cmds=$lt_archive_cmds_RC
18444 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18445 postinstall_cmds=$lt_postinstall_cmds
18446 postuninstall_cmds=$lt_postuninstall_cmds
18448 # Commands used to build a loadable module (assumed same as above if empty)
18449 module_cmds=$lt_module_cmds_RC
18450 module_expsym_cmds=$lt_module_expsym_cmds_RC
18452 # Commands to strip libraries.
18453 old_striplib=$lt_old_striplib
18454 striplib=$lt_striplib
18456 # Dependencies to place before the objects being linked to create a
18458 predep_objects=$lt_predep_objects_RC
18460 # Dependencies to place after the objects being linked to create a
18462 postdep_objects=$lt_postdep_objects_RC
18464 # Dependencies to place before the objects being linked to create a
18466 predeps=$lt_predeps_RC
18468 # Dependencies to place after the objects being linked to create a
18470 postdeps=$lt_postdeps_RC
18472 # The library search path used internally by the compiler when linking
18473 # a shared library.
18474 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18476 # Method to check whether dependent libraries are shared objects.
18477 deplibs_check_method=$lt_deplibs_check_method
18479 # Command to use when deplibs_check_method == file_magic.
18480 file_magic_cmd=$lt_file_magic_cmd
18482 # Flag that allows shared libraries with undefined symbols to be built.
18483 allow_undefined_flag=$lt_allow_undefined_flag_RC
18485 # Flag that forces no undefined symbols.
18486 no_undefined_flag=$lt_no_undefined_flag_RC
18488 # Commands used to finish a libtool library installation in a directory.
18489 finish_cmds=$lt_finish_cmds
18491 # Same as above, but a single script fragment to be evaled but not shown.
18492 finish_eval=$lt_finish_eval
18494 # Take the output of nm and produce a listing of raw symbols and C names.
18495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18497 # Transform the output of nm in a proper C declaration
18498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18500 # Transform the output of nm in a C name address pair
18501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18503 # This is the shared library runtime path variable.
18504 runpath_var=$runpath_var
18506 # This is the shared library path variable.
18507 shlibpath_var=$shlibpath_var
18509 # Is shlibpath searched before the hard-coded library search path?
18510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18512 # How to hardcode a shared library path into an executable.
18513 hardcode_action=$hardcode_action_RC
18515 # Whether we should hardcode library paths into libraries.
18516 hardcode_into_libs=$hardcode_into_libs
18518 # Flag to hardcode \$libdir into a binary during linking.
18519 # This must work even if \$libdir does not exist.
18520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18522 # If ld is used when linking, flag to hardcode \$libdir into
18523 # a binary during linking. This must work even if \$libdir does
18525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18527 # Whether we need a single -rpath flag with a separated argument.
18528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18531 # resulting binary.
18532 hardcode_direct=$hardcode_direct_RC
18534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18535 # resulting binary.
18536 hardcode_minus_L=$hardcode_minus_L_RC
18538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18539 # the resulting binary.
18540 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18542 # Set to yes if building a shared library automatically hardcodes DIR into the library
18543 # and all subsequent libraries and executables linked against it.
18544 hardcode_automatic=$hardcode_automatic_RC
18546 # Variables whose values should be saved in libtool wrapper scripts and
18547 # restored at relink time.
18548 variables_saved_for_relink="$variables_saved_for_relink"
18550 # Whether libtool must link a program against all its dependency libraries.
18551 link_all_deplibs=$link_all_deplibs_RC
18553 # Compile-time system search path for libraries
18554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18556 # Run-time system search path for libraries
18557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18559 # Fix the shell variable \$srcfile for the compiler.
18560 fix_srcfile_path="$fix_srcfile_path_RC"
18562 # Set to yes if exported symbols are required.
18563 always_export_symbols=$always_export_symbols_RC
18565 # The commands to list exported symbols.
18566 export_symbols_cmds=$lt_export_symbols_cmds_RC
18568 # The commands to extract the exported symbol list from a shared archive.
18569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18571 # Symbols that should not be listed in the preloaded symbols.
18572 exclude_expsyms=$lt_exclude_expsyms_RC
18574 # Symbols that must always be exported.
18575 include_expsyms=$lt_include_expsyms_RC
18577 # ### END LIBTOOL TAG CONFIG: $tagname
18583 # If there is no Makefile yet, we rely on a make rule to execute
18584 # `config.status --recheck' to rerun these tests and create the
18585 # libtool script then.
18586 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18587 if test -f "$ltmain_in"; then
18588 test -f Makefile && make "$ltmain"
18594 ac_cpp='$CPP $CPPFLAGS'
18595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18604 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18605 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18606 { (exit 1); exit 1; }; }
18610 # Append the new tag name to the list of available tags.
18611 if test -n "$tagname" ; then
18612 available_tags="$available_tags $tagname"
18618 # Now substitute the updated list of available tags.
18619 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18620 mv "${ofile}T" "$ofile"
18624 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18625 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18626 { (exit 1); exit 1; }; }
18632 # This can be used to rebuild libtool when needed
18633 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18635 # Always use our own libtool.
18636 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18638 # Prevent multiple expansion
18660 # Check whether --enable-docs or --disable-docs was given.
18661 if test "${enable_docs+set}" = set; then
18662 enableval="$enable_docs"
18663 case "${enableval}" in
18664 yes) build_docs=true;;
18665 no) build_docs=false;;
18666 *) { { echo "$as_me:$LINENO: error: unknown value ${enableval} for --enable-docs" >&5
18667 echo "$as_me: error: unknown value ${enableval} for --enable-docs" >&2;}
18668 { (exit 1); exit 1; }; };;
18674 if test x$build_docs = xtrue; then
18675 for ac_prog in xsltproc
18677 # Extract the first word of "$ac_prog", so it can be a program name with args.
18678 set dummy $ac_prog; ac_word=$2
18679 echo "$as_me:$LINENO: checking for $ac_word" >&5
18680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18681 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 if test -n "$XSLTPROC"; then
18685 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
18687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18688 for as_dir in $PATH
18691 test -z "$as_dir" && as_dir=.
18692 for ac_exec_ext in '' $ac_executable_extensions; do
18693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18694 ac_cv_prog_XSLTPROC="$ac_prog"
18695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18703 XSLTPROC=$ac_cv_prog_XSLTPROC
18704 if test -n "$XSLTPROC"; then
18705 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
18706 echo "${ECHO_T}$XSLTPROC" >&6
18708 echo "$as_me:$LINENO: result: no" >&5
18709 echo "${ECHO_T}no" >&6
18712 test -n "$XSLTPROC" && break
18714 test -n "$XSLTPROC" || XSLTPROC="/bin/false"
18716 for ac_prog in pdfxmltex
18718 # Extract the first word of "$ac_prog", so it can be a program name with args.
18719 set dummy $ac_prog; ac_word=$2
18720 echo "$as_me:$LINENO: checking for $ac_word" >&5
18721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18722 if test "${ac_cv_prog_PDFXMLTEX+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 if test -n "$PDFXMLTEX"; then
18726 ac_cv_prog_PDFXMLTEX="$PDFXMLTEX" # Let the user override the test.
18728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729 for as_dir in $PATH
18732 test -z "$as_dir" && as_dir=.
18733 for ac_exec_ext in '' $ac_executable_extensions; do
18734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18735 ac_cv_prog_PDFXMLTEX="$ac_prog"
18736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18744 PDFXMLTEX=$ac_cv_prog_PDFXMLTEX
18745 if test -n "$PDFXMLTEX"; then
18746 echo "$as_me:$LINENO: result: $PDFXMLTEX" >&5
18747 echo "${ECHO_T}$PDFXMLTEX" >&6
18749 echo "$as_me:$LINENO: result: no" >&5
18750 echo "${ECHO_T}no" >&6
18753 test -n "$PDFXMLTEX" && break
18755 test -n "$PDFXMLTEX" || PDFXMLTEX="/bin/false"
18757 if test "x$XSLTPROC" = "x/bin/false" || test "x$PDFXMLTEX" = "x/bin/false"; then
18759 { echo "$as_me:$LINENO: WARNING: Documentation will not be built" >&5
18760 echo "$as_me: WARNING: Documentation will not be built" >&2;}
18766 if test x$build_docs = xtrue; then
18768 BUILD_DOCS_FALSE='#'
18770 BUILD_DOCS_TRUE='#'
18778 cflags_save="$CFLAGS"
18779 ldflags_save="$LDFLAGS"
18780 if test -z "$GCC"; then
18783 if test -z "$CC"; then
18787 CFLAGS="-O2 -w -signed"
18788 PROFILE="-p -g3 -O2 -signed" ;;
18789 sparc-sun-solaris*)
18791 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
18792 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
18802 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
18803 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
18804 # PROFILE="-Wall -W -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
18805 PROFILE="-Wall -W -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
18807 # glibc < 2.1.3 has a serious FP bug in the math inline header
18808 # that will cripple Vorbis. Look to see if the magic FP stack
18809 # clobber is missing in the mathinline header, thus indicating
18810 # the buggy version
18812 cat >conftest.$ac_ext <<_ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18819 #define __LIBC_INTERNAL_MATH_INLINES 1
18820 #define __OPTIMIZE__
18824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18825 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
18832 if test ${bad} = "maybe" ;then
18833 cat >conftest.$ac_ext <<_ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18840 #define __LIBC_INTERNAL_MATH_INLINES 1
18841 #define __OPTIMIZE__
18845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18846 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
18854 if test ${bad} = "yes" ;then
18855 { echo "$as_me:$LINENO: WARNING: " >&5
18856 echo "$as_me: WARNING: " >&2;}
18857 { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
18858 echo "$as_me: WARNING: ********************************************************" >&2;}
18859 { echo "$as_me:$LINENO: WARNING: * The glibc headers on this machine have a serious bug *" >&5
18860 echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
18861 { echo "$as_me:$LINENO: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
18862 echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
18863 { echo "$as_me:$LINENO: WARNING: * all floating point code, not just Ogg, built on this *" >&5
18864 echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
18865 { echo "$as_me:$LINENO: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
18866 echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
18867 { echo "$as_me:$LINENO: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
18868 echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: * will not fix any previously built programs; this is *" >&5
18870 echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: * a compile-time time bug. *" >&5
18872 echo "$as_me: WARNING: * a compile-time time bug. *" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: * To work around the problem for this build of Ogg, *" >&5
18874 echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: * autoconf is disabling all math inlining. This will *" >&5
18876 echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
18878 echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
18879 { echo "$as_me:$LINENO: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
18880 echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: * configure and make to build with inlining. *" >&5
18882 echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
18884 echo "$as_me: WARNING: ********************************************************" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: " >&5
18886 echo "$as_me: WARNING: " >&2;}
18888 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
18889 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
18892 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES"
18893 CFLAGS="-O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
18894 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
18896 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
18897 CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
18898 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
18900 DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char -mv8"
18901 CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
18902 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
18904 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
18905 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
18906 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
18908 DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char"
18909 CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
18910 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
18913 CFLAGS="$CFLAGS $cflags_save"
18914 LDFLAGS="$LDFLAGS $ldflags_save"
18917 if test "${ac_cv_header_memory_h+set}" = set; then
18918 echo "$as_me:$LINENO: checking for memory.h" >&5
18919 echo $ECHO_N "checking for memory.h... $ECHO_C" >&6
18920 if test "${ac_cv_header_memory_h+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
18924 echo "${ECHO_T}$ac_cv_header_memory_h" >&6
18926 # Is the header compilable?
18927 echo "$as_me:$LINENO: checking memory.h usability" >&5
18928 echo $ECHO_N "checking memory.h usability... $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 $ac_includes_default
18936 #include <memory.h>
18938 rm -f conftest.$ac_objext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18940 (eval $ac_compile) 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_c_werror_flag"
18948 || test ! -s conftest.err'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest.$ac_objext'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_header_compiler=yes
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ac_header_compiler=no
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18969 echo "${ECHO_T}$ac_header_compiler" >&6
18971 # Is the header present?
18972 echo "$as_me:$LINENO: checking memory.h presence" >&5
18973 echo $ECHO_N "checking memory.h presence... $ECHO_C" >&6
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #include <memory.h>
18982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } >/dev/null; then
18990 if test -s conftest.err; then
18991 ac_cpp_err=$ac_c_preproc_warn_flag
18992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18999 if test -z "$ac_cpp_err"; then
19000 ac_header_preproc=yes
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_header_preproc=no
19007 rm -f conftest.err conftest.$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19009 echo "${ECHO_T}$ac_header_preproc" >&6
19011 # So? What about this header?
19012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19014 { echo "$as_me:$LINENO: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&5
19015 echo "$as_me: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the compiler's result" >&5
19017 echo "$as_me: WARNING: memory.h: proceeding with the compiler's result" >&2;}
19018 ac_header_preproc=yes
19021 { echo "$as_me:$LINENO: WARNING: memory.h: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: memory.h: present but cannot be compiled" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: memory.h: check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: memory.h: check for missing prerequisite headers?" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: memory.h: see the Autoconf documentation" >&5
19026 echo "$as_me: WARNING: memory.h: see the Autoconf documentation" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&5
19028 echo "$as_me: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: memory.h: proceeding with the preprocessor's result" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: memory.h: in the future, the compiler will take precedence" >&5
19032 echo "$as_me: WARNING: memory.h: in the future, the compiler will take precedence" >&2;}
19035 ## ------------------------------------------ ##
19036 ## Report this to the AC_PACKAGE_NAME lists. ##
19037 ## ------------------------------------------ ##
19040 sed "s/^/$as_me: WARNING: /" >&2
19043 echo "$as_me:$LINENO: checking for memory.h" >&5
19044 echo $ECHO_N "checking for memory.h... $ECHO_C" >&6
19045 if test "${ac_cv_header_memory_h+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 ac_cv_header_memory_h=$ac_header_preproc
19050 echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
19051 echo "${ECHO_T}$ac_cv_header_memory_h" >&6
19054 if test $ac_cv_header_memory_h = yes; then
19055 CFLAGS="$CFLAGS -DUSE_MEMORY_H"
19065 echo "$as_me:$LINENO: checking for cos in -lm" >&5
19066 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
19067 if test "${ac_cv_lib_m_cos+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 ac_check_lib_save_LIBS=$LIBS
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19079 /* Override any gcc2 internal prototype to avoid an error. */
19083 /* We use char because int might match the return type of a gcc2
19084 builtin and then its argument prototype would still apply. */
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096 (eval $ac_link) 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag"
19104 || test ! -s conftest.err'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest$ac_exeext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_lib_m_cos=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19123 rm -f conftest.err conftest.$ac_objext \
19124 conftest$ac_exeext conftest.$ac_ext
19125 LIBS=$ac_check_lib_save_LIBS
19127 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
19128 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
19129 if test $ac_cv_lib_m_cos = yes; then
19135 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19136 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19137 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 ac_check_lib_save_LIBS=$LIBS
19141 LIBS="-lpthread $LIBS"
19142 cat >conftest.$ac_ext <<_ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19149 /* Override any gcc2 internal prototype to avoid an error. */
19153 /* We use char because int might match the return type of a gcc2
19154 builtin and then its argument prototype would still apply. */
19155 char pthread_create ();
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 (eval $ac_link) 2>conftest.er1
19168 grep -v '^ *+' conftest.er1 >conftest.err
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
19173 { ac_try='test -z "$ac_c_werror_flag"
19174 || test ! -s conftest.err'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try='test -s conftest$ac_exeext'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_cv_lib_pthread_pthread_create=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_cv_lib_pthread_pthread_create=no
19193 rm -f conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19197 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19198 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19199 if test $ac_cv_lib_pthread_pthread_create = yes; then
19200 pthread_lib="-lpthread"
19207 # Check whether --with-ogg or --without-ogg was given.
19208 if test "${with_ogg+set}" = set; then
19209 withval="$with_ogg"
19210 ogg_prefix="$withval"
19215 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
19216 if test "${with_ogg_libraries+set}" = set; then
19217 withval="$with_ogg_libraries"
19218 ogg_libraries="$withval"
19223 # Check whether --with-ogg-includes or --without-ogg-includes was given.
19224 if test "${with_ogg_includes+set}" = set; then
19225 withval="$with_ogg_includes"
19226 ogg_includes="$withval"
19230 # Check whether --enable-oggtest or --disable-oggtest was given.
19231 if test "${enable_oggtest+set}" = set; then
19232 enableval="$enable_oggtest"
19238 if test "x$ogg_libraries" != "x" ; then
19239 OGG_LIBS="-L$ogg_libraries"
19240 elif test "x$ogg_prefix" != "x" ; then
19241 OGG_LIBS="-L$ogg_prefix/lib"
19242 elif test "x$prefix" != "xNONE" ; then
19243 OGG_LIBS="-L$prefix/lib"
19246 OGG_LIBS="$OGG_LIBS -logg"
19248 if test "x$ogg_includes" != "x" ; then
19249 OGG_CFLAGS="-I$ogg_includes"
19250 elif test "x$ogg_prefix" != "x" ; then
19251 OGG_CFLAGS="-I$ogg_prefix/include"
19252 elif test "x$prefix" != "xNONE"; then
19253 OGG_CFLAGS="-I$prefix/include"
19256 echo "$as_me:$LINENO: checking for Ogg" >&5
19257 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
19261 if test "x$enable_oggtest" = "xyes" ; then
19262 ac_save_CFLAGS="$CFLAGS"
19263 ac_save_LIBS="$LIBS"
19264 CFLAGS="$CFLAGS $OGG_CFLAGS"
19265 LIBS="$LIBS $OGG_LIBS"
19267 if test "$cross_compiling" = yes; then
19268 echo $ac_n "cross compiling; assumed OK... $ac_c"
19270 cat >conftest.$ac_ext <<_ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19278 #include <stdlib.h>
19279 #include <string.h>
19280 #include <ogg/ogg.h>
19284 system("touch conf.oggtest");
19290 rm -f conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19303 echo "$as_me: program exited with status $ac_status" >&5
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ( exit $ac_status )
19310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19312 CFLAGS="$ac_save_CFLAGS"
19313 LIBS="$ac_save_LIBS"
19316 if test "x$no_ogg" = "x" ; then
19317 echo "$as_me:$LINENO: result: yes" >&5
19318 echo "${ECHO_T}yes" >&6
19321 echo "$as_me:$LINENO: result: no" >&5
19322 echo "${ECHO_T}no" >&6
19323 if test -f conf.oggtest ; then
19326 echo "*** Could not run Ogg test program, checking why..."
19327 CFLAGS="$CFLAGS $OGG_CFLAGS"
19328 LIBS="$LIBS $OGG_LIBS"
19329 cat >conftest.$ac_ext <<_ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19337 #include <ogg/ogg.h>
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349 (eval $ac_link) 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest$ac_exeext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 echo "*** The test program compiled, but did not run. This usually means"
19370 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
19371 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
19372 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19373 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19374 echo "*** is required on your system"
19376 echo "*** If you have an old version installed, it is best to remove it, although"
19377 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 echo "*** The test program failed to compile or link. See the file config.log for the"
19383 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
19384 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
19385 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
19387 rm -f conftest.err conftest.$ac_objext \
19388 conftest$ac_exeext conftest.$ac_ext
19389 CFLAGS="$ac_save_CFLAGS"
19390 LIBS="$ac_save_LIBS"
19394 { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5
19395 echo "$as_me: error: must have Ogg installed!" >&2;}
19396 { (exit 1); exit 1; }; }
19402 LIBS="$LIBS $OGG_LIBS"
19403 echo "$as_me:$LINENO: checking for oggpack_writealign" >&5
19404 echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6
19405 if test "${ac_cv_func_oggpack_writealign+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 /* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign.
19415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19416 #define oggpack_writealign innocuous_oggpack_writealign
19418 /* System header to define __stub macros and hopefully few prototypes,
19419 which can conflict with char oggpack_writealign (); below.
19420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19421 <limits.h> exists even on freestanding compilers. */
19424 # include <limits.h>
19426 # include <assert.h>
19429 #undef oggpack_writealign
19431 /* Override any gcc2 internal prototype to avoid an error. */
19436 /* We use char because int might match the return type of a gcc2
19437 builtin and then its argument prototype would still apply. */
19438 char oggpack_writealign ();
19439 /* The GNU C library defines this for functions which it implements
19440 to always fail with ENOSYS. Some functions are actually named
19441 something starting with __ and the normal name is an alias. */
19442 #if defined (__stub_oggpack_writealign) || defined (__stub___oggpack_writealign)
19445 char (*f) () = oggpack_writealign;
19454 return f != oggpack_writealign;
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461 (eval $ac_link) 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag"
19469 || test ! -s conftest.err'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_func_oggpack_writealign=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_func_oggpack_writealign=no
19488 rm -f conftest.err conftest.$ac_objext \
19489 conftest$ac_exeext conftest.$ac_ext
19491 echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5
19492 echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6
19493 if test $ac_cv_func_oggpack_writealign = yes; then
19496 { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5
19497 echo "$as_me: error: Ogg >= 1.0 required !" >&2;}
19498 { (exit 1); exit 1; }; }
19503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19504 # for constant arguments. Useless!
19505 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19507 if test "${ac_cv_working_alloca_h+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19516 #include <alloca.h>
19520 char *p = (char *) alloca (2 * sizeof (int));
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19527 (eval $ac_link) 2>conftest.er1
19529 grep -v '^ *+' conftest.er1 >conftest.err
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_c_werror_flag"
19535 || test ! -s conftest.err'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest$ac_exeext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 ac_cv_working_alloca_h=yes
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19552 ac_cv_working_alloca_h=no
19554 rm -f conftest.err conftest.$ac_objext \
19555 conftest$ac_exeext conftest.$ac_ext
19557 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19558 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19559 if test $ac_cv_working_alloca_h = yes; then
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE_ALLOCA_H 1
19567 echo "$as_me:$LINENO: checking for alloca" >&5
19568 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19569 if test "${ac_cv_func_alloca_works+set}" = set; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19579 # define alloca __builtin_alloca
19582 # include <malloc.h>
19583 # define alloca _alloca
19586 # include <alloca.h>
19591 # ifndef alloca /* predefined by HP cc +Olibcalls */
19602 char *p = (char *) alloca (1);
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19609 (eval $ac_link) 2>conftest.er1
19611 grep -v '^ *+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
19616 { ac_try='test -z "$ac_c_werror_flag"
19617 || test ! -s conftest.err'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; } &&
19623 { ac_try='test -s conftest$ac_exeext'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; }; then
19629 ac_cv_func_alloca_works=yes
19631 echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19634 ac_cv_func_alloca_works=no
19636 rm -f conftest.err conftest.$ac_objext \
19637 conftest$ac_exeext conftest.$ac_ext
19639 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19640 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19642 if test $ac_cv_func_alloca_works = yes; then
19644 cat >>confdefs.h <<\_ACEOF
19645 #define HAVE_ALLOCA 1
19649 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19650 # that cause trouble. Some versions do not even contain alloca or
19651 # contain a buggy version. If you still want to use their alloca,
19652 # use ar to extract alloca.o from them instead of compiling alloca.c.
19654 ALLOCA=alloca.$ac_objext
19656 cat >>confdefs.h <<\_ACEOF
19661 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19662 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19663 if test "${ac_cv_os_cray+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #if defined(CRAY) && ! defined(CRAY2)
19679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19680 $EGREP "webecray" >/dev/null 2>&1; then
19688 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19689 echo "${ECHO_T}$ac_cv_os_cray" >&6
19690 if test $ac_cv_os_cray = yes; then
19691 for ac_func in _getb67 GETB67 getb67; do
19692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19693 echo "$as_me:$LINENO: checking for $ac_func" >&5
19694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19695 if eval "test \"\${$as_ac_var+set}\" = set"; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19706 #define $ac_func innocuous_$ac_func
19708 /* System header to define __stub macros and hopefully few prototypes,
19709 which can conflict with char $ac_func (); below.
19710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19711 <limits.h> exists even on freestanding compilers. */
19714 # include <limits.h>
19716 # include <assert.h>
19721 /* Override any gcc2 internal prototype to avoid an error. */
19726 /* We use char because int might match the return type of a gcc2
19727 builtin and then its argument prototype would still apply. */
19729 /* The GNU C library defines this for functions which it implements
19730 to always fail with ENOSYS. Some functions are actually named
19731 something starting with __ and the normal name is an alias. */
19732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19735 char (*f) () = $ac_func;
19744 return f != $ac_func;
19749 rm -f conftest.$ac_objext conftest$ac_exeext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19751 (eval $ac_link) 2>conftest.er1
19753 grep -v '^ *+' conftest.er1 >conftest.err
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } &&
19758 { ac_try='test -z "$ac_c_werror_flag"
19759 || test ! -s conftest.err'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; } &&
19765 { ac_try='test -s conftest$ac_exeext'
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; }; then
19771 eval "$as_ac_var=yes"
19773 echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19776 eval "$as_ac_var=no"
19778 rm -f conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19783 if test `eval echo '${'$as_ac_var'}'` = yes; then
19785 cat >>confdefs.h <<_ACEOF
19786 #define CRAY_STACKSEG_END $ac_func
19795 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19796 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19797 if test "${ac_cv_c_stack_direction+set}" = set; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 if test "$cross_compiling" = yes; then
19801 ac_cv_c_stack_direction=0
19803 cat >conftest.$ac_ext <<_ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 find_stack_direction ()
19812 static char *addr = 0;
19817 return find_stack_direction ();
19820 return (&dummy > addr) ? 1 : -1;
19826 exit (find_stack_direction () < 0);
19829 rm -f conftest$ac_exeext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19831 (eval $ac_link) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; }; then
19840 ac_cv_c_stack_direction=1
19842 echo "$as_me: program exited with status $ac_status" >&5
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 ( exit $ac_status )
19847 ac_cv_c_stack_direction=-1
19849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19852 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19853 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19855 cat >>confdefs.h <<_ACEOF
19856 #define STACK_DIRECTION $ac_cv_c_stack_direction
19862 echo "$as_me:$LINENO: checking for working memcmp" >&5
19863 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
19864 if test "${ac_cv_func_memcmp_working+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 if test "$cross_compiling" = yes; then
19868 ac_cv_func_memcmp_working=no
19870 cat >conftest.$ac_ext <<_ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 $ac_includes_default
19881 /* Some versions of memcmp are not 8-bit clean. */
19882 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
19883 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19886 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19887 or more and with at least one buffer not starting on a 4-byte boundary.
19888 William Lewis provided this test program. */
19893 for (i = 0; i < 4; i++)
19897 strcpy (a, "--------01111111");
19898 strcpy (b, "--------10000000");
19899 if (memcmp (a, b, 16) >= 0)
19909 rm -f conftest$ac_exeext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19911 (eval $ac_link) 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_func_memcmp_working=yes
19922 echo "$as_me: program exited with status $ac_status" >&5
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 ( exit $ac_status )
19927 ac_cv_func_memcmp_working=no
19929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
19933 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
19934 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
19935 "memcmp.$ac_objext" | \
19936 *" memcmp.$ac_objext" | \
19937 "memcmp.$ac_objext "* | \
19938 *" memcmp.$ac_objext "* ) ;;
19939 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
19950 ac_config_files="$ac_config_files Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile win32/Makefile debian/Makefile vq/Makefile vorbis.pc vorbisenc.pc vorbisfile.pc"
19951 cat >confcache <<\_ACEOF
19952 # This file is a shell script that caches the results of configure
19953 # tests run on this system so they can be shared between configure
19954 # scripts and configure runs, see configure's option --config-cache.
19955 # It is not useful on other systems. If it contains results you don't
19956 # want to keep, you may remove or edit it.
19958 # config.status only pays attention to the cache file if you give it
19959 # the --recheck option to rerun configure.
19961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19963 # following values.
19967 # The following way of writing the cache mishandles newlines in values,
19968 # but we know of no workaround that is simple, portable, and efficient.
19969 # So, don't put newlines in cache variables' values.
19970 # Ultrix sh set writes to stderr and can't be redirected directly,
19971 # and sets the high bit in the cache file unless we assign to the vars.
19974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19976 # `set' does not quote correctly, so add quotes (double-quote
19977 # substitution turns \\\\ into \\, and sed turns \\ into \).
19980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19983 # `set' quotes correctly as required by POSIX, so do not add quotes.
19985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19996 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19997 if test -w $cache_file; then
19998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19999 cat confcache >$cache_file
20001 echo "not updating unwritable cache $cache_file"
20006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20007 # Let make expand exec_prefix.
20008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20010 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20011 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20012 # trailing colons and then remove the whole line if VPATH becomes empty
20013 # (actually we leave an empty line to preserve line numbers).
20014 if test "x$srcdir" = x.; then
20015 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20016 s/:*\$(srcdir):*/:/;
20017 s/:*\${srcdir}:*/:/;
20019 s/^\([^=]*=[ ]*\):*/\1/;
20025 # Transform confdefs.h into DEFS.
20026 # Protect against shell expansion while executing Makefile rules.
20027 # Protect against Makefile macro expansion.
20029 # If the first sed substitution is executed (which looks for macros that
20030 # take arguments), then we branch to the quote section. Otherwise,
20031 # look for a macro that doesn't take arguments.
20032 cat >confdef2opt.sed <<\_ACEOF
20035 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
20037 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
20041 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
20047 # We use echo to avoid assuming a particular line-breaking character.
20048 # The extra dot is to prevent the shell from consuming trailing
20049 # line-breaks from the sub-command output. A line-break within
20050 # single-quotes doesn't work because, if this script is created in a
20051 # platform that uses two characters for line-breaks (e.g., DOS), tr
20053 ac_LF_and_DOT=`echo; echo .`
20054 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20055 rm -f confdef2opt.sed
20060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20061 # 1. Remove the extension, and $U if already installed.
20062 ac_i=`echo "$ac_i" |
20063 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20065 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20066 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20068 LIBOBJS=$ac_libobjs
20070 LTLIBOBJS=$ac_ltlibobjs
20074 : ${CONFIG_STATUS=./config.status}
20075 ac_clean_files_save=$ac_clean_files
20076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20077 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20078 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20079 cat >$CONFIG_STATUS <<_ACEOF
20081 # Generated by $as_me.
20082 # Run this file to recreate the current configuration.
20083 # Compiler output produced by configure, useful for debugging
20084 # configure, is in config.log if it exists.
20087 ac_cs_recheck=false
20089 SHELL=\${CONFIG_SHELL-$SHELL}
20092 cat >>$CONFIG_STATUS <<\_ACEOF
20093 ## --------------------- ##
20094 ## M4sh Initialization. ##
20095 ## --------------------- ##
20097 # Be Bourne compatible
20098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20101 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20102 # is contrary to our usage. Disable this feature.
20103 alias -g '${1+"$@"}'='"$@"'
20104 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20107 DUALCASE=1; export DUALCASE # for MKS sh
20109 # Support unset when possible.
20110 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20117 # Work around bugs in pre-3.0 UWIN ksh.
20118 $as_unset ENV MAIL MAILPATH
20125 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20126 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20127 LC_TELEPHONE LC_TIME
20129 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20130 eval $as_var=C; export $as_var
20136 # Required to use basename.
20137 if expr a : '\(a\)' >/dev/null 2>&1; then
20143 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20144 as_basename=basename
20150 # Name of the executable.
20151 as_me=`$as_basename "$0" ||
20152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20153 X"$0" : 'X\(//\)$' \| \
20154 X"$0" : 'X\(/\)$' \| \
20155 . : '\(.\)' 2>/dev/null ||
20157 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20158 /^X\/\(\/\/\)$/{ s//\1/; q; }
20159 /^X\/\(\/\).*/{ s//\1/; q; }
20163 # PATH needs CR, and LINENO needs CR and PATH.
20164 # Avoid depending upon Character Ranges.
20165 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20166 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20167 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20168 as_cr_digits='0123456789'
20169 as_cr_alnum=$as_cr_Letters$as_cr_digits
20171 # The user is always right.
20172 if test "${PATH_SEPARATOR+set}" != set; then
20173 echo "#! /bin/sh" >conf$$.sh
20174 echo "exit 0" >>conf$$.sh
20176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20185 as_lineno_1=$LINENO
20186 as_lineno_2=$LINENO
20187 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20188 test "x$as_lineno_1" != "x$as_lineno_2" &&
20189 test "x$as_lineno_3" = "x$as_lineno_2" || {
20190 # Find who we are. Look in the path if we contain no path at all
20193 *[\\/]* ) as_myself=$0 ;;
20194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20195 for as_dir in $PATH
20198 test -z "$as_dir" && as_dir=.
20199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20204 # We did not find ourselves, most probably we were run as `sh COMMAND'
20205 # in which case we are not to be found in the path.
20206 if test "x$as_myself" = x; then
20209 if test ! -f "$as_myself"; then
20210 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20211 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20212 { (exit 1); exit 1; }; }
20214 case $CONFIG_SHELL in
20216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20220 test -z "$as_dir" && as_dir=.
20221 for as_base in sh bash ksh sh5; do
20224 if ("$as_dir/$as_base" -c '
20225 as_lineno_1=$LINENO
20226 as_lineno_2=$LINENO
20227 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20228 test "x$as_lineno_1" != "x$as_lineno_2" &&
20229 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20230 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20231 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20232 CONFIG_SHELL=$as_dir/$as_base
20233 export CONFIG_SHELL
20234 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20242 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20243 # uniformly replaced by the line number. The first 'sed' inserts a
20244 # line-number line before each line; the second 'sed' does the real
20245 # work. The second script uses 'N' to pair each line-number line
20246 # with the numbered line, and appends trailing '-' during
20247 # substitution so that $LINENO is not a special case at line end.
20248 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20249 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20250 sed '=' <$as_myself |
20255 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20258 s,^['$as_cr_digits']*\n,,
20259 ' >$as_me.lineno &&
20260 chmod +x $as_me.lineno ||
20261 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20262 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20263 { (exit 1); exit 1; }; }
20265 # Don't try to exec as it changes $[0], causing all sort of problems
20266 # (the dirname of $[0] is not the place where we might find the
20267 # original and so on. Autoconf is especially sensible to this).
20269 # Exit status is that of the last command.
20274 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20275 *c*,-n*) ECHO_N= ECHO_C='
20277 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20278 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20281 if expr a : '\(a\)' >/dev/null 2>&1; then
20287 rm -f conf$$ conf$$.exe conf$$.file
20289 if ln -s conf$$.file conf$$ 2>/dev/null; then
20290 # We could just check for DJGPP; but this test a) works b) is more generic
20291 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20292 if test -f conf$$.exe; then
20293 # Don't use ln at all; we don't have any links
20298 elif ln conf$$.file conf$$ 2>/dev/null; then
20303 rm -f conf$$ conf$$.exe conf$$.file
20305 if mkdir -p . 2>/dev/null; then
20308 test -d ./-p && rmdir ./-p
20312 as_executable_p="test -f"
20314 # Sed expression to map a string onto a valid CPP name.
20315 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20317 # Sed expression to map a string onto a valid variable name.
20318 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20322 # We need space, tab and new line, in precisely that order.
20332 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20333 # report actual input values of CONFIG_FILES etc. instead of their
20334 # values after options handling. Logging --version etc. is OK.
20338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20339 ## Running $as_me. ##
20344 This file was extended by $as_me, which was
20345 generated by GNU Autoconf 2.58. Invocation command line was
20347 CONFIG_FILES = $CONFIG_FILES
20348 CONFIG_HEADERS = $CONFIG_HEADERS
20349 CONFIG_LINKS = $CONFIG_LINKS
20350 CONFIG_COMMANDS = $CONFIG_COMMANDS
20354 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20358 # Files that config.status was made for.
20359 if test -n "$ac_config_files"; then
20360 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20363 if test -n "$ac_config_headers"; then
20364 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20367 if test -n "$ac_config_links"; then
20368 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20371 if test -n "$ac_config_commands"; then
20372 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20375 cat >>$CONFIG_STATUS <<\_ACEOF
20378 \`$as_me' instantiates files from templates according to the
20379 current configuration.
20381 Usage: $0 [OPTIONS] [FILE]...
20383 -h, --help print this help, then exit
20384 -V, --version print version number, then exit
20385 -q, --quiet do not print progress messages
20386 -d, --debug don't remove temporary files
20387 --recheck update $as_me by reconfiguring in the same conditions
20388 --file=FILE[:TEMPLATE]
20389 instantiate the configuration file FILE
20391 Configuration files:
20394 Report bugs to <bug-autoconf@gnu.org>."
20397 cat >>$CONFIG_STATUS <<_ACEOF
20400 configured by $0, generated by GNU Autoconf 2.58,
20401 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20403 Copyright (C) 2003 Free Software Foundation, Inc.
20404 This config.status script is free software; the Free Software Foundation
20405 gives unlimited permission to copy, distribute and modify it."
20410 cat >>$CONFIG_STATUS <<\_ACEOF
20411 # If no file are specified by the user, then we need to provide default
20412 # value. By we need to know if files were specified by the user.
20418 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20419 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20427 *) # This is not an option, so the user has probably given explicit
20430 ac_need_defaults=false;;
20434 # Handling of the options.
20436 cat >>$CONFIG_STATUS <<\_ACEOF
20437 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20439 --version | --vers* | -V )
20440 echo "$ac_cs_version"; exit 0 ;;
20442 # Conflict between --help and --header
20443 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20444 Try \`$0 --help' for more information." >&5
20445 echo "$as_me: error: ambiguous option: $1
20446 Try \`$0 --help' for more information." >&2;}
20447 { (exit 1); exit 1; }; };;
20448 --help | --hel | -h )
20449 echo "$ac_cs_usage"; exit 0 ;;
20450 --debug | --d* | -d )
20452 --file | --fil | --fi | --f )
20454 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20455 ac_need_defaults=false;;
20456 --header | --heade | --head | --hea )
20458 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20459 ac_need_defaults=false;;
20460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20461 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20464 # This is an error.
20465 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20466 Try \`$0 --help' for more information." >&5
20467 echo "$as_me: error: unrecognized option: $1
20468 Try \`$0 --help' for more information." >&2;}
20469 { (exit 1); exit 1; }; } ;;
20471 *) ac_config_targets="$ac_config_targets $1" ;;
20477 ac_configure_extra_args=
20479 if $ac_cs_silent; then
20481 ac_configure_extra_args="$ac_configure_extra_args --silent"
20485 cat >>$CONFIG_STATUS <<_ACEOF
20486 if \$ac_cs_recheck; then
20487 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20488 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20497 cat >>$CONFIG_STATUS <<\_ACEOF
20498 for ac_config_target in $ac_config_targets
20500 case "$ac_config_target" in
20501 # Handling of arguments.
20502 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20503 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20504 "lib/modes/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
20505 "lib/books/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
20506 "lib/books/coupled/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
20507 "lib/books/uncoupled/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
20508 "lib/books/floor/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
20509 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20510 "doc/vorbisfile/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
20511 "doc/vorbisenc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
20512 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20513 "include/vorbis/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
20514 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20515 "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20516 "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
20517 "vq/Makefile" ) CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
20518 "vorbis.pc" ) CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
20519 "vorbisenc.pc" ) CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
20520 "vorbisfile.pc" ) CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
20521 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20522 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20523 { (exit 1); exit 1; }; };;
20527 # If the user did not use the arguments to specify the items to instantiate,
20528 # then the envvar interface is used. Set only those that are not.
20529 # We use the long form for the default assignment because of an extremely
20530 # bizarre bug on SunOS 4.1.3.
20531 if $ac_need_defaults; then
20532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20535 # Have a temporary directory for convenience. Make it in the build tree
20536 # simply because there is no reason to put it here, and in addition,
20537 # creating and moving files from /tmp can sometimes cause problems.
20538 # Create a temporary directory, and hook for its removal unless debugging.
20541 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20542 trap '{ (exit 1); exit 1; }' 1 2 13 15
20545 # Create a (secure) tmp directory for tmp files.
20548 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20549 test -n "$tmp" && test -d "$tmp"
20552 tmp=./confstat$$-$RANDOM
20553 (umask 077 && mkdir $tmp)
20556 echo "$me: cannot create a temporary directory in ." >&2
20557 { (exit 1); exit 1; }
20562 cat >>$CONFIG_STATUS <<_ACEOF
20565 # CONFIG_FILES section.
20568 # No need to generate the scripts if there are no CONFIG_FILES.
20569 # This happens for instance when ./config.status config.h
20570 if test -n "\$CONFIG_FILES"; then
20571 # Protect against being on the right side of a sed subst in config.status.
20572 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20573 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20574 s,@SHELL@,$SHELL,;t t
20575 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20576 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20577 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20578 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20579 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20580 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20581 s,@exec_prefix@,$exec_prefix,;t t
20582 s,@prefix@,$prefix,;t t
20583 s,@program_transform_name@,$program_transform_name,;t t
20584 s,@bindir@,$bindir,;t t
20585 s,@sbindir@,$sbindir,;t t
20586 s,@libexecdir@,$libexecdir,;t t
20587 s,@datadir@,$datadir,;t t
20588 s,@sysconfdir@,$sysconfdir,;t t
20589 s,@sharedstatedir@,$sharedstatedir,;t t
20590 s,@localstatedir@,$localstatedir,;t t
20591 s,@libdir@,$libdir,;t t
20592 s,@includedir@,$includedir,;t t
20593 s,@oldincludedir@,$oldincludedir,;t t
20594 s,@infodir@,$infodir,;t t
20595 s,@mandir@,$mandir,;t t
20596 s,@build_alias@,$build_alias,;t t
20597 s,@host_alias@,$host_alias,;t t
20598 s,@target_alias@,$target_alias,;t t
20599 s,@DEFS@,$DEFS,;t t
20600 s,@ECHO_C@,$ECHO_C,;t t
20601 s,@ECHO_N@,$ECHO_N,;t t
20602 s,@ECHO_T@,$ECHO_T,;t t
20603 s,@LIBS@,$LIBS,;t t
20604 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20605 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20606 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20607 s,@PACKAGE@,$PACKAGE,;t t
20608 s,@VERSION@,$VERSION,;t t
20609 s,@ACLOCAL@,$ACLOCAL,;t t
20610 s,@AUTOCONF@,$AUTOCONF,;t t
20611 s,@AUTOMAKE@,$AUTOMAKE,;t t
20612 s,@AUTOHEADER@,$AUTOHEADER,;t t
20613 s,@MAKEINFO@,$MAKEINFO,;t t
20614 s,@SET_MAKE@,$SET_MAKE,;t t
20615 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20616 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20617 s,@MAINT@,$MAINT,;t t
20618 s,@V_LIB_CURRENT@,$V_LIB_CURRENT,;t t
20619 s,@V_LIB_REVISION@,$V_LIB_REVISION,;t t
20620 s,@V_LIB_AGE@,$V_LIB_AGE,;t t
20621 s,@VF_LIB_CURRENT@,$VF_LIB_CURRENT,;t t
20622 s,@VF_LIB_REVISION@,$VF_LIB_REVISION,;t t
20623 s,@VF_LIB_AGE@,$VF_LIB_AGE,;t t
20624 s,@VE_LIB_CURRENT@,$VE_LIB_CURRENT,;t t
20625 s,@VE_LIB_REVISION@,$VE_LIB_REVISION,;t t
20626 s,@VE_LIB_AGE@,$VE_LIB_AGE,;t t
20628 s,@CFLAGS@,$CFLAGS,;t t
20629 s,@LDFLAGS@,$LDFLAGS,;t t
20630 s,@CPPFLAGS@,$CPPFLAGS,;t t
20631 s,@ac_ct_CC@,$ac_ct_CC,;t t
20632 s,@EXEEXT@,$EXEEXT,;t t
20633 s,@OBJEXT@,$OBJEXT,;t t
20635 s,@build@,$build,;t t
20636 s,@build_cpu@,$build_cpu,;t t
20637 s,@build_vendor@,$build_vendor,;t t
20638 s,@build_os@,$build_os,;t t
20639 s,@host@,$host,;t t
20640 s,@host_cpu@,$host_cpu,;t t
20641 s,@host_vendor@,$host_vendor,;t t
20642 s,@host_os@,$host_os,;t t
20643 s,@EGREP@,$EGREP,;t t
20644 s,@LN_S@,$LN_S,;t t
20645 s,@ECHO@,$ECHO,;t t
20647 s,@ac_ct_AR@,$ac_ct_AR,;t t
20648 s,@RANLIB@,$RANLIB,;t t
20649 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20650 s,@STRIP@,$STRIP,;t t
20651 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20653 s,@CXXFLAGS@,$CXXFLAGS,;t t
20654 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20655 s,@CXXCPP@,$CXXCPP,;t t
20657 s,@FFLAGS@,$FFLAGS,;t t
20658 s,@ac_ct_F77@,$ac_ct_F77,;t t
20659 s,@LIBTOOL@,$LIBTOOL,;t t
20660 s,@XSLTPROC@,$XSLTPROC,;t t
20661 s,@PDFXMLTEX@,$PDFXMLTEX,;t t
20662 s,@BUILD_DOCS_TRUE@,$BUILD_DOCS_TRUE,;t t
20663 s,@BUILD_DOCS_FALSE@,$BUILD_DOCS_FALSE,;t t
20664 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20665 s,@OGG_LIBS@,$OGG_LIBS,;t t
20666 s,@ALLOCA@,$ALLOCA,;t t
20667 s,@LIBOBJS@,$LIBOBJS,;t t
20668 s,@DEBUG@,$DEBUG,;t t
20669 s,@PROFILE@,$PROFILE,;t t
20670 s,@pthread_lib@,$pthread_lib,;t t
20671 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20676 cat >>$CONFIG_STATUS <<\_ACEOF
20677 # Split the substitutions into bite-sized pieces for seds with
20678 # small command number limits, like on Digital OSF/1 and HP-UX.
20679 ac_max_sed_lines=48
20680 ac_sed_frag=1 # Number of current file.
20681 ac_beg=1 # First line for current file.
20682 ac_end=$ac_max_sed_lines # Line after last line for current file.
20685 while $ac_more_lines; do
20686 if test $ac_beg -gt 1; then
20687 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20689 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20691 if test ! -s $tmp/subs.frag; then
20692 ac_more_lines=false
20694 # The purpose of the label and of the branching condition is to
20695 # speed up the sed processing (if there are no `@' at all, there
20696 # is no need to browse any of the substitutions).
20697 # These are the two extra sed commands mentioned above.
20699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20700 if test -z "$ac_sed_cmds"; then
20701 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20703 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20705 ac_sed_frag=`expr $ac_sed_frag + 1`
20707 ac_end=`expr $ac_end + $ac_max_sed_lines`
20710 if test -z "$ac_sed_cmds"; then
20713 fi # test -n "$CONFIG_FILES"
20716 cat >>$CONFIG_STATUS <<\_ACEOF
20717 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20720 - | *:- | *:-:* ) # input from stdin
20722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20726 * ) ac_file_in=$ac_file.in ;;
20729 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20730 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20732 X"$ac_file" : 'X\(//\)[^/]' \| \
20733 X"$ac_file" : 'X\(//\)$' \| \
20734 X"$ac_file" : '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; }
20742 { if $as_mkdir_p; then
20747 while test ! -d "$as_dir"; do
20748 as_dirs="$as_dir $as_dirs"
20749 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20751 X"$as_dir" : 'X\(//\)[^/]' \| \
20752 X"$as_dir" : 'X\(//\)$' \| \
20753 X"$as_dir" : 'X\(/\)' \| \
20754 . : '\(.\)' 2>/dev/null ||
20756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20758 /^X\(\/\/\)$/{ s//\1/; q; }
20759 /^X\(\/\).*/{ s//\1/; q; }
20762 test ! -n "$as_dirs" || mkdir $as_dirs
20763 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20764 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20765 { (exit 1); exit 1; }; }; }
20769 if test "$ac_dir" != .; then
20770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20771 # A "../" for each directory in $ac_dir_suffix.
20772 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20774 ac_dir_suffix= ac_top_builddir=
20778 .) # No --srcdir option. We are building in place.
20780 if test -z "$ac_top_builddir"; then
20783 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20785 [\\/]* | ?:[\\/]* ) # Absolute path.
20786 ac_srcdir=$srcdir$ac_dir_suffix;
20787 ac_top_srcdir=$srcdir ;;
20788 *) # Relative path.
20789 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20790 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20793 # Do not use `cd foo && pwd` to compute absolute paths, because
20794 # the directories may not exist.
20796 .) ac_abs_builddir="$ac_dir";;
20799 .) ac_abs_builddir=`pwd`;;
20800 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20801 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20804 case $ac_abs_builddir in
20805 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20807 case ${ac_top_builddir}. in
20808 .) ac_abs_top_builddir=$ac_abs_builddir;;
20809 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20810 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20813 case $ac_abs_builddir in
20814 .) ac_abs_srcdir=$ac_srcdir;;
20817 .) ac_abs_srcdir=$ac_abs_builddir;;
20818 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20819 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20822 case $ac_abs_builddir in
20823 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20825 case $ac_top_srcdir in
20826 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20827 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20828 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20835 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20838 if test x"$ac_file" != x-; then
20839 { echo "$as_me:$LINENO: creating $ac_file" >&5
20840 echo "$as_me: creating $ac_file" >&6;}
20843 # Let's still pretend it is `configure' which instantiates (i.e., don't
20844 # use $as_me), people would be surprised to read:
20845 # /* config.h. Generated by config.status. */
20846 if test x"$ac_file" = x-; then
20849 configure_input="$ac_file. "
20851 configure_input=$configure_input"Generated from `echo $ac_file_in |
20852 sed 's,.*/,,'` by configure."
20854 # First look for the input files in the build tree, otherwise in the
20856 ac_file_inputs=`IFS=:
20857 for f in $ac_file_in; do
20859 -) echo $tmp/stdin ;;
20861 # Absolute (can't be DOS-style, as IFS=:)
20862 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20863 echo "$as_me: error: cannot find input file: $f" >&2;}
20864 { (exit 1); exit 1; }; }
20867 if test -f "$f"; then
20870 elif test -f "$srcdir/$f"; then
20875 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20876 echo "$as_me: error: cannot find input file: $f" >&2;}
20877 { (exit 1); exit 1; }; }
20880 done` || { (exit 1); exit 1; }
20882 cat >>$CONFIG_STATUS <<_ACEOF
20886 cat >>$CONFIG_STATUS <<\_ACEOF
20888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20889 s,@configure_input@,$configure_input,;t t
20890 s,@srcdir@,$ac_srcdir,;t t
20891 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20892 s,@top_srcdir@,$ac_top_srcdir,;t t
20893 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20894 s,@builddir@,$ac_builddir,;t t
20895 s,@abs_builddir@,$ac_abs_builddir,;t t
20896 s,@top_builddir@,$ac_top_builddir,;t t
20897 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20898 s,@INSTALL@,$ac_INSTALL,;t t
20899 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20901 if test x"$ac_file" != x-; then
20902 mv $tmp/out $ac_file
20911 cat >>$CONFIG_STATUS <<\_ACEOF
20913 { (exit 0); exit 0; }
20915 chmod +x $CONFIG_STATUS
20916 ac_clean_files=$ac_clean_files_save
20919 # configure is writing to config.log, and then calls config.status.
20920 # config.status does its own redirection, appending to config.log.
20921 # Unfortunately, on DOS this fails, as config.log is still kept open
20922 # by configure, so config.status won't be able to write to it; its
20923 # output is simply discarded. So we exec the FD to /dev/null,
20924 # effectively closing config.log, so it can be properly (re)opened and
20925 # appended to by config.status. When coming back to configure, we
20926 # need to make the FD available again.
20927 if test "$no_create" != yes; then
20929 ac_config_status_args=
20930 test "$silent" = yes &&
20931 ac_config_status_args="$ac_config_status_args --quiet"
20933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20936 # would make configure fail if this is the last instruction.
20937 $ac_cs_success || { (exit 1); exit 1; }