2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59.
5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6 @%:@ This configure script is free software; the Free Software Foundation
7 @%:@ gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 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 # Factoring default headers for most tests.
429 ac_includes_default="\
432 # include <sys/types.h>
435 # include <sys/stat.h>
446 # if !STDC_HEADERS && HAVE_MEMORY_H
452 # include <strings.h>
455 # include <inttypes.h>
465 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 GST_PLUGIN_VERSION GST_PLUGIN_VERSION_RELEASE GST_PLUGIN_VERSION_MAJOR GST_PLUGIN_VERSION_MINOR GST_PLUGIN_VERSION_MICRO GST_PLUGIN_VERSION_NANO PACKAGE VERSION MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ACLOCAL_AMFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HAVE_PKGCONFIG PKG_CONFIG GST_CFLAGS GST_LIBS GST_BASE_CFLAGS GST_BASE_LIBS GST_LIB_LDFLAGS GST_ALL_LDFLAGS GST_LT_LDFLAGS GST_MAJORMINOR plugindir GST_PLUGIN_LDFLAGS LIB@&t@OBJS LTLIBOBJS'
468 # Initialize some variables set by options.
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
480 program_transform_name=s,x,x,
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 # Accept the important Cygnus configure options, so we can diagnose typos.
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
540 cache_file=config.cache ;;
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 datadir=$ac_optarg ;;
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 eval "enable_$ac_feature='$ac_optarg'" ;;
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
583 -help | --help | --hel | --he | -h)
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
607 -libdir | --libdir | --libdi | --libd)
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 # Obsolete; use --without-fp.
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 sbindir=$ac_optarg ;;
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 sharedstatedir=$ac_optarg ;;
711 -site | --site | --sit)
713 -site=* | --site=* | --sit=*)
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 -version | --version | --versio | --versi | --vers | -V)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 eval "with_$ac_package='$ac_optarg'" ;;
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
762 # Obsolete; use --with-x.
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
814 eval ac_val=$`echo $ac_var`
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 test "$silent" = yes && exec 6>/dev/null
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
875 if test ! -r $srcdir/$ac_unique_file; then
879 ac_srcdir_defaulted=no
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
948 # Report the --help message.
950 if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
954 \`configure' configures this package to adapt to many kinds of systems.
956 Usage: $0 [OPTION]... [VAR=VALUE]...
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
961 Defaults for the options are specified in brackets.
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
988 For better control, use the options below.
990 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 if test -n "$ac_init_help"; then
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --enable-maintainer-mode enable make rules and dependencies not useful
1026 (and sometimes confusing) to the casual installer
1027 --disable-dependency-tracking speeds up one-time build
1028 --enable-dependency-tracking do not reject slow dependency extractors
1029 --enable-shared@<:@=PKGS@:>@
1030 build shared libraries @<:@default=yes@:>@
1031 --enable-static@<:@=PKGS@:>@
1032 build static libraries @<:@default=yes@:>@
1033 --enable-fast-install@<:@=PKGS@:>@
1034 optimize for fast installation @<:@default=yes@:>@
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1041 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1043 --with-tags@<:@=TAGS@:>@
1044 include additional configurations @<:@automatic@:>@
1046 Some influential environment variables:
1047 CC C compiler command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1050 nonstandard directory <lib dir>
1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052 headers in a nonstandard directory <include dir>
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 CXXCPP C++ preprocessor
1057 F77 Fortran 77 compiler command
1058 FFLAGS Fortran 77 compiler flags
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 ac_dir_suffix= ac_top_builddir=
1082 .) # No --srcdir option. We are building in place.
1084 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 # Do not use `cd foo && pwd` to compute absolute paths, because
1098 # the directories may not exist.
1100 .) ac_abs_builddir="$ac_dir";;
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1147 $ac_configure --help
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1178 @%:@@%:@ --------- @%:@@%:@
1179 @%:@@%:@ Platform. @%:@@%:@
1180 @%:@@%:@ --------- @%:@@%:@
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1214 @%:@@%:@ ----------- @%:@@%:@
1215 @%:@@%:@ Core tests. @%:@@%:@
1216 @%:@@%:@ ----------- @%:@@%:@
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_must_keep_next=false
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259 -* ) ac_must_keep_next=true ;;
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1283 @%:@@%:@ ---------------- @%:@@%:@
1284 @%:@@%:@ Cache variables. @%:@@%:@
1285 @%:@@%:@ ---------------- @%:@@%:@
1288 # The following way of writing the cache mishandles newlines in values,
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 @%:@@%:@ ----------------- @%:@@%:@
1307 @%:@@%:@ Output variables. @%:@@%:@
1308 @%:@@%:@ ----------------- @%:@@%:@
1311 for ac_var in $ac_subst_vars
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -n "$ac_subst_files"; then
1320 @%:@@%:@ ------------- @%:@@%:@
1321 @%:@@%:@ Output files. @%:@@%:@
1322 @%:@@%:@ ------------- @%:@@%:@
1325 for ac_var in $ac_subst_files
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1333 if test -s confdefs.h; then
1335 @%:@@%:@ ----------- @%:@@%:@
1336 @%:@@%:@ confdefs.h. @%:@@%:@
1337 @%:@@%:@ ----------- @%:@@%:@
1340 sed "/^$/d" confdefs.h | sort
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1368 cat >>confdefs.h <<_ACEOF
1369 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 cat >>confdefs.h <<_ACEOF
1374 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 cat >>confdefs.h <<_ACEOF
1379 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1383 cat >>confdefs.h <<_ACEOF
1384 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1423 # Check that the precious variables saved in the cache have kept the same
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1445 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1446 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1447 echo "$as_me: former value: $ac_old_val" >&2;}
1448 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1449 echo "$as_me: current value: $ac_new_val" >&2;}
1450 ac_cache_corrupted=:
1453 # Pass precious variables to config.status.
1454 if test "$ac_new_set" = set; then
1456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458 *) ac_arg=$ac_var=$ac_new_val ;;
1460 case " $ac_configure_args " in
1461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1462 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466 if $ac_cache_corrupted; then
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500 PACKAGE=gst-fbvideosink
1501 GST_PLUGIN_VERSION_MAJOR=0
1502 GST_PLUGIN_VERSION_MINOR=9
1503 GST_PLUGIN_VERSION_MICRO=7
1505 GST_PLUGIN_VERSION_NANO=$NANO
1506 if test "x$NANO" = "x" || test "x$NANO" = "x0";
1508 { echo "$as_me:$LINENO: configuring gst-fbvideosink for release" >&5
1509 echo "$as_me: configuring gst-fbvideosink for release" >&6;}
1511 GST_PLUGIN_VERSION_RELEASE=1
1512 GST_PLUGIN_TRUNK="no"
1514 { echo "$as_me:$LINENO: configuring gst-fbvideosink for development with nano $NANO" >&5
1515 echo "$as_me: configuring gst-fbvideosink for development with nano $NANO" >&6;}
1517 GST_PLUGIN_VERSION_RELEASE=`date +%Y%m%d_%H%M%S`
1518 GST_PLUGIN_TRUNK="yes"
1521 GST_PLUGIN_VERSION=$VERSION
1523 cat >>confdefs.h <<_ACEOF
1524 @%:@define GST_PLUGIN_VERSION "$GST_PLUGIN_VERSION"
1529 cat >>confdefs.h <<_ACEOF
1530 @%:@define GST_PLUGIN_VERSION_RELEASE "$GST_PLUGIN_VERSION_RELEASE"
1540 cat >>confdefs.h <<_ACEOF
1541 @%:@define PACKAGE "$PACKAGE"
1546 cat >>confdefs.h <<_ACEOF
1547 @%:@define VERSION "$VERSION"
1553 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1554 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1555 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1556 if test "${enable_maintainer_mode+set}" = set; then
1557 enableval="$enable_maintainer_mode"
1558 USE_MAINTAINER_MODE=$enableval
1560 USE_MAINTAINER_MODE=no
1562 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1563 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1566 if test $USE_MAINTAINER_MODE = yes; then
1567 MAINTAINER_MODE_TRUE=
1568 MAINTAINER_MODE_FALSE='#'
1570 MAINTAINER_MODE_TRUE='#'
1571 MAINTAINER_MODE_FALSE=
1574 MAINT=$MAINTAINER_MODE_TRUE
1578 am__api_version="1.9"
1580 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1581 if test -f $ac_dir/install-sh; then
1583 ac_install_sh="$ac_aux_dir/install-sh -c"
1585 elif test -f $ac_dir/install.sh; then
1587 ac_install_sh="$ac_aux_dir/install.sh -c"
1589 elif test -f $ac_dir/shtool; then
1591 ac_install_sh="$ac_aux_dir/shtool install -c"
1595 if test -z "$ac_aux_dir"; then
1596 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1597 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1598 { (exit 1); exit 1; }; }
1600 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1601 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1602 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1604 # Find a good install program. We prefer a C program (faster),
1605 # so one script is as good as another. But avoid the broken or
1606 # incompatible versions:
1607 # SysV /etc/install, /usr/sbin/install
1608 # SunOS /usr/etc/install
1609 # IRIX /sbin/install
1611 # AmigaOS /C/install, which installs bootblocks on floppy discs
1612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1615 # OS/2's system install, which has a completely different semantic
1616 # ./install, which can be erroneously created by make from ./install.sh.
1617 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1618 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1619 if test -z "$INSTALL"; then
1620 if test "${ac_cv_path_install+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 test -z "$as_dir" && as_dir=.
1628 # Account for people who put trailing slashes in PATH elements.
1630 ./ | .// | /cC/* | \
1631 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1632 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1635 # OSF1 and SCO ODT 3.0 have their own names for install.
1636 # Don't use installbsd from OSF since it installs stuff as root
1638 for ac_prog in ginstall scoinst install; do
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1641 if test $ac_prog = install &&
1642 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1643 # AIX install. It has an incompatible calling convention.
1645 elif test $ac_prog = install &&
1646 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647 # program-specific install script used by HP pwplus--don't use.
1650 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1662 if test "${ac_cv_path_install+set}" = set; then
1663 INSTALL=$ac_cv_path_install
1665 # As a last resort, use the slow shell script. We don't cache a
1666 # path for INSTALL within a source directory, because that will
1667 # break other packages using the cache if that directory is
1668 # removed, or if the path is relative.
1669 INSTALL=$ac_install_sh
1672 echo "$as_me:$LINENO: result: $INSTALL" >&5
1673 echo "${ECHO_T}$INSTALL" >&6
1675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1676 # It thinks the first close brace ends the variable substitution.
1677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1683 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1684 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1687 echo timestamp > conftest.file
1688 # Do `set' in a subshell so we don't clobber the current shell's
1689 # arguments. Must try -L first in case configure is actually a
1690 # symlink; some systems play weird games with the mod time of symlinks
1691 # (eg FreeBSD returns the mod time of the symlink's containing
1694 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1695 if test "$*" = "X"; then
1697 set X `ls -t $srcdir/configure conftest.file`
1700 if test "$*" != "X $srcdir/configure conftest.file" \
1701 && test "$*" != "X conftest.file $srcdir/configure"; then
1703 # If neither matched, then we have a broken ls. This can happen
1704 # if, for instance, CONFIG_SHELL is bash and it inherits a
1705 # broken ls alias from the environment. This has actually
1706 # happened. Such a system could not be considered "sane".
1707 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1708 alias in your environment" >&5
1709 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1710 alias in your environment" >&2;}
1711 { (exit 1); exit 1; }; }
1714 test "$2" = conftest.file
1720 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1721 Check your system clock" >&5
1722 echo "$as_me: error: newly created file is older than distributed files!
1723 Check your system clock" >&2;}
1724 { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: result: yes" >&5
1727 echo "${ECHO_T}yes" >&6
1728 test "$program_prefix" != NONE &&
1729 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1730 # Use a double $ so make ignores it.
1731 test "$program_suffix" != NONE &&
1732 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1733 # Double any \ or $. echo might interpret backslashes.
1734 # By default was `s,x,x', remove it if useless.
1735 cat <<\_ACEOF >conftest.sed
1736 s/[\\$]/&&/g;s/;s,x,x,$//
1738 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1741 # expand $ac_aux_dir to an absolute path
1742 am_aux_dir=`cd $ac_aux_dir && pwd`
1744 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1745 # Use eval to expand $SHELL
1746 if eval "$MISSING --run true"; then
1747 am_missing_run="$MISSING --run "
1750 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1751 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1754 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1755 # We used to keeping the `.' as first argument, in order to
1756 # allow $(mkdir_p) to be used without argument. As in
1757 # $(mkdir_p) $(somedir)
1758 # where $(somedir) is conditionally defined. However this is wrong
1760 # 1. if the package is installed by a user who cannot write `.'
1761 # make install will fail,
1762 # 2. the above comment should most certainly read
1763 # $(mkdir_p) $(DESTDIR)$(somedir)
1764 # so it does not work when $(somedir) is undefined and
1765 # $(DESTDIR) is not.
1766 # To support the latter case, we have to write
1767 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1768 # so the `.' trick is pointless.
1769 mkdir_p='mkdir -p --'
1771 # On NextStep and OpenStep, the `mkdir' command does not
1772 # recognize any option. It will interpret all options as
1773 # directories to create, and then abort because `.' already
1775 for d in ./-p ./--version;
1777 test -d $d && rmdir $d
1779 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1780 if test -f "$ac_aux_dir/mkinstalldirs"; then
1781 mkdir_p='$(mkinstalldirs)'
1783 mkdir_p='$(install_sh) -d'
1787 for ac_prog in gawk mawk nawk awk
1789 # Extract the first word of "$ac_prog", so it can be a program name with args.
1790 set dummy $ac_prog; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_AWK+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -n "$AWK"; then
1797 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_AWK="$ac_prog"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816 if test -n "$AWK"; then
1817 echo "$as_me:$LINENO: result: $AWK" >&5
1818 echo "${ECHO_T}$AWK" >&6
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1824 test -n "$AWK" && break
1827 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1828 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1829 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1830 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 cat >conftest.make <<\_ACEOF
1835 @echo 'ac_maketemp="$(MAKE)"'
1837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1838 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1839 if test -n "$ac_maketemp"; then
1840 eval ac_cv_prog_make_${ac_make}_set=yes
1842 eval ac_cv_prog_make_${ac_make}_set=no
1846 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1847 echo "$as_me:$LINENO: result: yes" >&5
1848 echo "${ECHO_T}yes" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 SET_MAKE="MAKE=${MAKE-make}"
1856 rm -rf .tst 2>/dev/null
1857 mkdir .tst 2>/dev/null
1858 if test -d .tst; then
1863 rmdir .tst 2>/dev/null
1865 # test to see if srcdir already configured
1866 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1867 test -f $srcdir/config.status; then
1868 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1869 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1870 { (exit 1); exit 1; }; }
1873 # test whether we have cygpath
1874 if test -z "$CYGPATH_W"; then
1875 if (cygpath --version) >/dev/null 2>/dev/null; then
1876 CYGPATH_W='cygpath -w'
1883 # Define the identity of the package.
1888 cat >>confdefs.h <<_ACEOF
1889 @%:@define PACKAGE "$PACKAGE"
1893 cat >>confdefs.h <<_ACEOF
1894 @%:@define VERSION "$VERSION"
1897 # Some tools Automake needs.
1899 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1902 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1905 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1911 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1913 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1915 # Installed binaries are usually stripped using `strip' when the user
1916 # run `make install-strip'. However `strip' might not be the right
1917 # tool to use in cross-compilation environments, therefore Automake
1918 # will honor the `STRIP' environment variable to overrule this program.
1919 if test "$cross_compiling" != no; then
1920 if test -n "$ac_tool_prefix"; then
1921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1922 set dummy ${ac_tool_prefix}strip; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_STRIP+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$STRIP"; then
1929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 STRIP=$ac_cv_prog_STRIP
1948 if test -n "$STRIP"; then
1949 echo "$as_me:$LINENO: result: $STRIP" >&5
1950 echo "${ECHO_T}$STRIP" >&6
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1957 if test -z "$ac_cv_prog_STRIP"; then
1959 # Extract the first word of "strip", so it can be a program name with args.
1960 set dummy strip; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 if test -n "$ac_ct_STRIP"; then
1967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 ac_cv_prog_ac_ct_STRIP="strip"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1987 if test -n "$ac_ct_STRIP"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1989 echo "${ECHO_T}$ac_ct_STRIP" >&6
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1997 STRIP="$ac_cv_prog_STRIP"
2001 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2003 # We need awk for the "check" target. The system "awk" is bad on
2005 # Always define AMTAR for backward compatibility.
2007 AMTAR=${AMTAR-"${am_missing_run}tar"}
2009 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2016 ac_config_headers="$ac_config_headers config.h"
2019 ACLOCAL_AMFLAGS="-I m4"
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 if test -n "$ac_tool_prefix"; then
2028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$CC"; then
2036 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 if test -n "$CC"; then
2056 echo "$as_me:$LINENO: result: $CC" >&5
2057 echo "${ECHO_T}$CC" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2064 if test -z "$ac_cv_prog_CC"; then
2066 # Extract the first word of "gcc", so it can be a program name with args.
2067 set dummy gcc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test -n "$ac_ct_CC"; then
2074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_CC="gcc"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}cc; ac_word=$2
2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 ac_cv_prog_CC="${ac_tool_prefix}cc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 if test -n "$CC"; then
2136 echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6
2139 echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2144 if test -z "$ac_cv_prog_CC"; then
2146 # Extract the first word of "cc", so it can be a program name with args.
2147 set dummy cc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 if test -n "$ac_ct_CC"; then
2154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_ac_ct_CC="cc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 echo "${ECHO_T}$ac_ct_CC" >&6
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2187 if test -z "$CC"; then
2188 # Extract the first word of "cc", so it can be a program name with args.
2189 set dummy cc; ac_word=$2
2190 echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2192 if test "${ac_cv_prog_CC+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test -n "$CC"; then
2196 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2207 ac_prog_rejected=yes
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 if test $ac_prog_rejected = yes; then
2218 # We found a bogon in the path, so make sure we never use it.
2219 set dummy $ac_cv_prog_CC
2221 if test $@%:@ != 0; then
2222 # We chose a different compiler from the bogus one.
2223 # However, it has the same basename, so the bogon will be chosen
2224 # first if we set CC to just the basename; use the full file name.
2226 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2232 if test -n "$CC"; then
2233 echo "$as_me:$LINENO: result: $CC" >&5
2234 echo "${ECHO_T}$CC" >&6
2236 echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2241 if test -z "$CC"; then
2242 if test -n "$ac_tool_prefix"; then
2245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2247 echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 if test -n "$CC"; then
2253 ac_cv_prog_CC="$CC" # Let the user override the test.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 if test -n "$CC"; then
2273 echo "$as_me:$LINENO: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6
2276 echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6
2280 test -n "$CC" && break
2283 if test -z "$CC"; then
2287 # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 if test -n "$ac_ct_CC"; then
2295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304 ac_cv_prog_ac_ct_CC="$ac_prog"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314 if test -n "$ac_ct_CC"; then
2315 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2316 echo "${ECHO_T}$ac_ct_CC" >&6
2318 echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2322 test -n "$ac_ct_CC" && break
2331 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details." >&2;}
2335 { (exit 1); exit 1; }; }
2337 # Provide some information about the compiler.
2338 echo "$as_me:$LINENO:" \
2339 "checking for C compiler version" >&5
2340 ac_compiler=`set X $ac_compile; echo $2`
2341 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2342 (eval $ac_compiler --version </dev/null >&5) 2>&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2347 (eval $ac_compiler -v </dev/null >&5) 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2352 (eval $ac_compiler -V </dev/null >&5) 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }
2357 cat >conftest.$ac_ext <<_ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2372 ac_clean_files_save=$ac_clean_files
2373 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2374 # Try to create an executable without -o first, disregard a.out.
2375 # It will help us diagnose broken compilers, and finding out an intuition
2377 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2378 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2379 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2380 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2381 (eval $ac_link_default) 2>&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; then
2385 # Find the output, starting from the most likely. This scheme is
2386 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2389 # Be careful to initialize this variable, since it used to be cached.
2390 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2392 # b.out is created by i960 compilers.
2393 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2395 test -f "$ac_file" || continue
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2400 # This is the source file.
2403 # We found the default executable, but exeext='' is most
2407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408 # FIXME: I believe we export ac_cv_exeext for Libtool,
2409 # but it would be cool to find out if it's true. Does anybody
2410 # maintain Libtool? --akim.
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2421 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: C compiler cannot create executables
2424 See \`config.log' for more details." >&2;}
2425 { (exit 77); exit 77; }; }
2428 ac_exeext=$ac_cv_exeext
2429 echo "$as_me:$LINENO: result: $ac_file" >&5
2430 echo "${ECHO_T}$ac_file" >&6
2432 # Check the compiler produces executables we can run. If not, either
2433 # the compiler is broken, or we cross compile.
2434 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2435 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2436 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2437 # If not cross compiling, check that we can run a simple program.
2438 if test "$cross_compiling" != yes; then
2439 if { ac_try='./$ac_file'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2447 if test "$cross_compiling" = maybe; then
2450 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2451 If you meant to cross compile, use \`--host'.
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: cannot run C compiled programs.
2454 If you meant to cross compile, use \`--host'.
2455 See \`config.log' for more details." >&2;}
2456 { (exit 1); exit 1; }; }
2460 echo "$as_me:$LINENO: result: yes" >&5
2461 echo "${ECHO_T}yes" >&6
2463 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2464 ac_clean_files=$ac_clean_files_save
2465 # Check the compiler produces executables we can run. If not, either
2466 # the compiler is broken, or we cross compile.
2467 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2468 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2469 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2470 echo "${ECHO_T}$cross_compiling" >&6
2472 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2473 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2475 (eval $ac_link) 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; then
2479 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2480 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2481 # work properly (i.e., refer to `conftest.exe'), while it won't with
2483 for ac_file in conftest.exe conftest conftest.*; do
2484 test -f "$ac_file" || continue
2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2487 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2494 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2497 See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2501 rm -f conftest$ac_cv_exeext
2502 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2503 echo "${ECHO_T}$ac_cv_exeext" >&6
2505 rm -f conftest.$ac_ext
2506 EXEEXT=$ac_cv_exeext
2508 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2509 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2510 if test "${ac_cv_objext+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 cat >conftest.$ac_ext <<_ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2528 rm -f conftest.o conftest.obj
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2537 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2548 See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2554 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2555 echo "${ECHO_T}$ac_cv_objext" >&6
2556 OBJEXT=$ac_cv_objext
2558 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2559 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2560 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>conftest.er1
2585 grep -v '^ *+' conftest.er1 >conftest.err
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -z "$ac_c_werror_flag"
2591 || test ! -s conftest.err'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2614 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2615 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2616 GCC=`test $ac_compiler_gnu = yes && echo yes`
2617 ac_test_CFLAGS=${CFLAGS+set}
2618 ac_save_CFLAGS=$CFLAGS
2620 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2621 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cc_g+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2673 if test "$ac_test_CFLAGS" = set; then
2674 CFLAGS=$ac_save_CFLAGS
2675 elif test $ac_cv_prog_cc_g = yes; then
2676 if test "$GCC" = yes; then
2682 if test "$GCC" = yes; then
2688 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2689 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2690 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 ac_cv_prog_cc_stdc=no
2695 cat >conftest.$ac_ext <<_ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2703 #include <sys/types.h>
2704 #include <sys/stat.h>
2705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2706 struct buf { int x; };
2707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2708 static char *e (p, i)
2714 static char *f (char * (*g) (char **, int), char **p, ...)
2719 s = g (p, va_arg (v,int));
2724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2725 function prototypes and stuff, but not '\xHH' hex character constants.
2726 These don't provoke an error unfortunately, instead are silently treated
2727 as 'x'. The following induces an error, until -std1 is added to get
2728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2729 array size at least. It's necessary to write '\x00'==0 to get something
2730 that's true only with -std1. */
2731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2733 int test (int i, double x);
2734 struct s1 {int (*f) (int a);};
2735 struct s2 {int (*f) (double a);};
2736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2747 # Don't try gcc -ansi; that turns off useful extensions and
2748 # breaks some systems' header files.
2749 # AIX -qlanglvl=ansi
2750 # Ultrix and OSF/1 -std1
2751 # HP-UX 10.20 and later -Ae
2752 # HP-UX older versions -Aa -D_HPUX_SOURCE
2753 # SVR4 -Xc -D__EXTENSIONS__
2754 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2756 CC="$ac_save_CC $ac_arg"
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2761 grep -v '^ *+' conftest.er1 >conftest.err
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_c_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 ac_cv_prog_cc_stdc=$ac_arg
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2786 rm -f conftest.err conftest.$ac_objext
2788 rm -f conftest.$ac_ext conftest.$ac_objext
2793 case "x$ac_cv_prog_cc_stdc" in
2795 echo "$as_me:$LINENO: result: none needed" >&5
2796 echo "${ECHO_T}none needed" >&6 ;;
2798 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2800 CC="$CC $ac_cv_prog_cc_stdc" ;;
2803 # Some people use a C++ compiler to compile C. Since we use `exit',
2804 # in C++ we need to declare it. In case someone uses the same compiler
2805 # for both compiling C and C++ we need to have the C++ compiler decide
2806 # the declaration of exit, since it's the most demanding environment.
2807 cat >conftest.$ac_ext <<_ACEOF
2808 @%:@ifndef __cplusplus
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814 (eval $ac_compile) 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -z "$ac_c_werror_flag"
2822 || test ! -s conftest.err'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; } &&
2828 { ac_try='test -s conftest.$ac_objext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 for ac_declaration in \
2836 'extern "C" void std::exit (int) throw (); using std::exit;' \
2837 'extern "C" void std::exit (int); using std::exit;' \
2838 'extern "C" void exit (int) throw ();' \
2839 'extern "C" void exit (int);' \
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2849 @%:@include <stdlib.h>
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2862 grep -v '^ *+' conftest.er1 >conftest.err
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_c_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 if test -n "$ac_declaration"; then
2935 echo '#ifdef __cplusplus' >>confdefs.h
2936 echo $ac_declaration >>confdefs.h
2937 echo '#endif' >>confdefs.h
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 DEPDIR="${am__leading_dot}deps"
2953 ac_config_commands="$ac_config_commands depfiles"
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2962 # If we don't find an include directive, just comment out the code.
2963 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2968 # First try GNU make style include.
2969 echo "include confinc" > confmf
2970 # We grep out `Entering directory' and `Leaving directory'
2971 # messages which can occur if `w' ends up in MAKEFLAGS.
2972 # In particular we don't look at `^make:' because GNU make might
2973 # be invoked under some other name (usually "gmake"), in which
2974 # case it prints its new name instead of `make'.
2975 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2980 # Now try BSD make style include.
2981 if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
2983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984 am__include=.include
2991 echo "$as_me:$LINENO: result: $_am_result" >&5
2992 echo "${ECHO_T}$_am_result" >&6
2993 rm -f confinc confmf
2995 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
3000 if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3006 if test "x$enable_dependency_tracking" != xno; then
3017 depcc="$CC" am_compiler_list=
3019 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3020 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3021 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3025 # We make a subdir and do the tests there. Otherwise we can end up
3026 # making bogus files that we don't know about and never remove. For
3027 # instance it was reported that on HP-UX the gcc test will end up
3028 # making a dummy file named `D' -- because `-MD' means `put the output
3031 # Copy depcomp to subdir because otherwise we won't find it if we're
3032 # using a relative directory.
3033 cp "$am_depcomp" conftest.dir
3035 # We will build objects and dependencies in a subdirectory because
3036 # it helps to detect inapplicable dependency modes. For instance
3037 # both Tru64's cc and ICC support -MD to output dependencies as a
3038 # side effect of compilation, but ICC will put the dependencies in
3039 # the current directory while Tru64 will put them in the object
3043 am_cv_CC_dependencies_compiler_type=none
3044 if test "$am_compiler_list" = ""; then
3045 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3047 for depmode in $am_compiler_list; do
3048 # Setup a source with many dependencies, because some compilers
3049 # like to wrap large dependency lists on column 80 (with \), and
3050 # we should not choose a depcomp mode which is confused by this.
3052 # We need to recreate these files for each test, as the compiler may
3053 # overwrite some of them when testing with obscure command lines.
3054 # This happens at least with the AIX C compiler.
3056 for i in 1 2 3 4 5 6; do
3057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3058 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3059 # Solaris 8's {/usr,}/bin/sh.
3060 touch sub/conftst$i.h
3062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3066 # after this tag, mechanisms are not by side-effect, so they'll
3067 # only be used when explicitly requested
3068 if test "x$enable_dependency_tracking" = xyes; then
3076 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3077 # mode. It turns out that the SunPro C++ compiler does not properly
3078 # handle `-M -o', and we need to detect this.
3079 if depmode=$depmode \
3080 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3081 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3082 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3083 >/dev/null 2>conftest.err &&
3084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3085 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3087 # icc doesn't choke on unknown options, it will just issue warnings
3088 # or remarks (even with -Werror). So we grep stderr for any message
3089 # that says an option was ignored or not supported.
3090 # When given -MP, icc 7.0 and 7.1 complain thusly:
3091 # icc: Command line warning: ignoring option '-M'; no argument required
3092 # The diagnosis changed in icc 8.0:
3093 # icc: Command line remark: option '-MP' not supported
3094 if (grep 'ignoring option' conftest.err ||
3095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3096 am_cv_CC_dependencies_compiler_type=$depmode
3105 am_cv_CC_dependencies_compiler_type=none
3109 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3110 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3116 test "x$enable_dependency_tracking" != xno \
3117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3119 am__fastdepCC_FALSE='#'
3121 am__fastdepCC_TRUE='#'
3122 am__fastdepCC_FALSE=
3126 # Check whether --enable-shared or --disable-shared was given.
3127 if test "${enable_shared+set}" = set; then
3128 enableval="$enable_shared"
3129 p=${PACKAGE-default}
3131 yes) enable_shared=yes ;;
3132 no) enable_shared=no ;;
3135 # Look at the argument we got. We use all the common list separators.
3136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3137 for pkg in $enableval; do
3139 if test "X$pkg" = "X$p"; then
3150 # Check whether --enable-static or --disable-static was given.
3151 if test "${enable_static+set}" = set; then
3152 enableval="$enable_static"
3153 p=${PACKAGE-default}
3155 yes) enable_static=yes ;;
3156 no) enable_static=no ;;
3159 # Look at the argument we got. We use all the common list separators.
3160 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3161 for pkg in $enableval; do
3163 if test "X$pkg" = "X$p"; then
3174 # Check whether --enable-fast-install or --disable-fast-install was given.
3175 if test "${enable_fast_install+set}" = set; then
3176 enableval="$enable_fast_install"
3177 p=${PACKAGE-default}
3179 yes) enable_fast_install=yes ;;
3180 no) enable_fast_install=no ;;
3182 enable_fast_install=no
3183 # Look at the argument we got. We use all the common list separators.
3184 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3185 for pkg in $enableval; do
3187 if test "X$pkg" = "X$p"; then
3188 enable_fast_install=yes
3195 enable_fast_install=yes
3198 # Make sure we can run config.sub.
3199 $ac_config_sub sun4 >/dev/null 2>&1 ||
3200 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3201 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3202 { (exit 1); exit 1; }; }
3204 echo "$as_me:$LINENO: checking build system type" >&5
3205 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3206 if test "${ac_cv_build+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_cv_build_alias=$build_alias
3210 test -z "$ac_cv_build_alias" &&
3211 ac_cv_build_alias=`$ac_config_guess`
3212 test -z "$ac_cv_build_alias" &&
3213 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3214 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3215 { (exit 1); exit 1; }; }
3216 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3217 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3218 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3219 { (exit 1); exit 1; }; }
3222 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3223 echo "${ECHO_T}$ac_cv_build" >&6
3225 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3226 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3227 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3230 echo "$as_me:$LINENO: checking host system type" >&5
3231 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3232 if test "${ac_cv_host+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 ac_cv_host_alias=$host_alias
3236 test -z "$ac_cv_host_alias" &&
3237 ac_cv_host_alias=$ac_cv_build_alias
3238 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3239 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3240 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3241 { (exit 1); exit 1; }; }
3244 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3245 echo "${ECHO_T}$ac_cv_host" >&6
3247 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3248 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3249 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3252 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3253 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3254 if test "${lt_cv_path_SED+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 # Loop through the user's path and test for sed and gsed.
3258 # Then use that list of sed's as ones to test for truncation.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for lt_ac_prog in sed gsed; do
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3267 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3274 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3275 # along with /bin/sed that truncates output.
3276 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3277 test ! -f $lt_ac_sed && break
3278 cat /dev/null > conftest.in
3280 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3281 # Check for GNU sed and select it if it is found.
3282 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3283 lt_cv_path_SED=$lt_ac_sed
3287 cat conftest.in conftest.in >conftest.tmp
3288 mv conftest.tmp conftest.in
3289 cp conftest.in conftest.nl
3291 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3292 cmp -s conftest.out conftest.nl || break
3293 # 10000 chars as input seems more than enough
3294 test $lt_ac_count -gt 10 && break
3295 lt_ac_count=`expr $lt_ac_count + 1`
3296 if test $lt_ac_count -gt $lt_ac_max; then
3297 lt_ac_max=$lt_ac_count
3298 lt_cv_path_SED=$lt_ac_sed
3306 echo "$as_me:$LINENO: result: $SED" >&5
3307 echo "${ECHO_T}$SED" >&6
3309 echo "$as_me:$LINENO: checking for egrep" >&5
3310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3311 if test "${ac_cv_prog_egrep+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3315 then ac_cv_prog_egrep='grep -E'
3316 else ac_cv_prog_egrep='egrep'
3319 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3320 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3321 EGREP=$ac_cv_prog_egrep
3325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3326 if test "${with_gnu_ld+set}" = set; then
3327 withval="$with_gnu_ld"
3328 test "$withval" = no || with_gnu_ld=yes
3333 if test "$GCC" = yes; then
3334 # Check if gcc -print-prog-name=ld gives a path.
3335 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3336 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3339 # gcc leaves a trailing carriage return which upsets mingw
3340 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3342 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3345 # Accept absolute paths.
3347 re_direlt='/[^/][^/]*/\.\./'
3348 # Canonicalize the pathname of ld
3349 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3350 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3351 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3353 test -z "$LD" && LD="$ac_prog"
3356 # If it fails, then pretend we aren't using GCC.
3360 # If it is relative, then search for the first ld in PATH.
3364 elif test "$with_gnu_ld" = yes; then
3365 echo "$as_me:$LINENO: checking for GNU ld" >&5
3366 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3368 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3369 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3371 if test "${lt_cv_path_LD+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 if test -z "$LD"; then
3375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3376 for ac_dir in $PATH; do
3378 test -z "$ac_dir" && ac_dir=.
3379 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3380 lt_cv_path_LD="$ac_dir/$ac_prog"
3381 # Check to see if the program is GNU ld. I'd rather use --version,
3382 # but apparently some GNU ld's only accept -v.
3383 # Break only if it was the GNU/non-GNU ld that we prefer.
3384 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3385 *GNU* | *'with BFD'*)
3386 test "$with_gnu_ld" != no && break
3389 test "$with_gnu_ld" != yes && break
3396 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3401 if test -n "$LD"; then
3402 echo "$as_me:$LINENO: result: $LD" >&5
3403 echo "${ECHO_T}$LD" >&6
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3408 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3409 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3410 { (exit 1); exit 1; }; }
3411 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3412 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3413 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3417 case `$LD -v 2>&1 </dev/null` in
3418 *GNU* | *'with BFD'*)
3419 lt_cv_prog_gnu_ld=yes
3422 lt_cv_prog_gnu_ld=no
3426 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3427 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3428 with_gnu_ld=$lt_cv_prog_gnu_ld
3431 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3432 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3433 if test "${lt_cv_ld_reload_flag+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 lt_cv_ld_reload_flag='-r'
3438 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3439 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3440 reload_flag=$lt_cv_ld_reload_flag
3441 case $reload_flag in
3443 *) reload_flag=" $reload_flag" ;;
3445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3447 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3448 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3449 if test "${lt_cv_path_NM+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$NM"; then
3453 # Let the user override the test.
3456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3457 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3459 test -z "$ac_dir" && ac_dir=.
3460 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3461 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3462 # Check to see if the nm accepts a BSD-compat flag.
3463 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3464 # nm: unknown option "B" ignored
3465 # Tru64's nm complains that /dev/null is an invalid object file
3466 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3467 */dev/null* | *'Invalid file or object type'*)
3468 lt_cv_path_NM="$tmp_nm -B"
3472 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3474 lt_cv_path_NM="$tmp_nm -p"
3478 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3479 continue # so that we can try to find one that supports BSD flags
3486 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3489 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3490 echo "${ECHO_T}$lt_cv_path_NM" >&6
3493 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3494 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3496 if test "$LN_S" = "ln -s"; then
3497 echo "$as_me:$LINENO: result: yes" >&5
3498 echo "${ECHO_T}yes" >&6
3500 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3501 echo "${ECHO_T}no, using $LN_S" >&6
3504 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3505 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3506 if test "${lt_cv_deplibs_check_method+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 lt_cv_file_magic_cmd='$MAGIC_CMD'
3510 lt_cv_file_magic_test_file=
3511 lt_cv_deplibs_check_method='unknown'
3512 # Need to set the preceding variable on all platforms that support
3513 # interlibrary dependencies.
3514 # 'none' -- dependencies not supported.
3515 # `unknown' -- same as none, but documents that we really don't know.
3516 # 'pass_all' -- all dependencies passed with no checks.
3517 # 'test_compile' -- check by making test program.
3518 # 'file_magic [[regex]]' -- check by looking for files in library path
3519 # which responds to the $file_magic_cmd with a given extended regex.
3520 # If you have `file' or equivalent on your system and you're not sure
3521 # whether `pass_all' will *always* work, you probably want this one.
3525 lt_cv_deplibs_check_method=pass_all
3529 lt_cv_deplibs_check_method=pass_all
3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3534 lt_cv_file_magic_cmd='/usr/bin/file -L'
3535 lt_cv_file_magic_test_file=/shlib/libc.so
3539 # func_win32_libid is a shell function defined in ltmain.sh
3540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3541 lt_cv_file_magic_cmd='func_win32_libid'
3545 # Base MSYS/MinGW do not provide the 'file' command needed by
3546 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3548 lt_cv_file_magic_cmd='$OBJDUMP -f'
3551 darwin* | rhapsody*)
3552 lt_cv_deplibs_check_method=pass_all
3555 freebsd* | kfreebsd*-gnu)
3556 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3559 # Not sure whether the presence of OpenBSD here was a mistake.
3560 # Let's accept both of them until this is cleared up.
3561 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3562 lt_cv_file_magic_cmd=/usr/bin/file
3563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3567 lt_cv_deplibs_check_method=pass_all
3572 lt_cv_deplibs_check_method=pass_all
3575 hpux10.20* | hpux11*)
3576 lt_cv_file_magic_cmd=/usr/bin/file
3579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3583 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]'
3584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3588 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3593 irix5* | irix6* | nonstopux*)
3595 *-32|*"-32 ") libmagic=32-bit;;
3596 *-n32|*"-n32 ") libmagic=N32;;
3597 *-64|*"-64 ") libmagic=64-bit;;
3598 *) libmagic=never-match;;
3600 lt_cv_deplibs_check_method=pass_all
3603 # This must be Linux ELF.
3606 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3607 lt_cv_deplibs_check_method=pass_all ;;
3609 # glibc up to 2.1.1 does not perform some relocations on ARM
3610 # this will be overridden with pass_all, but let us keep it just in case
3611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3613 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3614 lt_cv_deplibs_check_method=pass_all
3618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3627 lt_cv_file_magic_cmd=/usr/bin/file
3628 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3632 lt_cv_deplibs_check_method=unknown
3636 lt_cv_file_magic_cmd=/usr/bin/file
3637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3641 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3645 osf3* | osf4* | osf5*)
3646 lt_cv_deplibs_check_method=pass_all
3650 lt_cv_deplibs_check_method=pass_all
3654 lt_cv_deplibs_check_method=pass_all
3657 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3658 case $host_vendor in
3660 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]'
3661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3664 lt_cv_deplibs_check_method=pass_all
3667 lt_cv_file_magic_cmd='/bin/file'
3668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3671 lt_cv_file_magic_cmd='/bin/file'
3672 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3673 lt_cv_file_magic_test_file=/lib/libc.so
3676 lt_cv_deplibs_check_method=pass_all
3681 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3682 lt_cv_deplibs_check_method=pass_all
3687 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3688 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3689 file_magic_cmd=$lt_cv_file_magic_cmd
3690 deplibs_check_method=$lt_cv_deplibs_check_method
3691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3696 # If no C compiler was specified, use CC.
3699 # Allow CC to be a program name with arguments.
3703 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3704 if test "${enable_libtool_lock+set}" = set; then
3705 enableval="$enable_libtool_lock"
3708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3710 # Some flags need to be propagated to the compiler or linker for good
3714 # Find out which ABI we are using.
3715 echo 'int i;' > conftest.$ac_ext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; then
3721 case `/usr/bin/file conftest.$ac_objext` in
3733 # Find out which ABI we are using.
3734 echo '#line __oline__ "configure"' > conftest.$ac_ext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736 (eval $ac_compile) 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; then
3740 if test "$lt_cv_prog_gnu_ld" = yes; then
3741 case `/usr/bin/file conftest.$ac_objext` in
3743 LD="${LD-ld} -melf32bsmip"
3746 LD="${LD-ld} -melf32bmipn32"
3749 LD="${LD-ld} -melf64bmip"
3753 case `/usr/bin/file conftest.$ac_objext` in
3769 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3770 # Find out which ABI we are using.
3771 echo 'int i;' > conftest.$ac_ext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 (eval $ac_compile) 2>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; then
3777 case "`/usr/bin/file conftest.o`" in
3781 LD="${LD-ld} -m elf_i386"
3783 ppc64-*linux*|powerpc64-*linux*)
3784 LD="${LD-ld} -m elf32ppclinux"
3787 LD="${LD-ld} -m elf_s390"
3790 LD="${LD-ld} -m elf32_sparc"
3797 LD="${LD-ld} -m elf_x86_64"
3799 ppc*-*linux*|powerpc*-*linux*)
3800 LD="${LD-ld} -m elf64ppc"
3803 LD="${LD-ld} -m elf64_s390"
3806 LD="${LD-ld} -m elf64_sparc"
3816 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3817 SAVE_CFLAGS="$CFLAGS"
3818 CFLAGS="$CFLAGS -belf"
3819 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3820 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3821 if test "${lt_cv_cc_needs_belf+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 lt_cv_cc_needs_belf=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 lt_cv_cc_needs_belf=no
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3884 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3885 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3886 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3887 CFLAGS="$SAVE_CFLAGS"
3893 need_locks="$enable_libtool_lock"
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3903 # On Suns, sometimes $CPP names a directory.
3904 if test -n "$CPP" && test -d "$CPP"; then
3907 if test -z "$CPP"; then
3908 if test "${ac_cv_prog_CPP+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 # Double quotes because CPP needs to be expanded
3912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3915 for ac_c_preproc_warn_flag in '' yes
3917 # Use a header file that comes with gcc, so configuring glibc
3918 # with a fresh cross-compiler works.
3919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3920 # <limits.h> exists even on freestanding compilers.
3921 # On the NeXT, cc -E runs the code through the compiler's parser,
3922 # not just through cpp. "Syntax error" is here to catch this case.
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3930 @%:@ include <limits.h>
3932 @%:@ include <assert.h>
3936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3939 grep -v '^ *+' conftest.er1 >conftest.err
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } >/dev/null; then
3944 if test -s conftest.err; then
3945 ac_cpp_err=$ac_c_preproc_warn_flag
3946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3953 if test -z "$ac_cpp_err"; then
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 # Broken: fails on valid input.
3962 rm -f conftest.err conftest.$ac_ext
3964 # OK, works on sane cases. Now check whether non-existent headers
3965 # can be detected and how.
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 @%:@include <ac_nonexistent.h>
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977 grep -v '^ *+' conftest.er1 >conftest.err
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } >/dev/null; then
3982 if test -s conftest.err; then
3983 ac_cpp_err=$ac_c_preproc_warn_flag
3984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991 if test -z "$ac_cpp_err"; then
3992 # Broken: success on invalid input.
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998 # Passes both tests.
4002 rm -f conftest.err conftest.$ac_ext
4005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006 rm -f conftest.err conftest.$ac_ext
4007 if $ac_preproc_ok; then
4019 echo "$as_me:$LINENO: result: $CPP" >&5
4020 echo "${ECHO_T}$CPP" >&6
4022 for ac_c_preproc_warn_flag in '' yes
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4037 @%:@ include <limits.h>
4039 @%:@ include <assert.h>
4043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } >/dev/null; then
4051 if test -s conftest.err; then
4052 ac_cpp_err=$ac_c_preproc_warn_flag
4053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4060 if test -z "$ac_cpp_err"; then
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 # Broken: fails on valid input.
4069 rm -f conftest.err conftest.$ac_ext
4071 # OK, works on sane cases. Now check whether non-existent headers
4072 # can be detected and how.
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 @%:@include <ac_nonexistent.h>
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null; then
4089 if test -s conftest.err; then
4090 ac_cpp_err=$ac_c_preproc_warn_flag
4091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4098 if test -z "$ac_cpp_err"; then
4099 # Broken: success on invalid input.
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 # Passes both tests.
4109 rm -f conftest.err conftest.$ac_ext
4112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113 rm -f conftest.err conftest.$ac_ext
4114 if $ac_preproc_ok; then
4117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4118 See \`config.log' for more details." >&5
4119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4120 See \`config.log' for more details." >&2;}
4121 { (exit 1); exit 1; }; }
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4133 if test "${ac_cv_header_stdc+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_header_stdc=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_header_stdc=no
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 if test $ac_cv_header_stdc = yes; then
4187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "memchr" >/dev/null 2>&1; then
4201 ac_cv_header_stdc=no
4207 if test $ac_cv_header_stdc = yes; then
4208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219 $EGREP "free" >/dev/null 2>&1; then
4222 ac_cv_header_stdc=no
4228 if test $ac_cv_header_stdc = yes; then
4229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230 if test "$cross_compiling" = yes; then
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4244 # define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4263 rm -f conftest$ac_exeext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4265 (eval $ac_link) 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4276 echo "$as_me: program exited with status $ac_status" >&5
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4281 ac_cv_header_stdc=no
4283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4289 if test $ac_cv_header_stdc = yes; then
4291 cat >>confdefs.h <<\_ACEOF
4292 @%:@define STDC_HEADERS 1
4297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4308 inttypes.h stdint.h unistd.h
4310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311 echo "$as_me:$LINENO: checking for $ac_header" >&5
4312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4324 @%:@include <$ac_header>
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 eval "$as_ac_Header=yes"
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 eval "$as_ac_Header=no"
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4360 cat >>confdefs.h <<_ACEOF
4361 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4370 for ac_header in dlfcn.h
4372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374 echo "$as_me:$LINENO: checking for $ac_header" >&5
4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4382 # Is the header compilable?
4383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 $ac_includes_default
4392 @%:@include <$ac_header>
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>conftest.er1
4398 grep -v '^ *+' conftest.er1 >conftest.err
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } &&
4403 { ac_try='test -z "$ac_c_werror_flag"
4404 || test ! -s conftest.err'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
4416 ac_header_compiler=yes
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_header_compiler=no
4423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4425 echo "${ECHO_T}$ac_header_compiler" >&6
4427 # Is the header present?
4428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 @%:@include <$ac_header>
4438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } >/dev/null; then
4446 if test -s conftest.err; then
4447 ac_cpp_err=$ac_c_preproc_warn_flag
4448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4455 if test -z "$ac_cpp_err"; then
4456 ac_header_preproc=yes
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4461 ac_header_preproc=no
4463 rm -f conftest.err conftest.$ac_ext
4464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4465 echo "${ECHO_T}$ac_header_preproc" >&6
4467 # So? What about this header?
4468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4474 ac_header_preproc=yes
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4491 @%:@@%:@ ------------------------------------------ @%:@@%:@
4492 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
4493 @%:@@%:@ ------------------------------------------ @%:@@%:@
4496 sed "s/^/$as_me: WARNING: /" >&2
4499 echo "$as_me:$LINENO: checking for $ac_header" >&5
4500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 eval "$as_ac_Header=\$ac_header_preproc"
4506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4511 cat >>confdefs.h <<_ACEOF
4512 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4520 ac_cpp='$CXXCPP $CPPFLAGS'
4521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4524 if test -n "$ac_tool_prefix"; then
4525 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_CXX+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 if test -n "$CXX"; then
4535 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 if test -n "$CXX"; then
4555 echo "$as_me:$LINENO: result: $CXX" >&5
4556 echo "${ECHO_T}$CXX" >&6
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4562 test -n "$CXX" && break
4565 if test -z "$CXX"; then
4567 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test -n "$ac_ct_CXX"; then
4577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_ac_ct_CXX="$ac_prog"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4596 if test -n "$ac_ct_CXX"; then
4597 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4598 echo "${ECHO_T}$ac_ct_CXX" >&6
4600 echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6
4604 test -n "$ac_ct_CXX" && break
4606 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4612 # Provide some information about the compiler.
4613 echo "$as_me:$LINENO:" \
4614 "checking for C++ compiler version" >&5
4615 ac_compiler=`set X $ac_compile; echo $2`
4616 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4617 (eval $ac_compiler --version </dev/null >&5) 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }
4621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4622 (eval $ac_compiler -v </dev/null >&5) 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }
4626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4627 (eval $ac_compiler -V </dev/null >&5) 2>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }
4632 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4633 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4634 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_cxx_werror_flag"
4665 || test ! -s conftest.err'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; } &&
4671 { ac_try='test -s conftest.$ac_objext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4688 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4689 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4690 GXX=`test $ac_compiler_gnu = yes && echo yes`
4691 ac_test_CXXFLAGS=${CXXFLAGS+set}
4692 ac_save_CXXFLAGS=$CXXFLAGS
4694 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4695 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4696 if test "${ac_cv_prog_cxx_g+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 cat >conftest.$ac_ext <<_ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4718 grep -v '^ *+' conftest.er1 >conftest.err
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_cxx_werror_flag"
4724 || test ! -s conftest.err'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; } &&
4730 { ac_try='test -s conftest.$ac_objext'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; }; then
4736 ac_cv_prog_cxx_g=yes
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4747 if test "$ac_test_CXXFLAGS" = set; then
4748 CXXFLAGS=$ac_save_CXXFLAGS
4749 elif test $ac_cv_prog_cxx_g = yes; then
4750 if test "$GXX" = yes; then
4756 if test "$GXX" = yes; then
4762 for ac_declaration in \
4764 'extern "C" void std::exit (int) throw (); using std::exit;' \
4765 'extern "C" void std::exit (int); using std::exit;' \
4766 'extern "C" void exit (int) throw ();' \
4767 'extern "C" void exit (int);' \
4770 cat >conftest.$ac_ext <<_ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4777 @%:@include <stdlib.h>
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_cxx_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_cxx_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 if test -n "$ac_declaration"; then
4863 echo '#ifdef __cplusplus' >>confdefs.h
4864 echo $ac_declaration >>confdefs.h
4865 echo '#endif' >>confdefs.h
4869 ac_cpp='$CXXCPP $CPPFLAGS'
4870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4874 depcc="$CXX" am_compiler_list=
4876 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4877 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4878 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4882 # We make a subdir and do the tests there. Otherwise we can end up
4883 # making bogus files that we don't know about and never remove. For
4884 # instance it was reported that on HP-UX the gcc test will end up
4885 # making a dummy file named `D' -- because `-MD' means `put the output
4888 # Copy depcomp to subdir because otherwise we won't find it if we're
4889 # using a relative directory.
4890 cp "$am_depcomp" conftest.dir
4892 # We will build objects and dependencies in a subdirectory because
4893 # it helps to detect inapplicable dependency modes. For instance
4894 # both Tru64's cc and ICC support -MD to output dependencies as a
4895 # side effect of compilation, but ICC will put the dependencies in
4896 # the current directory while Tru64 will put them in the object
4900 am_cv_CXX_dependencies_compiler_type=none
4901 if test "$am_compiler_list" = ""; then
4902 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4904 for depmode in $am_compiler_list; do
4905 # Setup a source with many dependencies, because some compilers
4906 # like to wrap large dependency lists on column 80 (with \), and
4907 # we should not choose a depcomp mode which is confused by this.
4909 # We need to recreate these files for each test, as the compiler may
4910 # overwrite some of them when testing with obscure command lines.
4911 # This happens at least with the AIX C compiler.
4913 for i in 1 2 3 4 5 6; do
4914 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4916 # Solaris 8's {/usr,}/bin/sh.
4917 touch sub/conftst$i.h
4919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4923 # after this tag, mechanisms are not by side-effect, so they'll
4924 # only be used when explicitly requested
4925 if test "x$enable_dependency_tracking" = xyes; then
4933 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934 # mode. It turns out that the SunPro C++ compiler does not properly
4935 # handle `-M -o', and we need to detect this.
4936 if depmode=$depmode \
4937 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4939 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4940 >/dev/null 2>conftest.err &&
4941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4942 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4944 # icc doesn't choke on unknown options, it will just issue warnings
4945 # or remarks (even with -Werror). So we grep stderr for any message
4946 # that says an option was ignored or not supported.
4947 # When given -MP, icc 7.0 and 7.1 complain thusly:
4948 # icc: Command line warning: ignoring option '-M'; no argument required
4949 # The diagnosis changed in icc 8.0:
4950 # icc: Command line remark: option '-MP' not supported
4951 if (grep 'ignoring option' conftest.err ||
4952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4953 am_cv_CXX_dependencies_compiler_type=$depmode
4962 am_cv_CXX_dependencies_compiler_type=none
4966 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4967 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4968 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4973 test "x$enable_dependency_tracking" != xno \
4974 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4975 am__fastdepCXX_TRUE=
4976 am__fastdepCXX_FALSE='#'
4978 am__fastdepCXX_TRUE='#'
4979 am__fastdepCXX_FALSE=
4984 ac_cpp='$CXXCPP $CPPFLAGS'
4985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4988 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4989 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4990 if test -z "$CXXCPP"; then
4991 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 # Double quotes because CXXCPP needs to be expanded
4995 for CXXCPP in "$CXX -E" "/lib/cpp"
4998 for ac_cxx_preproc_warn_flag in '' yes
5000 # Use a header file that comes with gcc, so configuring glibc
5001 # with a fresh cross-compiler works.
5002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003 # <limits.h> exists even on freestanding compilers.
5004 # On the NeXT, cc -E runs the code through the compiler's parser,
5005 # not just through cpp. "Syntax error" is here to catch this case.
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5013 @%:@ include <limits.h>
5015 @%:@ include <assert.h>
5019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5022 grep -v '^ *+' conftest.er1 >conftest.err
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } >/dev/null; then
5027 if test -s conftest.err; then
5028 ac_cpp_err=$ac_cxx_preproc_warn_flag
5029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5036 if test -z "$ac_cpp_err"; then
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 # Broken: fails on valid input.
5045 rm -f conftest.err conftest.$ac_ext
5047 # OK, works on sane cases. Now check whether non-existent headers
5048 # can be detected and how.
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 @%:@include <ac_nonexistent.h>
5057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } >/dev/null; then
5065 if test -s conftest.err; then
5066 ac_cpp_err=$ac_cxx_preproc_warn_flag
5067 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5074 if test -z "$ac_cpp_err"; then
5075 # Broken: success on invalid input.
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Passes both tests.
5085 rm -f conftest.err conftest.$ac_ext
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then
5095 ac_cv_prog_CXXCPP=$CXXCPP
5098 CXXCPP=$ac_cv_prog_CXXCPP
5100 ac_cv_prog_CXXCPP=$CXXCPP
5102 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5103 echo "${ECHO_T}$CXXCPP" >&6
5105 for ac_cxx_preproc_warn_flag in '' yes
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat >conftest.$ac_ext <<_ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5120 @%:@ include <limits.h>
5122 @%:@ include <assert.h>
5126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5129 grep -v '^ *+' conftest.er1 >conftest.err
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } >/dev/null; then
5134 if test -s conftest.err; then
5135 ac_cpp_err=$ac_cxx_preproc_warn_flag
5136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5143 if test -z "$ac_cpp_err"; then
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 # Broken: fails on valid input.
5152 rm -f conftest.err conftest.$ac_ext
5154 # OK, works on sane cases. Now check whether non-existent headers
5155 # can be detected and how.
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 @%:@include <ac_nonexistent.h>
5164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5167 grep -v '^ *+' conftest.er1 >conftest.err
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } >/dev/null; then
5172 if test -s conftest.err; then
5173 ac_cpp_err=$ac_cxx_preproc_warn_flag
5174 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5181 if test -z "$ac_cpp_err"; then
5182 # Broken: success on invalid input.
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 # Passes both tests.
5192 rm -f conftest.err conftest.$ac_ext
5195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5196 rm -f conftest.err conftest.$ac_ext
5197 if $ac_preproc_ok; then
5200 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5201 See \`config.log' for more details." >&5
5202 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5203 See \`config.log' for more details." >&2;}
5204 { (exit 1); exit 1; }; }
5208 ac_cpp='$CXXCPP $CPPFLAGS'
5209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5216 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5218 if test -n "$ac_tool_prefix"; then
5219 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_F77+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 if test -n "$F77"; then
5229 ac_cv_prog_F77="$F77" # Let the user override the test.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 if test -n "$F77"; then
5249 echo "$as_me:$LINENO: result: $F77" >&5
5250 echo "${ECHO_T}$F77" >&6
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5256 test -n "$F77" && break
5259 if test -z "$F77"; then
5261 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5263 # Extract the first word of "$ac_prog", so it can be a program name with args.
5264 set dummy $ac_prog; ac_word=$2
5265 echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 if test -n "$ac_ct_F77"; then
5271 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_ac_ct_F77="$ac_prog"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5290 if test -n "$ac_ct_F77"; then
5291 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5292 echo "${ECHO_T}$ac_ct_F77" >&6
5294 echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5298 test -n "$ac_ct_F77" && break
5305 # Provide some information about the compiler.
5306 echo "$as_me:__oline__:" \
5307 "checking for Fortran 77 compiler version" >&5
5308 ac_compiler=`set X $ac_compile; echo $2`
5309 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5310 (eval $ac_compiler --version </dev/null >&5) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }
5314 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5315 (eval $ac_compiler -v </dev/null >&5) 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }
5319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5320 (eval $ac_compiler -V </dev/null >&5) 2>&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }
5326 # If we don't use `.F' as extension, the preprocessor is not run on the
5327 # input file. (Note that this only needs to work for GNU compilers.)
5330 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5331 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5332 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 cat >conftest.$ac_ext <<_ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>conftest.er1
5347 grep -v '^ *+' conftest.er1 >conftest.err
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -z "$ac_f77_werror_flag"
5353 || test ! -s conftest.err'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try='test -s conftest.$ac_objext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5373 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5376 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5377 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5379 ac_test_FFLAGS=${FFLAGS+set}
5380 ac_save_FFLAGS=$FFLAGS
5382 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5383 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5384 if test "${ac_cv_prog_f77_g+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 cat >conftest.$ac_ext <<_ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395 (eval $ac_compile) 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -z "$ac_f77_werror_flag"
5403 || test ! -s conftest.err'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; } &&
5409 { ac_try='test -s conftest.$ac_objext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_cv_prog_f77_g=yes
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5426 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5427 if test "$ac_test_FFLAGS" = set; then
5428 FFLAGS=$ac_save_FFLAGS
5429 elif test $ac_cv_prog_f77_g = yes; then
5430 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5436 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5443 G77=`test $ac_compiler_gnu = yes && echo yes`
5445 ac_cpp='$CPP $CPPFLAGS'
5446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5454 # find the maximum length of command line arguments
5455 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5456 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5457 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 # On DJGPP, this test can blow up pretty badly due to problems in libc
5466 # (any single argument exceeding 2000 bytes causes a buffer overrun
5467 # during glob expansion). Even if it were fixed, the result of this
5468 # check would be larger than it should be.
5469 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5473 # Under GNU Hurd, this test is not required because there is
5474 # no limit to the length of command line arguments.
5475 # Libtool will interpret -1 as no limit whatsoever
5476 lt_cv_sys_max_cmd_len=-1;
5480 # On Win9x/ME, this test blows up -- it succeeds, but takes
5481 # about 5 minutes as the teststring grows exponentially.
5482 # Worse, since 9x/ME are not pre-emptively multitasking,
5483 # you end up with a "frozen" computer, even though with patience
5484 # the test eventually succeeds (with a max line length of 256k).
5485 # Instead, let's just punt: use the minimum linelength reported by
5486 # all of the supported platforms: 8192 (on NT/2K/XP).
5487 lt_cv_sys_max_cmd_len=8192;
5491 # On AmigaOS with pdksh, this test takes hours, literally.
5492 # So we just punt and use a minimum line length of 8192.
5493 lt_cv_sys_max_cmd_len=8192;
5497 # If test is not a shell built-in, we'll probably end up computing a
5498 # maximum length that is only half of the actual maximum length, but
5500 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5501 = "XX$teststring") >/dev/null 2>&1 &&
5502 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5503 lt_cv_sys_max_cmd_len=$new_result &&
5504 test $i != 17 # 1/2 MB should be enough
5507 teststring=$teststring$teststring
5510 # Add a significant safety factor because C++ compilers can tack on massive
5511 # amounts of additional arguments before passing them to the linker.
5512 # It appears as though 1/2 is a usable value.
5513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519 if test -n $lt_cv_sys_max_cmd_len ; then
5520 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5521 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5523 echo "$as_me:$LINENO: result: none" >&5
5524 echo "${ECHO_T}none" >&6
5530 # Check for command to grab the raw symbol name followed by C symbol from nm.
5531 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5532 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 # These are sane defaults that work on at least a few old systems.
5538 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5540 # Character class describing NM global symbol codes.
5541 symcode='[BCDEGRST]'
5543 # Regexp to match symbols that can be accessed directly from C.
5544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5546 # Transform the above into a raw symbol and a C symbol.
5547 symxfrm='\1 \2\3 \3'
5549 # Transform an extracted symbol line into a proper C declaration
5550 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5552 # Transform an extracted symbol line into symbol name and symbol address
5553 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'"
5555 # Define system-specific variables.
5560 cygwin* | mingw* | pw32*)
5561 symcode='[ABCDGISTW]'
5563 hpux*) # Its linker distinguishes data from code symbols
5564 if test "$host_cpu" = ia64; then
5565 symcode='[ABCDEGRST]'
5567 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5568 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'"
5571 symcode='[BCDEGRST]'
5574 symcode='[BCDEGQRST]'
5584 # Handle CRLF in mingw tool chain
5588 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5592 # If we're using GNU nm, then use its standard symbol codes.
5593 case `$NM -V 2>&1` in
5594 *GNU* | *'with BFD'*)
5595 symcode='[ABCDGIRSTW]' ;;
5598 # Try without a prefix undercore, then with it.
5599 for ac_symprfx in "" "_"; do
5601 # Write the raw and C identifiers.
5602 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5604 # Check to see that the pipe works correctly.
5608 cat > conftest.$ac_ext <<EOF
5613 void nm_test_func(){}
5617 int main(){nm_test_var='a';nm_test_func();return(0);}
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; then
5625 # Now try to grab the symbols.
5627 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5628 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && test -s "$nlist"; then
5632 # Try sorting and uniquifying the output.
5633 if sort "$nlist" | uniq > "$nlist"T; then
5634 mv -f "$nlist"T "$nlist"
5639 # Make sure that we snagged all the symbols we need.
5640 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5641 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5642 cat <<EOF > conftest.$ac_ext
5648 # Now generate the symbol file.
5649 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5651 cat <<EOF >> conftest.$ac_ext
5652 #if defined (__STDC__) && __STDC__
5653 # define lt_ptr_t void *
5655 # define lt_ptr_t char *
5659 /* The mapping between symbol names and symbols. */
5664 lt_preloaded_symbols[] =
5667 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5668 cat <<\EOF >> conftest.$ac_ext
5676 # Now try linking the two files.
5677 mv conftest.$ac_objext conftstm.$ac_objext
5678 lt_save_LIBS="$LIBS"
5679 lt_save_CFLAGS="$CFLAGS"
5680 LIBS="conftstm.$ac_objext"
5681 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5689 LIBS="$lt_save_LIBS"
5690 CFLAGS="$lt_save_CFLAGS"
5692 echo "cannot find nm_test_func in $nlist" >&5
5695 echo "cannot find nm_test_var in $nlist" >&5
5698 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5701 echo "$progname: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 rm -f conftest* conftst*
5706 # Do not use the global_symbol_pipe unless it works.
5707 if test "$pipe_works" = yes; then
5710 lt_cv_sys_global_symbol_pipe=
5716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5717 lt_cv_sys_global_symbol_to_cdecl=
5719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5720 echo "$as_me:$LINENO: result: failed" >&5
5721 echo "${ECHO_T}failed" >&6
5723 echo "$as_me:$LINENO: result: ok" >&5
5724 echo "${ECHO_T}ok" >&6
5727 echo "$as_me:$LINENO: checking for objdir" >&5
5728 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5729 if test "${lt_cv_objdir+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 rm -f .libs 2>/dev/null
5733 mkdir .libs 2>/dev/null
5734 if test -d .libs; then
5737 # MS-DOS does not allow filenames that begin with a dot.
5740 rmdir .libs 2>/dev/null
5742 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5743 echo "${ECHO_T}$lt_cv_objdir" >&6
5744 objdir=$lt_cv_objdir
5752 # AIX sometimes has problems with the GCC collect2 program. For some
5753 # reason, if we set the COLLECT_NAMES environment variable, the problems
5754 # vanish in a puff of smoke.
5755 if test "X${COLLECT_NAMES+set}" != Xset; then
5757 export COLLECT_NAMES
5762 # Sed substitution that helps us do robust quoting. It backslashifies
5763 # metacharacters that are still active within double-quoted strings.
5764 Xsed='sed -e s/^X//'
5765 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5767 # Same as above, but do not quote variable references.
5768 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5770 # Sed substitution to delay expansion of an escaped shell variable in a
5771 # double_quote_subst'ed string.
5772 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5774 # Sed substitution to avoid accidental globbing in evaled expressions
5775 no_glob_subst='s/\*/\\\*/g'
5781 default_ofile=libtool
5782 can_build_shared=yes
5784 # All known linkers require a `.a' archive for static linking (except M$VC,
5785 # which needs '.lib').
5787 ltmain="$ac_aux_dir/ltmain.sh"
5788 ofile="$default_ofile"
5789 with_gnu_ld="$lt_cv_prog_gnu_ld"
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}ar; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_AR+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 if test -n "$AR"; then
5800 ac_cv_prog_AR="$AR" # Let the user override the test.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_AR="${ac_tool_prefix}ar"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 if test -n "$AR"; then
5820 echo "$as_me:$LINENO: result: $AR" >&5
5821 echo "${ECHO_T}$AR" >&6
5823 echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5828 if test -z "$ac_cv_prog_AR"; then
5830 # Extract the first word of "ar", so it can be a program name with args.
5831 set dummy ar; ac_word=$2
5832 echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 if test -n "$ac_ct_AR"; then
5838 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_ac_ct_AR="ar"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5857 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5858 if test -n "$ac_ct_AR"; then
5859 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5860 echo "${ECHO_T}$ac_ct_AR" >&6
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5871 if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_RANLIB+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 if test -n "$RANLIB"; then
5880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 RANLIB=$ac_cv_prog_RANLIB
5899 if test -n "$RANLIB"; then
5900 echo "$as_me:$LINENO: result: $RANLIB" >&5
5901 echo "${ECHO_T}$RANLIB" >&6
5903 echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5908 if test -z "$ac_cv_prog_RANLIB"; then
5909 ac_ct_RANLIB=$RANLIB
5910 # Extract the first word of "ranlib", so it can be a program name with args.
5911 set dummy ranlib; ac_word=$2
5912 echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 if test -n "$ac_ct_RANLIB"; then
5918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_ac_ct_RANLIB="ranlib"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5937 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5938 if test -n "$ac_ct_RANLIB"; then
5939 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5940 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5946 RANLIB=$ac_ct_RANLIB
5948 RANLIB="$ac_cv_prog_RANLIB"
5951 if test -n "$ac_tool_prefix"; then
5952 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5953 set dummy ${ac_tool_prefix}strip; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_STRIP+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 if test -n "$STRIP"; then
5960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 STRIP=$ac_cv_prog_STRIP
5979 if test -n "$STRIP"; then
5980 echo "$as_me:$LINENO: result: $STRIP" >&5
5981 echo "${ECHO_T}$STRIP" >&6
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5988 if test -z "$ac_cv_prog_STRIP"; then
5990 # Extract the first word of "strip", so it can be a program name with args.
5991 set dummy strip; ac_word=$2
5992 echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 if test -n "$ac_ct_STRIP"; then
5998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_ac_ct_STRIP="strip"
6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6018 if test -n "$ac_ct_STRIP"; then
6019 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6020 echo "${ECHO_T}$ac_ct_STRIP" >&6
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6028 STRIP="$ac_cv_prog_STRIP"
6033 old_CFLAGS="$CFLAGS"
6035 # Set sane defaults for various variables
6036 test -z "$AR" && AR=ar
6037 test -z "$AR_FLAGS" && AR_FLAGS=cru
6038 test -z "$AS" && AS=as
6039 test -z "$CC" && CC=cc
6040 test -z "$LTCC" && LTCC=$CC
6041 test -z "$DLLTOOL" && DLLTOOL=dlltool
6042 test -z "$LD" && LD=ld
6043 test -z "$LN_S" && LN_S="ln -s"
6044 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6045 test -z "$NM" && NM=nm
6046 test -z "$SED" && SED=sed
6047 test -z "$OBJDUMP" && OBJDUMP=objdump
6048 test -z "$RANLIB" && RANLIB=:
6049 test -z "$STRIP" && STRIP=:
6050 test -z "$ac_objext" && ac_objext=o
6052 # Determine commands to create old-style static archives.
6053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6054 old_postinstall_cmds='chmod 644 $oldlib'
6055 old_postuninstall_cmds=
6057 if test -n "$RANLIB"; then
6060 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6063 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6066 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6069 # Only perform the check for file, if the check method requires it
6070 case $deplibs_check_method in
6072 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6073 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6074 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6075 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6083 lt_save_MAGIC_CMD="$MAGIC_CMD"
6084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6085 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6086 for ac_dir in $ac_dummy; do
6088 test -z "$ac_dir" && ac_dir=.
6089 if test -f $ac_dir/${ac_tool_prefix}file; then
6090 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6091 if test -n "$file_magic_test_file"; then
6092 case $deplibs_check_method in
6094 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6097 $EGREP "$file_magic_regex" > /dev/null; then
6102 *** Warning: the command libtool uses to detect shared libraries,
6103 *** $file_magic_cmd, produces output that libtool cannot recognize.
6104 *** The result is that libtool may fail to recognize shared libraries
6105 *** as such. This will affect the creation of libtool libraries that
6106 *** depend on shared libraries, but programs linked with such libtool
6107 *** libraries will work regardless of this problem. Nevertheless, you
6108 *** may want to report the problem to your system manager and/or to
6109 *** bug-libtool@gnu.org
6119 MAGIC_CMD="$lt_save_MAGIC_CMD"
6124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6125 if test -n "$MAGIC_CMD"; then
6126 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6127 echo "${ECHO_T}$MAGIC_CMD" >&6
6129 echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6
6133 if test -z "$lt_cv_path_MAGIC_CMD"; then
6134 if test -n "$ac_tool_prefix"; then
6135 echo "$as_me:$LINENO: checking for file" >&5
6136 echo $ECHO_N "checking for file... $ECHO_C" >&6
6137 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6145 lt_save_MAGIC_CMD="$MAGIC_CMD"
6146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6147 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6148 for ac_dir in $ac_dummy; do
6150 test -z "$ac_dir" && ac_dir=.
6151 if test -f $ac_dir/file; then
6152 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6153 if test -n "$file_magic_test_file"; then
6154 case $deplibs_check_method in
6156 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6159 $EGREP "$file_magic_regex" > /dev/null; then
6164 *** Warning: the command libtool uses to detect shared libraries,
6165 *** $file_magic_cmd, produces output that libtool cannot recognize.
6166 *** The result is that libtool may fail to recognize shared libraries
6167 *** as such. This will affect the creation of libtool libraries that
6168 *** depend on shared libraries, but programs linked with such libtool
6169 *** libraries will work regardless of this problem. Nevertheless, you
6170 *** may want to report the problem to your system manager and/or to
6171 *** bug-libtool@gnu.org
6181 MAGIC_CMD="$lt_save_MAGIC_CMD"
6186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187 if test -n "$MAGIC_CMD"; then
6188 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6189 echo "${ECHO_T}$MAGIC_CMD" >&6
6191 echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6
6207 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6208 if test "${enable_libtool_lock+set}" = set; then
6209 enableval="$enable_libtool_lock"
6212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6215 # Check whether --with-pic or --without-pic was given.
6216 if test "${with_pic+set}" = set; then
6222 test -z "$pic_mode" && pic_mode=default
6224 # Use C for the default configuration in the libtool script
6228 ac_cpp='$CPP $CPPFLAGS'
6229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234 # Source file extension for C test sources.
6237 # Object file extension for compiled C test sources.
6241 # Code to be used in simple compile tests
6242 lt_simple_compile_test_code="int some_variable = 0;\n"
6244 # Code to be used in simple link tests
6245 lt_simple_link_test_code='int main(){return(0);}\n'
6248 # If no C compiler was specified, use CC.
6251 # Allow CC to be a program name with arguments.
6256 # Check for any special shared library compilation flags.
6259 if test "$GCC" = no; then
6262 lt_prog_cc_shlib='-belf'
6266 if test -n "$lt_prog_cc_shlib"; then
6267 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6268 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6269 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6271 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6272 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6273 lt_cv_prog_cc_can_build_shared=no
6279 # Check to make sure the static flag actually works.
6281 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6282 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6283 if test "${lt_prog_compiler_static_works+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 lt_prog_compiler_static_works=no
6287 save_LDFLAGS="$LDFLAGS"
6288 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6289 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6291 # The compiler can only warn and ignore the option if not recognized
6292 # So say no if there are warnings
6293 if test -s conftest.err; then
6294 # Append any errors to the config.log.
6295 cat conftest.err 1>&5
6297 lt_prog_compiler_static_works=yes
6301 LDFLAGS="$save_LDFLAGS"
6304 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6305 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6307 if test x"$lt_prog_compiler_static_works" = xyes; then
6310 lt_prog_compiler_static=
6316 lt_prog_compiler_no_builtin_flag=
6318 if test "$GCC" = yes; then
6319 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6322 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6323 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6324 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 lt_cv_prog_compiler_rtti_exceptions=no
6328 ac_outfile=conftest.$ac_objext
6329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6330 lt_compiler_flag="-fno-rtti -fno-exceptions"
6331 # Insert the option either (1) after the last *FLAGS variable, or
6332 # (2) before a word containing "conftest.", or (3) at the end.
6333 # Note that $ac_compile itself does not contain backslashes and begins
6334 # with a dollar sign (not a hyphen), so the echo should work correctly.
6335 # The option is referenced via a variable to avoid confusing sed.
6336 lt_compile=`echo "$ac_compile" | $SED \
6337 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6339 -e 's:$: $lt_compiler_flag:'`
6340 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6341 (eval "$lt_compile" 2>conftest.err)
6343 cat conftest.err >&5
6344 echo "$as_me:__oline__: \$? = $ac_status" >&5
6345 if (exit $ac_status) && test -s "$ac_outfile"; then
6346 # The compiler can only warn and ignore the option if not recognized
6347 # So say no if there are warnings
6348 if test ! -s conftest.err; then
6349 lt_cv_prog_compiler_rtti_exceptions=yes
6355 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6356 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6358 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6359 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6366 lt_prog_compiler_wl=
6367 lt_prog_compiler_pic=
6368 lt_prog_compiler_static=
6370 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6371 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6373 if test "$GCC" = yes; then
6374 lt_prog_compiler_wl='-Wl,'
6375 lt_prog_compiler_static='-static'
6379 # All AIX code is PIC.
6380 if test "$host_cpu" = ia64; then
6381 # AIX 5 now supports IA64 processor
6382 lt_prog_compiler_static='-Bstatic'
6387 # FIXME: we need at least 68020 code to build shared libraries, but
6388 # adding the `-m68020' flag to GCC prevents building anything better,
6390 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6393 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6394 # PIC is the default for these OSes.
6397 mingw* | pw32* | os2*)
6398 # This hack is so that the source file can tell whether it is being
6399 # built for inclusion in a dll (and should export symbols for example).
6400 lt_prog_compiler_pic='-DDLL_EXPORT'
6403 darwin* | rhapsody*)
6404 # PIC is the default on this platform
6405 # Common symbols not allowed in MH_DYLIB files
6406 lt_prog_compiler_pic='-fno-common'
6410 # Just because we use GCC doesn't mean we suddenly get shared libraries
6411 # on systems that don't support them.
6412 lt_prog_compiler_can_build_shared=no
6417 if test -d /usr/nec; then
6418 lt_prog_compiler_pic=-Kconform_pic
6423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6430 lt_prog_compiler_pic='-fPIC'
6436 lt_prog_compiler_pic='-fPIC'
6440 # PORTME Check for flag to pass linker flags through the system compiler.
6443 lt_prog_compiler_wl='-Wl,'
6444 if test "$host_cpu" = ia64; then
6445 # AIX 5 now supports IA64 processor
6446 lt_prog_compiler_static='-Bstatic'
6448 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6452 mingw* | pw32* | os2*)
6453 # This hack is so that the source file can tell whether it is being
6454 # built for inclusion in a dll (and should export symbols for example).
6455 lt_prog_compiler_pic='-DDLL_EXPORT'
6458 hpux9* | hpux10* | hpux11*)
6459 lt_prog_compiler_wl='-Wl,'
6460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6467 lt_prog_compiler_pic='+Z'
6470 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6471 lt_prog_compiler_static='${wl}-a ${wl}archive'
6474 irix5* | irix6* | nonstopux*)
6475 lt_prog_compiler_wl='-Wl,'
6476 # PIC (with -KPIC) is the default.
6477 lt_prog_compiler_static='-non_shared'
6481 lt_prog_compiler_pic='-KPIC'
6482 lt_prog_compiler_static='-Bstatic'
6488 lt_prog_compiler_wl='-Wl,'
6489 lt_prog_compiler_pic='-KPIC'
6490 lt_prog_compiler_static='-static'
6493 lt_prog_compiler_wl='-Wl,'
6494 # All Alpha code is PIC.
6495 lt_prog_compiler_static='-non_shared'
6500 osf3* | osf4* | osf5*)
6501 lt_prog_compiler_wl='-Wl,'
6502 # All OSF/1 code is PIC.
6503 lt_prog_compiler_static='-non_shared'
6507 lt_prog_compiler_pic='-Kpic'
6508 lt_prog_compiler_static='-dn'
6512 lt_prog_compiler_wl='-Wl,'
6513 lt_prog_compiler_pic='-KPIC'
6514 lt_prog_compiler_static='-Bstatic'
6518 lt_prog_compiler_wl='-Qoption ld '
6519 lt_prog_compiler_pic='-PIC'
6520 lt_prog_compiler_static='-Bstatic'
6523 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6524 lt_prog_compiler_wl='-Wl,'
6525 lt_prog_compiler_pic='-KPIC'
6526 lt_prog_compiler_static='-Bstatic'
6530 if test -d /usr/nec ;then
6531 lt_prog_compiler_pic='-Kconform_pic'
6532 lt_prog_compiler_static='-Bstatic'
6537 lt_prog_compiler_pic='-pic'
6538 lt_prog_compiler_static='-Bstatic'
6542 lt_prog_compiler_can_build_shared=no
6547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6548 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6551 # Check to make sure the PIC flag actually works.
6553 if test -n "$lt_prog_compiler_pic"; then
6555 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6556 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6557 if test "${lt_prog_compiler_pic_works+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 lt_prog_compiler_pic_works=no
6561 ac_outfile=conftest.$ac_objext
6562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6563 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6564 # Insert the option either (1) after the last *FLAGS variable, or
6565 # (2) before a word containing "conftest.", or (3) at the end.
6566 # Note that $ac_compile itself does not contain backslashes and begins
6567 # with a dollar sign (not a hyphen), so the echo should work correctly.
6568 # The option is referenced via a variable to avoid confusing sed.
6569 lt_compile=`echo "$ac_compile" | $SED \
6570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6572 -e 's:$: $lt_compiler_flag:'`
6573 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6574 (eval "$lt_compile" 2>conftest.err)
6576 cat conftest.err >&5
6577 echo "$as_me:__oline__: \$? = $ac_status" >&5
6578 if (exit $ac_status) && test -s "$ac_outfile"; then
6579 # The compiler can only warn and ignore the option if not recognized
6580 # So say no if there are warnings
6581 if test ! -s conftest.err; then
6582 lt_prog_compiler_pic_works=yes
6588 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6589 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6591 if test x"$lt_prog_compiler_pic_works" = xyes; then
6592 case $lt_prog_compiler_pic in
6594 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6597 lt_prog_compiler_pic=
6598 lt_prog_compiler_can_build_shared=no
6603 # For platforms which do not support PIC, -DPIC is meaningless:
6605 lt_prog_compiler_pic=
6608 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6612 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6613 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6614 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 lt_cv_prog_compiler_c_o=no
6618 $rm -r conftest 2>/dev/null
6622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6624 lt_compiler_flag="-o out/conftest2.$ac_objext"
6625 # Insert the option either (1) after the last *FLAGS variable, or
6626 # (2) before a word containing "conftest.", or (3) at the end.
6627 # Note that $ac_compile itself does not contain backslashes and begins
6628 # with a dollar sign (not a hyphen), so the echo should work correctly.
6629 lt_compile=`echo "$ac_compile" | $SED \
6630 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6632 -e 's:$: $lt_compiler_flag:'`
6633 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6634 (eval "$lt_compile" 2>out/conftest.err)
6636 cat out/conftest.err >&5
6637 echo "$as_me:__oline__: \$? = $ac_status" >&5
6638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6640 # The compiler can only warn and ignore the option if not recognized
6641 # So say no if there are warnings
6642 if test ! -s out/conftest.err; then
6643 lt_cv_prog_compiler_c_o=yes
6648 # SGI C++ compiler will create directory out/ii_files/ for
6649 # template instantiation
6650 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6651 $rm out/* && rmdir out
6657 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6658 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6661 hard_links="nottested"
6662 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6663 # do not overwrite the value of need_locks provided by the user
6664 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6665 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6670 ln conftest.a conftest.b 2>&5 || hard_links=no
6671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6672 echo "$as_me:$LINENO: result: $hard_links" >&5
6673 echo "${ECHO_T}$hard_links" >&6
6674 if test "$hard_links" = no; then
6675 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6676 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6683 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6687 allow_undefined_flag=
6688 enable_shared_with_static_runtimes=no
6690 archive_expsym_cmds=
6691 old_archive_From_new_cmds=
6692 old_archive_from_expsyms_cmds=
6693 export_dynamic_flag_spec=
6694 whole_archive_flag_spec=
6695 thread_safe_flag_spec=
6696 hardcode_libdir_flag_spec=
6697 hardcode_libdir_flag_spec_ld=
6698 hardcode_libdir_separator=
6701 hardcode_shlibpath_var=unsupported
6702 link_all_deplibs=unknown
6703 hardcode_automatic=no
6706 always_export_symbols=no
6707 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6708 # include_expsyms should be a list of space-separated symbols to be *always*
6709 # included in the symbol list
6711 # exclude_expsyms can be an extended regexp of symbols to exclude
6712 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6713 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6714 # as well as any symbol that contains `d'.
6715 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6716 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6717 # platforms (ab)use it in PIC code, but their linkers get confused if
6718 # the symbol is explicitly referenced. Since portable code cannot
6719 # rely on this symbol name, it's probably fine to never include it in
6720 # preloaded symbol tables.
6721 extract_expsyms_cmds=
6724 cygwin* | mingw* | pw32*)
6725 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6726 # When not using gcc, we currently assume that we are using
6727 # Microsoft Visual C++.
6728 if test "$GCC" != yes; then
6738 if test "$with_gnu_ld" = yes; then
6739 # If archive_cmds runs LD, not CC, wlarc should be empty
6742 # See if GNU ld supports shared libraries.
6744 aix3* | aix4* | aix5*)
6745 # On AIX/PPC, the GNU linker is very broken
6746 if test "$host_cpu" != ia64; then
6750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6751 *** to be unable to reliably create shared libraries on AIX.
6752 *** Therefore, libtool is disabling shared libraries support. If you
6753 *** really care for shared libraries, you may want to modify your PATH
6754 *** so that a non-GNU linker is found, and then restart.
6761 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)'
6762 hardcode_libdir_flag_spec='-L$libdir'
6763 hardcode_minus_L=yes
6765 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6766 # that the semantics of dynamic libraries on AmigaOS, at least up
6767 # to version 4, is to share data among multiple programs linked
6768 # with the same dynamic library. Since this doesn't match the
6769 # behavior of shared libraries on other platforms, we can't use
6775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776 allow_undefined_flag=unsupported
6777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6778 # support --undefined. This deserves some investigation. FIXME
6779 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6785 cygwin* | mingw* | pw32*)
6786 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6787 # as there is no search path for DLLs.
6788 hardcode_libdir_flag_spec='-L$libdir'
6789 allow_undefined_flag=unsupported
6790 always_export_symbols=no
6791 enable_shared_with_static_runtimes=yes
6792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6794 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6796 # If the export-symbols file already is a .def file (1st line
6797 # is EXPORTS), use it as is; otherwise, prepend...
6798 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6799 cp $export_symbols $output_objdir/$soname.def;
6801 echo EXPORTS > $output_objdir/$soname.def;
6802 cat $export_symbols >> $output_objdir/$soname.def;
6804 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6812 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6821 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6825 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6826 *** create shared libraries on Solaris systems. Therefore, libtool
6827 *** is disabling shared libraries support. We urge you to upgrade GNU
6828 *** binutils to release 2.9.1 or newer. Another option is to modify
6829 *** your PATH or compiler configuration so that the native linker is
6830 *** used, and then restart.
6833 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6842 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6845 hardcode_shlibpath_var=no
6849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6850 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6851 archive_cmds="$tmp_archive_cmds"
6852 supports_anon_versioning=no
6853 case `$LD -v 2>/dev/null` in
6854 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6855 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6856 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6857 *\ 2.11.*) ;; # other 2.11 versions
6858 *) supports_anon_versioning=yes ;;
6860 if test $supports_anon_versioning = yes; then
6861 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6863 $echo "local: *; };" >> $output_objdir/$libname.ver~
6864 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6866 archive_expsym_cmds="$tmp_archive_cmds"
6874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6876 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6883 if test "$ld_shlibs" = yes; then
6884 runpath_var=LD_RUN_PATH
6885 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6886 export_dynamic_flag_spec='${wl}--export-dynamic'
6887 # ancient GNU ld didn't support --whole-archive et. al.
6888 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6889 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6891 whole_archive_flag_spec=
6895 # PORTME fill in a description of your system's linker (not GNU ld)
6898 allow_undefined_flag=unsupported
6899 always_export_symbols=yes
6900 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'
6901 # Note: this linker hardcodes the directories in LIBPATH if there
6902 # are no directories specified by -L.
6903 hardcode_minus_L=yes
6904 if test "$GCC" = yes && test -z "$link_static_flag"; then
6905 # Neither direct hardcoding nor static linking is supported with a
6907 hardcode_direct=unsupported
6912 if test "$host_cpu" = ia64; then
6913 # On IA64, the linker does run time linking by default, so we don't
6914 # have to do anything special.
6915 aix_use_runtimelinking=no
6916 exp_sym_flag='-Bexport'
6919 # If we're using GNU nm, then we don't want the "-C" option.
6920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6921 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6922 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'
6924 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'
6926 aix_use_runtimelinking=no
6928 # Test if we are trying to use run time linking or normal
6929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6930 # need to do runtime linking.
6931 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6932 for ld_flag in $LDFLAGS; do
6933 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6934 aix_use_runtimelinking=yes
6940 exp_sym_flag='-bexport'
6941 no_entry_flag='-bnoentry'
6944 # When large executables or shared objects are built, AIX ld can
6945 # have problems creating the table of contents. If linking a library
6946 # or program results in "error TOC overflow" add -mminimal-toc to
6947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6952 hardcode_libdir_separator=':'
6953 link_all_deplibs=yes
6955 if test "$GCC" = yes; then
6956 case $host_os in aix4.012|aix4.012.*)
6957 # We only want to do this on AIX 4.2 and lower, the check
6958 # below for broken collect2 doesn't work under 4.3+
6959 collect2name=`${CC} -print-prog-name=collect2`
6960 if test -f "$collect2name" && \
6961 strings "$collect2name" | grep resolve_lib_name >/dev/null
6963 # We have reworked collect2
6966 # We have old collect2
6967 hardcode_direct=unsupported
6968 # It fails to find uninstalled libraries when the uninstalled
6969 # path is not listed in the libpath. Setting hardcode_minus_L
6970 # to unsupported forces relinking
6971 hardcode_minus_L=yes
6972 hardcode_libdir_flag_spec='-L$libdir'
6973 hardcode_libdir_separator=
6976 shared_flag='-shared'
6979 if test "$host_cpu" = ia64; then
6980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6981 # chokes on -Wl,-G. The following line is correct:
6984 if test "$aix_use_runtimelinking" = yes; then
6985 shared_flag='${wl}-G'
6987 shared_flag='${wl}-bM:SRE'
6992 # It seems that -bexpall does not export symbols beginning with
6993 # underscore (_), so it is better to generate a list of symbols to export.
6994 always_export_symbols=yes
6995 if test "$aix_use_runtimelinking" = yes; then
6996 # Warning - without using the other runtime loading flags (-brtl),
6997 # -berok will link without error, but may produce a broken library.
6998 allow_undefined_flag='-berok'
6999 # Determine the default libpath from the value encoded in an empty executable.
7000 cat >conftest.$ac_ext <<_ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>conftest.er1
7019 grep -v '^ *+' conftest.er1 >conftest.err
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try='test -z "$ac_c_werror_flag"
7025 || test ! -s conftest.err'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; } &&
7031 { ac_try='test -s conftest$ac_exeext'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; }; then
7038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7040 # Check for a 64-bit object if we didn't find anything.
7041 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; }
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7048 rm -f conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7052 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7053 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"
7055 if test "$host_cpu" = ia64; then
7056 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7057 allow_undefined_flag="-z nodefs"
7058 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"
7060 # Determine the default libpath from the value encoded in an empty executable.
7061 cat >conftest.$ac_ext <<_ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7101 # Check for a 64-bit object if we didn't find anything.
7102 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; }
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7109 rm -f conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7113 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7114 # Warning - without using the other run time loading flags,
7115 # -berok will link without error, but may produce a broken library.
7116 no_undefined_flag=' ${wl}-bernotok'
7117 allow_undefined_flag=' ${wl}-berok'
7118 # -bexpall does not export symbols beginning with underscore (_)
7119 always_export_symbols=yes
7120 # Exported symbols can be pulled into shared objects from archives
7121 whole_archive_flag_spec=' '
7122 archive_cmds_need_lc=yes
7123 # This is similar to how AIX traditionally builds it's shared libraries.
7124 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'
7130 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)'
7131 hardcode_libdir_flag_spec='-L$libdir'
7132 hardcode_minus_L=yes
7133 # see comment about different semantics on the GNU ld section
7138 export_dynamic_flag_spec=-rdynamic
7141 cygwin* | mingw* | pw32*)
7142 # When not using gcc, we currently assume that we are using
7143 # Microsoft Visual C++.
7144 # hardcode_libdir_flag_spec is actually meaningless, as there is
7145 # no search path for DLLs.
7146 hardcode_libdir_flag_spec=' '
7147 allow_undefined_flag=unsupported
7148 # Tell ltmain to make .lib files, not .a files.
7150 # Tell ltmain to make .dll files, not .so files.
7152 # FIXME: Setting linknames here is a bad hack.
7153 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7154 # The linker will automatically build a .lib file if we build a DLL.
7155 old_archive_From_new_cmds='true'
7156 # FIXME: Should let the user specify the lib program.
7157 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7158 fix_srcfile_path='`cygpath -w "$srcfile"`'
7159 enable_shared_with_static_runtimes=yes
7162 darwin* | rhapsody*)
7163 if test "$GXX" = yes ; then
7164 archive_cmds_need_lc=no
7166 rhapsody* | darwin1.[012])
7167 allow_undefined_flag='-undefined suppress'
7170 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7171 allow_undefined_flag='-flat_namespace -undefined suppress'
7173 case ${MACOSX_DEPLOYMENT_TARGET} in
7175 allow_undefined_flag='-flat_namespace -undefined suppress'
7178 allow_undefined_flag='-undefined dynamic_lookup'
7184 lt_int_apple_cc_single_mod=no
7185 output_verbose_link_cmd='echo'
7186 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7187 lt_int_apple_cc_single_mod=yes
7189 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7190 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7192 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'
7194 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7195 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7196 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7197 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}'
7199 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}'
7201 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}'
7203 hardcode_automatic=yes
7204 hardcode_shlibpath_var=unsupported
7205 whole_archive_flag_spec='-all_load $convenience'
7206 link_all_deplibs=yes
7213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7214 hardcode_libdir_flag_spec='-L$libdir'
7215 hardcode_shlibpath_var=no
7222 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7223 # support. Future versions do this automatically, but an explicit c++rt0.o
7224 # does not break anything, and helps significantly (at the cost of a little
7227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7228 hardcode_libdir_flag_spec='-R$libdir'
7230 hardcode_shlibpath_var=no
7233 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7237 hardcode_minus_L=yes
7238 hardcode_shlibpath_var=no
7241 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7242 freebsd* | kfreebsd*-gnu)
7243 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7244 hardcode_libdir_flag_spec='-R$libdir'
7246 hardcode_shlibpath_var=no
7250 if test "$GCC" = yes; then
7251 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'
7253 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'
7255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7256 hardcode_libdir_separator=:
7259 # hardcode_minus_L: Not really in the search PATH,
7260 # but as the default location of the library.
7261 hardcode_minus_L=yes
7262 export_dynamic_flag_spec='${wl}-E'
7266 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7269 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7272 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7278 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7281 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7285 if test "$with_gnu_ld" = no; then
7288 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7289 hardcode_libdir_flag_spec_ld='+b $libdir'
7290 hardcode_libdir_separator=:
7292 hardcode_shlibpath_var=no
7295 hardcode_libdir_flag_spec='-L$libdir'
7297 hardcode_shlibpath_var=no
7299 # hardcode_minus_L: Not really in the search PATH,
7300 # but as the default location of the library.
7301 hardcode_minus_L=yes
7304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7305 hardcode_libdir_separator=:
7307 export_dynamic_flag_spec='${wl}-E'
7309 # hardcode_minus_L: Not really in the search PATH,
7310 # but as the default location of the library.
7311 hardcode_minus_L=yes
7317 irix5* | irix6* | nonstopux*)
7318 if test "$GCC" = yes; then
7319 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'
7321 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'
7322 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7325 hardcode_libdir_separator=:
7326 link_all_deplibs=yes
7330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7333 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7335 hardcode_libdir_flag_spec='-R$libdir'
7337 hardcode_shlibpath_var=no
7341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7344 hardcode_libdir_separator=:
7345 hardcode_shlibpath_var=no
7350 hardcode_shlibpath_var=no
7351 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7352 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7354 export_dynamic_flag_spec='${wl}-E'
7357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7359 hardcode_libdir_flag_spec='-R$libdir'
7362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7370 hardcode_libdir_flag_spec='-L$libdir'
7371 hardcode_minus_L=yes
7372 allow_undefined_flag=unsupported
7373 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'
7374 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7378 if test "$GCC" = yes; then
7379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7380 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'
7382 allow_undefined_flag=' -expect_unresolved \*'
7383 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'
7385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7386 hardcode_libdir_separator=:
7389 osf4* | osf5*) # as osf3* with the addition of -msym flag
7390 if test "$GCC" = yes; then
7391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7392 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'
7393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7395 allow_undefined_flag=' -expect_unresolved \*'
7396 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'
7397 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7398 $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'
7400 # Both c and cxx compiler support -rpath directly
7401 hardcode_libdir_flag_spec='-rpath $libdir'
7403 hardcode_libdir_separator=:
7407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7408 hardcode_shlibpath_var=no
7409 export_dynamic_flag_spec='${wl}-Bexport'
7410 runpath_var=LD_RUN_PATH
7411 hardcode_runpath_var=yes
7415 no_undefined_flag=' -z text'
7416 if test "$GCC" = yes; then
7417 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7418 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7419 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7421 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7423 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7425 hardcode_libdir_flag_spec='-R$libdir'
7426 hardcode_shlibpath_var=no
7428 solaris2.[0-5] | solaris2.[0-5].*) ;;
7429 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7430 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7432 link_all_deplibs=yes
7436 if test "x$host_vendor" = xsequent; then
7437 # Use $CC to link under sequent, because it throws in some extra .o
7438 # files that make .init and .fini sections work.
7439 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7441 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7443 hardcode_libdir_flag_spec='-L$libdir'
7445 hardcode_minus_L=yes
7446 hardcode_shlibpath_var=no
7450 case $host_vendor in
7452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7453 hardcode_direct=yes # is this really true???
7456 ## LD is ld it makes a PLAMLIB
7457 ## CC just makes a GrossModule.
7458 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7459 reload_cmds='$CC -r -o $output$reload_objs'
7463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7467 runpath_var='LD_RUN_PATH'
7468 hardcode_shlibpath_var=no
7472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473 hardcode_shlibpath_var=no
7474 export_dynamic_flag_spec='-Bexport'
7478 if test -d /usr/nec; then
7479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7480 hardcode_shlibpath_var=no
7481 runpath_var=LD_RUN_PATH
7482 hardcode_runpath_var=yes
7488 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7491 hardcode_shlibpath_var=no
7492 hardcode_runpath_var=yes
7493 runpath_var=LD_RUN_PATH
7496 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7497 no_undefined_flag='${wl}-z ${wl}text'
7498 if test "$GCC" = yes; then
7499 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7501 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7503 runpath_var='LD_RUN_PATH'
7504 hardcode_shlibpath_var=no
7508 no_undefined_flag=' -z text'
7509 # $CC -shared without GNU ld will not create a library from C++
7510 # object files and a static libstdc++, better avoid it by now
7511 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7513 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7514 hardcode_libdir_flag_spec=
7515 hardcode_shlibpath_var=no
7516 runpath_var='LD_RUN_PATH'
7520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7521 hardcode_libdir_flag_spec='-L$libdir'
7522 hardcode_shlibpath_var=no
7531 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7532 echo "${ECHO_T}$ld_shlibs" >&6
7533 test "$ld_shlibs" = no && can_build_shared=no
7535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7536 if test "$GCC" = yes; then
7537 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7541 # Do we need to explicitly link libc?
7543 case "x$archive_cmds_need_lc" in
7545 # Assume -lc should be added
7546 archive_cmds_need_lc=yes
7548 if test "$enable_shared" = yes && test "$GCC" = yes; then
7549 case $archive_cmds in
7551 # FIXME: we may have to deal with multi-command sequences.
7554 # Test whether the compiler implicitly links with -lc since on some
7555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7556 # to ld, don't add -lc before -lgcc.
7557 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7558 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } 2>conftest.err; then
7569 libobjs=conftest.$ac_objext
7571 wl=$lt_prog_compiler_wl
7577 lt_save_allow_undefined_flag=$allow_undefined_flag
7578 allow_undefined_flag=
7579 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7580 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }
7585 archive_cmds_need_lc=no
7587 archive_cmds_need_lc=yes
7589 allow_undefined_flag=$lt_save_allow_undefined_flag
7591 cat conftest.err 1>&5
7594 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7595 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7602 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7603 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7605 libname_spec='lib$name'
7613 shlibpath_overrides_runpath=unknown
7615 dynamic_linker="$host_os ld.so"
7616 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7617 if test "$GCC" = yes; then
7618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7619 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7620 # if the path contains ";" then we assume it to be the separator
7621 # otherwise default to the standard path separator (i.e. ":") - it is
7622 # assumed that no part of a normal pathname contains ";" but that should
7623 # okay in the real world where ";" in dirpaths is itself problematic.
7624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7631 need_lib_prefix=unknown
7632 hardcode_into_libs=no
7634 # when you set need_version to no, make sure it does not cause -set_version
7635 # flags to be left without arguments
7636 need_version=unknown
7641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7642 shlibpath_var=LIBPATH
7644 # AIX 3 has no versioning support, so we append a major version to the name.
7645 soname_spec='${libname}${release}${shared_ext}$major'
7652 hardcode_into_libs=yes
7653 if test "$host_cpu" = ia64; then
7654 # AIX 5 supports IA64
7655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7656 shlibpath_var=LD_LIBRARY_PATH
7658 # With GCC up to 2.95.x, collect2 would create an import file
7659 # for dependence libraries. The import file would start with
7660 # the line `#! .'. This would cause the generated library to
7661 # depend on `.', always an invalid library. This was fixed in
7662 # development snapshots of GCC prior to 3.0.
7664 aix4 | aix4.[01] | aix4.[01].*)
7665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7675 # soname into executable. Probably we can add versioning support to
7676 # collect2, so additional links can be useful in future.
7677 if test "$aix_use_runtimelinking" = yes; then
7678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7679 # instead of lib<name>.a to let people know that these are not
7680 # typical AIX shared libraries.
7681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7683 # We preserve .a as extension for shared libraries through AIX4.2
7684 # and later when we are not doing run time linking.
7685 library_names_spec='${libname}${release}.a $libname.a'
7686 soname_spec='${libname}${release}${shared_ext}$major'
7688 shlibpath_var=LIBPATH
7693 library_names_spec='$libname.ixlibrary $libname.a'
7694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7695 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'
7699 library_names_spec='${libname}${shared_ext}'
7700 dynamic_linker="$host_os ld.so"
7701 shlibpath_var=LIBRARY_PATH
7707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7708 soname_spec='${libname}${release}${shared_ext}$major'
7709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7710 shlibpath_var=LD_LIBRARY_PATH
7711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7713 # the default ld.so.conf also contains /usr/contrib/lib and
7714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7715 # libtool to hard-code these into programs
7718 cygwin* | mingw* | pw32*)
7719 version_type=windows
7724 case $GCC,$host_os in
7725 yes,cygwin* | yes,mingw* | yes,pw32*)
7726 library_names_spec='$libname.dll.a'
7727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7728 postinstall_cmds='base_file=`basename \${file}`~
7729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7730 dldir=$destdir/`dirname \$dlpath`~
7731 test -d \$dldir || mkdir -p \$dldir~
7732 $install_prog $dir/$dlname \$dldir/$dlname'
7733 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7734 dlpath=$dir/\$dldll~
7736 shlibpath_overrides_runpath=yes
7740 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7741 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7742 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7745 # MinGW DLLs use traditional 'lib' prefix
7746 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7747 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7748 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7749 # It is most probably a Windows format PATH printed by
7750 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7751 # path with ; separators, and with drive letters. We can handle the
7752 # drive letters (cygwin fileutils understands them), so leave them,
7753 # especially as we might pass files found there to a mingw objdump,
7754 # which wouldn't understand a cygwinified path. Ahh.
7755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7761 # pw32 DLLs use 'pw' prefix rather than 'lib'
7762 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7768 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7771 dynamic_linker='Win32 ld.exe'
7772 # FIXME: first we should search . and the directory the executable is in
7776 darwin* | rhapsody*)
7777 dynamic_linker="$host_os dyld"
7781 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7782 soname_spec='${libname}${release}${major}$shared_ext'
7783 shlibpath_overrides_runpath=yes
7784 shlibpath_var=DYLD_LIBRARY_PATH
7785 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7786 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7787 if test "$GCC" = yes; then
7788 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"`
7790 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7792 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7800 soname_spec='${libname}${release}${shared_ext}$major'
7801 shlibpath_var=LD_LIBRARY_PATH
7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7813 soname_spec='${libname}${release}${shared_ext}$major'
7814 shlibpath_var=LD_LIBRARY_PATH
7815 shlibpath_overrides_runpath=no
7816 hardcode_into_libs=yes
7817 dynamic_linker='GNU ld.so'
7821 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7822 version_type=freebsd-$objformat
7823 case $version_type in
7825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7834 shlibpath_var=LD_LIBRARY_PATH
7837 shlibpath_overrides_runpath=yes
7839 freebsd3.01* | freebsdelf3.01*)
7840 shlibpath_overrides_runpath=yes
7841 hardcode_into_libs=yes
7844 shlibpath_overrides_runpath=no
7845 hardcode_into_libs=yes
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7855 soname_spec='${libname}${release}${shared_ext}$major'
7856 shlibpath_var=LD_LIBRARY_PATH
7857 hardcode_into_libs=yes
7860 hpux9* | hpux10* | hpux11*)
7861 # Give a soname corresponding to the major version so that dld.sl refuses to
7862 # link against other versions.
7869 hardcode_into_libs=yes
7870 dynamic_linker="$host_os dld.so"
7871 shlibpath_var=LD_LIBRARY_PATH
7872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874 soname_spec='${libname}${release}${shared_ext}$major'
7875 if test "X$HPUX_IA64_MODE" = X32; then
7876 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7878 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7884 hardcode_into_libs=yes
7885 dynamic_linker="$host_os dld.sl"
7886 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 soname_spec='${libname}${release}${shared_ext}$major'
7890 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7895 dynamic_linker="$host_os dld.sl"
7896 shlibpath_var=SHLIB_PATH
7897 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7899 soname_spec='${libname}${release}${shared_ext}$major'
7902 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7903 postinstall_cmds='chmod 555 $lib'
7906 irix5* | irix6* | nonstopux*)
7908 nonstopux*) version_type=nonstopux ;;
7910 if test "$lt_cv_prog_gnu_ld" = yes; then
7918 soname_spec='${libname}${release}${shared_ext}$major'
7919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7921 irix5* | nonstopux*)
7925 case $LD in # libtool.m4 will add one of these switches to LD
7926 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7927 libsuff= shlibsuff= libmagic=32-bit;;
7928 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7929 libsuff=32 shlibsuff=N32 libmagic=N32;;
7930 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7931 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7932 *) libsuff= shlibsuff= libmagic=never-match;;
7936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7937 shlibpath_overrides_runpath=no
7938 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7939 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7940 hardcode_into_libs=yes
7943 # No shared lib support for Linux oldld, aout, or coff.
7944 linux*oldld* | linux*aout* | linux*coff*)
7948 # This must be Linux ELF.
7953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954 soname_spec='${libname}${release}${shared_ext}$major'
7955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7956 shlibpath_var=LD_LIBRARY_PATH
7957 shlibpath_overrides_runpath=no
7958 # This implies no fast_install, which is unacceptable.
7959 # Some rework will be needed to allow for fast_install
7960 # before this can be enabled.
7961 hardcode_into_libs=yes
7963 # find out which ABI we are using
7966 x86_64*|s390x*|powerpc64*)
7967 echo '#line __oline__ "configure"' > conftest.$ac_ext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7969 (eval $ac_compile) 2>&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; then
7973 case `/usr/bin/file conftest.$ac_objext` in
7976 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7984 # Append ld.so.conf contents to the search path
7985 if test -f /etc/ld.so.conf; then
7986 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7987 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7990 # We used to test for /lib/ld.so.1 and disable shared libraries on
7991 # powerpc, because MkLinux only supported shared libraries with the
7992 # GNU dynamic linker. Since this was broken with cross compilers,
7993 # most powerpc-linux boxes support dynamic linking these days and
7994 # people can always --disable-shared, the test was removed, and we
7995 # assume the GNU/Linux dynamic linker is in use.
7996 dynamic_linker='GNU/Linux ld.so'
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8004 soname_spec='${libname}${release}${shared_ext}$major'
8005 shlibpath_var=LD_LIBRARY_PATH
8006 shlibpath_overrides_runpath=no
8007 hardcode_into_libs=yes
8008 dynamic_linker='GNU ld.so'
8015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8018 dynamic_linker='NetBSD (a.out) ld.so'
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8021 soname_spec='${libname}${release}${shared_ext}$major'
8022 dynamic_linker='NetBSD ld.elf_so'
8024 shlibpath_var=LD_LIBRARY_PATH
8025 shlibpath_overrides_runpath=yes
8026 hardcode_into_libs=yes
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032 shlibpath_var=LD_LIBRARY_PATH
8033 shlibpath_overrides_runpath=yes
8040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8041 soname_spec='${libname}${release}${shared_ext}$major'
8042 shlibpath_var=LD_LIBRARY_PATH
8043 shlibpath_overrides_runpath=yes
8050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8052 shlibpath_var=LD_LIBRARY_PATH
8053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8055 openbsd2.[89] | openbsd2.[89].*)
8056 shlibpath_overrides_runpath=no
8059 shlibpath_overrides_runpath=yes
8063 shlibpath_overrides_runpath=yes
8068 libname_spec='$name'
8071 library_names_spec='$libname${shared_ext} $libname.a'
8072 dynamic_linker='OS/2 ld.exe'
8073 shlibpath_var=LIBPATH
8076 osf3* | osf4* | osf5*)
8080 soname_spec='${libname}${release}${shared_ext}$major'
8081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082 shlibpath_var=LD_LIBRARY_PATH
8083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8089 soname_spec='${libname}${release}${shared_ext}$major'
8090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091 shlibpath_var=LD_LIBRARY_PATH
8098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099 soname_spec='${libname}${release}${shared_ext}$major'
8100 shlibpath_var=LD_LIBRARY_PATH
8101 shlibpath_overrides_runpath=yes
8102 hardcode_into_libs=yes
8103 # ldd complains unless libraries are executable
8104 postinstall_cmds='chmod +x $lib'
8109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8111 shlibpath_var=LD_LIBRARY_PATH
8112 shlibpath_overrides_runpath=yes
8113 if test "$with_gnu_ld" = yes; then
8119 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8122 soname_spec='${libname}${release}${shared_ext}$major'
8123 shlibpath_var=LD_LIBRARY_PATH
8124 case $host_vendor in
8126 shlibpath_overrides_runpath=no
8128 export_dynamic_flag_spec='${wl}-Blargedynsym'
8129 runpath_var=LD_RUN_PATH
8137 shlibpath_overrides_runpath=no
8138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8144 if test -d /usr/nec ;then
8146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8147 soname_spec='$libname${shared_ext}.$major'
8148 shlibpath_var=LD_LIBRARY_PATH
8154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8155 soname_spec='${libname}${release}${shared_ext}$major'
8156 shlibpath_var=LD_LIBRARY_PATH
8163 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8164 echo "${ECHO_T}$dynamic_linker" >&6
8165 test "$dynamic_linker" = no && can_build_shared=no
8167 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8170 if test -n "$hardcode_libdir_flag_spec" || \
8171 test -n "$runpath_var " || \
8172 test "X$hardcode_automatic"="Xyes" ; then
8174 # We can hardcode non-existant directories.
8175 if test "$hardcode_direct" != no &&
8176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8177 # have to relink, otherwise we might link with an installed library
8178 # when we should be linking with a yet-to-be-installed one
8179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8180 test "$hardcode_minus_L" != no; then
8181 # Linking always hardcodes the temporary library directory.
8182 hardcode_action=relink
8184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8185 hardcode_action=immediate
8188 # We cannot hardcode anything, or else we can only hardcode existing
8190 hardcode_action=unsupported
8192 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8193 echo "${ECHO_T}$hardcode_action" >&6
8195 if test "$hardcode_action" = relink; then
8196 # Fast installation is not supported
8197 enable_fast_install=no
8198 elif test "$shlibpath_overrides_runpath" = yes ||
8199 test "$enable_shared" = no; then
8200 # Fast installation is not necessary
8201 enable_fast_install=needless
8206 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8207 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8208 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8211 echo "$as_me:$LINENO: result: yes" >&5
8212 echo "${ECHO_T}yes" >&6
8214 # FIXME - insert some real tests, host_os isn't really good enough
8217 if test -n "$STRIP" ; then
8218 striplib="$STRIP -x"
8219 echo "$as_me:$LINENO: result: yes" >&5
8220 echo "${ECHO_T}yes" >&6
8222 echo "$as_me:$LINENO: result: no" >&5
8223 echo "${ECHO_T}no" >&6
8227 echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6
8233 if test "x$enable_dlopen" != xyes; then
8234 enable_dlopen=unknown
8235 enable_dlopen_self=unknown
8236 enable_dlopen_self_static=unknown
8243 lt_cv_dlopen="load_add_on"
8245 lt_cv_dlopen_self=yes
8249 lt_cv_dlopen="LoadLibrary"
8254 lt_cv_dlopen="dlopen"
8259 # if libdl is installed we need to link against it
8260 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8261 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 ac_check_lib_save_LIBS=$LIBS
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8274 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag"
8299 || test ! -s conftest.err'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 ac_cv_lib_dl_dlopen=yes
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_cv_lib_dl_dlopen=no
8318 rm -f conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8320 LIBS=$ac_check_lib_save_LIBS
8322 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8323 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8324 if test $ac_cv_lib_dl_dlopen = yes; then
8325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8330 lt_cv_dlopen_self=yes
8337 echo "$as_me:$LINENO: checking for shl_load" >&5
8338 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8339 if test "${ac_cv_func_shl_load+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 cat >conftest.$ac_ext <<_ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8350 #define shl_load innocuous_shl_load
8352 /* System header to define __stub macros and hopefully few prototypes,
8353 which can conflict with char shl_load (); below.
8354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8355 <limits.h> exists even on freestanding compilers. */
8358 # include <limits.h>
8360 # include <assert.h>
8365 /* Override any gcc2 internal prototype to avoid an error. */
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8373 /* The GNU C library defines this for functions which it implements
8374 to always fail with ENOSYS. Some functions are actually named
8375 something starting with __ and the normal name is an alias. */
8376 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8379 char (*f) () = shl_load;
8388 return f != shl_load;
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag"
8403 || test ! -s conftest.err'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_cv_func_shl_load=yes
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_cv_func_shl_load=no
8422 rm -f conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8426 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8427 if test $ac_cv_func_shl_load = yes; then
8428 lt_cv_dlopen="shl_load"
8430 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8431 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8432 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_check_lib_save_LIBS=$LIBS
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8444 /* Override any gcc2 internal prototype to avoid an error. */
8448 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>conftest.er1
8463 grep -v '^ *+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag"
8469 || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_cv_lib_dld_shl_load=yes
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_cv_lib_dld_shl_load=no
8488 rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8493 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8494 if test $ac_cv_lib_dld_shl_load = yes; then
8495 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8497 echo "$as_me:$LINENO: checking for dlopen" >&5
8498 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8499 if test "${ac_cv_func_dlopen+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8510 #define dlopen innocuous_dlopen
8512 /* System header to define __stub macros and hopefully few prototypes,
8513 which can conflict with char dlopen (); below.
8514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8515 <limits.h> exists even on freestanding compilers. */
8518 # include <limits.h>
8520 # include <assert.h>
8525 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8533 /* The GNU C library defines this for functions which it implements
8534 to always fail with ENOSYS. Some functions are actually named
8535 something starting with __ and the normal name is an alias. */
8536 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8539 char (*f) () = dlopen;
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555 (eval $ac_link) 2>conftest.er1
8557 grep -v '^ *+' conftest.er1 >conftest.err
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -z "$ac_c_werror_flag"
8563 || test ! -s conftest.err'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_func_dlopen=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ac_cv_func_dlopen=no
8582 rm -f conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8586 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8587 if test $ac_cv_func_dlopen = yes; then
8588 lt_cv_dlopen="dlopen"
8590 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8591 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 ac_check_lib_save_LIBS=$LIBS
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8604 /* Override any gcc2 internal prototype to avoid an error. */
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621 (eval $ac_link) 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag"
8629 || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_lib_dl_dlopen=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_dl_dlopen=no
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8653 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8654 if test $ac_cv_lib_dl_dlopen = yes; then
8655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8657 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8658 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8659 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 ac_check_lib_save_LIBS=$LIBS
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8671 /* Override any gcc2 internal prototype to avoid an error. */
8675 /* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */
8686 rm -f conftest.$ac_objext conftest$ac_exeext
8687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8688 (eval $ac_link) 2>conftest.er1
8690 grep -v '^ *+' conftest.er1 >conftest.err
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } &&
8695 { ac_try='test -z "$ac_c_werror_flag"
8696 || test ! -s conftest.err'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try='test -s conftest$ac_exeext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_cv_lib_svld_dlopen=yes
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8713 ac_cv_lib_svld_dlopen=no
8715 rm -f conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8717 LIBS=$ac_check_lib_save_LIBS
8719 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8720 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8721 if test $ac_cv_lib_svld_dlopen = yes; then
8722 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8724 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8725 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8726 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 ac_check_lib_save_LIBS=$LIBS
8731 cat >conftest.$ac_ext <<_ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8738 /* Override any gcc2 internal prototype to avoid an error. */
8742 /* We use char because int might match the return type of a gcc2
8743 builtin and then its argument prototype would still apply. */
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>conftest.er1
8757 grep -v '^ *+' conftest.er1 >conftest.err
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_c_werror_flag"
8763 || test ! -s conftest.err'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest$ac_exeext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_cv_lib_dld_dld_link=yes
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 ac_cv_lib_dld_dld_link=no
8782 rm -f conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
8784 LIBS=$ac_check_lib_save_LIBS
8786 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8787 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8788 if test $ac_cv_lib_dld_dld_link = yes; then
8789 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8810 if test "x$lt_cv_dlopen" != xno; then
8816 case $lt_cv_dlopen in
8818 save_CPPFLAGS="$CPPFLAGS"
8819 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8821 save_LDFLAGS="$LDFLAGS"
8822 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8825 LIBS="$lt_cv_dlopen_libs $LIBS"
8827 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8828 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8829 if test "${lt_cv_dlopen_self+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 if test "$cross_compiling" = yes; then :
8833 lt_cv_dlopen_self=cross
8835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8836 lt_status=$lt_dlunknown
8837 cat > conftest.$ac_ext <<EOF
8838 #line __oline__ "configure"
8839 #include "confdefs.h"
8848 # define LT_DLGLOBAL RTLD_GLOBAL
8851 # define LT_DLGLOBAL DL_GLOBAL
8853 # define LT_DLGLOBAL 0
8857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8858 find out it does not work in some platform. */
8859 #ifndef LT_DLLAZY_OR_NOW
8861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8864 # define LT_DLLAZY_OR_NOW DL_LAZY
8867 # define LT_DLLAZY_OR_NOW RTLD_NOW
8870 # define LT_DLLAZY_OR_NOW DL_NOW
8872 # define LT_DLLAZY_OR_NOW 0
8880 extern "C" void exit (int);
8883 void fnord() { int i=42;}
8886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8887 int status = $lt_dlunknown;
8891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8893 /* dlclose (self); */
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900 (eval $ac_link) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8904 (./conftest; exit; ) 2>/dev/null
8907 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8908 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8909 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8912 # compilation failed
8913 lt_cv_dlopen_self=no
8920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8921 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8923 if test "x$lt_cv_dlopen_self" = xyes; then
8924 LDFLAGS="$LDFLAGS $link_static_flag"
8925 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8926 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8927 if test "${lt_cv_dlopen_self_static+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 if test "$cross_compiling" = yes; then :
8931 lt_cv_dlopen_self_static=cross
8933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8934 lt_status=$lt_dlunknown
8935 cat > conftest.$ac_ext <<EOF
8936 #line __oline__ "configure"
8937 #include "confdefs.h"
8946 # define LT_DLGLOBAL RTLD_GLOBAL
8949 # define LT_DLGLOBAL DL_GLOBAL
8951 # define LT_DLGLOBAL 0
8955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8956 find out it does not work in some platform. */
8957 #ifndef LT_DLLAZY_OR_NOW
8959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8962 # define LT_DLLAZY_OR_NOW DL_LAZY
8965 # define LT_DLLAZY_OR_NOW RTLD_NOW
8968 # define LT_DLLAZY_OR_NOW DL_NOW
8970 # define LT_DLLAZY_OR_NOW 0
8978 extern "C" void exit (int);
8981 void fnord() { int i=42;}
8984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8985 int status = $lt_dlunknown;
8989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8990 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8991 /* dlclose (self); */
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9002 (./conftest; exit; ) 2>/dev/null
9005 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9006 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9007 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9010 # compilation failed
9011 lt_cv_dlopen_self_static=no
9018 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9019 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9022 CPPFLAGS="$save_CPPFLAGS"
9023 LDFLAGS="$save_LDFLAGS"
9028 case $lt_cv_dlopen_self in
9029 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9030 *) enable_dlopen_self=unknown ;;
9033 case $lt_cv_dlopen_self_static in
9034 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9035 *) enable_dlopen_self_static=unknown ;;
9040 # Report which librarie types wil actually be built
9041 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9042 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9043 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9044 echo "${ECHO_T}$can_build_shared" >&6
9046 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9047 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9048 test "$can_build_shared" = "no" && enable_shared=no
9050 # On AIX, shared libraries and static libraries use the same namespace, and
9051 # are all built from PIC.
9054 test "$enable_shared" = yes && enable_static=no
9055 if test -n "$RANLIB"; then
9056 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9057 postinstall_cmds='$RANLIB $lib'
9062 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9063 test "$enable_shared" = yes && enable_static=no
9066 darwin* | rhapsody*)
9067 if test "$GCC" = yes; then
9068 archive_cmds_need_lc=no
9070 rhapsody* | darwin1.[012])
9071 allow_undefined_flag='-undefined suppress'
9074 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9075 allow_undefined_flag='-flat_namespace -undefined suppress'
9077 case ${MACOSX_DEPLOYMENT_TARGET} in
9079 allow_undefined_flag='-flat_namespace -undefined suppress'
9082 allow_undefined_flag='-undefined dynamic_lookup'
9088 output_verbose_link_cmd='echo'
9089 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9090 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9092 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}'
9093 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}'
9095 hardcode_automatic=yes
9096 hardcode_shlibpath_var=unsupported
9097 whole_archive_flag_spec='-all_load $convenience'
9098 link_all_deplibs=yes
9104 echo "$as_me:$LINENO: result: $enable_shared" >&5
9105 echo "${ECHO_T}$enable_shared" >&6
9107 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9108 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9109 # Make sure either enable_shared or enable_static is yes.
9110 test "$enable_shared" = yes || enable_static=yes
9111 echo "$as_me:$LINENO: result: $enable_static" >&5
9112 echo "${ECHO_T}$enable_static" >&6
9114 # The else clause should only fire when bootstrapping the
9115 # libtool distribution, otherwise you forgot to ship ltmain.sh
9116 # with your package, and you will get complaints that there are
9117 # no rules to generate ltmain.sh.
9118 if test -f "$ltmain"; then
9119 # See if we are running on zsh, and set the options which allow our commands through
9120 # without removal of \ escapes.
9121 if test -n "${ZSH_VERSION+set}" ; then
9122 setopt NO_GLOB_SUBST
9124 # Now quote all the things that may contain metacharacters while being
9125 # careful not to overquote the AC_SUBSTed values. We take copies of the
9126 # variables and quote the copies for generation of the libtool script.
9127 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9129 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9130 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9131 deplibs_check_method reload_flag reload_cmds need_locks \
9132 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9133 lt_cv_sys_global_symbol_to_c_name_address \
9134 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9135 old_postinstall_cmds old_postuninstall_cmds \
9139 lt_prog_compiler_wl \
9140 lt_prog_compiler_pic \
9141 lt_prog_compiler_static \
9142 lt_prog_compiler_no_builtin_flag \
9143 export_dynamic_flag_spec \
9144 thread_safe_flag_spec \
9145 whole_archive_flag_spec \
9146 enable_shared_with_static_runtimes \
9148 old_archive_from_new_cmds \
9153 compiler_lib_search_path \
9155 archive_expsym_cmds \
9157 postuninstall_cmds \
9158 old_archive_from_expsyms_cmds \
9159 allow_undefined_flag \
9161 export_symbols_cmds \
9162 hardcode_libdir_flag_spec \
9163 hardcode_libdir_flag_spec_ld \
9164 hardcode_libdir_separator \
9165 hardcode_automatic \
9167 module_expsym_cmds \
9168 lt_cv_prog_compiler_c_o \
9173 old_archive_cmds | \
9174 old_archive_from_new_cmds | \
9176 archive_expsym_cmds | \
9178 module_expsym_cmds | \
9179 old_archive_from_expsyms_cmds | \
9180 export_symbols_cmds | \
9181 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9182 postinstall_cmds | postuninstall_cmds | \
9183 old_postinstall_cmds | old_postuninstall_cmds | \
9184 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9185 # Double-quote double-evaled strings.
9186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9195 *'\$0 --fallback-echo"')
9196 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9201 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9203 { echo "$as_me:$LINENO: creating $ofile" >&5
9204 echo "$as_me: creating $ofile" >&6;}
9206 cat <<__EOF__ >> "$cfgfile"
9209 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9210 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9211 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9213 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9214 # Free Software Foundation, Inc.
9216 # This file is part of GNU Libtool:
9217 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9219 # This program is free software; you can redistribute it and/or modify
9220 # it under the terms of the GNU General Public License as published by
9221 # the Free Software Foundation; either version 2 of the License, or
9222 # (at your option) any later version.
9224 # This program is distributed in the hope that it will be useful, but
9225 # WITHOUT ANY WARRANTY; without even the implied warranty of
9226 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9227 # General Public License for more details.
9229 # You should have received a copy of the GNU General Public License
9230 # along with this program; if not, write to the Free Software
9231 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9233 # As a special exception to the GNU General Public License, if you
9234 # distribute this file as part of a program that contains a
9235 # configuration script generated by Autoconf, you may include it under
9236 # the same distribution terms that you use for the rest of that program.
9238 # A sed program that does not truncate output.
9241 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9242 Xsed="$SED -e s/^X//"
9244 # The HP-UX ksh and POSIX shell print the target directory to stdout
9246 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9248 # The names of the tagged configurations supported by this script.
9251 # ### BEGIN LIBTOOL CONFIG
9253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9255 # Shell to use when invoking shell scripts.
9258 # Whether or not to build shared libraries.
9259 build_libtool_libs=$enable_shared
9261 # Whether or not to build static libraries.
9262 build_old_libs=$enable_static
9264 # Whether or not to add -lc for building shared libraries.
9265 build_libtool_need_lc=$archive_cmds_need_lc
9267 # Whether or not to disallow shared libs when runtime libs are static
9268 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9270 # Whether or not to optimize for fast installation.
9271 fast_install=$enable_fast_install
9274 host_alias=$host_alias
9277 # An echo program that does not interpret backslashes.
9282 AR_FLAGS=$lt_AR_FLAGS
9287 # A language-specific compiler.
9290 # Is the compiler the GNU C compiler?
9296 # The linker used to build libraries.
9299 # Whether we need hard or soft links.
9302 # A BSD-compatible nm program.
9305 # A symbol stripping program
9308 # Used to examine libraries when file_magic_cmd begins "file"
9309 MAGIC_CMD=$MAGIC_CMD
9311 # Used on cygwin: DLL creation program.
9314 # Used on cygwin: object dumper.
9317 # Used on cygwin: assembler.
9320 # The name of the directory that contains temporary libtool files.
9323 # How to create reloadable object files.
9324 reload_flag=$lt_reload_flag
9325 reload_cmds=$lt_reload_cmds
9327 # How to pass a linker flag through the compiler.
9328 wl=$lt_lt_prog_compiler_wl
9330 # Object file suffix (normally "o").
9333 # Old archive suffix (normally "a").
9336 # Shared library suffix (normally ".so").
9337 shrext_cmds='$shrext_cmds'
9339 # Executable file suffix (normally "").
9342 # Additional compiler flags for building library objects.
9343 pic_flag=$lt_lt_prog_compiler_pic
9346 # What is the maximum length of a command?
9347 max_cmd_len=$lt_cv_sys_max_cmd_len
9349 # Does compiler simultaneously support -c and -o options?
9350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9352 # Must we lock files when doing compilation ?
9353 need_locks=$lt_need_locks
9355 # Do we need the lib prefix for modules?
9356 need_lib_prefix=$need_lib_prefix
9358 # Do we need a version for libraries?
9359 need_version=$need_version
9361 # Whether dlopen is supported.
9362 dlopen_support=$enable_dlopen
9364 # Whether dlopen of programs is supported.
9365 dlopen_self=$enable_dlopen_self
9367 # Whether dlopen of statically linked programs is supported.
9368 dlopen_self_static=$enable_dlopen_self_static
9370 # Compiler flag to prevent dynamic linking.
9371 link_static_flag=$lt_lt_prog_compiler_static
9373 # Compiler flag to turn off builtin functions.
9374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9376 # Compiler flag to allow reflexive dlopens.
9377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9379 # Compiler flag to generate shared objects directly from archives.
9380 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9382 # Compiler flag to generate thread-safe objects.
9383 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9385 # Library versioning type.
9386 version_type=$version_type
9388 # Format of library name prefix.
9389 libname_spec=$lt_libname_spec
9391 # List of archive names. First name is the real one, the rest are links.
9392 # The last name is the one that the linker finds with -lNAME.
9393 library_names_spec=$lt_library_names_spec
9395 # The coded name of the library, if different from the real name.
9396 soname_spec=$lt_soname_spec
9398 # Commands used to build and install an old-style archive.
9400 old_archive_cmds=$lt_old_archive_cmds
9401 old_postinstall_cmds=$lt_old_postinstall_cmds
9402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9404 # Create an old-style archive from a shared archive.
9405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9407 # Create a temporary old-style archive to link instead of a shared archive.
9408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9410 # Commands used to build and install a shared archive.
9411 archive_cmds=$lt_archive_cmds
9412 archive_expsym_cmds=$lt_archive_expsym_cmds
9413 postinstall_cmds=$lt_postinstall_cmds
9414 postuninstall_cmds=$lt_postuninstall_cmds
9416 # Commands used to build a loadable module (assumed same as above if empty)
9417 module_cmds=$lt_module_cmds
9418 module_expsym_cmds=$lt_module_expsym_cmds
9420 # Commands to strip libraries.
9421 old_striplib=$lt_old_striplib
9422 striplib=$lt_striplib
9424 # Dependencies to place before the objects being linked to create a
9426 predep_objects=$lt_predep_objects
9428 # Dependencies to place after the objects being linked to create a
9430 postdep_objects=$lt_postdep_objects
9432 # Dependencies to place before the objects being linked to create a
9436 # Dependencies to place after the objects being linked to create a
9438 postdeps=$lt_postdeps
9440 # The library search path used internally by the compiler when linking
9442 compiler_lib_search_path=$lt_compiler_lib_search_path
9444 # Method to check whether dependent libraries are shared objects.
9445 deplibs_check_method=$lt_deplibs_check_method
9447 # Command to use when deplibs_check_method == file_magic.
9448 file_magic_cmd=$lt_file_magic_cmd
9450 # Flag that allows shared libraries with undefined symbols to be built.
9451 allow_undefined_flag=$lt_allow_undefined_flag
9453 # Flag that forces no undefined symbols.
9454 no_undefined_flag=$lt_no_undefined_flag
9456 # Commands used to finish a libtool library installation in a directory.
9457 finish_cmds=$lt_finish_cmds
9459 # Same as above, but a single script fragment to be evaled but not shown.
9460 finish_eval=$lt_finish_eval
9462 # Take the output of nm and produce a listing of raw symbols and C names.
9463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9465 # Transform the output of nm in a proper C declaration
9466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9468 # Transform the output of nm in a C name address pair
9469 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9471 # This is the shared library runtime path variable.
9472 runpath_var=$runpath_var
9474 # This is the shared library path variable.
9475 shlibpath_var=$shlibpath_var
9477 # Is shlibpath searched before the hard-coded library search path?
9478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9480 # How to hardcode a shared library path into an executable.
9481 hardcode_action=$hardcode_action
9483 # Whether we should hardcode library paths into libraries.
9484 hardcode_into_libs=$hardcode_into_libs
9486 # Flag to hardcode \$libdir into a binary during linking.
9487 # This must work even if \$libdir does not exist.
9488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9490 # If ld is used when linking, flag to hardcode \$libdir into
9491 # a binary during linking. This must work even if \$libdir does
9493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9495 # Whether we need a single -rpath flag with a separated argument.
9496 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9498 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9500 hardcode_direct=$hardcode_direct
9502 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9504 hardcode_minus_L=$hardcode_minus_L
9506 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9507 # the resulting binary.
9508 hardcode_shlibpath_var=$hardcode_shlibpath_var
9510 # Set to yes if building a shared library automatically hardcodes DIR into the library
9511 # and all subsequent libraries and executables linked against it.
9512 hardcode_automatic=$hardcode_automatic
9514 # Variables whose values should be saved in libtool wrapper scripts and
9515 # restored at relink time.
9516 variables_saved_for_relink="$variables_saved_for_relink"
9518 # Whether libtool must link a program against all its dependency libraries.
9519 link_all_deplibs=$link_all_deplibs
9521 # Compile-time system search path for libraries
9522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9524 # Run-time system search path for libraries
9525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9527 # Fix the shell variable \$srcfile for the compiler.
9528 fix_srcfile_path="$fix_srcfile_path"
9530 # Set to yes if exported symbols are required.
9531 always_export_symbols=$always_export_symbols
9533 # The commands to list exported symbols.
9534 export_symbols_cmds=$lt_export_symbols_cmds
9536 # The commands to extract the exported symbol list from a shared archive.
9537 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9539 # Symbols that should not be listed in the preloaded symbols.
9540 exclude_expsyms=$lt_exclude_expsyms
9542 # Symbols that must always be exported.
9543 include_expsyms=$lt_include_expsyms
9545 # ### END LIBTOOL CONFIG
9552 cat <<\EOF >> "$cfgfile"
9554 # AIX sometimes has problems with the GCC collect2 program. For some
9555 # reason, if we set the COLLECT_NAMES environment variable, the problems
9556 # vanish in a puff of smoke.
9557 if test "X${COLLECT_NAMES+set}" != Xset; then
9559 export COLLECT_NAMES
9565 # We use sed instead of cat because bash on DJGPP gets confused if
9566 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9567 # text mode, it properly converts lines to CR/LF. This bash problem
9568 # is reportedly fixed, but why not run on old versions too?
9569 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9571 mv -f "$cfgfile" "$ofile" || \
9572 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9576 # If there is no Makefile yet, we rely on a make rule to execute
9577 # `config.status --recheck' to rerun these tests and create the
9578 # libtool script then.
9579 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9580 if test -f "$ltmain_in"; then
9581 test -f Makefile && make "$ltmain"
9587 ac_cpp='$CPP $CPPFLAGS'
9588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9595 # Check whether --with-tags or --without-tags was given.
9596 if test "${with_tags+set}" = set; then
9597 withval="$with_tags"
9601 if test -f "$ltmain" && test -n "$tagnames"; then
9602 if test ! -f "${ofile}"; then
9603 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9604 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9607 if test -z "$LTCC"; then
9608 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9609 if test -z "$LTCC"; then
9610 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9611 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9614 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9618 # Extract list of available tagged configurations in $ofile.
9619 # Note that this assumes the entire list is on one line.
9620 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9623 for tagname in $tagnames; do
9625 # Check whether tagname contains only valid characters
9626 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9628 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9629 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9630 { (exit 1); exit 1; }; }
9634 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9636 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9637 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9638 { (exit 1); exit 1; }; }
9641 # Update the list of available tags.
9642 if test -n "$tagname"; then
9643 echo appending configuration tag \"$tagname\" to $ofile
9647 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9649 ac_cpp='$CXXCPP $CPPFLAGS'
9650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9657 archive_cmds_need_lc_CXX=no
9658 allow_undefined_flag_CXX=
9659 always_export_symbols_CXX=no
9660 archive_expsym_cmds_CXX=
9661 export_dynamic_flag_spec_CXX=
9662 hardcode_direct_CXX=no
9663 hardcode_libdir_flag_spec_CXX=
9664 hardcode_libdir_flag_spec_ld_CXX=
9665 hardcode_libdir_separator_CXX=
9666 hardcode_minus_L_CXX=no
9667 hardcode_automatic_CXX=no
9669 module_expsym_cmds_CXX=
9670 link_all_deplibs_CXX=unknown
9671 old_archive_cmds_CXX=$old_archive_cmds
9672 no_undefined_flag_CXX=
9673 whole_archive_flag_spec_CXX=
9674 enable_shared_with_static_runtimes_CXX=no
9676 # Dependencies to place before and after the object being linked:
9678 postdep_objects_CXX=
9681 compiler_lib_search_path_CXX=
9683 # Source file extension for C++ test sources.
9686 # Object file extension for compiled C++ test sources.
9690 # Code to be used in simple compile tests
9691 lt_simple_compile_test_code="int some_variable = 0;\n"
9693 # Code to be used in simple link tests
9694 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9698 # If no C compiler was specified, use CC.
9701 # Allow CC to be a program name with arguments.
9705 # Allow CC to be a program name with arguments.
9710 lt_save_with_gnu_ld=$with_gnu_ld
9711 lt_save_path_LD=$lt_cv_path_LD
9712 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9713 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9715 unset lt_cv_prog_gnu_ld
9717 if test -n "${lt_cv_path_LDCXX+set}"; then
9718 lt_cv_path_LD=$lt_cv_path_LDCXX
9722 test -z "${LDCXX+set}" || LD=$LDCXX
9726 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9728 # We don't want -fno-exception wen compiling C++ code, so set the
9729 # no_builtin_flag separately
9730 if test "$GXX" = yes; then
9731 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9733 lt_prog_compiler_no_builtin_flag_CXX=
9736 if test "$GXX" = yes; then
9737 # Set up default GNU C++ configuration
9740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9741 if test "${with_gnu_ld+set}" = set; then
9742 withval="$with_gnu_ld"
9743 test "$withval" = no || with_gnu_ld=yes
9748 if test "$GCC" = yes; then
9749 # Check if gcc -print-prog-name=ld gives a path.
9750 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9751 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9754 # gcc leaves a trailing carriage return which upsets mingw
9755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9760 # Accept absolute paths.
9762 re_direlt='/[^/][^/]*/\.\./'
9763 # Canonicalize the pathname of ld
9764 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9765 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9766 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9768 test -z "$LD" && LD="$ac_prog"
9771 # If it fails, then pretend we aren't using GCC.
9775 # If it is relative, then search for the first ld in PATH.
9779 elif test "$with_gnu_ld" = yes; then
9780 echo "$as_me:$LINENO: checking for GNU ld" >&5
9781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9783 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9786 if test "${lt_cv_path_LD+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 if test -z "$LD"; then
9790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9791 for ac_dir in $PATH; do
9793 test -z "$ac_dir" && ac_dir=.
9794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9795 lt_cv_path_LD="$ac_dir/$ac_prog"
9796 # Check to see if the program is GNU ld. I'd rather use --version,
9797 # but apparently some GNU ld's only accept -v.
9798 # Break only if it was the GNU/non-GNU ld that we prefer.
9799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9800 *GNU* | *'with BFD'*)
9801 test "$with_gnu_ld" != no && break
9804 test "$with_gnu_ld" != yes && break
9811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9816 if test -n "$LD"; then
9817 echo "$as_me:$LINENO: result: $LD" >&5
9818 echo "${ECHO_T}$LD" >&6
9820 echo "$as_me:$LINENO: result: no" >&5
9821 echo "${ECHO_T}no" >&6
9823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9825 { (exit 1); exit 1; }; }
9826 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9828 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9832 case `$LD -v 2>&1 </dev/null` in
9833 *GNU* | *'with BFD'*)
9834 lt_cv_prog_gnu_ld=yes
9837 lt_cv_prog_gnu_ld=no
9841 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9843 with_gnu_ld=$lt_cv_prog_gnu_ld
9847 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9848 # archiving commands below assume that GNU ld is being used.
9849 if test "$with_gnu_ld" = yes; then
9850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 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'
9853 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9856 # If archive_cmds runs LD, not CC, wlarc should be empty
9857 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9858 # investigate it a little bit more. (MM)
9861 # ancient GNU ld didn't support --whole-archive et. al.
9862 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9863 grep 'no-whole-archive' > /dev/null; then
9864 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9866 whole_archive_flag_spec_CXX=
9872 # A generic and very simple default shared library creation
9873 # command for GNU C++ for the case where it uses the native
9874 # linker, instead of GNU ld. If possible, this setting should
9875 # overridden to take advantage of the native linker features on
9876 # the platform it is being used on.
9877 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9880 # Commands to make compiler produce verbose output that lists
9881 # what "hidden" libraries, object files and flags are used when
9882 # linking a shared library.
9883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9891 # PORTME: fill in a description of your system's C++ link characteristics
9892 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9897 # FIXME: insert proper C++ library support
9901 if test "$host_cpu" = ia64; then
9902 # On IA64, the linker does run time linking by default, so we don't
9903 # have to do anything special.
9904 aix_use_runtimelinking=no
9905 exp_sym_flag='-Bexport'
9908 aix_use_runtimelinking=no
9910 # Test if we are trying to use run time linking or normal
9911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9912 # need to do runtime linking.
9913 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9914 for ld_flag in $LDFLAGS; do
9917 aix_use_runtimelinking=yes
9924 exp_sym_flag='-bexport'
9925 no_entry_flag='-bnoentry'
9928 # When large executables or shared objects are built, AIX ld can
9929 # have problems creating the table of contents. If linking a library
9930 # or program results in "error TOC overflow" add -mminimal-toc to
9931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9935 hardcode_direct_CXX=yes
9936 hardcode_libdir_separator_CXX=':'
9937 link_all_deplibs_CXX=yes
9939 if test "$GXX" = yes; then
9940 case $host_os in aix4.012|aix4.012.*)
9941 # We only want to do this on AIX 4.2 and lower, the check
9942 # below for broken collect2 doesn't work under 4.3+
9943 collect2name=`${CC} -print-prog-name=collect2`
9944 if test -f "$collect2name" && \
9945 strings "$collect2name" | grep resolve_lib_name >/dev/null
9947 # We have reworked collect2
9948 hardcode_direct_CXX=yes
9950 # We have old collect2
9951 hardcode_direct_CXX=unsupported
9952 # It fails to find uninstalled libraries when the uninstalled
9953 # path is not listed in the libpath. Setting hardcode_minus_L
9954 # to unsupported forces relinking
9955 hardcode_minus_L_CXX=yes
9956 hardcode_libdir_flag_spec_CXX='-L$libdir'
9957 hardcode_libdir_separator_CXX=
9960 shared_flag='-shared'
9963 if test "$host_cpu" = ia64; then
9964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9965 # chokes on -Wl,-G. The following line is correct:
9968 if test "$aix_use_runtimelinking" = yes; then
9969 shared_flag='${wl}-G'
9971 shared_flag='${wl}-bM:SRE'
9976 # It seems that -bexpall does not export symbols beginning with
9977 # underscore (_), so it is better to generate a list of symbols to export.
9978 always_export_symbols_CXX=yes
9979 if test "$aix_use_runtimelinking" = yes; then
9980 # Warning - without using the other runtime loading flags (-brtl),
9981 # -berok will link without error, but may produce a broken library.
9982 allow_undefined_flag_CXX='-berok'
9983 # Determine the default libpath from the value encoded in an empty executable.
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>conftest.er1
10003 grep -v '^ *+' conftest.er1 >conftest.err
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -z "$ac_cxx_werror_flag"
10009 || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10024 # Check for a 64-bit object if we didn't find anything.
10025 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; }
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10032 rm -f conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10036 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10038 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"
10040 if test "$host_cpu" = ia64; then
10041 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10042 allow_undefined_flag_CXX="-z nodefs"
10043 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"
10045 # Determine the default libpath from the value encoded in an empty executable.
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_cxx_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10086 # Check for a 64-bit object if we didn't find anything.
10087 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; }
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10094 rm -f conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10098 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10099 # Warning - without using the other run time loading flags,
10100 # -berok will link without error, but may produce a broken library.
10101 no_undefined_flag_CXX=' ${wl}-bernotok'
10102 allow_undefined_flag_CXX=' ${wl}-berok'
10103 # -bexpall does not export symbols beginning with underscore (_)
10104 always_export_symbols_CXX=yes
10105 # Exported symbols can be pulled into shared objects from archives
10106 whole_archive_flag_spec_CXX=' '
10107 archive_cmds_need_lc_CXX=yes
10108 # This is similar to how AIX traditionally builds it's shared libraries.
10109 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'
10114 case $cc_basename in
10116 # FIXME: insert proper C++ library support
10122 cygwin* | mingw* | pw32*)
10123 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10124 # as there is no search path for DLLs.
10125 hardcode_libdir_flag_spec_CXX='-L$libdir'
10126 allow_undefined_flag_CXX=unsupported
10127 always_export_symbols_CXX=no
10128 enable_shared_with_static_runtimes_CXX=yes
10130 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10131 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'
10132 # If the export-symbols file already is a .def file (1st line
10133 # is EXPORTS), use it as is; otherwise, prepend...
10134 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10135 cp $export_symbols $output_objdir/$soname.def;
10137 echo EXPORTS > $output_objdir/$soname.def;
10138 cat $export_symbols >> $output_objdir/$soname.def;
10140 $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'
10146 darwin* | rhapsody*)
10147 if test "$GXX" = yes; then
10148 archive_cmds_need_lc_CXX=no
10150 rhapsody* | darwin1.[012])
10151 allow_undefined_flag_CXX='-undefined suppress'
10154 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10155 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10157 case ${MACOSX_DEPLOYMENT_TARGET} in
10159 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10162 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10168 lt_int_apple_cc_single_mod=no
10169 output_verbose_link_cmd='echo'
10170 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10171 lt_int_apple_cc_single_mod=yes
10173 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10174 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10176 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'
10178 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10180 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10181 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10182 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}'
10184 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}'
10186 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}'
10187 hardcode_direct_CXX=no
10188 hardcode_automatic_CXX=yes
10189 hardcode_shlibpath_var_CXX=unsupported
10190 whole_archive_flag_spec_CXX='-all_load $convenience'
10191 link_all_deplibs_CXX=yes
10198 case $cc_basename in
10200 # FIXME: insert proper C++ library support
10204 # Green Hills C++ Compiler
10205 # FIXME: insert proper C++ library support
10209 # FIXME: insert proper C++ library support
10215 # C++ shared libraries reported to be fairly broken before switch to ELF
10219 archive_cmds_need_lc_CXX=no
10221 freebsd* | kfreebsd*-gnu)
10222 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10229 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10230 hardcode_libdir_separator_CXX=:
10231 export_dynamic_flag_spec_CXX='${wl}-E'
10232 hardcode_direct_CXX=yes
10233 hardcode_minus_L_CXX=yes # Not in the search PATH,
10234 # but as the default
10235 # location of the library.
10237 case $cc_basename in
10239 # FIXME: insert proper C++ library support
10243 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'
10244 # Commands to make compiler produce verbose output that lists
10245 # what "hidden" libraries, object files and flags are used when
10246 # linking a shared library.
10248 # There doesn't appear to be a way to prevent this compiler from
10249 # explicitly linking system object files so we need to strip them
10250 # from the output so that they don't get included in the library
10252 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'
10255 if test "$GXX" = yes; then
10256 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'
10258 # FIXME: insert proper C++ library support
10265 if test $with_gnu_ld = no; then
10266 case "$host_cpu" in
10268 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10269 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10270 hardcode_libdir_separator_CXX=:
10273 hardcode_libdir_flag_spec_CXX='-L$libdir'
10276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10277 hardcode_libdir_separator_CXX=:
10278 export_dynamic_flag_spec_CXX='${wl}-E'
10282 case "$host_cpu" in
10284 hardcode_direct_CXX=no
10285 hardcode_shlibpath_var_CXX=no
10288 hardcode_direct_CXX=no
10289 hardcode_shlibpath_var_CXX=no
10290 hardcode_minus_L_CXX=yes # Not in the search PATH,
10291 # but as the default
10292 # location of the library.
10295 hardcode_direct_CXX=yes
10296 hardcode_minus_L_CXX=yes # Not in the search PATH,
10297 # but as the default
10298 # location of the library.
10302 case $cc_basename in
10304 # FIXME: insert proper C++ library support
10308 case "$host_cpu" in
10310 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10316 # Commands to make compiler produce verbose output that lists
10317 # what "hidden" libraries, object files and flags are used when
10318 # linking a shared library.
10320 # There doesn't appear to be a way to prevent this compiler from
10321 # explicitly linking system object files so we need to strip them
10322 # from the output so that they don't get included in the library
10324 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'
10327 if test "$GXX" = yes; then
10328 if test $with_gnu_ld = no; then
10329 case "$host_cpu" in
10331 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10334 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'
10339 # FIXME: insert proper C++ library support
10346 case $cc_basename in
10349 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'
10351 # Archives containing C++ object files must be created using
10352 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10353 # necessary to make sure instantiated templates are included
10355 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10358 if test "$GXX" = yes; then
10359 if test "$with_gnu_ld" = no; then
10360 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'
10362 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'
10365 link_all_deplibs_CXX=yes
10368 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10369 hardcode_libdir_separator_CXX=:
10372 case $cc_basename in
10374 # Kuck and Associates, Inc. (KAI) C++ Compiler
10376 # KCC will only create a shared library if the output file
10377 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10378 # to its proper name (with version) after linking.
10379 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'
10380 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'
10381 # Commands to make compiler produce verbose output that lists
10382 # what "hidden" libraries, object files and flags are used when
10383 # linking a shared library.
10385 # There doesn't appear to be a way to prevent this compiler from
10386 # explicitly linking system object files so we need to strip them
10387 # from the output so that they don't get included in the library
10389 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'
10391 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10392 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10394 # Archives containing C++ object files must be created using
10395 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10396 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10401 archive_cmds_need_lc_CXX=no
10402 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403 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'
10404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10406 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10410 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10411 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'
10413 runpath_var=LD_RUN_PATH
10414 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10415 hardcode_libdir_separator_CXX=:
10417 # Commands to make compiler produce verbose output that lists
10418 # what "hidden" libraries, object files and flags are used when
10419 # linking a shared library.
10421 # There doesn't appear to be a way to prevent this compiler from
10422 # explicitly linking system object files so we need to strip them
10423 # from the output so that they don't get included in the library
10425 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'
10430 # FIXME: insert proper C++ library support
10434 # FIXME: insert proper C++ library support
10438 case $cc_basename in
10440 # FIXME: insert proper C++ library support
10444 # FIXME: insert proper C++ library support
10450 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10451 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10453 hardcode_libdir_flag_spec_CXX='-R$libdir'
10454 hardcode_direct_CXX=yes
10455 hardcode_shlibpath_var_CXX=no
10457 # Workaround some broken pre-1.5 toolchains
10458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10461 case $cc_basename in
10463 # Kuck and Associates, Inc. (KAI) C++ Compiler
10465 # KCC will only create a shared library if the output file
10466 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10467 # to its proper name (with version) after linking.
10468 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'
10470 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10471 hardcode_libdir_separator_CXX=:
10473 # Archives containing C++ object files must be created using
10474 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10475 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10479 # Rational C++ 2.4.1
10480 # FIXME: insert proper C++ library support
10484 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10485 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'
10487 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10488 hardcode_libdir_separator_CXX=:
10490 # Commands to make compiler produce verbose output that lists
10491 # what "hidden" libraries, object files and flags are used when
10492 # linking a shared library.
10494 # There doesn't appear to be a way to prevent this compiler from
10495 # explicitly linking system object files so we need to strip them
10496 # from the output so that they don't get included in the library
10498 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'
10501 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10502 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10503 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'
10505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10506 hardcode_libdir_separator_CXX=:
10508 # Commands to make compiler produce verbose output that lists
10509 # what "hidden" libraries, object files and flags are used when
10510 # linking a shared library.
10511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10514 # FIXME: insert proper C++ library support
10521 case $cc_basename in
10523 # Kuck and Associates, Inc. (KAI) C++ Compiler
10525 # KCC will only create a shared library if the output file
10526 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10527 # to its proper name (with version) after linking.
10528 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'
10530 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10531 hardcode_libdir_separator_CXX=:
10533 # Archives containing C++ object files must be created using
10534 # the KAI C++ compiler.
10535 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10538 # Rational C++ 2.4.1
10539 # FIXME: insert proper C++ library support
10543 allow_undefined_flag_CXX=' -expect_unresolved \*'
10544 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'
10545 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10546 echo "-hidden">> $lib.exp~
10547 $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~
10550 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10551 hardcode_libdir_separator_CXX=:
10553 # Commands to make compiler produce verbose output that lists
10554 # what "hidden" libraries, object files and flags are used when
10555 # linking a shared library.
10557 # There doesn't appear to be a way to prevent this compiler from
10558 # explicitly linking system object files so we need to strip them
10559 # from the output so that they don't get included in the library
10561 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'
10564 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10565 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10566 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'
10568 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10569 hardcode_libdir_separator_CXX=:
10571 # Commands to make compiler produce verbose output that lists
10572 # what "hidden" libraries, object files and flags are used when
10573 # linking a shared library.
10574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10577 # FIXME: insert proper C++ library support
10584 # FIXME: insert proper C++ library support
10588 archive_cmds_need_lc_CXX=no
10589 case $cc_basename in
10591 # FIXME: insert proper C++ library support
10595 # FIXME: insert proper C++ library support
10601 case $cc_basename in
10604 # FIXME: insert proper C++ library support
10609 # FIXME: insert proper C++ library support
10613 # FIXME: insert proper C++ library support
10619 case $cc_basename in
10621 # Sun C++ 4.2, 5.x and Centerline C++
10622 no_undefined_flag_CXX=' -zdefs'
10623 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10624 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10625 $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'
10627 hardcode_libdir_flag_spec_CXX='-R$libdir'
10628 hardcode_shlibpath_var_CXX=no
10630 solaris2.0-5 | solaris2.0-5.*) ;;
10632 # The C++ compiler is used as linker so we must use $wl
10633 # flag to pass the commands to the underlying system
10635 # Supported since Solaris 2.6 (maybe 2.5.1?)
10636 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10639 link_all_deplibs_CXX=yes
10641 # Commands to make compiler produce verbose output that lists
10642 # what "hidden" libraries, object files and flags are used when
10643 # linking a shared library.
10645 # There doesn't appear to be a way to prevent this compiler from
10646 # explicitly linking system object files so we need to strip them
10647 # from the output so that they don't get included in the library
10649 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'
10651 # Archives containing C++ object files must be created using
10652 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10653 # necessary to make sure instantiated templates are included
10655 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10658 # Green Hills C++ Compiler
10659 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10661 # The C++ compiler must be used to create the archive.
10662 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10665 # GNU C++ compiler with Solaris linker
10666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10667 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10668 if $CC --version | grep -v '^2\.7' > /dev/null; then
10669 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10670 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10671 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10673 # Commands to make compiler produce verbose output that lists
10674 # what "hidden" libraries, object files and flags are used when
10675 # linking a shared library.
10676 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10678 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10680 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10681 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10682 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10684 # Commands to make compiler produce verbose output that lists
10685 # what "hidden" libraries, object files and flags are used when
10686 # linking a shared library.
10687 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10690 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10695 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10696 archive_cmds_need_lc_CXX=no
10699 case $cc_basename in
10701 # NonStop-UX NCC 3.20
10702 # FIXME: insert proper C++ library support
10706 # FIXME: insert proper C++ library support
10712 # FIXME: insert proper C++ library support
10716 # FIXME: insert proper C++ library support
10720 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10721 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10722 test "$ld_shlibs_CXX" = no && can_build_shared=no
10728 cat > conftest.$ac_ext <<EOF
10732 Foo (void) { a = 0; }
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739 (eval $ac_compile) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; then
10743 # Parse the compiler output and extract the necessary
10744 # objects, libraries and library flags.
10746 # Sentinel used to keep track of whether or not we are before
10747 # the conftest object file.
10748 pre_test_object_deps_done=no
10750 # The `*' in the case matches for architectures that use `case' in
10751 # $output_verbose_cmd can trigger glob expansion during the loop
10752 # eval without this substitution.
10753 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10755 for p in `eval $output_verbose_link_cmd`; do
10759 # Some compilers place space between "-{L,R}" and the path.
10760 # Remove the space.
10761 if test $p = "-L" \
10762 || test $p = "-R"; then
10769 if test "$pre_test_object_deps_done" = no; then
10772 # Internal compiler library paths should come after those
10773 # provided the user. The postdeps already come after the
10774 # user supplied libs so there is no need to process them.
10775 if test -z "$compiler_lib_search_path_CXX"; then
10776 compiler_lib_search_path_CXX="${prev}${p}"
10778 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10781 # The "-l" case would never come before the object being
10782 # linked, so don't bother handling this case.
10785 if test -z "$postdeps_CXX"; then
10786 postdeps_CXX="${prev}${p}"
10788 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10794 # This assumes that the test object file only shows up
10795 # once in the compiler output.
10796 if test "$p" = "conftest.$objext"; then
10797 pre_test_object_deps_done=yes
10801 if test "$pre_test_object_deps_done" = no; then
10802 if test -z "$predep_objects_CXX"; then
10803 predep_objects_CXX="$p"
10805 predep_objects_CXX="$predep_objects_CXX $p"
10808 if test -z "$postdep_objects_CXX"; then
10809 postdep_objects_CXX="$p"
10811 postdep_objects_CXX="$postdep_objects_CXX $p"
10816 *) ;; # Ignore the rest.
10824 echo "libtool.m4: error: problem compiling CXX test program"
10827 $rm -f confest.$objext
10829 case " $postdeps_CXX " in
10830 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10833 lt_prog_compiler_wl_CXX=
10834 lt_prog_compiler_pic_CXX=
10835 lt_prog_compiler_static_CXX=
10837 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10838 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10840 # C++ specific cases for pic, static, wl, etc.
10841 if test "$GXX" = yes; then
10842 lt_prog_compiler_wl_CXX='-Wl,'
10843 lt_prog_compiler_static_CXX='-static'
10847 # All AIX code is PIC.
10848 if test "$host_cpu" = ia64; then
10849 # AIX 5 now supports IA64 processor
10850 lt_prog_compiler_static_CXX='-Bstatic'
10854 # FIXME: we need at least 68020 code to build shared libraries, but
10855 # adding the `-m68020' flag to GCC prevents building anything better,
10857 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10859 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10860 # PIC is the default for these OSes.
10862 mingw* | os2* | pw32*)
10863 # This hack is so that the source file can tell whether it is being
10864 # built for inclusion in a dll (and should export symbols for example).
10865 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10867 darwin* | rhapsody*)
10868 # PIC is the default on this platform
10869 # Common symbols not allowed in MH_DYLIB files
10870 lt_prog_compiler_pic_CXX='-fno-common'
10873 # DJGPP does not support shared libraries at all
10874 lt_prog_compiler_pic_CXX=
10877 if test -d /usr/nec; then
10878 lt_prog_compiler_pic_CXX=-Kconform_pic
10882 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10883 # not for PA HP-UX.
10884 case "$host_cpu" in
10888 lt_prog_compiler_pic_CXX='-fPIC'
10893 lt_prog_compiler_pic_CXX='-fPIC'
10899 # All AIX code is PIC.
10900 if test "$host_cpu" = ia64; then
10901 # AIX 5 now supports IA64 processor
10902 lt_prog_compiler_static_CXX='-Bstatic'
10904 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10908 case $cc_basename in
10910 # Green Hills C++ Compiler
10911 # _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"
10916 case $cc_basename in
10918 lt_prog_compiler_pic_CXX='-KPIC'
10921 # Green Hills C++ Compiler
10922 lt_prog_compiler_pic_CXX='-pic'
10928 freebsd* | kfreebsd*-gnu)
10929 # FreeBSD uses GNU C++
10931 hpux9* | hpux10* | hpux11*)
10932 case $cc_basename in
10934 lt_prog_compiler_wl_CXX='-Wl,'
10935 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10936 if test "$host_cpu" != ia64; then
10937 lt_prog_compiler_pic_CXX='+Z'
10941 lt_prog_compiler_wl_CXX='-Wl,'
10942 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10943 case "$host_cpu" in
10948 lt_prog_compiler_pic_CXX='+Z'
10956 irix5* | irix6* | nonstopux*)
10957 case $cc_basename in
10959 lt_prog_compiler_wl_CXX='-Wl,'
10960 lt_prog_compiler_static_CXX='-non_shared'
10961 # CC pic flag -KPIC is the default.
10968 case $cc_basename in
10971 lt_prog_compiler_wl_CXX='--backend -Wl,'
10972 lt_prog_compiler_pic_CXX='-fPIC'
10976 lt_prog_compiler_wl_CXX='-Wl,'
10977 lt_prog_compiler_pic_CXX='-KPIC'
10978 lt_prog_compiler_static_CXX='-static'
10982 # Make sure the PIC flag is empty. It appears that all Alpha
10983 # Linux and Compaq Tru64 Unix objects are PIC.
10984 lt_prog_compiler_pic_CXX=
10985 lt_prog_compiler_static_CXX='-non_shared'
10996 case $cc_basename in
10998 lt_prog_compiler_pic_CXX='-W c,exportall'
11006 osf3* | osf4* | osf5*)
11007 case $cc_basename in
11009 lt_prog_compiler_wl_CXX='--backend -Wl,'
11012 # Rational C++ 2.4.1
11013 lt_prog_compiler_pic_CXX='-pic'
11016 # Digital/Compaq C++
11017 lt_prog_compiler_wl_CXX='-Wl,'
11018 # Make sure the PIC flag is empty. It appears that all Alpha
11019 # Linux and Compaq Tru64 Unix objects are PIC.
11020 lt_prog_compiler_pic_CXX=
11021 lt_prog_compiler_static_CXX='-non_shared'
11030 case $cc_basename in
11032 lt_prog_compiler_pic_CXX='-fPIC'
11039 case $cc_basename in
11041 # Sun C++ 4.2, 5.x and Centerline C++
11042 lt_prog_compiler_pic_CXX='-KPIC'
11043 lt_prog_compiler_static_CXX='-Bstatic'
11044 lt_prog_compiler_wl_CXX='-Qoption ld '
11047 # Green Hills C++ Compiler
11048 lt_prog_compiler_pic_CXX='-PIC'
11055 case $cc_basename in
11058 lt_prog_compiler_pic_CXX='-pic'
11059 lt_prog_compiler_static_CXX='-Bstatic'
11063 lt_prog_compiler_pic_CXX='-pic'
11070 case $cc_basename in
11072 # NonStop-UX NCC 3.20
11073 lt_prog_compiler_pic_CXX='-KPIC'
11084 lt_prog_compiler_can_build_shared_CXX=no
11089 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11090 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11093 # Check to make sure the PIC flag actually works.
11095 if test -n "$lt_prog_compiler_pic_CXX"; then
11097 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11098 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11099 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 lt_prog_compiler_pic_works_CXX=no
11103 ac_outfile=conftest.$ac_objext
11104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11105 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11106 # Insert the option either (1) after the last *FLAGS variable, or
11107 # (2) before a word containing "conftest.", or (3) at the end.
11108 # Note that $ac_compile itself does not contain backslashes and begins
11109 # with a dollar sign (not a hyphen), so the echo should work correctly.
11110 # The option is referenced via a variable to avoid confusing sed.
11111 lt_compile=`echo "$ac_compile" | $SED \
11112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11114 -e 's:$: $lt_compiler_flag:'`
11115 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11116 (eval "$lt_compile" 2>conftest.err)
11118 cat conftest.err >&5
11119 echo "$as_me:__oline__: \$? = $ac_status" >&5
11120 if (exit $ac_status) && test -s "$ac_outfile"; then
11121 # The compiler can only warn and ignore the option if not recognized
11122 # So say no if there are warnings
11123 if test ! -s conftest.err; then
11124 lt_prog_compiler_pic_works_CXX=yes
11130 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11131 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11133 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11134 case $lt_prog_compiler_pic_CXX in
11136 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11139 lt_prog_compiler_pic_CXX=
11140 lt_prog_compiler_can_build_shared_CXX=no
11145 # For platforms which do not support PIC, -DPIC is meaningless:
11147 lt_prog_compiler_pic_CXX=
11150 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11154 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11156 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 lt_cv_prog_compiler_c_o_CXX=no
11160 $rm -r conftest 2>/dev/null
11164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11166 lt_compiler_flag="-o out/conftest2.$ac_objext"
11167 # Insert the option either (1) after the last *FLAGS variable, or
11168 # (2) before a word containing "conftest.", or (3) at the end.
11169 # Note that $ac_compile itself does not contain backslashes and begins
11170 # with a dollar sign (not a hyphen), so the echo should work correctly.
11171 lt_compile=`echo "$ac_compile" | $SED \
11172 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11174 -e 's:$: $lt_compiler_flag:'`
11175 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11176 (eval "$lt_compile" 2>out/conftest.err)
11178 cat out/conftest.err >&5
11179 echo "$as_me:__oline__: \$? = $ac_status" >&5
11180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11182 # The compiler can only warn and ignore the option if not recognized
11183 # So say no if there are warnings
11184 if test ! -s out/conftest.err; then
11185 lt_cv_prog_compiler_c_o_CXX=yes
11190 # SGI C++ compiler will create directory out/ii_files/ for
11191 # template instantiation
11192 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11193 $rm out/* && rmdir out
11199 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11200 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11203 hard_links="nottested"
11204 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11205 # do not overwrite the value of need_locks provided by the user
11206 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11207 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11212 ln conftest.a conftest.b 2>&5 || hard_links=no
11213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11214 echo "$as_me:$LINENO: result: $hard_links" >&5
11215 echo "${ECHO_T}$hard_links" >&6
11216 if test "$hard_links" = no; then
11217 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11218 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11225 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11226 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11228 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11231 # If we're using GNU nm, then we don't want the "-C" option.
11232 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11233 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11234 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'
11236 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'
11240 export_symbols_cmds_CXX="$ltdll_cmds"
11243 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11246 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11250 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11251 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11252 test "$ld_shlibs_CXX" = no && can_build_shared=no
11254 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11255 if test "$GCC" = yes; then
11256 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11260 # Do we need to explicitly link libc?
11262 case "x$archive_cmds_need_lc_CXX" in
11264 # Assume -lc should be added
11265 archive_cmds_need_lc_CXX=yes
11267 if test "$enable_shared" = yes && test "$GCC" = yes; then
11268 case $archive_cmds_CXX in
11270 # FIXME: we may have to deal with multi-command sequences.
11273 # Test whether the compiler implicitly links with -lc since on some
11274 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11275 # to ld, don't add -lc before -lgcc.
11276 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11277 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } 2>conftest.err; then
11288 libobjs=conftest.$ac_objext
11290 wl=$lt_prog_compiler_wl_CXX
11296 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11297 allow_undefined_flag_CXX=
11298 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11299 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }
11304 archive_cmds_need_lc_CXX=no
11306 archive_cmds_need_lc_CXX=yes
11308 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11310 cat conftest.err 1>&5
11313 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11314 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11321 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11322 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11323 library_names_spec=
11324 libname_spec='lib$name'
11328 postuninstall_cmds=
11332 shlibpath_overrides_runpath=unknown
11334 dynamic_linker="$host_os ld.so"
11335 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11336 if test "$GCC" = yes; then
11337 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11338 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11339 # if the path contains ";" then we assume it to be the separator
11340 # otherwise default to the standard path separator (i.e. ":") - it is
11341 # assumed that no part of a normal pathname contains ";" but that should
11342 # okay in the real world where ";" in dirpaths is itself problematic.
11343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11350 need_lib_prefix=unknown
11351 hardcode_into_libs=no
11353 # when you set need_version to no, make sure it does not cause -set_version
11354 # flags to be left without arguments
11355 need_version=unknown
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11361 shlibpath_var=LIBPATH
11363 # AIX 3 has no versioning support, so we append a major version to the name.
11364 soname_spec='${libname}${release}${shared_ext}$major'
11371 hardcode_into_libs=yes
11372 if test "$host_cpu" = ia64; then
11373 # AIX 5 supports IA64
11374 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11375 shlibpath_var=LD_LIBRARY_PATH
11377 # With GCC up to 2.95.x, collect2 would create an import file
11378 # for dependence libraries. The import file would start with
11379 # the line `#! .'. This would cause the generated library to
11380 # depend on `.', always an invalid library. This was fixed in
11381 # development snapshots of GCC prior to 3.0.
11383 aix4 | aix4.[01] | aix4.[01].*)
11384 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11386 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11389 can_build_shared=no
11393 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11394 # soname into executable. Probably we can add versioning support to
11395 # collect2, so additional links can be useful in future.
11396 if test "$aix_use_runtimelinking" = yes; then
11397 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11398 # instead of lib<name>.a to let people know that these are not
11399 # typical AIX shared libraries.
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402 # We preserve .a as extension for shared libraries through AIX4.2
11403 # and later when we are not doing run time linking.
11404 library_names_spec='${libname}${release}.a $libname.a'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11407 shlibpath_var=LIBPATH
11412 library_names_spec='$libname.ixlibrary $libname.a'
11413 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11414 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'
11418 library_names_spec='${libname}${shared_ext}'
11419 dynamic_linker="$host_os ld.so"
11420 shlibpath_var=LIBRARY_PATH
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427 soname_spec='${libname}${release}${shared_ext}$major'
11428 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11431 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11432 # the default ld.so.conf also contains /usr/contrib/lib and
11433 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11434 # libtool to hard-code these into programs
11437 cygwin* | mingw* | pw32*)
11438 version_type=windows
11443 case $GCC,$host_os in
11444 yes,cygwin* | yes,mingw* | yes,pw32*)
11445 library_names_spec='$libname.dll.a'
11446 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11447 postinstall_cmds='base_file=`basename \${file}`~
11448 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11449 dldir=$destdir/`dirname \$dlpath`~
11450 test -d \$dldir || mkdir -p \$dldir~
11451 $install_prog $dir/$dlname \$dldir/$dlname'
11452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11453 dlpath=$dir/\$dldll~
11455 shlibpath_overrides_runpath=yes
11459 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11460 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11461 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11464 # MinGW DLLs use traditional 'lib' prefix
11465 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11466 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11467 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11468 # It is most probably a Windows format PATH printed by
11469 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11470 # path with ; separators, and with drive letters. We can handle the
11471 # drive letters (cygwin fileutils understands them), so leave them,
11472 # especially as we might pass files found there to a mingw objdump,
11473 # which wouldn't understand a cygwinified path. Ahh.
11474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11480 # pw32 DLLs use 'pw' prefix rather than 'lib'
11481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11487 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11490 dynamic_linker='Win32 ld.exe'
11491 # FIXME: first we should search . and the directory the executable is in
11495 darwin* | rhapsody*)
11496 dynamic_linker="$host_os dyld"
11497 version_type=darwin
11500 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11501 soname_spec='${libname}${release}${major}$shared_ext'
11502 shlibpath_overrides_runpath=yes
11503 shlibpath_var=DYLD_LIBRARY_PATH
11504 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11505 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11506 if test "$GCC" = yes; then
11507 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"`
11509 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11511 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 shlibpath_var=LD_LIBRARY_PATH
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=no
11535 hardcode_into_libs=yes
11536 dynamic_linker='GNU ld.so'
11540 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11541 version_type=freebsd-$objformat
11542 case $version_type in
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11553 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=yes
11558 freebsd3.01* | freebsdelf3.01*)
11559 shlibpath_overrides_runpath=yes
11560 hardcode_into_libs=yes
11563 shlibpath_overrides_runpath=no
11564 hardcode_into_libs=yes
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 hardcode_into_libs=yes
11579 hpux9* | hpux10* | hpux11*)
11580 # Give a soname corresponding to the major version so that dld.sl refuses to
11581 # link against other versions.
11585 case "$host_cpu" in
11588 hardcode_into_libs=yes
11589 dynamic_linker="$host_os dld.so"
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 if test "X$HPUX_IA64_MODE" = X32; then
11595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11603 hardcode_into_libs=yes
11604 dynamic_linker="$host_os dld.sl"
11605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11614 dynamic_linker="$host_os dld.sl"
11615 shlibpath_var=SHLIB_PATH
11616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11621 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11622 postinstall_cmds='chmod 555 $lib'
11625 irix5* | irix6* | nonstopux*)
11627 nonstopux*) version_type=nonstopux ;;
11629 if test "$lt_cv_prog_gnu_ld" = yes; then
11637 soname_spec='${libname}${release}${shared_ext}$major'
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11640 irix5* | nonstopux*)
11641 libsuff= shlibsuff=
11644 case $LD in # libtool.m4 will add one of these switches to LD
11645 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11646 libsuff= shlibsuff= libmagic=32-bit;;
11647 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11648 libsuff=32 shlibsuff=N32 libmagic=N32;;
11649 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11650 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11651 *) libsuff= shlibsuff= libmagic=never-match;;
11655 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11656 shlibpath_overrides_runpath=no
11657 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11658 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11659 hardcode_into_libs=yes
11662 # No shared lib support for Linux oldld, aout, or coff.
11663 linux*oldld* | linux*aout* | linux*coff*)
11667 # This must be Linux ELF.
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11675 shlibpath_var=LD_LIBRARY_PATH
11676 shlibpath_overrides_runpath=no
11677 # This implies no fast_install, which is unacceptable.
11678 # Some rework will be needed to allow for fast_install
11679 # before this can be enabled.
11680 hardcode_into_libs=yes
11682 # find out which ABI we are using
11684 case "$host_cpu" in
11685 x86_64*|s390x*|powerpc64*)
11686 echo '#line __oline__ "configure"' > conftest.$ac_ext
11687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; then
11692 case `/usr/bin/file conftest.$ac_objext` in
11695 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11703 # Append ld.so.conf contents to the search path
11704 if test -f /etc/ld.so.conf; then
11705 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11706 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11709 # We used to test for /lib/ld.so.1 and disable shared libraries on
11710 # powerpc, because MkLinux only supported shared libraries with the
11711 # GNU dynamic linker. Since this was broken with cross compilers,
11712 # most powerpc-linux boxes support dynamic linking these days and
11713 # people can always --disable-shared, the test was removed, and we
11714 # assume the GNU/Linux dynamic linker is in use.
11715 dynamic_linker='GNU/Linux ld.so'
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=no
11726 hardcode_into_libs=yes
11727 dynamic_linker='GNU ld.so'
11734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11737 dynamic_linker='NetBSD (a.out) ld.so'
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 dynamic_linker='NetBSD ld.elf_so'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=yes
11745 hardcode_into_libs=yes
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11774 openbsd2.[89] | openbsd2.[89].*)
11775 shlibpath_overrides_runpath=no
11778 shlibpath_overrides_runpath=yes
11782 shlibpath_overrides_runpath=yes
11787 libname_spec='$name'
11790 library_names_spec='$libname${shared_ext} $libname.a'
11791 dynamic_linker='OS/2 ld.exe'
11792 shlibpath_var=LIBPATH
11795 osf3* | osf4* | osf5*)
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11803 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 shlibpath_var=LD_LIBRARY_PATH
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=yes
11821 hardcode_into_libs=yes
11822 # ldd complains unless libraries are executable
11823 postinstall_cmds='chmod +x $lib'
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11832 if test "$with_gnu_ld" = yes; then
11838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 case $host_vendor in
11845 shlibpath_overrides_runpath=no
11847 export_dynamic_flag_spec='${wl}-Blargedynsym'
11848 runpath_var=LD_RUN_PATH
11856 shlibpath_overrides_runpath=no
11857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11863 if test -d /usr/nec ;then
11865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11866 soname_spec='$libname${shared_ext}.$major'
11867 shlibpath_var=LD_LIBRARY_PATH
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11882 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11883 echo "${ECHO_T}$dynamic_linker" >&6
11884 test "$dynamic_linker" = no && can_build_shared=no
11886 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11888 hardcode_action_CXX=
11889 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11890 test -n "$runpath_var CXX" || \
11891 test "X$hardcode_automatic_CXX"="Xyes" ; then
11893 # We can hardcode non-existant directories.
11894 if test "$hardcode_direct_CXX" != no &&
11895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11896 # have to relink, otherwise we might link with an installed library
11897 # when we should be linking with a yet-to-be-installed one
11898 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11899 test "$hardcode_minus_L_CXX" != no; then
11900 # Linking always hardcodes the temporary library directory.
11901 hardcode_action_CXX=relink
11903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11904 hardcode_action_CXX=immediate
11907 # We cannot hardcode anything, or else we can only hardcode existing
11909 hardcode_action_CXX=unsupported
11911 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11912 echo "${ECHO_T}$hardcode_action_CXX" >&6
11914 if test "$hardcode_action_CXX" = relink; then
11915 # Fast installation is not supported
11916 enable_fast_install=no
11917 elif test "$shlibpath_overrides_runpath" = yes ||
11918 test "$enable_shared" = no; then
11919 # Fast installation is not necessary
11920 enable_fast_install=needless
11925 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11926 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11927 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11928 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11929 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11930 echo "$as_me:$LINENO: result: yes" >&5
11931 echo "${ECHO_T}yes" >&6
11933 # FIXME - insert some real tests, host_os isn't really good enough
11936 if test -n "$STRIP" ; then
11937 striplib="$STRIP -x"
11938 echo "$as_me:$LINENO: result: yes" >&5
11939 echo "${ECHO_T}yes" >&6
11941 echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6
11946 echo "$as_me:$LINENO: result: no" >&5
11947 echo "${ECHO_T}no" >&6
11952 if test "x$enable_dlopen" != xyes; then
11953 enable_dlopen=unknown
11954 enable_dlopen_self=unknown
11955 enable_dlopen_self_static=unknown
11962 lt_cv_dlopen="load_add_on"
11964 lt_cv_dlopen_self=yes
11968 lt_cv_dlopen="LoadLibrary"
11973 lt_cv_dlopen="dlopen"
11978 # if libdl is installed we need to link against it
11979 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 ac_check_lib_save_LIBS=$LIBS
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11993 /* Override any gcc2 internal prototype to avoid an error. */
11997 /* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
12017 { ac_try='test -z "$ac_cxx_werror_flag"
12018 || test ! -s conftest.err'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_lib_dl_dlopen=yes
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 ac_cv_lib_dl_dlopen=no
12037 rm -f conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 LIBS=$ac_check_lib_save_LIBS
12041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12043 if test $ac_cv_lib_dl_dlopen = yes; then
12044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12047 lt_cv_dlopen="dyld"
12049 lt_cv_dlopen_self=yes
12056 echo "$as_me:$LINENO: checking for shl_load" >&5
12057 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12058 if test "${ac_cv_func_shl_load+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12069 #define shl_load innocuous_shl_load
12071 /* System header to define __stub macros and hopefully few prototypes,
12072 which can conflict with char shl_load (); below.
12073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12074 <limits.h> exists even on freestanding compilers. */
12077 # include <limits.h>
12079 # include <assert.h>
12084 /* Override any gcc2 internal prototype to avoid an error. */
12089 /* We use char because int might match the return type of a gcc2
12090 builtin and then its argument prototype would still apply. */
12092 /* The GNU C library defines this for functions which it implements
12093 to always fail with ENOSYS. Some functions are actually named
12094 something starting with __ and the normal name is an alias. */
12095 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12098 char (*f) () = shl_load;
12107 return f != shl_load;
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_cxx_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest$ac_exeext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_func_shl_load=yes
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_cv_func_shl_load=no
12141 rm -f conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12145 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12146 if test $ac_cv_func_shl_load = yes; then
12147 lt_cv_dlopen="shl_load"
12149 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12150 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS=$LIBS
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12163 /* Override any gcc2 internal prototype to avoid an error. */
12167 /* We use char because int might match the return type of a gcc2
12168 builtin and then its argument prototype would still apply. */
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12180 (eval $ac_link) 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_cxx_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_lib_dld_shl_load=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_cv_lib_dld_shl_load=no
12207 rm -f conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12211 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12212 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12213 if test $ac_cv_lib_dld_shl_load = yes; then
12214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12216 echo "$as_me:$LINENO: checking for dlopen" >&5
12217 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12218 if test "${ac_cv_func_dlopen+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12229 #define dlopen innocuous_dlopen
12231 /* System header to define __stub macros and hopefully few prototypes,
12232 which can conflict with char dlopen (); below.
12233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12234 <limits.h> exists even on freestanding compilers. */
12237 # include <limits.h>
12239 # include <assert.h>
12244 /* Override any gcc2 internal prototype to avoid an error. */
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12252 /* The GNU C library defines this for functions which it implements
12253 to always fail with ENOSYS. Some functions are actually named
12254 something starting with __ and the normal name is an alias. */
12255 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12258 char (*f) () = dlopen;
12267 return f != dlopen;
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>conftest.er1
12276 grep -v '^ *+' conftest.er1 >conftest.err
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_cxx_werror_flag"
12282 || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest$ac_exeext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_func_dlopen=yes
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_func_dlopen=no
12301 rm -f conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12305 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12306 if test $ac_cv_func_dlopen = yes; then
12307 lt_cv_dlopen="dlopen"
12309 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 ac_check_lib_save_LIBS=$LIBS
12316 cat >conftest.$ac_ext <<_ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12323 /* Override any gcc2 internal prototype to avoid an error. */
12327 /* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340 (eval $ac_link) 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_cxx_werror_flag"
12348 || test ! -s conftest.err'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_lib_dl_dlopen=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_lib_dl_dlopen=no
12367 rm -f conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12371 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12373 if test $ac_cv_lib_dl_dlopen = yes; then
12374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12376 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12377 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 ac_check_lib_save_LIBS=$LIBS
12382 LIBS="-lsvld $LIBS"
12383 cat >conftest.$ac_ext <<_ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12390 /* Override any gcc2 internal prototype to avoid an error. */
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407 (eval $ac_link) 2>conftest.er1
12409 grep -v '^ *+' conftest.er1 >conftest.err
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_cxx_werror_flag"
12415 || test ! -s conftest.err'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_lib_svld_dlopen=yes
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_svld_dlopen=no
12434 rm -f conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12436 LIBS=$ac_check_lib_save_LIBS
12438 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12439 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12440 if test $ac_cv_lib_svld_dlopen = yes; then
12441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12443 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12444 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 ac_check_lib_save_LIBS=$LIBS
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 /* Override any gcc2 internal prototype to avoid an error. */
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>conftest.er1
12476 grep -v '^ *+' conftest.er1 >conftest.err
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_cxx_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest$ac_exeext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_lib_dld_dld_link=yes
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_dld_dld_link=no
12501 rm -f conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12505 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12506 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12507 if test $ac_cv_lib_dld_dld_link = yes; then
12508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12529 if test "x$lt_cv_dlopen" != xno; then
12535 case $lt_cv_dlopen in
12537 save_CPPFLAGS="$CPPFLAGS"
12538 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12540 save_LDFLAGS="$LDFLAGS"
12541 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12544 LIBS="$lt_cv_dlopen_libs $LIBS"
12546 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12547 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12548 if test "${lt_cv_dlopen_self+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 if test "$cross_compiling" = yes; then :
12552 lt_cv_dlopen_self=cross
12554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12555 lt_status=$lt_dlunknown
12556 cat > conftest.$ac_ext <<EOF
12557 #line __oline__ "configure"
12558 #include "confdefs.h"
12567 # define LT_DLGLOBAL RTLD_GLOBAL
12570 # define LT_DLGLOBAL DL_GLOBAL
12572 # define LT_DLGLOBAL 0
12576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12577 find out it does not work in some platform. */
12578 #ifndef LT_DLLAZY_OR_NOW
12580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12583 # define LT_DLLAZY_OR_NOW DL_LAZY
12586 # define LT_DLLAZY_OR_NOW RTLD_NOW
12589 # define LT_DLLAZY_OR_NOW DL_NOW
12591 # define LT_DLLAZY_OR_NOW 0
12599 extern "C" void exit (int);
12602 void fnord() { int i=42;}
12605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12606 int status = $lt_dlunknown;
12610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12611 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12612 /* dlclose (self); */
12618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619 (eval $ac_link) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12623 (./conftest; exit; ) 2>/dev/null
12625 case x$lt_status in
12626 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12627 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12628 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12631 # compilation failed
12632 lt_cv_dlopen_self=no
12639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12640 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12642 if test "x$lt_cv_dlopen_self" = xyes; then
12643 LDFLAGS="$LDFLAGS $link_static_flag"
12644 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12645 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12646 if test "${lt_cv_dlopen_self_static+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 if test "$cross_compiling" = yes; then :
12650 lt_cv_dlopen_self_static=cross
12652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12653 lt_status=$lt_dlunknown
12654 cat > conftest.$ac_ext <<EOF
12655 #line __oline__ "configure"
12656 #include "confdefs.h"
12665 # define LT_DLGLOBAL RTLD_GLOBAL
12668 # define LT_DLGLOBAL DL_GLOBAL
12670 # define LT_DLGLOBAL 0
12674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12675 find out it does not work in some platform. */
12676 #ifndef LT_DLLAZY_OR_NOW
12678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12681 # define LT_DLLAZY_OR_NOW DL_LAZY
12684 # define LT_DLLAZY_OR_NOW RTLD_NOW
12687 # define LT_DLLAZY_OR_NOW DL_NOW
12689 # define LT_DLLAZY_OR_NOW 0
12697 extern "C" void exit (int);
12700 void fnord() { int i=42;}
12703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12704 int status = $lt_dlunknown;
12708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12709 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12710 /* dlclose (self); */
12716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12721 (./conftest; exit; ) 2>/dev/null
12723 case x$lt_status in
12724 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12725 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12726 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12729 # compilation failed
12730 lt_cv_dlopen_self_static=no
12737 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12738 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12741 CPPFLAGS="$save_CPPFLAGS"
12742 LDFLAGS="$save_LDFLAGS"
12747 case $lt_cv_dlopen_self in
12748 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12749 *) enable_dlopen_self=unknown ;;
12752 case $lt_cv_dlopen_self_static in
12753 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12754 *) enable_dlopen_self_static=unknown ;;
12759 # The else clause should only fire when bootstrapping the
12760 # libtool distribution, otherwise you forgot to ship ltmain.sh
12761 # with your package, and you will get complaints that there are
12762 # no rules to generate ltmain.sh.
12763 if test -f "$ltmain"; then
12764 # See if we are running on zsh, and set the options which allow our commands through
12765 # without removal of \ escapes.
12766 if test -n "${ZSH_VERSION+set}" ; then
12767 setopt NO_GLOB_SUBST
12769 # Now quote all the things that may contain metacharacters while being
12770 # careful not to overquote the AC_SUBSTed values. We take copies of the
12771 # variables and quote the copies for generation of the libtool script.
12772 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12774 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12775 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12776 deplibs_check_method reload_flag reload_cmds need_locks \
12777 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12778 lt_cv_sys_global_symbol_to_c_name_address \
12779 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12780 old_postinstall_cmds old_postuninstall_cmds \
12784 lt_prog_compiler_wl_CXX \
12785 lt_prog_compiler_pic_CXX \
12786 lt_prog_compiler_static_CXX \
12787 lt_prog_compiler_no_builtin_flag_CXX \
12788 export_dynamic_flag_spec_CXX \
12789 thread_safe_flag_spec_CXX \
12790 whole_archive_flag_spec_CXX \
12791 enable_shared_with_static_runtimes_CXX \
12792 old_archive_cmds_CXX \
12793 old_archive_from_new_cmds_CXX \
12794 predep_objects_CXX \
12795 postdep_objects_CXX \
12798 compiler_lib_search_path_CXX \
12800 archive_expsym_cmds_CXX \
12801 postinstall_cmds_CXX \
12802 postuninstall_cmds_CXX \
12803 old_archive_from_expsyms_cmds_CXX \
12804 allow_undefined_flag_CXX \
12805 no_undefined_flag_CXX \
12806 export_symbols_cmds_CXX \
12807 hardcode_libdir_flag_spec_CXX \
12808 hardcode_libdir_flag_spec_ld_CXX \
12809 hardcode_libdir_separator_CXX \
12810 hardcode_automatic_CXX \
12812 module_expsym_cmds_CXX \
12813 lt_cv_prog_compiler_c_o_CXX \
12814 exclude_expsyms_CXX \
12815 include_expsyms_CXX; do
12818 old_archive_cmds_CXX | \
12819 old_archive_from_new_cmds_CXX | \
12820 archive_cmds_CXX | \
12821 archive_expsym_cmds_CXX | \
12822 module_cmds_CXX | \
12823 module_expsym_cmds_CXX | \
12824 old_archive_from_expsyms_cmds_CXX | \
12825 export_symbols_cmds_CXX | \
12826 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12827 postinstall_cmds | postuninstall_cmds | \
12828 old_postinstall_cmds | old_postuninstall_cmds | \
12829 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12830 # Double-quote double-evaled strings.
12831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12840 *'\$0 --fallback-echo"')
12841 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12847 cat <<__EOF__ >> "$cfgfile"
12848 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12850 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12852 # Shell to use when invoking shell scripts.
12855 # Whether or not to build shared libraries.
12856 build_libtool_libs=$enable_shared
12858 # Whether or not to build static libraries.
12859 build_old_libs=$enable_static
12861 # Whether or not to add -lc for building shared libraries.
12862 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12864 # Whether or not to disallow shared libs when runtime libs are static
12865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12867 # Whether or not to optimize for fast installation.
12868 fast_install=$enable_fast_install
12871 host_alias=$host_alias
12874 # An echo program that does not interpret backslashes.
12879 AR_FLAGS=$lt_AR_FLAGS
12884 # A language-specific compiler.
12885 CC=$lt_compiler_CXX
12887 # Is the compiler the GNU C compiler?
12893 # The linker used to build libraries.
12896 # Whether we need hard or soft links.
12899 # A BSD-compatible nm program.
12902 # A symbol stripping program
12905 # Used to examine libraries when file_magic_cmd begins "file"
12906 MAGIC_CMD=$MAGIC_CMD
12908 # Used on cygwin: DLL creation program.
12911 # Used on cygwin: object dumper.
12914 # Used on cygwin: assembler.
12917 # The name of the directory that contains temporary libtool files.
12920 # How to create reloadable object files.
12921 reload_flag=$lt_reload_flag
12922 reload_cmds=$lt_reload_cmds
12924 # How to pass a linker flag through the compiler.
12925 wl=$lt_lt_prog_compiler_wl_CXX
12927 # Object file suffix (normally "o").
12928 objext="$ac_objext"
12930 # Old archive suffix (normally "a").
12933 # Shared library suffix (normally ".so").
12934 shrext_cmds='$shrext_cmds'
12936 # Executable file suffix (normally "").
12939 # Additional compiler flags for building library objects.
12940 pic_flag=$lt_lt_prog_compiler_pic_CXX
12943 # What is the maximum length of a command?
12944 max_cmd_len=$lt_cv_sys_max_cmd_len
12946 # Does compiler simultaneously support -c and -o options?
12947 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12949 # Must we lock files when doing compilation ?
12950 need_locks=$lt_need_locks
12952 # Do we need the lib prefix for modules?
12953 need_lib_prefix=$need_lib_prefix
12955 # Do we need a version for libraries?
12956 need_version=$need_version
12958 # Whether dlopen is supported.
12959 dlopen_support=$enable_dlopen
12961 # Whether dlopen of programs is supported.
12962 dlopen_self=$enable_dlopen_self
12964 # Whether dlopen of statically linked programs is supported.
12965 dlopen_self_static=$enable_dlopen_self_static
12967 # Compiler flag to prevent dynamic linking.
12968 link_static_flag=$lt_lt_prog_compiler_static_CXX
12970 # Compiler flag to turn off builtin functions.
12971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12973 # Compiler flag to allow reflexive dlopens.
12974 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12976 # Compiler flag to generate shared objects directly from archives.
12977 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12979 # Compiler flag to generate thread-safe objects.
12980 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12982 # Library versioning type.
12983 version_type=$version_type
12985 # Format of library name prefix.
12986 libname_spec=$lt_libname_spec
12988 # List of archive names. First name is the real one, the rest are links.
12989 # The last name is the one that the linker finds with -lNAME.
12990 library_names_spec=$lt_library_names_spec
12992 # The coded name of the library, if different from the real name.
12993 soname_spec=$lt_soname_spec
12995 # Commands used to build and install an old-style archive.
12997 old_archive_cmds=$lt_old_archive_cmds_CXX
12998 old_postinstall_cmds=$lt_old_postinstall_cmds
12999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13001 # Create an old-style archive from a shared archive.
13002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13004 # Create a temporary old-style archive to link instead of a shared archive.
13005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13007 # Commands used to build and install a shared archive.
13008 archive_cmds=$lt_archive_cmds_CXX
13009 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13010 postinstall_cmds=$lt_postinstall_cmds
13011 postuninstall_cmds=$lt_postuninstall_cmds
13013 # Commands used to build a loadable module (assumed same as above if empty)
13014 module_cmds=$lt_module_cmds_CXX
13015 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13017 # Commands to strip libraries.
13018 old_striplib=$lt_old_striplib
13019 striplib=$lt_striplib
13021 # Dependencies to place before the objects being linked to create a
13023 predep_objects=$lt_predep_objects_CXX
13025 # Dependencies to place after the objects being linked to create a
13027 postdep_objects=$lt_postdep_objects_CXX
13029 # Dependencies to place before the objects being linked to create a
13031 predeps=$lt_predeps_CXX
13033 # Dependencies to place after the objects being linked to create a
13035 postdeps=$lt_postdeps_CXX
13037 # The library search path used internally by the compiler when linking
13038 # a shared library.
13039 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13041 # Method to check whether dependent libraries are shared objects.
13042 deplibs_check_method=$lt_deplibs_check_method
13044 # Command to use when deplibs_check_method == file_magic.
13045 file_magic_cmd=$lt_file_magic_cmd
13047 # Flag that allows shared libraries with undefined symbols to be built.
13048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13050 # Flag that forces no undefined symbols.
13051 no_undefined_flag=$lt_no_undefined_flag_CXX
13053 # Commands used to finish a libtool library installation in a directory.
13054 finish_cmds=$lt_finish_cmds
13056 # Same as above, but a single script fragment to be evaled but not shown.
13057 finish_eval=$lt_finish_eval
13059 # Take the output of nm and produce a listing of raw symbols and C names.
13060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13062 # Transform the output of nm in a proper C declaration
13063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13065 # Transform the output of nm in a C name address pair
13066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13068 # This is the shared library runtime path variable.
13069 runpath_var=$runpath_var
13071 # This is the shared library path variable.
13072 shlibpath_var=$shlibpath_var
13074 # Is shlibpath searched before the hard-coded library search path?
13075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13077 # How to hardcode a shared library path into an executable.
13078 hardcode_action=$hardcode_action_CXX
13080 # Whether we should hardcode library paths into libraries.
13081 hardcode_into_libs=$hardcode_into_libs
13083 # Flag to hardcode \$libdir into a binary during linking.
13084 # This must work even if \$libdir does not exist.
13085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13087 # If ld is used when linking, flag to hardcode \$libdir into
13088 # a binary during linking. This must work even if \$libdir does
13090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13092 # Whether we need a single -rpath flag with a separated argument.
13093 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13095 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13096 # resulting binary.
13097 hardcode_direct=$hardcode_direct_CXX
13099 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13100 # resulting binary.
13101 hardcode_minus_L=$hardcode_minus_L_CXX
13103 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13104 # the resulting binary.
13105 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13107 # Set to yes if building a shared library automatically hardcodes DIR into the library
13108 # and all subsequent libraries and executables linked against it.
13109 hardcode_automatic=$hardcode_automatic_CXX
13111 # Variables whose values should be saved in libtool wrapper scripts and
13112 # restored at relink time.
13113 variables_saved_for_relink="$variables_saved_for_relink"
13115 # Whether libtool must link a program against all its dependency libraries.
13116 link_all_deplibs=$link_all_deplibs_CXX
13118 # Compile-time system search path for libraries
13119 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13121 # Run-time system search path for libraries
13122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13124 # Fix the shell variable \$srcfile for the compiler.
13125 fix_srcfile_path="$fix_srcfile_path_CXX"
13127 # Set to yes if exported symbols are required.
13128 always_export_symbols=$always_export_symbols_CXX
13130 # The commands to list exported symbols.
13131 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13133 # The commands to extract the exported symbol list from a shared archive.
13134 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13136 # Symbols that should not be listed in the preloaded symbols.
13137 exclude_expsyms=$lt_exclude_expsyms_CXX
13139 # Symbols that must always be exported.
13140 include_expsyms=$lt_include_expsyms_CXX
13142 # ### END LIBTOOL TAG CONFIG: $tagname
13148 # If there is no Makefile yet, we rely on a make rule to execute
13149 # `config.status --recheck' to rerun these tests and create the
13150 # libtool script then.
13151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13152 if test -f "$ltmain_in"; then
13153 test -f Makefile && make "$ltmain"
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13168 with_gnu_ldcxx=$with_gnu_ld
13169 with_gnu_ld=$lt_save_with_gnu_ld
13170 lt_cv_path_LDCXX=$lt_cv_path_LD
13171 lt_cv_path_LD=$lt_save_path_LD
13172 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13173 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13181 if test -n "$F77" && test "X$F77" != "Xno"; then
13184 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13185 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13189 archive_cmds_need_lc_F77=no
13190 allow_undefined_flag_F77=
13191 always_export_symbols_F77=no
13192 archive_expsym_cmds_F77=
13193 export_dynamic_flag_spec_F77=
13194 hardcode_direct_F77=no
13195 hardcode_libdir_flag_spec_F77=
13196 hardcode_libdir_flag_spec_ld_F77=
13197 hardcode_libdir_separator_F77=
13198 hardcode_minus_L_F77=no
13199 hardcode_automatic_F77=no
13201 module_expsym_cmds_F77=
13202 link_all_deplibs_F77=unknown
13203 old_archive_cmds_F77=$old_archive_cmds
13204 no_undefined_flag_F77=
13205 whole_archive_flag_spec_F77=
13206 enable_shared_with_static_runtimes_F77=no
13208 # Source file extension for f77 test sources.
13211 # Object file extension for compiled f77 test sources.
13215 # Code to be used in simple compile tests
13216 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13218 # Code to be used in simple link tests
13219 lt_simple_link_test_code=" program t\n end\n"
13221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13223 # If no C compiler was specified, use CC.
13226 # Allow CC to be a program name with arguments.
13230 # Allow CC to be a program name with arguments.
13235 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13237 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13238 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13239 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13240 echo "${ECHO_T}$can_build_shared" >&6
13242 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13243 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13244 test "$can_build_shared" = "no" && enable_shared=no
13246 # On AIX, shared libraries and static libraries use the same namespace, and
13247 # are all built from PIC.
13250 test "$enable_shared" = yes && enable_static=no
13251 if test -n "$RANLIB"; then
13252 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13253 postinstall_cmds='$RANLIB $lib'
13257 test "$enable_shared" = yes && enable_static=no
13260 echo "$as_me:$LINENO: result: $enable_shared" >&5
13261 echo "${ECHO_T}$enable_shared" >&6
13263 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13264 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13265 # Make sure either enable_shared or enable_static is yes.
13266 test "$enable_shared" = yes || enable_static=yes
13267 echo "$as_me:$LINENO: result: $enable_static" >&5
13268 echo "${ECHO_T}$enable_static" >&6
13270 test "$ld_shlibs_F77" = no && can_build_shared=no
13275 lt_prog_compiler_wl_F77=
13276 lt_prog_compiler_pic_F77=
13277 lt_prog_compiler_static_F77=
13279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13282 if test "$GCC" = yes; then
13283 lt_prog_compiler_wl_F77='-Wl,'
13284 lt_prog_compiler_static_F77='-static'
13288 # All AIX code is PIC.
13289 if test "$host_cpu" = ia64; then
13290 # AIX 5 now supports IA64 processor
13291 lt_prog_compiler_static_F77='-Bstatic'
13296 # FIXME: we need at least 68020 code to build shared libraries, but
13297 # adding the `-m68020' flag to GCC prevents building anything better,
13299 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13302 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13303 # PIC is the default for these OSes.
13306 mingw* | pw32* | os2*)
13307 # This hack is so that the source file can tell whether it is being
13308 # built for inclusion in a dll (and should export symbols for example).
13309 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13312 darwin* | rhapsody*)
13313 # PIC is the default on this platform
13314 # Common symbols not allowed in MH_DYLIB files
13315 lt_prog_compiler_pic_F77='-fno-common'
13319 # Just because we use GCC doesn't mean we suddenly get shared libraries
13320 # on systems that don't support them.
13321 lt_prog_compiler_can_build_shared_F77=no
13326 if test -d /usr/nec; then
13327 lt_prog_compiler_pic_F77=-Kconform_pic
13332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13333 # not for PA HP-UX.
13334 case "$host_cpu" in
13339 lt_prog_compiler_pic_F77='-fPIC'
13345 lt_prog_compiler_pic_F77='-fPIC'
13349 # PORTME Check for flag to pass linker flags through the system compiler.
13352 lt_prog_compiler_wl_F77='-Wl,'
13353 if test "$host_cpu" = ia64; then
13354 # AIX 5 now supports IA64 processor
13355 lt_prog_compiler_static_F77='-Bstatic'
13357 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13361 mingw* | pw32* | os2*)
13362 # This hack is so that the source file can tell whether it is being
13363 # built for inclusion in a dll (and should export symbols for example).
13364 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13367 hpux9* | hpux10* | hpux11*)
13368 lt_prog_compiler_wl_F77='-Wl,'
13369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13370 # not for PA HP-UX.
13371 case "$host_cpu" in
13376 lt_prog_compiler_pic_F77='+Z'
13379 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13380 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13383 irix5* | irix6* | nonstopux*)
13384 lt_prog_compiler_wl_F77='-Wl,'
13385 # PIC (with -KPIC) is the default.
13386 lt_prog_compiler_static_F77='-non_shared'
13390 lt_prog_compiler_pic_F77='-KPIC'
13391 lt_prog_compiler_static_F77='-Bstatic'
13397 lt_prog_compiler_wl_F77='-Wl,'
13398 lt_prog_compiler_pic_F77='-KPIC'
13399 lt_prog_compiler_static_F77='-static'
13402 lt_prog_compiler_wl_F77='-Wl,'
13403 # All Alpha code is PIC.
13404 lt_prog_compiler_static_F77='-non_shared'
13409 osf3* | osf4* | osf5*)
13410 lt_prog_compiler_wl_F77='-Wl,'
13411 # All OSF/1 code is PIC.
13412 lt_prog_compiler_static_F77='-non_shared'
13416 lt_prog_compiler_pic_F77='-Kpic'
13417 lt_prog_compiler_static_F77='-dn'
13421 lt_prog_compiler_wl_F77='-Wl,'
13422 lt_prog_compiler_pic_F77='-KPIC'
13423 lt_prog_compiler_static_F77='-Bstatic'
13427 lt_prog_compiler_wl_F77='-Qoption ld '
13428 lt_prog_compiler_pic_F77='-PIC'
13429 lt_prog_compiler_static_F77='-Bstatic'
13432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13433 lt_prog_compiler_wl_F77='-Wl,'
13434 lt_prog_compiler_pic_F77='-KPIC'
13435 lt_prog_compiler_static_F77='-Bstatic'
13439 if test -d /usr/nec ;then
13440 lt_prog_compiler_pic_F77='-Kconform_pic'
13441 lt_prog_compiler_static_F77='-Bstatic'
13446 lt_prog_compiler_pic_F77='-pic'
13447 lt_prog_compiler_static_F77='-Bstatic'
13451 lt_prog_compiler_can_build_shared_F77=no
13456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13457 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13460 # Check to make sure the PIC flag actually works.
13462 if test -n "$lt_prog_compiler_pic_F77"; then
13464 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13465 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13466 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 lt_prog_compiler_pic_works_F77=no
13470 ac_outfile=conftest.$ac_objext
13471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13472 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13473 # Insert the option either (1) after the last *FLAGS variable, or
13474 # (2) before a word containing "conftest.", or (3) at the end.
13475 # Note that $ac_compile itself does not contain backslashes and begins
13476 # with a dollar sign (not a hyphen), so the echo should work correctly.
13477 # The option is referenced via a variable to avoid confusing sed.
13478 lt_compile=`echo "$ac_compile" | $SED \
13479 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13481 -e 's:$: $lt_compiler_flag:'`
13482 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13483 (eval "$lt_compile" 2>conftest.err)
13485 cat conftest.err >&5
13486 echo "$as_me:__oline__: \$? = $ac_status" >&5
13487 if (exit $ac_status) && test -s "$ac_outfile"; then
13488 # The compiler can only warn and ignore the option if not recognized
13489 # So say no if there are warnings
13490 if test ! -s conftest.err; then
13491 lt_prog_compiler_pic_works_F77=yes
13497 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13498 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13500 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13501 case $lt_prog_compiler_pic_F77 in
13503 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13506 lt_prog_compiler_pic_F77=
13507 lt_prog_compiler_can_build_shared_F77=no
13512 # For platforms which do not support PIC, -DPIC is meaningless:
13514 lt_prog_compiler_pic_F77=
13517 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13521 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13523 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 lt_cv_prog_compiler_c_o_F77=no
13527 $rm -r conftest 2>/dev/null
13531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13533 lt_compiler_flag="-o out/conftest2.$ac_objext"
13534 # Insert the option either (1) after the last *FLAGS variable, or
13535 # (2) before a word containing "conftest.", or (3) at the end.
13536 # Note that $ac_compile itself does not contain backslashes and begins
13537 # with a dollar sign (not a hyphen), so the echo should work correctly.
13538 lt_compile=`echo "$ac_compile" | $SED \
13539 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13541 -e 's:$: $lt_compiler_flag:'`
13542 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13543 (eval "$lt_compile" 2>out/conftest.err)
13545 cat out/conftest.err >&5
13546 echo "$as_me:__oline__: \$? = $ac_status" >&5
13547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13549 # The compiler can only warn and ignore the option if not recognized
13550 # So say no if there are warnings
13551 if test ! -s out/conftest.err; then
13552 lt_cv_prog_compiler_c_o_F77=yes
13557 # SGI C++ compiler will create directory out/ii_files/ for
13558 # template instantiation
13559 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13560 $rm out/* && rmdir out
13566 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13570 hard_links="nottested"
13571 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13572 # do not overwrite the value of need_locks provided by the user
13573 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13579 ln conftest.a conftest.b 2>&5 || hard_links=no
13580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13581 echo "$as_me:$LINENO: result: $hard_links" >&5
13582 echo "${ECHO_T}$hard_links" >&6
13583 if test "$hard_links" = no; then
13584 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13596 allow_undefined_flag_F77=
13597 enable_shared_with_static_runtimes_F77=no
13599 archive_expsym_cmds_F77=
13600 old_archive_From_new_cmds_F77=
13601 old_archive_from_expsyms_cmds_F77=
13602 export_dynamic_flag_spec_F77=
13603 whole_archive_flag_spec_F77=
13604 thread_safe_flag_spec_F77=
13605 hardcode_libdir_flag_spec_F77=
13606 hardcode_libdir_flag_spec_ld_F77=
13607 hardcode_libdir_separator_F77=
13608 hardcode_direct_F77=no
13609 hardcode_minus_L_F77=no
13610 hardcode_shlibpath_var_F77=unsupported
13611 link_all_deplibs_F77=unknown
13612 hardcode_automatic_F77=no
13614 module_expsym_cmds_F77=
13615 always_export_symbols_F77=no
13616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13617 # include_expsyms should be a list of space-separated symbols to be *always*
13618 # included in the symbol list
13619 include_expsyms_F77=
13620 # exclude_expsyms can be an extended regexp of symbols to exclude
13621 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13623 # as well as any symbol that contains `d'.
13624 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13626 # platforms (ab)use it in PIC code, but their linkers get confused if
13627 # the symbol is explicitly referenced. Since portable code cannot
13628 # rely on this symbol name, it's probably fine to never include it in
13629 # preloaded symbol tables.
13630 extract_expsyms_cmds=
13633 cygwin* | mingw* | pw32*)
13634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13635 # When not using gcc, we currently assume that we are using
13636 # Microsoft Visual C++.
13637 if test "$GCC" != yes; then
13647 if test "$with_gnu_ld" = yes; then
13648 # If archive_cmds runs LD, not CC, wlarc should be empty
13651 # See if GNU ld supports shared libraries.
13653 aix3* | aix4* | aix5*)
13654 # On AIX/PPC, the GNU linker is very broken
13655 if test "$host_cpu" != ia64; then
13659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13660 *** to be unable to reliably create shared libraries on AIX.
13661 *** Therefore, libtool is disabling shared libraries support. If you
13662 *** really care for shared libraries, you may want to modify your PATH
13663 *** so that a non-GNU linker is found, and then restart.
13670 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)'
13671 hardcode_libdir_flag_spec_F77='-L$libdir'
13672 hardcode_minus_L_F77=yes
13674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13675 # that the semantics of dynamic libraries on AmigaOS, at least up
13676 # to version 4, is to share data among multiple programs linked
13677 # with the same dynamic library. Since this doesn't match the
13678 # behavior of shared libraries on other platforms, we can't use
13684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13685 allow_undefined_flag_F77=unsupported
13686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13687 # support --undefined. This deserves some investigation. FIXME
13688 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13694 cygwin* | mingw* | pw32*)
13695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13696 # as there is no search path for DLLs.
13697 hardcode_libdir_flag_spec_F77='-L$libdir'
13698 allow_undefined_flag_F77=unsupported
13699 always_export_symbols_F77=no
13700 enable_shared_with_static_runtimes_F77=yes
13701 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13705 # If the export-symbols file already is a .def file (1st line
13706 # is EXPORTS), use it as is; otherwise, prepend...
13707 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13708 cp $export_symbols $output_objdir/$soname.def;
13710 echo EXPORTS > $output_objdir/$soname.def;
13711 cat $export_symbols >> $output_objdir/$soname.def;
13713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13721 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13724 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13730 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13735 *** create shared libraries on Solaris systems. Therefore, libtool
13736 *** is disabling shared libraries support. We urge you to upgrade GNU
13737 *** binutils to release 2.9.1 or newer. Another option is to modify
13738 *** your PATH or compiler configuration so that the native linker is
13739 *** used, and then restart.
13742 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13751 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13753 hardcode_direct_F77=yes
13754 hardcode_shlibpath_var_F77=no
13758 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13759 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13760 archive_cmds_F77="$tmp_archive_cmds"
13761 supports_anon_versioning=no
13762 case `$LD -v 2>/dev/null` in
13763 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13766 *\ 2.11.*) ;; # other 2.11 versions
13767 *) supports_anon_versioning=yes ;;
13769 if test $supports_anon_versioning = yes; then
13770 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13772 $echo "local: *; };" >> $output_objdir/$libname.ver~
13773 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13775 archive_expsym_cmds_F77="$tmp_archive_cmds"
13783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13784 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13792 if test "$ld_shlibs_F77" = yes; then
13793 runpath_var=LD_RUN_PATH
13794 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13795 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13796 # ancient GNU ld didn't support --whole-archive et. al.
13797 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13798 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13800 whole_archive_flag_spec_F77=
13804 # PORTME fill in a description of your system's linker (not GNU ld)
13807 allow_undefined_flag_F77=unsupported
13808 always_export_symbols_F77=yes
13809 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'
13810 # Note: this linker hardcodes the directories in LIBPATH if there
13811 # are no directories specified by -L.
13812 hardcode_minus_L_F77=yes
13813 if test "$GCC" = yes && test -z "$link_static_flag"; then
13814 # Neither direct hardcoding nor static linking is supported with a
13816 hardcode_direct_F77=unsupported
13821 if test "$host_cpu" = ia64; then
13822 # On IA64, the linker does run time linking by default, so we don't
13823 # have to do anything special.
13824 aix_use_runtimelinking=no
13825 exp_sym_flag='-Bexport'
13828 # If we're using GNU nm, then we don't want the "-C" option.
13829 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13830 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13831 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'
13833 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'
13835 aix_use_runtimelinking=no
13837 # Test if we are trying to use run time linking or normal
13838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13839 # need to do runtime linking.
13840 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13841 for ld_flag in $LDFLAGS; do
13842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13843 aix_use_runtimelinking=yes
13849 exp_sym_flag='-bexport'
13850 no_entry_flag='-bnoentry'
13853 # When large executables or shared objects are built, AIX ld can
13854 # have problems creating the table of contents. If linking a library
13855 # or program results in "error TOC overflow" add -mminimal-toc to
13856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13859 archive_cmds_F77=''
13860 hardcode_direct_F77=yes
13861 hardcode_libdir_separator_F77=':'
13862 link_all_deplibs_F77=yes
13864 if test "$GCC" = yes; then
13865 case $host_os in aix4.012|aix4.012.*)
13866 # We only want to do this on AIX 4.2 and lower, the check
13867 # below for broken collect2 doesn't work under 4.3+
13868 collect2name=`${CC} -print-prog-name=collect2`
13869 if test -f "$collect2name" && \
13870 strings "$collect2name" | grep resolve_lib_name >/dev/null
13872 # We have reworked collect2
13873 hardcode_direct_F77=yes
13875 # We have old collect2
13876 hardcode_direct_F77=unsupported
13877 # It fails to find uninstalled libraries when the uninstalled
13878 # path is not listed in the libpath. Setting hardcode_minus_L
13879 # to unsupported forces relinking
13880 hardcode_minus_L_F77=yes
13881 hardcode_libdir_flag_spec_F77='-L$libdir'
13882 hardcode_libdir_separator_F77=
13885 shared_flag='-shared'
13888 if test "$host_cpu" = ia64; then
13889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13890 # chokes on -Wl,-G. The following line is correct:
13893 if test "$aix_use_runtimelinking" = yes; then
13894 shared_flag='${wl}-G'
13896 shared_flag='${wl}-bM:SRE'
13901 # It seems that -bexpall does not export symbols beginning with
13902 # underscore (_), so it is better to generate a list of symbols to export.
13903 always_export_symbols_F77=yes
13904 if test "$aix_use_runtimelinking" = yes; then
13905 # Warning - without using the other runtime loading flags (-brtl),
13906 # -berok will link without error, but may produce a broken library.
13907 allow_undefined_flag_F77='-berok'
13908 # Determine the default libpath from the value encoded in an empty executable.
13909 cat >conftest.$ac_ext <<_ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916 (eval $ac_link) 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -z "$ac_f77_werror_flag"
13924 || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13939 # Check for a 64-bit object if we didn't find anything.
13940 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; }
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13947 rm -f conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13951 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13952 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"
13954 if test "$host_cpu" = ia64; then
13955 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13956 allow_undefined_flag_F77="-z nodefs"
13957 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"
13959 # Determine the default libpath from the value encoded in an empty executable.
13960 cat >conftest.$ac_ext <<_ACEOF
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967 (eval $ac_link) 2>conftest.er1
13969 grep -v '^ *+' conftest.er1 >conftest.err
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -z "$ac_f77_werror_flag"
13975 || test ! -s conftest.err'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; } &&
13981 { ac_try='test -s conftest$ac_exeext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13990 # Check for a 64-bit object if we didn't find anything.
13991 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; }
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13998 rm -f conftest.err conftest.$ac_objext \
13999 conftest$ac_exeext conftest.$ac_ext
14000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14002 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14003 # Warning - without using the other run time loading flags,
14004 # -berok will link without error, but may produce a broken library.
14005 no_undefined_flag_F77=' ${wl}-bernotok'
14006 allow_undefined_flag_F77=' ${wl}-berok'
14007 # -bexpall does not export symbols beginning with underscore (_)
14008 always_export_symbols_F77=yes
14009 # Exported symbols can be pulled into shared objects from archives
14010 whole_archive_flag_spec_F77=' '
14011 archive_cmds_need_lc_F77=yes
14012 # This is similar to how AIX traditionally builds it's shared libraries.
14013 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'
14019 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)'
14020 hardcode_libdir_flag_spec_F77='-L$libdir'
14021 hardcode_minus_L_F77=yes
14022 # see comment about different semantics on the GNU ld section
14027 export_dynamic_flag_spec_F77=-rdynamic
14030 cygwin* | mingw* | pw32*)
14031 # When not using gcc, we currently assume that we are using
14032 # Microsoft Visual C++.
14033 # hardcode_libdir_flag_spec is actually meaningless, as there is
14034 # no search path for DLLs.
14035 hardcode_libdir_flag_spec_F77=' '
14036 allow_undefined_flag_F77=unsupported
14037 # Tell ltmain to make .lib files, not .a files.
14039 # Tell ltmain to make .dll files, not .so files.
14041 # FIXME: Setting linknames here is a bad hack.
14042 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14043 # The linker will automatically build a .lib file if we build a DLL.
14044 old_archive_From_new_cmds_F77='true'
14045 # FIXME: Should let the user specify the lib program.
14046 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14047 fix_srcfile_path='`cygpath -w "$srcfile"`'
14048 enable_shared_with_static_runtimes_F77=yes
14051 darwin* | rhapsody*)
14052 if test "$GXX" = yes ; then
14053 archive_cmds_need_lc_F77=no
14055 rhapsody* | darwin1.[012])
14056 allow_undefined_flag_F77='-undefined suppress'
14059 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14060 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14062 case ${MACOSX_DEPLOYMENT_TARGET} in
14064 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14067 allow_undefined_flag_F77='-undefined dynamic_lookup'
14073 lt_int_apple_cc_single_mod=no
14074 output_verbose_link_cmd='echo'
14075 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14076 lt_int_apple_cc_single_mod=yes
14078 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14079 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14081 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'
14083 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14084 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14085 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14086 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}'
14088 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}'
14090 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}'
14091 hardcode_direct_F77=no
14092 hardcode_automatic_F77=yes
14093 hardcode_shlibpath_var_F77=unsupported
14094 whole_archive_flag_spec_F77='-all_load $convenience'
14095 link_all_deplibs_F77=yes
14102 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14103 hardcode_libdir_flag_spec_F77='-L$libdir'
14104 hardcode_shlibpath_var_F77=no
14111 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14112 # support. Future versions do this automatically, but an explicit c++rt0.o
14113 # does not break anything, and helps significantly (at the cost of a little
14116 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14117 hardcode_libdir_flag_spec_F77='-R$libdir'
14118 hardcode_direct_F77=yes
14119 hardcode_shlibpath_var_F77=no
14122 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14124 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14125 hardcode_direct_F77=yes
14126 hardcode_minus_L_F77=yes
14127 hardcode_shlibpath_var_F77=no
14130 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14131 freebsd* | kfreebsd*-gnu)
14132 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14133 hardcode_libdir_flag_spec_F77='-R$libdir'
14134 hardcode_direct_F77=yes
14135 hardcode_shlibpath_var_F77=no
14139 if test "$GCC" = yes; then
14140 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'
14142 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'
14144 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14145 hardcode_libdir_separator_F77=:
14146 hardcode_direct_F77=yes
14148 # hardcode_minus_L: Not really in the search PATH,
14149 # but as the default location of the library.
14150 hardcode_minus_L_F77=yes
14151 export_dynamic_flag_spec_F77='${wl}-E'
14155 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14156 case "$host_cpu" in
14158 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14161 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14165 case "$host_cpu" in
14167 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14170 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14174 if test "$with_gnu_ld" = no; then
14175 case "$host_cpu" in
14177 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14178 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14179 hardcode_libdir_separator_F77=:
14180 hardcode_direct_F77=no
14181 hardcode_shlibpath_var_F77=no
14184 hardcode_libdir_flag_spec_F77='-L$libdir'
14185 hardcode_direct_F77=no
14186 hardcode_shlibpath_var_F77=no
14188 # hardcode_minus_L: Not really in the search PATH,
14189 # but as the default location of the library.
14190 hardcode_minus_L_F77=yes
14193 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14194 hardcode_libdir_separator_F77=:
14195 hardcode_direct_F77=yes
14196 export_dynamic_flag_spec_F77='${wl}-E'
14198 # hardcode_minus_L: Not really in the search PATH,
14199 # but as the default location of the library.
14200 hardcode_minus_L_F77=yes
14206 irix5* | irix6* | nonstopux*)
14207 if test "$GCC" = yes; then
14208 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'
14210 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'
14211 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14213 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14214 hardcode_libdir_separator_F77=:
14215 link_all_deplibs_F77=yes
14219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14220 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14222 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14224 hardcode_libdir_flag_spec_F77='-R$libdir'
14225 hardcode_direct_F77=yes
14226 hardcode_shlibpath_var_F77=no
14230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14231 hardcode_direct_F77=yes
14232 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14233 hardcode_libdir_separator_F77=:
14234 hardcode_shlibpath_var_F77=no
14238 hardcode_direct_F77=yes
14239 hardcode_shlibpath_var_F77=no
14240 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14241 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14242 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14243 export_dynamic_flag_spec_F77='${wl}-E'
14246 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14247 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14248 hardcode_libdir_flag_spec_F77='-R$libdir'
14251 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14252 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14259 hardcode_libdir_flag_spec_F77='-L$libdir'
14260 hardcode_minus_L_F77=yes
14261 allow_undefined_flag_F77=unsupported
14262 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'
14263 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14267 if test "$GCC" = yes; then
14268 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14269 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'
14271 allow_undefined_flag_F77=' -expect_unresolved \*'
14272 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'
14274 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14275 hardcode_libdir_separator_F77=:
14278 osf4* | osf5*) # as osf3* with the addition of -msym flag
14279 if test "$GCC" = yes; then
14280 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14281 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'
14282 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14284 allow_undefined_flag_F77=' -expect_unresolved \*'
14285 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'
14286 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~
14287 $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'
14289 # Both c and cxx compiler support -rpath directly
14290 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14292 hardcode_libdir_separator_F77=:
14296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297 hardcode_shlibpath_var_F77=no
14298 export_dynamic_flag_spec_F77='${wl}-Bexport'
14299 runpath_var=LD_RUN_PATH
14300 hardcode_runpath_var=yes
14304 no_undefined_flag_F77=' -z text'
14305 if test "$GCC" = yes; then
14306 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14308 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14310 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14312 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14314 hardcode_libdir_flag_spec_F77='-R$libdir'
14315 hardcode_shlibpath_var_F77=no
14317 solaris2.[0-5] | solaris2.[0-5].*) ;;
14318 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14319 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14321 link_all_deplibs_F77=yes
14325 if test "x$host_vendor" = xsequent; then
14326 # Use $CC to link under sequent, because it throws in some extra .o
14327 # files that make .init and .fini sections work.
14328 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14330 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14332 hardcode_libdir_flag_spec_F77='-L$libdir'
14333 hardcode_direct_F77=yes
14334 hardcode_minus_L_F77=yes
14335 hardcode_shlibpath_var_F77=no
14339 case $host_vendor in
14341 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14342 hardcode_direct_F77=yes # is this really true???
14345 ## LD is ld it makes a PLAMLIB
14346 ## CC just makes a GrossModule.
14347 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14348 reload_cmds_F77='$CC -r -o $output$reload_objs'
14349 hardcode_direct_F77=no
14352 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14353 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14356 runpath_var='LD_RUN_PATH'
14357 hardcode_shlibpath_var_F77=no
14361 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362 hardcode_shlibpath_var_F77=no
14363 export_dynamic_flag_spec_F77='-Bexport'
14367 if test -d /usr/nec; then
14368 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14369 hardcode_shlibpath_var_F77=no
14370 runpath_var=LD_RUN_PATH
14371 hardcode_runpath_var=yes
14377 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14378 hardcode_direct_F77=yes
14379 hardcode_minus_L_F77=no
14380 hardcode_shlibpath_var_F77=no
14381 hardcode_runpath_var=yes
14382 runpath_var=LD_RUN_PATH
14385 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14386 no_undefined_flag_F77='${wl}-z ${wl}text'
14387 if test "$GCC" = yes; then
14388 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14390 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14392 runpath_var='LD_RUN_PATH'
14393 hardcode_shlibpath_var_F77=no
14397 no_undefined_flag_F77=' -z text'
14398 # $CC -shared without GNU ld will not create a library from C++
14399 # object files and a static libstdc++, better avoid it by now
14400 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14401 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14403 hardcode_libdir_flag_spec_F77=
14404 hardcode_shlibpath_var_F77=no
14405 runpath_var='LD_RUN_PATH'
14409 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14410 hardcode_libdir_flag_spec_F77='-L$libdir'
14411 hardcode_shlibpath_var_F77=no
14420 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14421 echo "${ECHO_T}$ld_shlibs_F77" >&6
14422 test "$ld_shlibs_F77" = no && can_build_shared=no
14424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14425 if test "$GCC" = yes; then
14426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14430 # Do we need to explicitly link libc?
14432 case "x$archive_cmds_need_lc_F77" in
14434 # Assume -lc should be added
14435 archive_cmds_need_lc_F77=yes
14437 if test "$enable_shared" = yes && test "$GCC" = yes; then
14438 case $archive_cmds_F77 in
14440 # FIXME: we may have to deal with multi-command sequences.
14443 # Test whether the compiler implicitly links with -lc since on some
14444 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14445 # to ld, don't add -lc before -lgcc.
14446 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14447 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } 2>conftest.err; then
14458 libobjs=conftest.$ac_objext
14460 wl=$lt_prog_compiler_wl_F77
14466 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14467 allow_undefined_flag_F77=
14468 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14469 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }
14474 archive_cmds_need_lc_F77=no
14476 archive_cmds_need_lc_F77=yes
14478 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14480 cat conftest.err 1>&5
14483 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14484 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14491 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14492 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14493 library_names_spec=
14494 libname_spec='lib$name'
14498 postuninstall_cmds=
14502 shlibpath_overrides_runpath=unknown
14504 dynamic_linker="$host_os ld.so"
14505 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14506 if test "$GCC" = yes; then
14507 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14508 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14509 # if the path contains ";" then we assume it to be the separator
14510 # otherwise default to the standard path separator (i.e. ":") - it is
14511 # assumed that no part of a normal pathname contains ";" but that should
14512 # okay in the real world where ";" in dirpaths is itself problematic.
14513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14518 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14520 need_lib_prefix=unknown
14521 hardcode_into_libs=no
14523 # when you set need_version to no, make sure it does not cause -set_version
14524 # flags to be left without arguments
14525 need_version=unknown
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14531 shlibpath_var=LIBPATH
14533 # AIX 3 has no versioning support, so we append a major version to the name.
14534 soname_spec='${libname}${release}${shared_ext}$major'
14541 hardcode_into_libs=yes
14542 if test "$host_cpu" = ia64; then
14543 # AIX 5 supports IA64
14544 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14545 shlibpath_var=LD_LIBRARY_PATH
14547 # With GCC up to 2.95.x, collect2 would create an import file
14548 # for dependence libraries. The import file would start with
14549 # the line `#! .'. This would cause the generated library to
14550 # depend on `.', always an invalid library. This was fixed in
14551 # development snapshots of GCC prior to 3.0.
14553 aix4 | aix4.[01] | aix4.[01].*)
14554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14556 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14559 can_build_shared=no
14563 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14564 # soname into executable. Probably we can add versioning support to
14565 # collect2, so additional links can be useful in future.
14566 if test "$aix_use_runtimelinking" = yes; then
14567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14568 # instead of lib<name>.a to let people know that these are not
14569 # typical AIX shared libraries.
14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 # We preserve .a as extension for shared libraries through AIX4.2
14573 # and later when we are not doing run time linking.
14574 library_names_spec='${libname}${release}.a $libname.a'
14575 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LIBPATH
14582 library_names_spec='$libname.ixlibrary $libname.a'
14583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14584 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'
14588 library_names_spec='${libname}${shared_ext}'
14589 dynamic_linker="$host_os ld.so"
14590 shlibpath_var=LIBRARY_PATH
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14602 # the default ld.so.conf also contains /usr/contrib/lib and
14603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14604 # libtool to hard-code these into programs
14607 cygwin* | mingw* | pw32*)
14608 version_type=windows
14613 case $GCC,$host_os in
14614 yes,cygwin* | yes,mingw* | yes,pw32*)
14615 library_names_spec='$libname.dll.a'
14616 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14617 postinstall_cmds='base_file=`basename \${file}`~
14618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14619 dldir=$destdir/`dirname \$dlpath`~
14620 test -d \$dldir || mkdir -p \$dldir~
14621 $install_prog $dir/$dlname \$dldir/$dlname'
14622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14623 dlpath=$dir/\$dldll~
14625 shlibpath_overrides_runpath=yes
14629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14631 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14634 # MinGW DLLs use traditional 'lib' prefix
14635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14636 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14637 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14638 # It is most probably a Windows format PATH printed by
14639 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14640 # path with ; separators, and with drive letters. We can handle the
14641 # drive letters (cygwin fileutils understands them), so leave them,
14642 # especially as we might pass files found there to a mingw objdump,
14643 # which wouldn't understand a cygwinified path. Ahh.
14644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14650 # pw32 DLLs use 'pw' prefix rather than 'lib'
14651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14660 dynamic_linker='Win32 ld.exe'
14661 # FIXME: first we should search . and the directory the executable is in
14665 darwin* | rhapsody*)
14666 dynamic_linker="$host_os dyld"
14667 version_type=darwin
14670 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14671 soname_spec='${libname}${release}${major}$shared_ext'
14672 shlibpath_overrides_runpath=yes
14673 shlibpath_var=DYLD_LIBRARY_PATH
14674 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14675 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14676 if test "$GCC" = yes; then
14677 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"`
14679 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14690 shlibpath_var=LD_LIBRARY_PATH
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 shlibpath_var=LD_LIBRARY_PATH
14704 shlibpath_overrides_runpath=no
14705 hardcode_into_libs=yes
14706 dynamic_linker='GNU ld.so'
14710 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14711 version_type=freebsd-$objformat
14712 case $version_type in
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14723 shlibpath_var=LD_LIBRARY_PATH
14726 shlibpath_overrides_runpath=yes
14728 freebsd3.01* | freebsdelf3.01*)
14729 shlibpath_overrides_runpath=yes
14730 hardcode_into_libs=yes
14733 shlibpath_overrides_runpath=no
14734 hardcode_into_libs=yes
14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14744 soname_spec='${libname}${release}${shared_ext}$major'
14745 shlibpath_var=LD_LIBRARY_PATH
14746 hardcode_into_libs=yes
14749 hpux9* | hpux10* | hpux11*)
14750 # Give a soname corresponding to the major version so that dld.sl refuses to
14751 # link against other versions.
14755 case "$host_cpu" in
14758 hardcode_into_libs=yes
14759 dynamic_linker="$host_os dld.so"
14760 shlibpath_var=LD_LIBRARY_PATH
14761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 if test "X$HPUX_IA64_MODE" = X32; then
14765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14773 hardcode_into_libs=yes
14774 dynamic_linker="$host_os dld.sl"
14775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14784 dynamic_linker="$host_os dld.sl"
14785 shlibpath_var=SHLIB_PATH
14786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788 soname_spec='${libname}${release}${shared_ext}$major'
14791 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14792 postinstall_cmds='chmod 555 $lib'
14795 irix5* | irix6* | nonstopux*)
14797 nonstopux*) version_type=nonstopux ;;
14799 if test "$lt_cv_prog_gnu_ld" = yes; then
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14810 irix5* | nonstopux*)
14811 libsuff= shlibsuff=
14814 case $LD in # libtool.m4 will add one of these switches to LD
14815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14816 libsuff= shlibsuff= libmagic=32-bit;;
14817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14818 libsuff=32 shlibsuff=N32 libmagic=N32;;
14819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14821 *) libsuff= shlibsuff= libmagic=never-match;;
14825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14826 shlibpath_overrides_runpath=no
14827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14829 hardcode_into_libs=yes
14832 # No shared lib support for Linux oldld, aout, or coff.
14833 linux*oldld* | linux*aout* | linux*coff*)
14837 # This must be Linux ELF.
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14845 shlibpath_var=LD_LIBRARY_PATH
14846 shlibpath_overrides_runpath=no
14847 # This implies no fast_install, which is unacceptable.
14848 # Some rework will be needed to allow for fast_install
14849 # before this can be enabled.
14850 hardcode_into_libs=yes
14852 # find out which ABI we are using
14854 case "$host_cpu" in
14855 x86_64*|s390x*|powerpc64*)
14856 echo '#line __oline__ "configure"' > conftest.$ac_ext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; then
14862 case `/usr/bin/file conftest.$ac_objext` in
14865 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14873 # Append ld.so.conf contents to the search path
14874 if test -f /etc/ld.so.conf; then
14875 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14876 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14879 # We used to test for /lib/ld.so.1 and disable shared libraries on
14880 # powerpc, because MkLinux only supported shared libraries with the
14881 # GNU dynamic linker. Since this was broken with cross compilers,
14882 # most powerpc-linux boxes support dynamic linking these days and
14883 # people can always --disable-shared, the test was removed, and we
14884 # assume the GNU/Linux dynamic linker is in use.
14885 dynamic_linker='GNU/Linux ld.so'
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 shlibpath_overrides_runpath=no
14896 hardcode_into_libs=yes
14897 dynamic_linker='GNU ld.so'
14904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14907 dynamic_linker='NetBSD (a.out) ld.so'
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 dynamic_linker='NetBSD ld.elf_so'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 shlibpath_overrides_runpath=yes
14915 hardcode_into_libs=yes
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=yes
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14944 openbsd2.[89] | openbsd2.[89].*)
14945 shlibpath_overrides_runpath=no
14948 shlibpath_overrides_runpath=yes
14952 shlibpath_overrides_runpath=yes
14957 libname_spec='$name'
14960 library_names_spec='$libname${shared_ext} $libname.a'
14961 dynamic_linker='OS/2 ld.exe'
14962 shlibpath_var=LIBPATH
14965 osf3* | osf4* | osf5*)
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 shlibpath_var=LD_LIBRARY_PATH
14972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980 shlibpath_var=LD_LIBRARY_PATH
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 shlibpath_overrides_runpath=yes
14991 hardcode_into_libs=yes
14992 # ldd complains unless libraries are executable
14993 postinstall_cmds='chmod +x $lib'
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15000 shlibpath_var=LD_LIBRARY_PATH
15001 shlibpath_overrides_runpath=yes
15002 if test "$with_gnu_ld" = yes; then
15008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 shlibpath_var=LD_LIBRARY_PATH
15013 case $host_vendor in
15015 shlibpath_overrides_runpath=no
15017 export_dynamic_flag_spec='${wl}-Blargedynsym'
15018 runpath_var=LD_RUN_PATH
15026 shlibpath_overrides_runpath=no
15027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15033 if test -d /usr/nec ;then
15035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15036 soname_spec='$libname${shared_ext}.$major'
15037 shlibpath_var=LD_LIBRARY_PATH
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044 soname_spec='${libname}${release}${shared_ext}$major'
15045 shlibpath_var=LD_LIBRARY_PATH
15052 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15053 echo "${ECHO_T}$dynamic_linker" >&6
15054 test "$dynamic_linker" = no && can_build_shared=no
15056 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15057 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15058 hardcode_action_F77=
15059 if test -n "$hardcode_libdir_flag_spec_F77" || \
15060 test -n "$runpath_var F77" || \
15061 test "X$hardcode_automatic_F77"="Xyes" ; then
15063 # We can hardcode non-existant directories.
15064 if test "$hardcode_direct_F77" != no &&
15065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15066 # have to relink, otherwise we might link with an installed library
15067 # when we should be linking with a yet-to-be-installed one
15068 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15069 test "$hardcode_minus_L_F77" != no; then
15070 # Linking always hardcodes the temporary library directory.
15071 hardcode_action_F77=relink
15073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15074 hardcode_action_F77=immediate
15077 # We cannot hardcode anything, or else we can only hardcode existing
15079 hardcode_action_F77=unsupported
15081 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15082 echo "${ECHO_T}$hardcode_action_F77" >&6
15084 if test "$hardcode_action_F77" = relink; then
15085 # Fast installation is not supported
15086 enable_fast_install=no
15087 elif test "$shlibpath_overrides_runpath" = yes ||
15088 test "$enable_shared" = no; then
15089 # Fast installation is not necessary
15090 enable_fast_install=needless
15095 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15096 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15097 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15098 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15099 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15100 echo "$as_me:$LINENO: result: yes" >&5
15101 echo "${ECHO_T}yes" >&6
15103 # FIXME - insert some real tests, host_os isn't really good enough
15106 if test -n "$STRIP" ; then
15107 striplib="$STRIP -x"
15108 echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6
15111 echo "$as_me:$LINENO: result: no" >&5
15112 echo "${ECHO_T}no" >&6
15116 echo "$as_me:$LINENO: result: no" >&5
15117 echo "${ECHO_T}no" >&6
15124 # The else clause should only fire when bootstrapping the
15125 # libtool distribution, otherwise you forgot to ship ltmain.sh
15126 # with your package, and you will get complaints that there are
15127 # no rules to generate ltmain.sh.
15128 if test -f "$ltmain"; then
15129 # See if we are running on zsh, and set the options which allow our commands through
15130 # without removal of \ escapes.
15131 if test -n "${ZSH_VERSION+set}" ; then
15132 setopt NO_GLOB_SUBST
15134 # Now quote all the things that may contain metacharacters while being
15135 # careful not to overquote the AC_SUBSTed values. We take copies of the
15136 # variables and quote the copies for generation of the libtool script.
15137 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15139 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15140 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15141 deplibs_check_method reload_flag reload_cmds need_locks \
15142 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15143 lt_cv_sys_global_symbol_to_c_name_address \
15144 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15145 old_postinstall_cmds old_postuninstall_cmds \
15149 lt_prog_compiler_wl_F77 \
15150 lt_prog_compiler_pic_F77 \
15151 lt_prog_compiler_static_F77 \
15152 lt_prog_compiler_no_builtin_flag_F77 \
15153 export_dynamic_flag_spec_F77 \
15154 thread_safe_flag_spec_F77 \
15155 whole_archive_flag_spec_F77 \
15156 enable_shared_with_static_runtimes_F77 \
15157 old_archive_cmds_F77 \
15158 old_archive_from_new_cmds_F77 \
15159 predep_objects_F77 \
15160 postdep_objects_F77 \
15163 compiler_lib_search_path_F77 \
15165 archive_expsym_cmds_F77 \
15166 postinstall_cmds_F77 \
15167 postuninstall_cmds_F77 \
15168 old_archive_from_expsyms_cmds_F77 \
15169 allow_undefined_flag_F77 \
15170 no_undefined_flag_F77 \
15171 export_symbols_cmds_F77 \
15172 hardcode_libdir_flag_spec_F77 \
15173 hardcode_libdir_flag_spec_ld_F77 \
15174 hardcode_libdir_separator_F77 \
15175 hardcode_automatic_F77 \
15177 module_expsym_cmds_F77 \
15178 lt_cv_prog_compiler_c_o_F77 \
15179 exclude_expsyms_F77 \
15180 include_expsyms_F77; do
15183 old_archive_cmds_F77 | \
15184 old_archive_from_new_cmds_F77 | \
15185 archive_cmds_F77 | \
15186 archive_expsym_cmds_F77 | \
15187 module_cmds_F77 | \
15188 module_expsym_cmds_F77 | \
15189 old_archive_from_expsyms_cmds_F77 | \
15190 export_symbols_cmds_F77 | \
15191 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15192 postinstall_cmds | postuninstall_cmds | \
15193 old_postinstall_cmds | old_postuninstall_cmds | \
15194 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15195 # Double-quote double-evaled strings.
15196 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15199 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15205 *'\$0 --fallback-echo"')
15206 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15212 cat <<__EOF__ >> "$cfgfile"
15213 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15215 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15217 # Shell to use when invoking shell scripts.
15220 # Whether or not to build shared libraries.
15221 build_libtool_libs=$enable_shared
15223 # Whether or not to build static libraries.
15224 build_old_libs=$enable_static
15226 # Whether or not to add -lc for building shared libraries.
15227 build_libtool_need_lc=$archive_cmds_need_lc_F77
15229 # Whether or not to disallow shared libs when runtime libs are static
15230 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15232 # Whether or not to optimize for fast installation.
15233 fast_install=$enable_fast_install
15236 host_alias=$host_alias
15239 # An echo program that does not interpret backslashes.
15244 AR_FLAGS=$lt_AR_FLAGS
15249 # A language-specific compiler.
15250 CC=$lt_compiler_F77
15252 # Is the compiler the GNU C compiler?
15258 # The linker used to build libraries.
15261 # Whether we need hard or soft links.
15264 # A BSD-compatible nm program.
15267 # A symbol stripping program
15270 # Used to examine libraries when file_magic_cmd begins "file"
15271 MAGIC_CMD=$MAGIC_CMD
15273 # Used on cygwin: DLL creation program.
15276 # Used on cygwin: object dumper.
15279 # Used on cygwin: assembler.
15282 # The name of the directory that contains temporary libtool files.
15285 # How to create reloadable object files.
15286 reload_flag=$lt_reload_flag
15287 reload_cmds=$lt_reload_cmds
15289 # How to pass a linker flag through the compiler.
15290 wl=$lt_lt_prog_compiler_wl_F77
15292 # Object file suffix (normally "o").
15293 objext="$ac_objext"
15295 # Old archive suffix (normally "a").
15298 # Shared library suffix (normally ".so").
15299 shrext_cmds='$shrext_cmds'
15301 # Executable file suffix (normally "").
15304 # Additional compiler flags for building library objects.
15305 pic_flag=$lt_lt_prog_compiler_pic_F77
15308 # What is the maximum length of a command?
15309 max_cmd_len=$lt_cv_sys_max_cmd_len
15311 # Does compiler simultaneously support -c and -o options?
15312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15314 # Must we lock files when doing compilation ?
15315 need_locks=$lt_need_locks
15317 # Do we need the lib prefix for modules?
15318 need_lib_prefix=$need_lib_prefix
15320 # Do we need a version for libraries?
15321 need_version=$need_version
15323 # Whether dlopen is supported.
15324 dlopen_support=$enable_dlopen
15326 # Whether dlopen of programs is supported.
15327 dlopen_self=$enable_dlopen_self
15329 # Whether dlopen of statically linked programs is supported.
15330 dlopen_self_static=$enable_dlopen_self_static
15332 # Compiler flag to prevent dynamic linking.
15333 link_static_flag=$lt_lt_prog_compiler_static_F77
15335 # Compiler flag to turn off builtin functions.
15336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15338 # Compiler flag to allow reflexive dlopens.
15339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15341 # Compiler flag to generate shared objects directly from archives.
15342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15344 # Compiler flag to generate thread-safe objects.
15345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15347 # Library versioning type.
15348 version_type=$version_type
15350 # Format of library name prefix.
15351 libname_spec=$lt_libname_spec
15353 # List of archive names. First name is the real one, the rest are links.
15354 # The last name is the one that the linker finds with -lNAME.
15355 library_names_spec=$lt_library_names_spec
15357 # The coded name of the library, if different from the real name.
15358 soname_spec=$lt_soname_spec
15360 # Commands used to build and install an old-style archive.
15362 old_archive_cmds=$lt_old_archive_cmds_F77
15363 old_postinstall_cmds=$lt_old_postinstall_cmds
15364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15366 # Create an old-style archive from a shared archive.
15367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15369 # Create a temporary old-style archive to link instead of a shared archive.
15370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15372 # Commands used to build and install a shared archive.
15373 archive_cmds=$lt_archive_cmds_F77
15374 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15375 postinstall_cmds=$lt_postinstall_cmds
15376 postuninstall_cmds=$lt_postuninstall_cmds
15378 # Commands used to build a loadable module (assumed same as above if empty)
15379 module_cmds=$lt_module_cmds_F77
15380 module_expsym_cmds=$lt_module_expsym_cmds_F77
15382 # Commands to strip libraries.
15383 old_striplib=$lt_old_striplib
15384 striplib=$lt_striplib
15386 # Dependencies to place before the objects being linked to create a
15388 predep_objects=$lt_predep_objects_F77
15390 # Dependencies to place after the objects being linked to create a
15392 postdep_objects=$lt_postdep_objects_F77
15394 # Dependencies to place before the objects being linked to create a
15396 predeps=$lt_predeps_F77
15398 # Dependencies to place after the objects being linked to create a
15400 postdeps=$lt_postdeps_F77
15402 # The library search path used internally by the compiler when linking
15403 # a shared library.
15404 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15406 # Method to check whether dependent libraries are shared objects.
15407 deplibs_check_method=$lt_deplibs_check_method
15409 # Command to use when deplibs_check_method == file_magic.
15410 file_magic_cmd=$lt_file_magic_cmd
15412 # Flag that allows shared libraries with undefined symbols to be built.
15413 allow_undefined_flag=$lt_allow_undefined_flag_F77
15415 # Flag that forces no undefined symbols.
15416 no_undefined_flag=$lt_no_undefined_flag_F77
15418 # Commands used to finish a libtool library installation in a directory.
15419 finish_cmds=$lt_finish_cmds
15421 # Same as above, but a single script fragment to be evaled but not shown.
15422 finish_eval=$lt_finish_eval
15424 # Take the output of nm and produce a listing of raw symbols and C names.
15425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15427 # Transform the output of nm in a proper C declaration
15428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15430 # Transform the output of nm in a C name address pair
15431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15433 # This is the shared library runtime path variable.
15434 runpath_var=$runpath_var
15436 # This is the shared library path variable.
15437 shlibpath_var=$shlibpath_var
15439 # Is shlibpath searched before the hard-coded library search path?
15440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15442 # How to hardcode a shared library path into an executable.
15443 hardcode_action=$hardcode_action_F77
15445 # Whether we should hardcode library paths into libraries.
15446 hardcode_into_libs=$hardcode_into_libs
15448 # Flag to hardcode \$libdir into a binary during linking.
15449 # This must work even if \$libdir does not exist.
15450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15452 # If ld is used when linking, flag to hardcode \$libdir into
15453 # a binary during linking. This must work even if \$libdir does
15455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15457 # Whether we need a single -rpath flag with a separated argument.
15458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15461 # resulting binary.
15462 hardcode_direct=$hardcode_direct_F77
15464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15465 # resulting binary.
15466 hardcode_minus_L=$hardcode_minus_L_F77
15468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15469 # the resulting binary.
15470 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15472 # Set to yes if building a shared library automatically hardcodes DIR into the library
15473 # and all subsequent libraries and executables linked against it.
15474 hardcode_automatic=$hardcode_automatic_F77
15476 # Variables whose values should be saved in libtool wrapper scripts and
15477 # restored at relink time.
15478 variables_saved_for_relink="$variables_saved_for_relink"
15480 # Whether libtool must link a program against all its dependency libraries.
15481 link_all_deplibs=$link_all_deplibs_F77
15483 # Compile-time system search path for libraries
15484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15486 # Run-time system search path for libraries
15487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15489 # Fix the shell variable \$srcfile for the compiler.
15490 fix_srcfile_path="$fix_srcfile_path_F77"
15492 # Set to yes if exported symbols are required.
15493 always_export_symbols=$always_export_symbols_F77
15495 # The commands to list exported symbols.
15496 export_symbols_cmds=$lt_export_symbols_cmds_F77
15498 # The commands to extract the exported symbol list from a shared archive.
15499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15501 # Symbols that should not be listed in the preloaded symbols.
15502 exclude_expsyms=$lt_exclude_expsyms_F77
15504 # Symbols that must always be exported.
15505 include_expsyms=$lt_include_expsyms_F77
15507 # ### END LIBTOOL TAG CONFIG: $tagname
15513 # If there is no Makefile yet, we rely on a make rule to execute
15514 # `config.status --recheck' to rerun these tests and create the
15515 # libtool script then.
15516 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15517 if test -f "$ltmain_in"; then
15518 test -f Makefile && make "$ltmain"
15524 ac_cpp='$CPP $CPPFLAGS'
15525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15537 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15541 # Source file extension for Java test sources.
15544 # Object file extension for compiled Java test sources.
15548 # Code to be used in simple compile tests
15549 lt_simple_compile_test_code="class foo {}\n"
15551 # Code to be used in simple link tests
15552 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15554 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15556 # If no C compiler was specified, use CC.
15559 # Allow CC to be a program name with arguments.
15563 # Allow CC to be a program name with arguments.
15569 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15570 archive_cmds_need_lc_GCJ=no
15573 lt_prog_compiler_no_builtin_flag_GCJ=
15575 if test "$GCC" = yes; then
15576 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15579 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15580 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15581 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 lt_cv_prog_compiler_rtti_exceptions=no
15585 ac_outfile=conftest.$ac_objext
15586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15587 lt_compiler_flag="-fno-rtti -fno-exceptions"
15588 # Insert the option either (1) after the last *FLAGS variable, or
15589 # (2) before a word containing "conftest.", or (3) at the end.
15590 # Note that $ac_compile itself does not contain backslashes and begins
15591 # with a dollar sign (not a hyphen), so the echo should work correctly.
15592 # The option is referenced via a variable to avoid confusing sed.
15593 lt_compile=`echo "$ac_compile" | $SED \
15594 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15596 -e 's:$: $lt_compiler_flag:'`
15597 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15598 (eval "$lt_compile" 2>conftest.err)
15600 cat conftest.err >&5
15601 echo "$as_me:__oline__: \$? = $ac_status" >&5
15602 if (exit $ac_status) && test -s "$ac_outfile"; then
15603 # The compiler can only warn and ignore the option if not recognized
15604 # So say no if there are warnings
15605 if test ! -s conftest.err; then
15606 lt_cv_prog_compiler_rtti_exceptions=yes
15612 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15613 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15615 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15616 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15623 lt_prog_compiler_wl_GCJ=
15624 lt_prog_compiler_pic_GCJ=
15625 lt_prog_compiler_static_GCJ=
15627 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15628 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15630 if test "$GCC" = yes; then
15631 lt_prog_compiler_wl_GCJ='-Wl,'
15632 lt_prog_compiler_static_GCJ='-static'
15636 # All AIX code is PIC.
15637 if test "$host_cpu" = ia64; then
15638 # AIX 5 now supports IA64 processor
15639 lt_prog_compiler_static_GCJ='-Bstatic'
15644 # FIXME: we need at least 68020 code to build shared libraries, but
15645 # adding the `-m68020' flag to GCC prevents building anything better,
15647 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15650 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15651 # PIC is the default for these OSes.
15654 mingw* | pw32* | os2*)
15655 # This hack is so that the source file can tell whether it is being
15656 # built for inclusion in a dll (and should export symbols for example).
15657 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15660 darwin* | rhapsody*)
15661 # PIC is the default on this platform
15662 # Common symbols not allowed in MH_DYLIB files
15663 lt_prog_compiler_pic_GCJ='-fno-common'
15667 # Just because we use GCC doesn't mean we suddenly get shared libraries
15668 # on systems that don't support them.
15669 lt_prog_compiler_can_build_shared_GCJ=no
15674 if test -d /usr/nec; then
15675 lt_prog_compiler_pic_GCJ=-Kconform_pic
15680 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15681 # not for PA HP-UX.
15682 case "$host_cpu" in
15687 lt_prog_compiler_pic_GCJ='-fPIC'
15693 lt_prog_compiler_pic_GCJ='-fPIC'
15697 # PORTME Check for flag to pass linker flags through the system compiler.
15700 lt_prog_compiler_wl_GCJ='-Wl,'
15701 if test "$host_cpu" = ia64; then
15702 # AIX 5 now supports IA64 processor
15703 lt_prog_compiler_static_GCJ='-Bstatic'
15705 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15709 mingw* | pw32* | os2*)
15710 # This hack is so that the source file can tell whether it is being
15711 # built for inclusion in a dll (and should export symbols for example).
15712 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15715 hpux9* | hpux10* | hpux11*)
15716 lt_prog_compiler_wl_GCJ='-Wl,'
15717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15718 # not for PA HP-UX.
15719 case "$host_cpu" in
15724 lt_prog_compiler_pic_GCJ='+Z'
15727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15728 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15731 irix5* | irix6* | nonstopux*)
15732 lt_prog_compiler_wl_GCJ='-Wl,'
15733 # PIC (with -KPIC) is the default.
15734 lt_prog_compiler_static_GCJ='-non_shared'
15738 lt_prog_compiler_pic_GCJ='-KPIC'
15739 lt_prog_compiler_static_GCJ='-Bstatic'
15745 lt_prog_compiler_wl_GCJ='-Wl,'
15746 lt_prog_compiler_pic_GCJ='-KPIC'
15747 lt_prog_compiler_static_GCJ='-static'
15750 lt_prog_compiler_wl_GCJ='-Wl,'
15751 # All Alpha code is PIC.
15752 lt_prog_compiler_static_GCJ='-non_shared'
15757 osf3* | osf4* | osf5*)
15758 lt_prog_compiler_wl_GCJ='-Wl,'
15759 # All OSF/1 code is PIC.
15760 lt_prog_compiler_static_GCJ='-non_shared'
15764 lt_prog_compiler_pic_GCJ='-Kpic'
15765 lt_prog_compiler_static_GCJ='-dn'
15769 lt_prog_compiler_wl_GCJ='-Wl,'
15770 lt_prog_compiler_pic_GCJ='-KPIC'
15771 lt_prog_compiler_static_GCJ='-Bstatic'
15775 lt_prog_compiler_wl_GCJ='-Qoption ld '
15776 lt_prog_compiler_pic_GCJ='-PIC'
15777 lt_prog_compiler_static_GCJ='-Bstatic'
15780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15781 lt_prog_compiler_wl_GCJ='-Wl,'
15782 lt_prog_compiler_pic_GCJ='-KPIC'
15783 lt_prog_compiler_static_GCJ='-Bstatic'
15787 if test -d /usr/nec ;then
15788 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15789 lt_prog_compiler_static_GCJ='-Bstatic'
15794 lt_prog_compiler_pic_GCJ='-pic'
15795 lt_prog_compiler_static_GCJ='-Bstatic'
15799 lt_prog_compiler_can_build_shared_GCJ=no
15804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15805 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15808 # Check to make sure the PIC flag actually works.
15810 if test -n "$lt_prog_compiler_pic_GCJ"; then
15812 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15814 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 lt_prog_compiler_pic_works_GCJ=no
15818 ac_outfile=conftest.$ac_objext
15819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15820 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15821 # Insert the option either (1) after the last *FLAGS variable, or
15822 # (2) before a word containing "conftest.", or (3) at the end.
15823 # Note that $ac_compile itself does not contain backslashes and begins
15824 # with a dollar sign (not a hyphen), so the echo should work correctly.
15825 # The option is referenced via a variable to avoid confusing sed.
15826 lt_compile=`echo "$ac_compile" | $SED \
15827 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15829 -e 's:$: $lt_compiler_flag:'`
15830 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15831 (eval "$lt_compile" 2>conftest.err)
15833 cat conftest.err >&5
15834 echo "$as_me:__oline__: \$? = $ac_status" >&5
15835 if (exit $ac_status) && test -s "$ac_outfile"; then
15836 # The compiler can only warn and ignore the option if not recognized
15837 # So say no if there are warnings
15838 if test ! -s conftest.err; then
15839 lt_prog_compiler_pic_works_GCJ=yes
15845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15846 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15848 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15849 case $lt_prog_compiler_pic_GCJ in
15851 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15854 lt_prog_compiler_pic_GCJ=
15855 lt_prog_compiler_can_build_shared_GCJ=no
15860 # For platforms which do not support PIC, -DPIC is meaningless:
15862 lt_prog_compiler_pic_GCJ=
15865 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15869 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15871 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 lt_cv_prog_compiler_c_o_GCJ=no
15875 $rm -r conftest 2>/dev/null
15879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15881 lt_compiler_flag="-o out/conftest2.$ac_objext"
15882 # Insert the option either (1) after the last *FLAGS variable, or
15883 # (2) before a word containing "conftest.", or (3) at the end.
15884 # Note that $ac_compile itself does not contain backslashes and begins
15885 # with a dollar sign (not a hyphen), so the echo should work correctly.
15886 lt_compile=`echo "$ac_compile" | $SED \
15887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15889 -e 's:$: $lt_compiler_flag:'`
15890 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15891 (eval "$lt_compile" 2>out/conftest.err)
15893 cat out/conftest.err >&5
15894 echo "$as_me:__oline__: \$? = $ac_status" >&5
15895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15897 # The compiler can only warn and ignore the option if not recognized
15898 # So say no if there are warnings
15899 if test ! -s out/conftest.err; then
15900 lt_cv_prog_compiler_c_o_GCJ=yes
15905 # SGI C++ compiler will create directory out/ii_files/ for
15906 # template instantiation
15907 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15908 $rm out/* && rmdir out
15914 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15915 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15918 hard_links="nottested"
15919 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15920 # do not overwrite the value of need_locks provided by the user
15921 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15922 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15927 ln conftest.a conftest.b 2>&5 || hard_links=no
15928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15929 echo "$as_me:$LINENO: result: $hard_links" >&5
15930 echo "${ECHO_T}$hard_links" >&6
15931 if test "$hard_links" = no; then
15932 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15933 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15940 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15941 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15944 allow_undefined_flag_GCJ=
15945 enable_shared_with_static_runtimes_GCJ=no
15947 archive_expsym_cmds_GCJ=
15948 old_archive_From_new_cmds_GCJ=
15949 old_archive_from_expsyms_cmds_GCJ=
15950 export_dynamic_flag_spec_GCJ=
15951 whole_archive_flag_spec_GCJ=
15952 thread_safe_flag_spec_GCJ=
15953 hardcode_libdir_flag_spec_GCJ=
15954 hardcode_libdir_flag_spec_ld_GCJ=
15955 hardcode_libdir_separator_GCJ=
15956 hardcode_direct_GCJ=no
15957 hardcode_minus_L_GCJ=no
15958 hardcode_shlibpath_var_GCJ=unsupported
15959 link_all_deplibs_GCJ=unknown
15960 hardcode_automatic_GCJ=no
15962 module_expsym_cmds_GCJ=
15963 always_export_symbols_GCJ=no
15964 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15965 # include_expsyms should be a list of space-separated symbols to be *always*
15966 # included in the symbol list
15967 include_expsyms_GCJ=
15968 # exclude_expsyms can be an extended regexp of symbols to exclude
15969 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15970 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15971 # as well as any symbol that contains `d'.
15972 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15973 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15974 # platforms (ab)use it in PIC code, but their linkers get confused if
15975 # the symbol is explicitly referenced. Since portable code cannot
15976 # rely on this symbol name, it's probably fine to never include it in
15977 # preloaded symbol tables.
15978 extract_expsyms_cmds=
15981 cygwin* | mingw* | pw32*)
15982 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15983 # When not using gcc, we currently assume that we are using
15984 # Microsoft Visual C++.
15985 if test "$GCC" != yes; then
15995 if test "$with_gnu_ld" = yes; then
15996 # If archive_cmds runs LD, not CC, wlarc should be empty
15999 # See if GNU ld supports shared libraries.
16001 aix3* | aix4* | aix5*)
16002 # On AIX/PPC, the GNU linker is very broken
16003 if test "$host_cpu" != ia64; then
16007 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16008 *** to be unable to reliably create shared libraries on AIX.
16009 *** Therefore, libtool is disabling shared libraries support. If you
16010 *** really care for shared libraries, you may want to modify your PATH
16011 *** so that a non-GNU linker is found, and then restart.
16018 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)'
16019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16020 hardcode_minus_L_GCJ=yes
16022 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16023 # that the semantics of dynamic libraries on AmigaOS, at least up
16024 # to version 4, is to share data among multiple programs linked
16025 # with the same dynamic library. Since this doesn't match the
16026 # behavior of shared libraries on other platforms, we can't use
16032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16033 allow_undefined_flag_GCJ=unsupported
16034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16035 # support --undefined. This deserves some investigation. FIXME
16036 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 cygwin* | mingw* | pw32*)
16043 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16044 # as there is no search path for DLLs.
16045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16046 allow_undefined_flag_GCJ=unsupported
16047 always_export_symbols_GCJ=no
16048 enable_shared_with_static_runtimes_GCJ=yes
16049 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16051 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16053 # If the export-symbols file already is a .def file (1st line
16054 # is EXPORTS), use it as is; otherwise, prepend...
16055 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16056 cp $export_symbols $output_objdir/$soname.def;
16058 echo EXPORTS > $output_objdir/$soname.def;
16059 cat $export_symbols >> $output_objdir/$soname.def;
16061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16069 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16072 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16078 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16082 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16083 *** create shared libraries on Solaris systems. Therefore, libtool
16084 *** is disabling shared libraries support. We urge you to upgrade GNU
16085 *** binutils to release 2.9.1 or newer. Another option is to modify
16086 *** your PATH or compiler configuration so that the native linker is
16087 *** used, and then restart.
16090 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16091 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16092 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16099 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct_GCJ=yes
16102 hardcode_shlibpath_var_GCJ=no
16106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16107 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108 archive_cmds_GCJ="$tmp_archive_cmds"
16109 supports_anon_versioning=no
16110 case `$LD -v 2>/dev/null` in
16111 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16112 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16113 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16114 *\ 2.11.*) ;; # other 2.11 versions
16115 *) supports_anon_versioning=yes ;;
16117 if test $supports_anon_versioning = yes; then
16118 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16120 $echo "local: *; };" >> $output_objdir/$libname.ver~
16121 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16123 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16132 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16133 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16140 if test "$ld_shlibs_GCJ" = yes; then
16141 runpath_var=LD_RUN_PATH
16142 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16143 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16144 # ancient GNU ld didn't support --whole-archive et. al.
16145 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16146 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16148 whole_archive_flag_spec_GCJ=
16152 # PORTME fill in a description of your system's linker (not GNU ld)
16155 allow_undefined_flag_GCJ=unsupported
16156 always_export_symbols_GCJ=yes
16157 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'
16158 # Note: this linker hardcodes the directories in LIBPATH if there
16159 # are no directories specified by -L.
16160 hardcode_minus_L_GCJ=yes
16161 if test "$GCC" = yes && test -z "$link_static_flag"; then
16162 # Neither direct hardcoding nor static linking is supported with a
16164 hardcode_direct_GCJ=unsupported
16169 if test "$host_cpu" = ia64; then
16170 # On IA64, the linker does run time linking by default, so we don't
16171 # have to do anything special.
16172 aix_use_runtimelinking=no
16173 exp_sym_flag='-Bexport'
16176 # If we're using GNU nm, then we don't want the "-C" option.
16177 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16178 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16179 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'
16181 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'
16183 aix_use_runtimelinking=no
16185 # Test if we are trying to use run time linking or normal
16186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16187 # need to do runtime linking.
16188 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16189 for ld_flag in $LDFLAGS; do
16190 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16191 aix_use_runtimelinking=yes
16197 exp_sym_flag='-bexport'
16198 no_entry_flag='-bnoentry'
16201 # When large executables or shared objects are built, AIX ld can
16202 # have problems creating the table of contents. If linking a library
16203 # or program results in "error TOC overflow" add -mminimal-toc to
16204 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16205 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16207 archive_cmds_GCJ=''
16208 hardcode_direct_GCJ=yes
16209 hardcode_libdir_separator_GCJ=':'
16210 link_all_deplibs_GCJ=yes
16212 if test "$GCC" = yes; then
16213 case $host_os in aix4.012|aix4.012.*)
16214 # We only want to do this on AIX 4.2 and lower, the check
16215 # below for broken collect2 doesn't work under 4.3+
16216 collect2name=`${CC} -print-prog-name=collect2`
16217 if test -f "$collect2name" && \
16218 strings "$collect2name" | grep resolve_lib_name >/dev/null
16220 # We have reworked collect2
16221 hardcode_direct_GCJ=yes
16223 # We have old collect2
16224 hardcode_direct_GCJ=unsupported
16225 # It fails to find uninstalled libraries when the uninstalled
16226 # path is not listed in the libpath. Setting hardcode_minus_L
16227 # to unsupported forces relinking
16228 hardcode_minus_L_GCJ=yes
16229 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16230 hardcode_libdir_separator_GCJ=
16233 shared_flag='-shared'
16236 if test "$host_cpu" = ia64; then
16237 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16238 # chokes on -Wl,-G. The following line is correct:
16241 if test "$aix_use_runtimelinking" = yes; then
16242 shared_flag='${wl}-G'
16244 shared_flag='${wl}-bM:SRE'
16249 # It seems that -bexpall does not export symbols beginning with
16250 # underscore (_), so it is better to generate a list of symbols to export.
16251 always_export_symbols_GCJ=yes
16252 if test "$aix_use_runtimelinking" = yes; then
16253 # Warning - without using the other runtime loading flags (-brtl),
16254 # -berok will link without error, but may produce a broken library.
16255 allow_undefined_flag_GCJ='-berok'
16256 # Determine the default libpath from the value encoded in an empty executable.
16257 cat >conftest.$ac_ext <<_ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16274 (eval $ac_link) 2>conftest.er1
16276 grep -v '^ *+' conftest.er1 >conftest.err
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
16281 { ac_try='test -z "$ac_c_werror_flag"
16282 || test ! -s conftest.err'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest$ac_exeext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16297 # Check for a 64-bit object if we didn't find anything.
16298 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; }
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16305 rm -f conftest.err conftest.$ac_objext \
16306 conftest$ac_exeext conftest.$ac_ext
16307 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16310 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"
16312 if test "$host_cpu" = ia64; then
16313 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16314 allow_undefined_flag_GCJ="-z nodefs"
16315 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"
16317 # Determine the default libpath from the value encoded in an empty executable.
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335 (eval $ac_link) 2>conftest.er1
16337 grep -v '^ *+' conftest.er1 >conftest.err
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -z "$ac_c_werror_flag"
16343 || test ! -s conftest.err'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; } &&
16349 { ac_try='test -s conftest$ac_exeext'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16358 # Check for a 64-bit object if we didn't find anything.
16359 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; }
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16366 rm -f conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16370 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16371 # Warning - without using the other run time loading flags,
16372 # -berok will link without error, but may produce a broken library.
16373 no_undefined_flag_GCJ=' ${wl}-bernotok'
16374 allow_undefined_flag_GCJ=' ${wl}-berok'
16375 # -bexpall does not export symbols beginning with underscore (_)
16376 always_export_symbols_GCJ=yes
16377 # Exported symbols can be pulled into shared objects from archives
16378 whole_archive_flag_spec_GCJ=' '
16379 archive_cmds_need_lc_GCJ=yes
16380 # This is similar to how AIX traditionally builds it's shared libraries.
16381 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'
16387 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)'
16388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16389 hardcode_minus_L_GCJ=yes
16390 # see comment about different semantics on the GNU ld section
16395 export_dynamic_flag_spec_GCJ=-rdynamic
16398 cygwin* | mingw* | pw32*)
16399 # When not using gcc, we currently assume that we are using
16400 # Microsoft Visual C++.
16401 # hardcode_libdir_flag_spec is actually meaningless, as there is
16402 # no search path for DLLs.
16403 hardcode_libdir_flag_spec_GCJ=' '
16404 allow_undefined_flag_GCJ=unsupported
16405 # Tell ltmain to make .lib files, not .a files.
16407 # Tell ltmain to make .dll files, not .so files.
16409 # FIXME: Setting linknames here is a bad hack.
16410 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16411 # The linker will automatically build a .lib file if we build a DLL.
16412 old_archive_From_new_cmds_GCJ='true'
16413 # FIXME: Should let the user specify the lib program.
16414 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16415 fix_srcfile_path='`cygpath -w "$srcfile"`'
16416 enable_shared_with_static_runtimes_GCJ=yes
16419 darwin* | rhapsody*)
16420 if test "$GXX" = yes ; then
16421 archive_cmds_need_lc_GCJ=no
16423 rhapsody* | darwin1.[012])
16424 allow_undefined_flag_GCJ='-undefined suppress'
16427 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16428 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16430 case ${MACOSX_DEPLOYMENT_TARGET} in
16432 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16435 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16441 lt_int_apple_cc_single_mod=no
16442 output_verbose_link_cmd='echo'
16443 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16444 lt_int_apple_cc_single_mod=yes
16446 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16447 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16449 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'
16451 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16454 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}'
16456 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}'
16458 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}'
16459 hardcode_direct_GCJ=no
16460 hardcode_automatic_GCJ=yes
16461 hardcode_shlibpath_var_GCJ=unsupported
16462 whole_archive_flag_spec_GCJ='-all_load $convenience'
16463 link_all_deplibs_GCJ=yes
16470 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16471 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16472 hardcode_shlibpath_var_GCJ=no
16479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16480 # support. Future versions do this automatically, but an explicit c++rt0.o
16481 # does not break anything, and helps significantly (at the cost of a little
16484 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16485 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16486 hardcode_direct_GCJ=yes
16487 hardcode_shlibpath_var_GCJ=no
16490 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16492 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_direct_GCJ=yes
16494 hardcode_minus_L_GCJ=yes
16495 hardcode_shlibpath_var_GCJ=no
16498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16499 freebsd* | kfreebsd*-gnu)
16500 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16501 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16502 hardcode_direct_GCJ=yes
16503 hardcode_shlibpath_var_GCJ=no
16507 if test "$GCC" = yes; then
16508 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'
16510 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'
16512 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16513 hardcode_libdir_separator_GCJ=:
16514 hardcode_direct_GCJ=yes
16516 # hardcode_minus_L: Not really in the search PATH,
16517 # but as the default location of the library.
16518 hardcode_minus_L_GCJ=yes
16519 export_dynamic_flag_spec_GCJ='${wl}-E'
16523 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16524 case "$host_cpu" in
16526 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16529 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16533 case "$host_cpu" in
16535 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16538 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16542 if test "$with_gnu_ld" = no; then
16543 case "$host_cpu" in
16545 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16546 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16547 hardcode_libdir_separator_GCJ=:
16548 hardcode_direct_GCJ=no
16549 hardcode_shlibpath_var_GCJ=no
16552 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553 hardcode_direct_GCJ=no
16554 hardcode_shlibpath_var_GCJ=no
16556 # hardcode_minus_L: Not really in the search PATH,
16557 # but as the default location of the library.
16558 hardcode_minus_L_GCJ=yes
16561 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16562 hardcode_libdir_separator_GCJ=:
16563 hardcode_direct_GCJ=yes
16564 export_dynamic_flag_spec_GCJ='${wl}-E'
16566 # hardcode_minus_L: Not really in the search PATH,
16567 # but as the default location of the library.
16568 hardcode_minus_L_GCJ=yes
16574 irix5* | irix6* | nonstopux*)
16575 if test "$GCC" = yes; then
16576 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'
16578 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'
16579 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16581 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16582 hardcode_libdir_separator_GCJ=:
16583 link_all_deplibs_GCJ=yes
16587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16588 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16590 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16593 hardcode_direct_GCJ=yes
16594 hardcode_shlibpath_var_GCJ=no
16598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 hardcode_direct_GCJ=yes
16600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16601 hardcode_libdir_separator_GCJ=:
16602 hardcode_shlibpath_var_GCJ=no
16606 hardcode_direct_GCJ=yes
16607 hardcode_shlibpath_var_GCJ=no
16608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16609 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16610 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16611 export_dynamic_flag_spec_GCJ='${wl}-E'
16614 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16615 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16616 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16619 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16620 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16628 hardcode_minus_L_GCJ=yes
16629 allow_undefined_flag_GCJ=unsupported
16630 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'
16631 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16635 if test "$GCC" = yes; then
16636 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16637 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'
16639 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16640 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'
16642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16643 hardcode_libdir_separator_GCJ=:
16646 osf4* | osf5*) # as osf3* with the addition of -msym flag
16647 if test "$GCC" = yes; then
16648 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16649 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'
16650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16652 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16653 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'
16654 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~
16655 $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'
16657 # Both c and cxx compiler support -rpath directly
16658 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16660 hardcode_libdir_separator_GCJ=:
16664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665 hardcode_shlibpath_var_GCJ=no
16666 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16667 runpath_var=LD_RUN_PATH
16668 hardcode_runpath_var=yes
16672 no_undefined_flag_GCJ=' -z text'
16673 if test "$GCC" = yes; then
16674 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16676 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16678 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16682 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16683 hardcode_shlibpath_var_GCJ=no
16685 solaris2.[0-5] | solaris2.[0-5].*) ;;
16686 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16687 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16689 link_all_deplibs_GCJ=yes
16693 if test "x$host_vendor" = xsequent; then
16694 # Use $CC to link under sequent, because it throws in some extra .o
16695 # files that make .init and .fini sections work.
16696 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16698 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16701 hardcode_direct_GCJ=yes
16702 hardcode_minus_L_GCJ=yes
16703 hardcode_shlibpath_var_GCJ=no
16707 case $host_vendor in
16709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 hardcode_direct_GCJ=yes # is this really true???
16713 ## LD is ld it makes a PLAMLIB
16714 ## CC just makes a GrossModule.
16715 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16716 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16717 hardcode_direct_GCJ=no
16720 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16724 runpath_var='LD_RUN_PATH'
16725 hardcode_shlibpath_var_GCJ=no
16729 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730 hardcode_shlibpath_var_GCJ=no
16731 export_dynamic_flag_spec_GCJ='-Bexport'
16735 if test -d /usr/nec; then
16736 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737 hardcode_shlibpath_var_GCJ=no
16738 runpath_var=LD_RUN_PATH
16739 hardcode_runpath_var=yes
16745 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746 hardcode_direct_GCJ=yes
16747 hardcode_minus_L_GCJ=no
16748 hardcode_shlibpath_var_GCJ=no
16749 hardcode_runpath_var=yes
16750 runpath_var=LD_RUN_PATH
16753 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16754 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16755 if test "$GCC" = yes; then
16756 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 runpath_var='LD_RUN_PATH'
16761 hardcode_shlibpath_var_GCJ=no
16765 no_undefined_flag_GCJ=' -z text'
16766 # $CC -shared without GNU ld will not create a library from C++
16767 # object files and a static libstdc++, better avoid it by now
16768 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16771 hardcode_libdir_flag_spec_GCJ=
16772 hardcode_shlibpath_var_GCJ=no
16773 runpath_var='LD_RUN_PATH'
16777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16779 hardcode_shlibpath_var_GCJ=no
16788 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16789 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16790 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16793 if test "$GCC" = yes; then
16794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16798 # Do we need to explicitly link libc?
16800 case "x$archive_cmds_need_lc_GCJ" in
16802 # Assume -lc should be added
16803 archive_cmds_need_lc_GCJ=yes
16805 if test "$enable_shared" = yes && test "$GCC" = yes; then
16806 case $archive_cmds_GCJ in
16808 # FIXME: we may have to deal with multi-command sequences.
16811 # Test whether the compiler implicitly links with -lc since on some
16812 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16813 # to ld, don't add -lc before -lgcc.
16814 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16820 (eval $ac_compile) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } 2>conftest.err; then
16826 libobjs=conftest.$ac_objext
16828 wl=$lt_prog_compiler_wl_GCJ
16834 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16835 allow_undefined_flag_GCJ=
16836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16837 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }
16842 archive_cmds_need_lc_GCJ=no
16844 archive_cmds_need_lc_GCJ=yes
16846 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16848 cat conftest.err 1>&5
16851 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16852 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16859 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16861 library_names_spec=
16862 libname_spec='lib$name'
16866 postuninstall_cmds=
16870 shlibpath_overrides_runpath=unknown
16872 dynamic_linker="$host_os ld.so"
16873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16874 if test "$GCC" = yes; then
16875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16876 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16877 # if the path contains ";" then we assume it to be the separator
16878 # otherwise default to the standard path separator (i.e. ":") - it is
16879 # assumed that no part of a normal pathname contains ";" but that should
16880 # okay in the real world where ";" in dirpaths is itself problematic.
16881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16888 need_lib_prefix=unknown
16889 hardcode_into_libs=no
16891 # when you set need_version to no, make sure it does not cause -set_version
16892 # flags to be left without arguments
16893 need_version=unknown
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16899 shlibpath_var=LIBPATH
16901 # AIX 3 has no versioning support, so we append a major version to the name.
16902 soname_spec='${libname}${release}${shared_ext}$major'
16909 hardcode_into_libs=yes
16910 if test "$host_cpu" = ia64; then
16911 # AIX 5 supports IA64
16912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913 shlibpath_var=LD_LIBRARY_PATH
16915 # With GCC up to 2.95.x, collect2 would create an import file
16916 # for dependence libraries. The import file would start with
16917 # the line `#! .'. This would cause the generated library to
16918 # depend on `.', always an invalid library. This was fixed in
16919 # development snapshots of GCC prior to 3.0.
16921 aix4 | aix4.[01] | aix4.[01].*)
16922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16924 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16927 can_build_shared=no
16931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932 # soname into executable. Probably we can add versioning support to
16933 # collect2, so additional links can be useful in future.
16934 if test "$aix_use_runtimelinking" = yes; then
16935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936 # instead of lib<name>.a to let people know that these are not
16937 # typical AIX shared libraries.
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 # We preserve .a as extension for shared libraries through AIX4.2
16941 # and later when we are not doing run time linking.
16942 library_names_spec='${libname}${release}.a $libname.a'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LIBPATH
16950 library_names_spec='$libname.ixlibrary $libname.a'
16951 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16952 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'
16956 library_names_spec='${libname}${shared_ext}'
16957 dynamic_linker="$host_os ld.so"
16958 shlibpath_var=LIBRARY_PATH
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16970 # the default ld.so.conf also contains /usr/contrib/lib and
16971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16972 # libtool to hard-code these into programs
16975 cygwin* | mingw* | pw32*)
16976 version_type=windows
16981 case $GCC,$host_os in
16982 yes,cygwin* | yes,mingw* | yes,pw32*)
16983 library_names_spec='$libname.dll.a'
16984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16985 postinstall_cmds='base_file=`basename \${file}`~
16986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16987 dldir=$destdir/`dirname \$dlpath`~
16988 test -d \$dldir || mkdir -p \$dldir~
16989 $install_prog $dir/$dlname \$dldir/$dlname'
16990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991 dlpath=$dir/\$dldll~
16993 shlibpath_overrides_runpath=yes
16997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17002 # MinGW DLLs use traditional 'lib' prefix
17003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17006 # It is most probably a Windows format PATH printed by
17007 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008 # path with ; separators, and with drive letters. We can handle the
17009 # drive letters (cygwin fileutils understands them), so leave them,
17010 # especially as we might pass files found there to a mingw objdump,
17011 # which wouldn't understand a cygwinified path. Ahh.
17012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17028 dynamic_linker='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17033 darwin* | rhapsody*)
17034 dynamic_linker="$host_os dyld"
17035 version_type=darwin
17038 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath=yes
17041 shlibpath_var=DYLD_LIBRARY_PATH
17042 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17043 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17044 if test "$GCC" = yes; then
17045 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"`
17047 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 shlibpath_var=LD_LIBRARY_PATH
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17070 soname_spec='${libname}${release}${shared_ext}$major'
17071 shlibpath_var=LD_LIBRARY_PATH
17072 shlibpath_overrides_runpath=no
17073 hardcode_into_libs=yes
17074 dynamic_linker='GNU ld.so'
17078 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17079 version_type=freebsd-$objformat
17080 case $version_type in
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17091 shlibpath_var=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath=yes
17096 freebsd3.01* | freebsdelf3.01*)
17097 shlibpath_overrides_runpath=yes
17098 hardcode_into_libs=yes
17101 shlibpath_overrides_runpath=no
17102 hardcode_into_libs=yes
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 shlibpath_var=LD_LIBRARY_PATH
17114 hardcode_into_libs=yes
17117 hpux9* | hpux10* | hpux11*)
17118 # Give a soname corresponding to the major version so that dld.sl refuses to
17119 # link against other versions.
17123 case "$host_cpu" in
17126 hardcode_into_libs=yes
17127 dynamic_linker="$host_os dld.so"
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 if test "X$HPUX_IA64_MODE" = X32; then
17133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17141 hardcode_into_libs=yes
17142 dynamic_linker="$host_os dld.sl"
17143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17152 dynamic_linker="$host_os dld.sl"
17153 shlibpath_var=SHLIB_PATH
17154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17159 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17160 postinstall_cmds='chmod 555 $lib'
17163 irix5* | irix6* | nonstopux*)
17165 nonstopux*) version_type=nonstopux ;;
17167 if test "$lt_cv_prog_gnu_ld" = yes; then
17175 soname_spec='${libname}${release}${shared_ext}$major'
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17178 irix5* | nonstopux*)
17179 libsuff= shlibsuff=
17182 case $LD in # libtool.m4 will add one of these switches to LD
17183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17184 libsuff= shlibsuff= libmagic=32-bit;;
17185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17186 libsuff=32 shlibsuff=N32 libmagic=N32;;
17187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17189 *) libsuff= shlibsuff= libmagic=never-match;;
17193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17194 shlibpath_overrides_runpath=no
17195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17197 hardcode_into_libs=yes
17200 # No shared lib support for Linux oldld, aout, or coff.
17201 linux*oldld* | linux*aout* | linux*coff*)
17205 # This must be Linux ELF.
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 soname_spec='${libname}${release}${shared_ext}$major'
17212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17213 shlibpath_var=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath=no
17215 # This implies no fast_install, which is unacceptable.
17216 # Some rework will be needed to allow for fast_install
17217 # before this can be enabled.
17218 hardcode_into_libs=yes
17220 # find out which ABI we are using
17222 case "$host_cpu" in
17223 x86_64*|s390x*|powerpc64*)
17224 echo '#line __oline__ "configure"' > conftest.$ac_ext
17225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17226 (eval $ac_compile) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; then
17230 case `/usr/bin/file conftest.$ac_objext` in
17233 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17241 # Append ld.so.conf contents to the search path
17242 if test -f /etc/ld.so.conf; then
17243 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17244 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17247 # We used to test for /lib/ld.so.1 and disable shared libraries on
17248 # powerpc, because MkLinux only supported shared libraries with the
17249 # GNU dynamic linker. Since this was broken with cross compilers,
17250 # most powerpc-linux boxes support dynamic linking these days and
17251 # people can always --disable-shared, the test was removed, and we
17252 # assume the GNU/Linux dynamic linker is in use.
17253 dynamic_linker='GNU/Linux ld.so'
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17261 soname_spec='${libname}${release}${shared_ext}$major'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=no
17264 hardcode_into_libs=yes
17265 dynamic_linker='GNU ld.so'
17272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17275 dynamic_linker='NetBSD (a.out) ld.so'
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 dynamic_linker='NetBSD ld.elf_so'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes
17283 hardcode_into_libs=yes
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 shlibpath_var=LD_LIBRARY_PATH
17290 shlibpath_overrides_runpath=yes
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=yes
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17312 openbsd2.[89] | openbsd2.[89].*)
17313 shlibpath_overrides_runpath=no
17316 shlibpath_overrides_runpath=yes
17320 shlibpath_overrides_runpath=yes
17325 libname_spec='$name'
17328 library_names_spec='$libname${shared_ext} $libname.a'
17329 dynamic_linker='OS/2 ld.exe'
17330 shlibpath_var=LIBPATH
17333 osf3* | osf4* | osf5*)
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 shlibpath_var=LD_LIBRARY_PATH
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17357 shlibpath_var=LD_LIBRARY_PATH
17358 shlibpath_overrides_runpath=yes
17359 hardcode_into_libs=yes
17360 # ldd complains unless libraries are executable
17361 postinstall_cmds='chmod +x $lib'
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17368 shlibpath_var=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath=yes
17370 if test "$with_gnu_ld" = yes; then
17376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 case $host_vendor in
17383 shlibpath_overrides_runpath=no
17385 export_dynamic_flag_spec='${wl}-Blargedynsym'
17386 runpath_var=LD_RUN_PATH
17394 shlibpath_overrides_runpath=no
17395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17401 if test -d /usr/nec ;then
17403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17404 soname_spec='$libname${shared_ext}.$major'
17405 shlibpath_var=LD_LIBRARY_PATH
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 shlibpath_var=LD_LIBRARY_PATH
17420 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17421 echo "${ECHO_T}$dynamic_linker" >&6
17422 test "$dynamic_linker" = no && can_build_shared=no
17424 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17425 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17426 hardcode_action_GCJ=
17427 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17428 test -n "$runpath_var GCJ" || \
17429 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17431 # We can hardcode non-existant directories.
17432 if test "$hardcode_direct_GCJ" != no &&
17433 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17434 # have to relink, otherwise we might link with an installed library
17435 # when we should be linking with a yet-to-be-installed one
17436 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17437 test "$hardcode_minus_L_GCJ" != no; then
17438 # Linking always hardcodes the temporary library directory.
17439 hardcode_action_GCJ=relink
17441 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17442 hardcode_action_GCJ=immediate
17445 # We cannot hardcode anything, or else we can only hardcode existing
17447 hardcode_action_GCJ=unsupported
17449 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17450 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17452 if test "$hardcode_action_GCJ" = relink; then
17453 # Fast installation is not supported
17454 enable_fast_install=no
17455 elif test "$shlibpath_overrides_runpath" = yes ||
17456 test "$enable_shared" = no; then
17457 # Fast installation is not necessary
17458 enable_fast_install=needless
17463 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17464 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17465 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17466 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17467 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17468 echo "$as_me:$LINENO: result: yes" >&5
17469 echo "${ECHO_T}yes" >&6
17471 # FIXME - insert some real tests, host_os isn't really good enough
17474 if test -n "$STRIP" ; then
17475 striplib="$STRIP -x"
17476 echo "$as_me:$LINENO: result: yes" >&5
17477 echo "${ECHO_T}yes" >&6
17479 echo "$as_me:$LINENO: result: no" >&5
17480 echo "${ECHO_T}no" >&6
17484 echo "$as_me:$LINENO: result: no" >&5
17485 echo "${ECHO_T}no" >&6
17490 if test "x$enable_dlopen" != xyes; then
17491 enable_dlopen=unknown
17492 enable_dlopen_self=unknown
17493 enable_dlopen_self_static=unknown
17500 lt_cv_dlopen="load_add_on"
17502 lt_cv_dlopen_self=yes
17506 lt_cv_dlopen="LoadLibrary"
17511 lt_cv_dlopen="dlopen"
17516 # if libdl is installed we need to link against it
17517 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17518 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17519 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 ac_check_lib_save_LIBS=$LIBS
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17531 /* Override any gcc2 internal prototype to avoid an error. */
17535 /* We use char because int might match the return type of a gcc2
17536 builtin and then its argument prototype would still apply. */
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 ac_cv_lib_dl_dlopen=yes
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 ac_cv_lib_dl_dlopen=no
17575 rm -f conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17577 LIBS=$ac_check_lib_save_LIBS
17579 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17580 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17581 if test $ac_cv_lib_dl_dlopen = yes; then
17582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17585 lt_cv_dlopen="dyld"
17587 lt_cv_dlopen_self=yes
17594 echo "$as_me:$LINENO: checking for shl_load" >&5
17595 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17596 if test "${ac_cv_func_shl_load+set}" = set; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17607 #define shl_load innocuous_shl_load
17609 /* System header to define __stub macros and hopefully few prototypes,
17610 which can conflict with char shl_load (); below.
17611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17612 <limits.h> exists even on freestanding compilers. */
17615 # include <limits.h>
17617 # include <assert.h>
17622 /* Override any gcc2 internal prototype to avoid an error. */
17627 /* We use char because int might match the return type of a gcc2
17628 builtin and then its argument prototype would still apply. */
17630 /* The GNU C library defines this for functions which it implements
17631 to always fail with ENOSYS. Some functions are actually named
17632 something starting with __ and the normal name is an alias. */
17633 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17636 char (*f) () = shl_load;
17645 return f != shl_load;
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652 (eval $ac_link) 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest$ac_exeext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_cv_func_shl_load=yes
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 ac_cv_func_shl_load=no
17679 rm -f conftest.err conftest.$ac_objext \
17680 conftest$ac_exeext conftest.$ac_ext
17682 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17683 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17684 if test $ac_cv_func_shl_load = yes; then
17685 lt_cv_dlopen="shl_load"
17687 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17688 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17689 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 ac_check_lib_save_LIBS=$LIBS
17694 cat >conftest.$ac_ext <<_ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17701 /* Override any gcc2 internal prototype to avoid an error. */
17705 /* We use char because int might match the return type of a gcc2
17706 builtin and then its argument prototype would still apply. */
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17718 (eval $ac_link) 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_c_werror_flag"
17726 || test ! -s conftest.err'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest$ac_exeext'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 ac_cv_lib_dld_shl_load=yes
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 ac_cv_lib_dld_shl_load=no
17745 rm -f conftest.err conftest.$ac_objext \
17746 conftest$ac_exeext conftest.$ac_ext
17747 LIBS=$ac_check_lib_save_LIBS
17749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17750 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17751 if test $ac_cv_lib_dld_shl_load = yes; then
17752 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17754 echo "$as_me:$LINENO: checking for dlopen" >&5
17755 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17756 if test "${ac_cv_func_dlopen+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 cat >conftest.$ac_ext <<_ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17767 #define dlopen innocuous_dlopen
17769 /* System header to define __stub macros and hopefully few prototypes,
17770 which can conflict with char dlopen (); below.
17771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17772 <limits.h> exists even on freestanding compilers. */
17775 # include <limits.h>
17777 # include <assert.h>
17782 /* Override any gcc2 internal prototype to avoid an error. */
17787 /* We use char because int might match the return type of a gcc2
17788 builtin and then its argument prototype would still apply. */
17790 /* The GNU C library defines this for functions which it implements
17791 to always fail with ENOSYS. Some functions are actually named
17792 something starting with __ and the normal name is an alias. */
17793 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17796 char (*f) () = dlopen;
17805 return f != dlopen;
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812 (eval $ac_link) 2>conftest.er1
17814 grep -v '^ *+' conftest.er1 >conftest.err
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag"
17820 || test ! -s conftest.err'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest$ac_exeext'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_cv_func_dlopen=yes
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_cv_func_dlopen=no
17839 rm -f conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17842 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17843 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17844 if test $ac_cv_func_dlopen = yes; then
17845 lt_cv_dlopen="dlopen"
17847 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17848 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 ac_check_lib_save_LIBS=$LIBS
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 /* Override any gcc2 internal prototype to avoid an error. */
17865 /* We use char because int might match the return type of a gcc2
17866 builtin and then its argument prototype would still apply. */
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_lib_dl_dlopen=yes
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_cv_lib_dl_dlopen=no
17905 rm -f conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17907 LIBS=$ac_check_lib_save_LIBS
17909 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17910 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17911 if test $ac_cv_lib_dl_dlopen = yes; then
17912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17914 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17915 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17916 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 ac_check_lib_save_LIBS=$LIBS
17920 LIBS="-lsvld $LIBS"
17921 cat >conftest.$ac_ext <<_ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17928 /* Override any gcc2 internal prototype to avoid an error. */
17932 /* We use char because int might match the return type of a gcc2
17933 builtin and then its argument prototype would still apply. */
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17945 (eval $ac_link) 2>conftest.er1
17947 grep -v '^ *+' conftest.er1 >conftest.err
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -z "$ac_c_werror_flag"
17953 || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest$ac_exeext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_lib_svld_dlopen=yes
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_cv_lib_svld_dlopen=no
17972 rm -f conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974 LIBS=$ac_check_lib_save_LIBS
17976 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17977 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17978 if test $ac_cv_lib_svld_dlopen = yes; then
17979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17981 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17982 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17983 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 ac_check_lib_save_LIBS=$LIBS
17988 cat >conftest.$ac_ext <<_ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17995 /* Override any gcc2 internal prototype to avoid an error. */
17999 /* We use char because int might match the return type of a gcc2
18000 builtin and then its argument prototype would still apply. */
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012 (eval $ac_link) 2>conftest.er1
18014 grep -v '^ *+' conftest.er1 >conftest.err
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
18019 { ac_try='test -z "$ac_c_werror_flag"
18020 || test ! -s conftest.err'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest$ac_exeext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 ac_cv_lib_dld_dld_link=yes
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 ac_cv_lib_dld_dld_link=no
18039 rm -f conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18041 LIBS=$ac_check_lib_save_LIBS
18043 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18044 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18045 if test $ac_cv_lib_dld_dld_link = yes; then
18046 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18067 if test "x$lt_cv_dlopen" != xno; then
18073 case $lt_cv_dlopen in
18075 save_CPPFLAGS="$CPPFLAGS"
18076 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18078 save_LDFLAGS="$LDFLAGS"
18079 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18082 LIBS="$lt_cv_dlopen_libs $LIBS"
18084 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18085 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18086 if test "${lt_cv_dlopen_self+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 if test "$cross_compiling" = yes; then :
18090 lt_cv_dlopen_self=cross
18092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18093 lt_status=$lt_dlunknown
18094 cat > conftest.$ac_ext <<EOF
18095 #line __oline__ "configure"
18096 #include "confdefs.h"
18105 # define LT_DLGLOBAL RTLD_GLOBAL
18108 # define LT_DLGLOBAL DL_GLOBAL
18110 # define LT_DLGLOBAL 0
18114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18115 find out it does not work in some platform. */
18116 #ifndef LT_DLLAZY_OR_NOW
18118 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18121 # define LT_DLLAZY_OR_NOW DL_LAZY
18124 # define LT_DLLAZY_OR_NOW RTLD_NOW
18127 # define LT_DLLAZY_OR_NOW DL_NOW
18129 # define LT_DLLAZY_OR_NOW 0
18137 extern "C" void exit (int);
18140 void fnord() { int i=42;}
18143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18144 int status = $lt_dlunknown;
18148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18149 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18150 /* dlclose (self); */
18156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18157 (eval $ac_link) 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18161 (./conftest; exit; ) 2>/dev/null
18163 case x$lt_status in
18164 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18165 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18166 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18169 # compilation failed
18170 lt_cv_dlopen_self=no
18177 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18178 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18180 if test "x$lt_cv_dlopen_self" = xyes; then
18181 LDFLAGS="$LDFLAGS $link_static_flag"
18182 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18183 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18184 if test "${lt_cv_dlopen_self_static+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18187 if test "$cross_compiling" = yes; then :
18188 lt_cv_dlopen_self_static=cross
18190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18191 lt_status=$lt_dlunknown
18192 cat > conftest.$ac_ext <<EOF
18193 #line __oline__ "configure"
18194 #include "confdefs.h"
18203 # define LT_DLGLOBAL RTLD_GLOBAL
18206 # define LT_DLGLOBAL DL_GLOBAL
18208 # define LT_DLGLOBAL 0
18212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18213 find out it does not work in some platform. */
18214 #ifndef LT_DLLAZY_OR_NOW
18216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18219 # define LT_DLLAZY_OR_NOW DL_LAZY
18222 # define LT_DLLAZY_OR_NOW RTLD_NOW
18225 # define LT_DLLAZY_OR_NOW DL_NOW
18227 # define LT_DLLAZY_OR_NOW 0
18235 extern "C" void exit (int);
18238 void fnord() { int i=42;}
18241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18242 int status = $lt_dlunknown;
18246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18247 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18248 /* dlclose (self); */
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255 (eval $ac_link) 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18259 (./conftest; exit; ) 2>/dev/null
18261 case x$lt_status in
18262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18264 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18267 # compilation failed
18268 lt_cv_dlopen_self_static=no
18275 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18276 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18279 CPPFLAGS="$save_CPPFLAGS"
18280 LDFLAGS="$save_LDFLAGS"
18285 case $lt_cv_dlopen_self in
18286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18287 *) enable_dlopen_self=unknown ;;
18290 case $lt_cv_dlopen_self_static in
18291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18292 *) enable_dlopen_self_static=unknown ;;
18297 # The else clause should only fire when bootstrapping the
18298 # libtool distribution, otherwise you forgot to ship ltmain.sh
18299 # with your package, and you will get complaints that there are
18300 # no rules to generate ltmain.sh.
18301 if test -f "$ltmain"; then
18302 # See if we are running on zsh, and set the options which allow our commands through
18303 # without removal of \ escapes.
18304 if test -n "${ZSH_VERSION+set}" ; then
18305 setopt NO_GLOB_SUBST
18307 # Now quote all the things that may contain metacharacters while being
18308 # careful not to overquote the AC_SUBSTed values. We take copies of the
18309 # variables and quote the copies for generation of the libtool script.
18310 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18312 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18313 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18314 deplibs_check_method reload_flag reload_cmds need_locks \
18315 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18316 lt_cv_sys_global_symbol_to_c_name_address \
18317 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18318 old_postinstall_cmds old_postuninstall_cmds \
18322 lt_prog_compiler_wl_GCJ \
18323 lt_prog_compiler_pic_GCJ \
18324 lt_prog_compiler_static_GCJ \
18325 lt_prog_compiler_no_builtin_flag_GCJ \
18326 export_dynamic_flag_spec_GCJ \
18327 thread_safe_flag_spec_GCJ \
18328 whole_archive_flag_spec_GCJ \
18329 enable_shared_with_static_runtimes_GCJ \
18330 old_archive_cmds_GCJ \
18331 old_archive_from_new_cmds_GCJ \
18332 predep_objects_GCJ \
18333 postdep_objects_GCJ \
18336 compiler_lib_search_path_GCJ \
18338 archive_expsym_cmds_GCJ \
18339 postinstall_cmds_GCJ \
18340 postuninstall_cmds_GCJ \
18341 old_archive_from_expsyms_cmds_GCJ \
18342 allow_undefined_flag_GCJ \
18343 no_undefined_flag_GCJ \
18344 export_symbols_cmds_GCJ \
18345 hardcode_libdir_flag_spec_GCJ \
18346 hardcode_libdir_flag_spec_ld_GCJ \
18347 hardcode_libdir_separator_GCJ \
18348 hardcode_automatic_GCJ \
18350 module_expsym_cmds_GCJ \
18351 lt_cv_prog_compiler_c_o_GCJ \
18352 exclude_expsyms_GCJ \
18353 include_expsyms_GCJ; do
18356 old_archive_cmds_GCJ | \
18357 old_archive_from_new_cmds_GCJ | \
18358 archive_cmds_GCJ | \
18359 archive_expsym_cmds_GCJ | \
18360 module_cmds_GCJ | \
18361 module_expsym_cmds_GCJ | \
18362 old_archive_from_expsyms_cmds_GCJ | \
18363 export_symbols_cmds_GCJ | \
18364 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18365 postinstall_cmds | postuninstall_cmds | \
18366 old_postinstall_cmds | old_postuninstall_cmds | \
18367 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18368 # Double-quote double-evaled strings.
18369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18378 *'\$0 --fallback-echo"')
18379 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18385 cat <<__EOF__ >> "$cfgfile"
18386 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18390 # Shell to use when invoking shell scripts.
18393 # Whether or not to build shared libraries.
18394 build_libtool_libs=$enable_shared
18396 # Whether or not to build static libraries.
18397 build_old_libs=$enable_static
18399 # Whether or not to add -lc for building shared libraries.
18400 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18402 # Whether or not to disallow shared libs when runtime libs are static
18403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18405 # Whether or not to optimize for fast installation.
18406 fast_install=$enable_fast_install
18409 host_alias=$host_alias
18412 # An echo program that does not interpret backslashes.
18417 AR_FLAGS=$lt_AR_FLAGS
18422 # A language-specific compiler.
18423 CC=$lt_compiler_GCJ
18425 # Is the compiler the GNU C compiler?
18431 # The linker used to build libraries.
18434 # Whether we need hard or soft links.
18437 # A BSD-compatible nm program.
18440 # A symbol stripping program
18443 # Used to examine libraries when file_magic_cmd begins "file"
18444 MAGIC_CMD=$MAGIC_CMD
18446 # Used on cygwin: DLL creation program.
18449 # Used on cygwin: object dumper.
18452 # Used on cygwin: assembler.
18455 # The name of the directory that contains temporary libtool files.
18458 # How to create reloadable object files.
18459 reload_flag=$lt_reload_flag
18460 reload_cmds=$lt_reload_cmds
18462 # How to pass a linker flag through the compiler.
18463 wl=$lt_lt_prog_compiler_wl_GCJ
18465 # Object file suffix (normally "o").
18466 objext="$ac_objext"
18468 # Old archive suffix (normally "a").
18471 # Shared library suffix (normally ".so").
18472 shrext_cmds='$shrext_cmds'
18474 # Executable file suffix (normally "").
18477 # Additional compiler flags for building library objects.
18478 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18481 # What is the maximum length of a command?
18482 max_cmd_len=$lt_cv_sys_max_cmd_len
18484 # Does compiler simultaneously support -c and -o options?
18485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18487 # Must we lock files when doing compilation ?
18488 need_locks=$lt_need_locks
18490 # Do we need the lib prefix for modules?
18491 need_lib_prefix=$need_lib_prefix
18493 # Do we need a version for libraries?
18494 need_version=$need_version
18496 # Whether dlopen is supported.
18497 dlopen_support=$enable_dlopen
18499 # Whether dlopen of programs is supported.
18500 dlopen_self=$enable_dlopen_self
18502 # Whether dlopen of statically linked programs is supported.
18503 dlopen_self_static=$enable_dlopen_self_static
18505 # Compiler flag to prevent dynamic linking.
18506 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18508 # Compiler flag to turn off builtin functions.
18509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18511 # Compiler flag to allow reflexive dlopens.
18512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18514 # Compiler flag to generate shared objects directly from archives.
18515 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18517 # Compiler flag to generate thread-safe objects.
18518 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18520 # Library versioning type.
18521 version_type=$version_type
18523 # Format of library name prefix.
18524 libname_spec=$lt_libname_spec
18526 # List of archive names. First name is the real one, the rest are links.
18527 # The last name is the one that the linker finds with -lNAME.
18528 library_names_spec=$lt_library_names_spec
18530 # The coded name of the library, if different from the real name.
18531 soname_spec=$lt_soname_spec
18533 # Commands used to build and install an old-style archive.
18535 old_archive_cmds=$lt_old_archive_cmds_GCJ
18536 old_postinstall_cmds=$lt_old_postinstall_cmds
18537 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18539 # Create an old-style archive from a shared archive.
18540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18542 # Create a temporary old-style archive to link instead of a shared archive.
18543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18545 # Commands used to build and install a shared archive.
18546 archive_cmds=$lt_archive_cmds_GCJ
18547 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18548 postinstall_cmds=$lt_postinstall_cmds
18549 postuninstall_cmds=$lt_postuninstall_cmds
18551 # Commands used to build a loadable module (assumed same as above if empty)
18552 module_cmds=$lt_module_cmds_GCJ
18553 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18555 # Commands to strip libraries.
18556 old_striplib=$lt_old_striplib
18557 striplib=$lt_striplib
18559 # Dependencies to place before the objects being linked to create a
18561 predep_objects=$lt_predep_objects_GCJ
18563 # Dependencies to place after the objects being linked to create a
18565 postdep_objects=$lt_postdep_objects_GCJ
18567 # Dependencies to place before the objects being linked to create a
18569 predeps=$lt_predeps_GCJ
18571 # Dependencies to place after the objects being linked to create a
18573 postdeps=$lt_postdeps_GCJ
18575 # The library search path used internally by the compiler when linking
18576 # a shared library.
18577 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18579 # Method to check whether dependent libraries are shared objects.
18580 deplibs_check_method=$lt_deplibs_check_method
18582 # Command to use when deplibs_check_method == file_magic.
18583 file_magic_cmd=$lt_file_magic_cmd
18585 # Flag that allows shared libraries with undefined symbols to be built.
18586 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18588 # Flag that forces no undefined symbols.
18589 no_undefined_flag=$lt_no_undefined_flag_GCJ
18591 # Commands used to finish a libtool library installation in a directory.
18592 finish_cmds=$lt_finish_cmds
18594 # Same as above, but a single script fragment to be evaled but not shown.
18595 finish_eval=$lt_finish_eval
18597 # Take the output of nm and produce a listing of raw symbols and C names.
18598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18600 # Transform the output of nm in a proper C declaration
18601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18603 # Transform the output of nm in a C name address pair
18604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18606 # This is the shared library runtime path variable.
18607 runpath_var=$runpath_var
18609 # This is the shared library path variable.
18610 shlibpath_var=$shlibpath_var
18612 # Is shlibpath searched before the hard-coded library search path?
18613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18615 # How to hardcode a shared library path into an executable.
18616 hardcode_action=$hardcode_action_GCJ
18618 # Whether we should hardcode library paths into libraries.
18619 hardcode_into_libs=$hardcode_into_libs
18621 # Flag to hardcode \$libdir into a binary during linking.
18622 # This must work even if \$libdir does not exist.
18623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18625 # If ld is used when linking, flag to hardcode \$libdir into
18626 # a binary during linking. This must work even if \$libdir does
18628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18630 # Whether we need a single -rpath flag with a separated argument.
18631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18634 # resulting binary.
18635 hardcode_direct=$hardcode_direct_GCJ
18637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18638 # resulting binary.
18639 hardcode_minus_L=$hardcode_minus_L_GCJ
18641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18642 # the resulting binary.
18643 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18645 # Set to yes if building a shared library automatically hardcodes DIR into the library
18646 # and all subsequent libraries and executables linked against it.
18647 hardcode_automatic=$hardcode_automatic_GCJ
18649 # Variables whose values should be saved in libtool wrapper scripts and
18650 # restored at relink time.
18651 variables_saved_for_relink="$variables_saved_for_relink"
18653 # Whether libtool must link a program against all its dependency libraries.
18654 link_all_deplibs=$link_all_deplibs_GCJ
18656 # Compile-time system search path for libraries
18657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18659 # Run-time system search path for libraries
18660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18662 # Fix the shell variable \$srcfile for the compiler.
18663 fix_srcfile_path="$fix_srcfile_path_GCJ"
18665 # Set to yes if exported symbols are required.
18666 always_export_symbols=$always_export_symbols_GCJ
18668 # The commands to list exported symbols.
18669 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18671 # The commands to extract the exported symbol list from a shared archive.
18672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18674 # Symbols that should not be listed in the preloaded symbols.
18675 exclude_expsyms=$lt_exclude_expsyms_GCJ
18677 # Symbols that must always be exported.
18678 include_expsyms=$lt_include_expsyms_GCJ
18680 # ### END LIBTOOL TAG CONFIG: $tagname
18686 # If there is no Makefile yet, we rely on a make rule to execute
18687 # `config.status --recheck' to rerun these tests and create the
18688 # libtool script then.
18689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18690 if test -f "$ltmain_in"; then
18691 test -f Makefile && make "$ltmain"
18697 ac_cpp='$CPP $CPPFLAGS'
18698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18713 # Source file extension for RC test sources.
18716 # Object file extension for compiled RC test sources.
18720 # Code to be used in simple compile tests
18721 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18723 # Code to be used in simple link tests
18724 lt_simple_link_test_code="$lt_simple_compile_test_code"
18726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18728 # If no C compiler was specified, use CC.
18731 # Allow CC to be a program name with arguments.
18735 # Allow CC to be a program name with arguments.
18740 lt_cv_prog_compiler_c_o_RC=yes
18742 # The else clause should only fire when bootstrapping the
18743 # libtool distribution, otherwise you forgot to ship ltmain.sh
18744 # with your package, and you will get complaints that there are
18745 # no rules to generate ltmain.sh.
18746 if test -f "$ltmain"; then
18747 # See if we are running on zsh, and set the options which allow our commands through
18748 # without removal of \ escapes.
18749 if test -n "${ZSH_VERSION+set}" ; then
18750 setopt NO_GLOB_SUBST
18752 # Now quote all the things that may contain metacharacters while being
18753 # careful not to overquote the AC_SUBSTed values. We take copies of the
18754 # variables and quote the copies for generation of the libtool script.
18755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18759 deplibs_check_method reload_flag reload_cmds need_locks \
18760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18761 lt_cv_sys_global_symbol_to_c_name_address \
18762 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18763 old_postinstall_cmds old_postuninstall_cmds \
18767 lt_prog_compiler_wl_RC \
18768 lt_prog_compiler_pic_RC \
18769 lt_prog_compiler_static_RC \
18770 lt_prog_compiler_no_builtin_flag_RC \
18771 export_dynamic_flag_spec_RC \
18772 thread_safe_flag_spec_RC \
18773 whole_archive_flag_spec_RC \
18774 enable_shared_with_static_runtimes_RC \
18775 old_archive_cmds_RC \
18776 old_archive_from_new_cmds_RC \
18777 predep_objects_RC \
18778 postdep_objects_RC \
18781 compiler_lib_search_path_RC \
18783 archive_expsym_cmds_RC \
18784 postinstall_cmds_RC \
18785 postuninstall_cmds_RC \
18786 old_archive_from_expsyms_cmds_RC \
18787 allow_undefined_flag_RC \
18788 no_undefined_flag_RC \
18789 export_symbols_cmds_RC \
18790 hardcode_libdir_flag_spec_RC \
18791 hardcode_libdir_flag_spec_ld_RC \
18792 hardcode_libdir_separator_RC \
18793 hardcode_automatic_RC \
18795 module_expsym_cmds_RC \
18796 lt_cv_prog_compiler_c_o_RC \
18797 exclude_expsyms_RC \
18798 include_expsyms_RC; do
18801 old_archive_cmds_RC | \
18802 old_archive_from_new_cmds_RC | \
18803 archive_cmds_RC | \
18804 archive_expsym_cmds_RC | \
18806 module_expsym_cmds_RC | \
18807 old_archive_from_expsyms_cmds_RC | \
18808 export_symbols_cmds_RC | \
18809 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18810 postinstall_cmds | postuninstall_cmds | \
18811 old_postinstall_cmds | old_postuninstall_cmds | \
18812 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18813 # Double-quote double-evaled strings.
18814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18823 *'\$0 --fallback-echo"')
18824 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18830 cat <<__EOF__ >> "$cfgfile"
18831 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18835 # Shell to use when invoking shell scripts.
18838 # Whether or not to build shared libraries.
18839 build_libtool_libs=$enable_shared
18841 # Whether or not to build static libraries.
18842 build_old_libs=$enable_static
18844 # Whether or not to add -lc for building shared libraries.
18845 build_libtool_need_lc=$archive_cmds_need_lc_RC
18847 # Whether or not to disallow shared libs when runtime libs are static
18848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18850 # Whether or not to optimize for fast installation.
18851 fast_install=$enable_fast_install
18854 host_alias=$host_alias
18857 # An echo program that does not interpret backslashes.
18862 AR_FLAGS=$lt_AR_FLAGS
18867 # A language-specific compiler.
18870 # Is the compiler the GNU C compiler?
18876 # The linker used to build libraries.
18879 # Whether we need hard or soft links.
18882 # A BSD-compatible nm program.
18885 # A symbol stripping program
18888 # Used to examine libraries when file_magic_cmd begins "file"
18889 MAGIC_CMD=$MAGIC_CMD
18891 # Used on cygwin: DLL creation program.
18894 # Used on cygwin: object dumper.
18897 # Used on cygwin: assembler.
18900 # The name of the directory that contains temporary libtool files.
18903 # How to create reloadable object files.
18904 reload_flag=$lt_reload_flag
18905 reload_cmds=$lt_reload_cmds
18907 # How to pass a linker flag through the compiler.
18908 wl=$lt_lt_prog_compiler_wl_RC
18910 # Object file suffix (normally "o").
18911 objext="$ac_objext"
18913 # Old archive suffix (normally "a").
18916 # Shared library suffix (normally ".so").
18917 shrext_cmds='$shrext_cmds'
18919 # Executable file suffix (normally "").
18922 # Additional compiler flags for building library objects.
18923 pic_flag=$lt_lt_prog_compiler_pic_RC
18926 # What is the maximum length of a command?
18927 max_cmd_len=$lt_cv_sys_max_cmd_len
18929 # Does compiler simultaneously support -c and -o options?
18930 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18932 # Must we lock files when doing compilation ?
18933 need_locks=$lt_need_locks
18935 # Do we need the lib prefix for modules?
18936 need_lib_prefix=$need_lib_prefix
18938 # Do we need a version for libraries?
18939 need_version=$need_version
18941 # Whether dlopen is supported.
18942 dlopen_support=$enable_dlopen
18944 # Whether dlopen of programs is supported.
18945 dlopen_self=$enable_dlopen_self
18947 # Whether dlopen of statically linked programs is supported.
18948 dlopen_self_static=$enable_dlopen_self_static
18950 # Compiler flag to prevent dynamic linking.
18951 link_static_flag=$lt_lt_prog_compiler_static_RC
18953 # Compiler flag to turn off builtin functions.
18954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18956 # Compiler flag to allow reflexive dlopens.
18957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18959 # Compiler flag to generate shared objects directly from archives.
18960 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18962 # Compiler flag to generate thread-safe objects.
18963 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18965 # Library versioning type.
18966 version_type=$version_type
18968 # Format of library name prefix.
18969 libname_spec=$lt_libname_spec
18971 # List of archive names. First name is the real one, the rest are links.
18972 # The last name is the one that the linker finds with -lNAME.
18973 library_names_spec=$lt_library_names_spec
18975 # The coded name of the library, if different from the real name.
18976 soname_spec=$lt_soname_spec
18978 # Commands used to build and install an old-style archive.
18980 old_archive_cmds=$lt_old_archive_cmds_RC
18981 old_postinstall_cmds=$lt_old_postinstall_cmds
18982 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18984 # Create an old-style archive from a shared archive.
18985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18987 # Create a temporary old-style archive to link instead of a shared archive.
18988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18990 # Commands used to build and install a shared archive.
18991 archive_cmds=$lt_archive_cmds_RC
18992 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18993 postinstall_cmds=$lt_postinstall_cmds
18994 postuninstall_cmds=$lt_postuninstall_cmds
18996 # Commands used to build a loadable module (assumed same as above if empty)
18997 module_cmds=$lt_module_cmds_RC
18998 module_expsym_cmds=$lt_module_expsym_cmds_RC
19000 # Commands to strip libraries.
19001 old_striplib=$lt_old_striplib
19002 striplib=$lt_striplib
19004 # Dependencies to place before the objects being linked to create a
19006 predep_objects=$lt_predep_objects_RC
19008 # Dependencies to place after the objects being linked to create a
19010 postdep_objects=$lt_postdep_objects_RC
19012 # Dependencies to place before the objects being linked to create a
19014 predeps=$lt_predeps_RC
19016 # Dependencies to place after the objects being linked to create a
19018 postdeps=$lt_postdeps_RC
19020 # The library search path used internally by the compiler when linking
19021 # a shared library.
19022 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19024 # Method to check whether dependent libraries are shared objects.
19025 deplibs_check_method=$lt_deplibs_check_method
19027 # Command to use when deplibs_check_method == file_magic.
19028 file_magic_cmd=$lt_file_magic_cmd
19030 # Flag that allows shared libraries with undefined symbols to be built.
19031 allow_undefined_flag=$lt_allow_undefined_flag_RC
19033 # Flag that forces no undefined symbols.
19034 no_undefined_flag=$lt_no_undefined_flag_RC
19036 # Commands used to finish a libtool library installation in a directory.
19037 finish_cmds=$lt_finish_cmds
19039 # Same as above, but a single script fragment to be evaled but not shown.
19040 finish_eval=$lt_finish_eval
19042 # Take the output of nm and produce a listing of raw symbols and C names.
19043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19045 # Transform the output of nm in a proper C declaration
19046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19048 # Transform the output of nm in a C name address pair
19049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19051 # This is the shared library runtime path variable.
19052 runpath_var=$runpath_var
19054 # This is the shared library path variable.
19055 shlibpath_var=$shlibpath_var
19057 # Is shlibpath searched before the hard-coded library search path?
19058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19060 # How to hardcode a shared library path into an executable.
19061 hardcode_action=$hardcode_action_RC
19063 # Whether we should hardcode library paths into libraries.
19064 hardcode_into_libs=$hardcode_into_libs
19066 # Flag to hardcode \$libdir into a binary during linking.
19067 # This must work even if \$libdir does not exist.
19068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19070 # If ld is used when linking, flag to hardcode \$libdir into
19071 # a binary during linking. This must work even if \$libdir does
19073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19075 # Whether we need a single -rpath flag with a separated argument.
19076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19078 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19079 # resulting binary.
19080 hardcode_direct=$hardcode_direct_RC
19082 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19083 # resulting binary.
19084 hardcode_minus_L=$hardcode_minus_L_RC
19086 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19087 # the resulting binary.
19088 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19090 # Set to yes if building a shared library automatically hardcodes DIR into the library
19091 # and all subsequent libraries and executables linked against it.
19092 hardcode_automatic=$hardcode_automatic_RC
19094 # Variables whose values should be saved in libtool wrapper scripts and
19095 # restored at relink time.
19096 variables_saved_for_relink="$variables_saved_for_relink"
19098 # Whether libtool must link a program against all its dependency libraries.
19099 link_all_deplibs=$link_all_deplibs_RC
19101 # Compile-time system search path for libraries
19102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19104 # Run-time system search path for libraries
19105 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19107 # Fix the shell variable \$srcfile for the compiler.
19108 fix_srcfile_path="$fix_srcfile_path_RC"
19110 # Set to yes if exported symbols are required.
19111 always_export_symbols=$always_export_symbols_RC
19113 # The commands to list exported symbols.
19114 export_symbols_cmds=$lt_export_symbols_cmds_RC
19116 # The commands to extract the exported symbol list from a shared archive.
19117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19119 # Symbols that should not be listed in the preloaded symbols.
19120 exclude_expsyms=$lt_exclude_expsyms_RC
19122 # Symbols that must always be exported.
19123 include_expsyms=$lt_include_expsyms_RC
19125 # ### END LIBTOOL TAG CONFIG: $tagname
19131 # If there is no Makefile yet, we rely on a make rule to execute
19132 # `config.status --recheck' to rerun these tests and create the
19133 # libtool script then.
19134 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19135 if test -f "$ltmain_in"; then
19136 test -f Makefile && make "$ltmain"
19142 ac_cpp='$CPP $CPPFLAGS'
19143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19152 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19153 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19154 { (exit 1); exit 1; }; }
19158 # Append the new tag name to the list of available tags.
19159 if test -n "$tagname" ; then
19160 available_tags="$available_tags $tagname"
19166 # Now substitute the updated list of available tags.
19167 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19168 mv "${ofile}T" "$ofile"
19172 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19173 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19174 { (exit 1); exit 1; }; }
19180 # This can be used to rebuild libtool when needed
19181 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19183 # Always use our own libtool.
19184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19186 # Prevent multiple expansion
19209 echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
19210 echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6
19212 save_CFLAGS="$CFLAGS"
19213 CFLAGS="$CFLAGS -Wall"
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19230 rm -f conftest.$ac_objext
19231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag"
19240 || test ! -s conftest.err'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest.$ac_objext'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19260 CFLAGS="$save_CFLAGS"
19262 if test "X$flag_ok" = Xyes ; then
19269 echo "$as_me:$LINENO: result: $flag_ok" >&5
19270 echo "${ECHO_T}$flag_ok" >&6
19273 if test "x$GST_WALL" = "xyes"; then
19274 GST_ERROR="$GST_ERROR -Wall"
19276 if test "x$GST_PLUGIN_TRUNK" = "xyes"; then
19278 echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
19279 echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
19281 save_CFLAGS="$CFLAGS"
19282 CFLAGS="$CFLAGS -Werror"
19284 cat >conftest.$ac_ext <<_ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19299 rm -f conftest.$ac_objext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301 (eval $ac_compile) 2>conftest.er1
19303 grep -v '^ *+' conftest.er1 >conftest.err
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
19308 { ac_try='test -z "$ac_c_werror_flag"
19309 || test ! -s conftest.err'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest.$ac_objext'
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19329 CFLAGS="$save_CFLAGS"
19331 if test "X$flag_ok" = Xyes ; then
19332 GST_ERROR="$GST_ERROR -Werror"
19335 GST_ERROR="$GST_ERROR"
19338 echo "$as_me:$LINENO: result: $flag_ok" >&5
19339 echo "${ECHO_T}$flag_ok" >&6
19344 # Extract the first word of "pkg-config", so it can be a program name with args.
19345 set dummy pkg-config; ac_word=$2
19346 echo "$as_me:$LINENO: checking for $ac_word" >&5
19347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19348 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 if test -n "$HAVE_PKGCONFIG"; then
19352 ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
19354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19355 for as_dir in $PATH
19358 test -z "$as_dir" && as_dir=.
19359 for ac_exec_ext in '' $ac_executable_extensions; do
19360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19361 ac_cv_prog_HAVE_PKGCONFIG="yes"
19362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19368 test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
19371 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
19372 if test -n "$HAVE_PKGCONFIG"; then
19373 echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
19374 echo "${ECHO_T}$HAVE_PKGCONFIG" >&6
19376 echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6
19381 if test "x$HAVE_PKGCONFIG" = "xno"; then
19382 { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
19383 echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
19384 { (exit 1); exit 1; }; }
19390 GST_MAJORMINOR=0.10
19394 if test -z "$PKG_CONFIG"; then
19395 # Extract the first word of "pkg-config", so it can be a program name with args.
19396 set dummy pkg-config; ac_word=$2
19397 echo "$as_me:$LINENO: checking for $ac_word" >&5
19398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19399 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 case $PKG_CONFIG in
19404 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19408 for as_dir in $PATH
19411 test -z "$as_dir" && as_dir=.
19412 for ac_exec_ext in '' $ac_executable_extensions; do
19413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19414 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19421 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19425 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19427 if test -n "$PKG_CONFIG"; then
19428 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19429 echo "${ECHO_T}$PKG_CONFIG" >&6
19431 echo "$as_me:$LINENO: result: no" >&5
19432 echo "${ECHO_T}no" >&6
19437 if test "$PKG_CONFIG" = "no" ; then
19438 echo "*** The pkg-config script could not be found. Make sure it is"
19439 echo "*** in your path, or set the PKG_CONFIG environment variable"
19440 echo "*** to the full path to pkg-config."
19441 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19443 PKG_CONFIG_MIN_VERSION=0.9.0
19444 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19445 echo "$as_me:$LINENO: checking for \
19446 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
19447 echo $ECHO_N "checking for \
19448 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
19450 if $PKG_CONFIG --exists "\
19451 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
19452 echo "$as_me:$LINENO: result: yes" >&5
19453 echo "${ECHO_T}yes" >&6
19456 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
19457 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
19458 GST_CFLAGS=`$PKG_CONFIG --cflags "\
19459 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
19460 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
19461 echo "${ECHO_T}$GST_CFLAGS" >&6
19463 echo "$as_me:$LINENO: checking GST_LIBS" >&5
19464 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
19465 GST_LIBS=`$PKG_CONFIG --libs "\
19466 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
19467 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
19468 echo "${ECHO_T}$GST_LIBS" >&6
19472 ## If we have a custom action on failure, don't print errors, but
19473 ## do set a variable so people can do so.
19474 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
19475 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
19482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19487 if test $succeeded = yes; then
19494 if test "x$HAVE_GST" = "xno"; then
19495 { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5
19496 echo "$as_me: error: you need gstreamer development packages installed !" >&2;}
19497 { (exit 1); exit 1; }; }
19503 if test -z "$PKG_CONFIG"; then
19504 # Extract the first word of "pkg-config", so it can be a program name with args.
19505 set dummy pkg-config; ac_word=$2
19506 echo "$as_me:$LINENO: checking for $ac_word" >&5
19507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19508 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 case $PKG_CONFIG in
19513 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19517 for as_dir in $PATH
19520 test -z "$as_dir" && as_dir=.
19521 for ac_exec_ext in '' $ac_executable_extensions; do
19522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19523 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19530 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19534 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19536 if test -n "$PKG_CONFIG"; then
19537 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19538 echo "${ECHO_T}$PKG_CONFIG" >&6
19540 echo "$as_me:$LINENO: result: no" >&5
19541 echo "${ECHO_T}no" >&6
19546 if test "$PKG_CONFIG" = "no" ; then
19547 echo "*** The pkg-config script could not be found. Make sure it is"
19548 echo "*** in your path, or set the PKG_CONFIG environment variable"
19549 echo "*** to the full path to pkg-config."
19550 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19552 PKG_CONFIG_MIN_VERSION=0.9.0
19553 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19554 echo "$as_me:$LINENO: checking for \
19555 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
19556 echo $ECHO_N "checking for \
19557 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
19559 if $PKG_CONFIG --exists "\
19560 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
19561 echo "$as_me:$LINENO: result: yes" >&5
19562 echo "${ECHO_T}yes" >&6
19565 echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5
19566 echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6
19567 GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "\
19568 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
19569 echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5
19570 echo "${ECHO_T}$GST_BASE_CFLAGS" >&6
19572 echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5
19573 echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6
19574 GST_BASE_LIBS=`$PKG_CONFIG --libs "\
19575 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
19576 echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5
19577 echo "${ECHO_T}$GST_BASE_LIBS" >&6
19581 ## If we have a custom action on failure, don't print errors, but
19582 ## do set a variable so people can do so.
19583 GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
19584 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
19591 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19592 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19596 if test $succeeded = yes; then
19603 if test "x$HAVE_GST_BASE" = "xno"; then
19604 { { echo "$as_me:$LINENO: error: you need gstreamer base development packages installed !" >&5
19605 echo "$as_me: error: you need gstreamer base development packages installed !" >&2;}
19606 { (exit 1); exit 1; }; }
19609 GST_CFLAGS="$GST_CFLAGS $GST_ERROR"
19620 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
19623 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
19626 ac_config_files="$ac_config_files Makefile m4/Makefile video/Makefile src/Makefile common/Makefile gst-fbvideosink.spec"
19627 cat >confcache <<\_ACEOF
19628 # This file is a shell script that caches the results of configure
19629 # tests run on this system so they can be shared between configure
19630 # scripts and configure runs, see configure's option --config-cache.
19631 # It is not useful on other systems. If it contains results you don't
19632 # want to keep, you may remove or edit it.
19634 # config.status only pays attention to the cache file if you give it
19635 # the --recheck option to rerun configure.
19637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19639 # following values.
19643 # The following way of writing the cache mishandles newlines in values,
19644 # but we know of no workaround that is simple, portable, and efficient.
19645 # So, don't put newlines in cache variables' values.
19646 # Ultrix sh set writes to stderr and can't be redirected directly,
19647 # and sets the high bit in the cache file unless we assign to the vars.
19650 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19652 # `set' does not quote correctly, so add quotes (double-quote
19653 # substitution turns \\\\ into \\, and sed turns \\ into \).
19656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19659 # `set' quotes correctly as required by POSIX, so do not add quotes.
19661 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19670 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19672 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19673 if test -w $cache_file; then
19674 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19675 cat confcache >$cache_file
19677 echo "not updating unwritable cache $cache_file"
19682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19683 # Let make expand exec_prefix.
19684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19686 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19687 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19688 # trailing colons and then remove the whole line if VPATH becomes empty
19689 # (actually we leave an empty line to preserve line numbers).
19690 if test "x$srcdir" = x.; then
19691 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19692 s/:*\$(srcdir):*/:/;
19693 s/:*\${srcdir}:*/:/;
19695 s/^\([^=]*=[ ]*\):*/\1/;
19701 DEFS=-DHAVE_CONFIG_H
19705 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19706 # 1. Remove the extension, and $U if already installed.
19707 ac_i=`echo "$ac_i" |
19708 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19710 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19711 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19713 LIB@&t@OBJS=$ac_libobjs
19715 LTLIBOBJS=$ac_ltlibobjs
19718 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19719 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19720 Usually this means the macro was only invoked conditionally." >&5
19721 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19722 Usually this means the macro was only invoked conditionally." >&2;}
19723 { (exit 1); exit 1; }; }
19725 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19726 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19727 Usually this means the macro was only invoked conditionally." >&5
19728 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19729 Usually this means the macro was only invoked conditionally." >&2;}
19730 { (exit 1); exit 1; }; }
19732 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19733 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19734 Usually this means the macro was only invoked conditionally." >&5
19735 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19736 Usually this means the macro was only invoked conditionally." >&2;}
19737 { (exit 1); exit 1; }; }
19739 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19740 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19741 Usually this means the macro was only invoked conditionally." >&5
19742 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19743 Usually this means the macro was only invoked conditionally." >&2;}
19744 { (exit 1); exit 1; }; }
19747 : ${CONFIG_STATUS=./config.status}
19748 ac_clean_files_save=$ac_clean_files
19749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19750 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19752 cat >$CONFIG_STATUS <<_ACEOF
19754 # Generated by $as_me.
19755 # Run this file to recreate the current configuration.
19756 # Compiler output produced by configure, useful for debugging
19757 # configure, is in config.log if it exists.
19760 ac_cs_recheck=false
19762 SHELL=\${CONFIG_SHELL-$SHELL}
19765 cat >>$CONFIG_STATUS <<\_ACEOF
19766 ## --------------------- ##
19767 ## M4sh Initialization. ##
19768 ## --------------------- ##
19770 # Be Bourne compatible
19771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19775 # is contrary to our usage. Disable this feature.
19776 alias -g '${1+"$@"}'='"$@"'
19777 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19780 DUALCASE=1; export DUALCASE # for MKS sh
19782 # Support unset when possible.
19783 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19790 # Work around bugs in pre-3.0 UWIN ksh.
19791 $as_unset ENV MAIL MAILPATH
19798 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19799 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19800 LC_TELEPHONE LC_TIME
19802 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19803 eval $as_var=C; export $as_var
19809 # Required to use basename.
19810 if expr a : '\(a\)' >/dev/null 2>&1; then
19816 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19817 as_basename=basename
19823 # Name of the executable.
19824 as_me=`$as_basename "$0" ||
19825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19826 X"$0" : 'X\(//\)$' \| \
19827 X"$0" : 'X\(/\)$' \| \
19828 . : '\(.\)' 2>/dev/null ||
19830 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19831 /^X\/\(\/\/\)$/{ s//\1/; q; }
19832 /^X\/\(\/\).*/{ s//\1/; q; }
19836 # PATH needs CR, and LINENO needs CR and PATH.
19837 # Avoid depending upon Character Ranges.
19838 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19839 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19840 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19841 as_cr_digits='0123456789'
19842 as_cr_alnum=$as_cr_Letters$as_cr_digits
19844 # The user is always right.
19845 if test "${PATH_SEPARATOR+set}" != set; then
19846 echo "#! /bin/sh" >conf$$.sh
19847 echo "exit 0" >>conf$$.sh
19849 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19858 as_lineno_1=$LINENO
19859 as_lineno_2=$LINENO
19860 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19861 test "x$as_lineno_1" != "x$as_lineno_2" &&
19862 test "x$as_lineno_3" = "x$as_lineno_2" || {
19863 # Find who we are. Look in the path if we contain no path at all
19866 *[\\/]* ) as_myself=$0 ;;
19867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19868 for as_dir in $PATH
19871 test -z "$as_dir" && as_dir=.
19872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19877 # We did not find ourselves, most probably we were run as `sh COMMAND'
19878 # in which case we are not to be found in the path.
19879 if test "x$as_myself" = x; then
19882 if test ! -f "$as_myself"; then
19883 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19884 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19885 { (exit 1); exit 1; }; }
19887 case $CONFIG_SHELL in
19889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19890 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19893 test -z "$as_dir" && as_dir=.
19894 for as_base in sh bash ksh sh5; do
19897 if ("$as_dir/$as_base" -c '
19898 as_lineno_1=$LINENO
19899 as_lineno_2=$LINENO
19900 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19901 test "x$as_lineno_1" != "x$as_lineno_2" &&
19902 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19903 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19904 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19905 CONFIG_SHELL=$as_dir/$as_base
19906 export CONFIG_SHELL
19907 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19915 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19916 # uniformly replaced by the line number. The first 'sed' inserts a
19917 # line-number line before each line; the second 'sed' does the real
19918 # work. The second script uses 'N' to pair each line-number line
19919 # with the numbered line, and appends trailing '-' during
19920 # substitution so that $LINENO is not a special case at line end.
19921 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19922 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19923 sed '=' <$as_myself |
19928 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19931 s,^['$as_cr_digits']*\n,,
19932 ' >$as_me.lineno &&
19933 chmod +x $as_me.lineno ||
19934 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19935 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19936 { (exit 1); exit 1; }; }
19938 # Don't try to exec as it changes $[0], causing all sort of problems
19939 # (the dirname of $[0] is not the place where we might find the
19940 # original and so on. Autoconf is especially sensible to this).
19942 # Exit status is that of the last command.
19947 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19948 *c*,-n*) ECHO_N= ECHO_C='
19950 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19951 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19954 if expr a : '\(a\)' >/dev/null 2>&1; then
19960 rm -f conf$$ conf$$.exe conf$$.file
19962 if ln -s conf$$.file conf$$ 2>/dev/null; then
19963 # We could just check for DJGPP; but this test a) works b) is more generic
19964 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19965 if test -f conf$$.exe; then
19966 # Don't use ln at all; we don't have any links
19971 elif ln conf$$.file conf$$ 2>/dev/null; then
19976 rm -f conf$$ conf$$.exe conf$$.file
19978 if mkdir -p . 2>/dev/null; then
19981 test -d ./-p && rmdir ./-p
19985 as_executable_p="test -f"
19987 # Sed expression to map a string onto a valid CPP name.
19988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19990 # Sed expression to map a string onto a valid variable name.
19991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19995 # We need space, tab and new line, in precisely that order.
20005 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20006 # report actual input values of CONFIG_FILES etc. instead of their
20007 # values after options handling. Logging --version etc. is OK.
20011 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20012 @%:@@%:@ Running $as_me. @%:@@%:@
20017 This file was extended by $as_me, which was
20018 generated by GNU Autoconf 2.59. Invocation command line was
20020 CONFIG_FILES = $CONFIG_FILES
20021 CONFIG_HEADERS = $CONFIG_HEADERS
20022 CONFIG_LINKS = $CONFIG_LINKS
20023 CONFIG_COMMANDS = $CONFIG_COMMANDS
20027 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20031 # Files that config.status was made for.
20032 if test -n "$ac_config_files"; then
20033 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20036 if test -n "$ac_config_headers"; then
20037 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20040 if test -n "$ac_config_links"; then
20041 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20044 if test -n "$ac_config_commands"; then
20045 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20048 cat >>$CONFIG_STATUS <<\_ACEOF
20051 \`$as_me' instantiates files from templates according to the
20052 current configuration.
20054 Usage: $0 [OPTIONS] [FILE]...
20056 -h, --help print this help, then exit
20057 -V, --version print version number, then exit
20058 -q, --quiet do not print progress messages
20059 -d, --debug don't remove temporary files
20060 --recheck update $as_me by reconfiguring in the same conditions
20061 --file=FILE[:TEMPLATE]
20062 instantiate the configuration file FILE
20063 --header=FILE[:TEMPLATE]
20064 instantiate the configuration header FILE
20066 Configuration files:
20069 Configuration headers:
20072 Configuration commands:
20075 Report bugs to <bug-autoconf@gnu.org>."
20078 cat >>$CONFIG_STATUS <<_ACEOF
20081 configured by $0, generated by GNU Autoconf 2.59,
20082 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20084 Copyright (C) 2003 Free Software Foundation, Inc.
20085 This config.status script is free software; the Free Software Foundation
20086 gives unlimited permission to copy, distribute and modify it."
20091 cat >>$CONFIG_STATUS <<\_ACEOF
20092 # If no file are specified by the user, then we need to provide default
20093 # value. By we need to know if files were specified by the user.
20099 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20100 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20108 *) # This is not an option, so the user has probably given explicit
20111 ac_need_defaults=false;;
20115 # Handling of the options.
20117 cat >>$CONFIG_STATUS <<\_ACEOF
20118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20120 --version | --vers* | -V )
20121 echo "$ac_cs_version"; exit 0 ;;
20123 # Conflict between --help and --header
20124 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20125 Try \`$0 --help' for more information." >&5
20126 echo "$as_me: error: ambiguous option: $1
20127 Try \`$0 --help' for more information." >&2;}
20128 { (exit 1); exit 1; }; };;
20129 --help | --hel | -h )
20130 echo "$ac_cs_usage"; exit 0 ;;
20131 --debug | --d* | -d )
20133 --file | --fil | --fi | --f )
20135 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20136 ac_need_defaults=false;;
20137 --header | --heade | --head | --hea )
20139 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20140 ac_need_defaults=false;;
20141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20145 # This is an error.
20146 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20147 Try \`$0 --help' for more information." >&5
20148 echo "$as_me: error: unrecognized option: $1
20149 Try \`$0 --help' for more information." >&2;}
20150 { (exit 1); exit 1; }; } ;;
20152 *) ac_config_targets="$ac_config_targets $1" ;;
20158 ac_configure_extra_args=
20160 if $ac_cs_silent; then
20162 ac_configure_extra_args="$ac_configure_extra_args --silent"
20166 cat >>$CONFIG_STATUS <<_ACEOF
20167 if \$ac_cs_recheck; then
20168 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20169 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20174 cat >>$CONFIG_STATUS <<_ACEOF
20176 # INIT-COMMANDS section.
20179 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20185 cat >>$CONFIG_STATUS <<\_ACEOF
20186 for ac_config_target in $ac_config_targets
20188 case "$ac_config_target" in
20189 # Handling of arguments.
20190 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20191 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20192 "video/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/Makefile" ;;
20193 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20194 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
20195 "gst-fbvideosink.spec" ) CONFIG_FILES="$CONFIG_FILES gst-fbvideosink.spec" ;;
20196 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20197 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20200 { (exit 1); exit 1; }; };;
20204 # If the user did not use the arguments to specify the items to instantiate,
20205 # then the envvar interface is used. Set only those that are not.
20206 # We use the long form for the default assignment because of an extremely
20207 # bizarre bug on SunOS 4.1.3.
20208 if $ac_need_defaults; then
20209 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20210 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20211 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20214 # Have a temporary directory for convenience. Make it in the build tree
20215 # simply because there is no reason to put it here, and in addition,
20216 # creating and moving files from /tmp can sometimes cause problems.
20217 # Create a temporary directory, and hook for its removal unless debugging.
20220 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20221 trap '{ (exit 1); exit 1; }' 1 2 13 15
20224 # Create a (secure) tmp directory for tmp files.
20227 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20228 test -n "$tmp" && test -d "$tmp"
20231 tmp=./confstat$$-$RANDOM
20232 (umask 077 && mkdir $tmp)
20235 echo "$me: cannot create a temporary directory in ." >&2
20236 { (exit 1); exit 1; }
20241 cat >>$CONFIG_STATUS <<_ACEOF
20244 # CONFIG_FILES section.
20247 # No need to generate the scripts if there are no CONFIG_FILES.
20248 # This happens for instance when ./config.status config.h
20249 if test -n "\$CONFIG_FILES"; then
20250 # Protect against being on the right side of a sed subst in config.status.
20251 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20252 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20253 s,@SHELL@,$SHELL,;t t
20254 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20255 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20256 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20257 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20258 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20259 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20260 s,@exec_prefix@,$exec_prefix,;t t
20261 s,@prefix@,$prefix,;t t
20262 s,@program_transform_name@,$program_transform_name,;t t
20263 s,@bindir@,$bindir,;t t
20264 s,@sbindir@,$sbindir,;t t
20265 s,@libexecdir@,$libexecdir,;t t
20266 s,@datadir@,$datadir,;t t
20267 s,@sysconfdir@,$sysconfdir,;t t
20268 s,@sharedstatedir@,$sharedstatedir,;t t
20269 s,@localstatedir@,$localstatedir,;t t
20270 s,@libdir@,$libdir,;t t
20271 s,@includedir@,$includedir,;t t
20272 s,@oldincludedir@,$oldincludedir,;t t
20273 s,@infodir@,$infodir,;t t
20274 s,@mandir@,$mandir,;t t
20275 s,@build_alias@,$build_alias,;t t
20276 s,@host_alias@,$host_alias,;t t
20277 s,@target_alias@,$target_alias,;t t
20278 s,@DEFS@,$DEFS,;t t
20279 s,@ECHO_C@,$ECHO_C,;t t
20280 s,@ECHO_N@,$ECHO_N,;t t
20281 s,@ECHO_T@,$ECHO_T,;t t
20282 s,@LIBS@,$LIBS,;t t
20283 s,@GST_PLUGIN_VERSION@,$GST_PLUGIN_VERSION,;t t
20284 s,@GST_PLUGIN_VERSION_RELEASE@,$GST_PLUGIN_VERSION_RELEASE,;t t
20285 s,@GST_PLUGIN_VERSION_MAJOR@,$GST_PLUGIN_VERSION_MAJOR,;t t
20286 s,@GST_PLUGIN_VERSION_MINOR@,$GST_PLUGIN_VERSION_MINOR,;t t
20287 s,@GST_PLUGIN_VERSION_MICRO@,$GST_PLUGIN_VERSION_MICRO,;t t
20288 s,@GST_PLUGIN_VERSION_NANO@,$GST_PLUGIN_VERSION_NANO,;t t
20289 s,@PACKAGE@,$PACKAGE,;t t
20290 s,@VERSION@,$VERSION,;t t
20291 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20292 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20293 s,@MAINT@,$MAINT,;t t
20294 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20295 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20296 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20297 s,@CYGPATH_W@,$CYGPATH_W,;t t
20298 s,@ACLOCAL@,$ACLOCAL,;t t
20299 s,@AUTOCONF@,$AUTOCONF,;t t
20300 s,@AUTOMAKE@,$AUTOMAKE,;t t
20301 s,@AUTOHEADER@,$AUTOHEADER,;t t
20302 s,@MAKEINFO@,$MAKEINFO,;t t
20303 s,@install_sh@,$install_sh,;t t
20304 s,@STRIP@,$STRIP,;t t
20305 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20306 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20307 s,@mkdir_p@,$mkdir_p,;t t
20309 s,@SET_MAKE@,$SET_MAKE,;t t
20310 s,@am__leading_dot@,$am__leading_dot,;t t
20311 s,@AMTAR@,$AMTAR,;t t
20312 s,@am__tar@,$am__tar,;t t
20313 s,@am__untar@,$am__untar,;t t
20314 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
20316 s,@CFLAGS@,$CFLAGS,;t t
20317 s,@LDFLAGS@,$LDFLAGS,;t t
20318 s,@CPPFLAGS@,$CPPFLAGS,;t t
20319 s,@ac_ct_CC@,$ac_ct_CC,;t t
20320 s,@EXEEXT@,$EXEEXT,;t t
20321 s,@OBJEXT@,$OBJEXT,;t t
20322 s,@DEPDIR@,$DEPDIR,;t t
20323 s,@am__include@,$am__include,;t t
20324 s,@am__quote@,$am__quote,;t t
20325 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20326 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20327 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20328 s,@CCDEPMODE@,$CCDEPMODE,;t t
20329 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20330 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20331 s,@build@,$build,;t t
20332 s,@build_cpu@,$build_cpu,;t t
20333 s,@build_vendor@,$build_vendor,;t t
20334 s,@build_os@,$build_os,;t t
20335 s,@host@,$host,;t t
20336 s,@host_cpu@,$host_cpu,;t t
20337 s,@host_vendor@,$host_vendor,;t t
20338 s,@host_os@,$host_os,;t t
20339 s,@EGREP@,$EGREP,;t t
20340 s,@LN_S@,$LN_S,;t t
20341 s,@ECHO@,$ECHO,;t t
20343 s,@ac_ct_AR@,$ac_ct_AR,;t t
20344 s,@RANLIB@,$RANLIB,;t t
20345 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20348 s,@CXXFLAGS@,$CXXFLAGS,;t t
20349 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20350 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20351 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20352 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20353 s,@CXXCPP@,$CXXCPP,;t t
20355 s,@FFLAGS@,$FFLAGS,;t t
20356 s,@ac_ct_F77@,$ac_ct_F77,;t t
20357 s,@LIBTOOL@,$LIBTOOL,;t t
20358 s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t
20359 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20360 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
20361 s,@GST_LIBS@,$GST_LIBS,;t t
20362 s,@GST_BASE_CFLAGS@,$GST_BASE_CFLAGS,;t t
20363 s,@GST_BASE_LIBS@,$GST_BASE_LIBS,;t t
20364 s,@GST_LIB_LDFLAGS@,$GST_LIB_LDFLAGS,;t t
20365 s,@GST_ALL_LDFLAGS@,$GST_ALL_LDFLAGS,;t t
20366 s,@GST_LT_LDFLAGS@,$GST_LT_LDFLAGS,;t t
20367 s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t
20368 s,@plugindir@,$plugindir,;t t
20369 s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
20370 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
20371 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20376 cat >>$CONFIG_STATUS <<\_ACEOF
20377 # Split the substitutions into bite-sized pieces for seds with
20378 # small command number limits, like on Digital OSF/1 and HP-UX.
20379 ac_max_sed_lines=48
20380 ac_sed_frag=1 # Number of current file.
20381 ac_beg=1 # First line for current file.
20382 ac_end=$ac_max_sed_lines # Line after last line for current file.
20385 while $ac_more_lines; do
20386 if test $ac_beg -gt 1; then
20387 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20389 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20391 if test ! -s $tmp/subs.frag; then
20392 ac_more_lines=false
20394 # The purpose of the label and of the branching condition is to
20395 # speed up the sed processing (if there are no `@' at all, there
20396 # is no need to browse any of the substitutions).
20397 # These are the two extra sed commands mentioned above.
20399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20400 if test -z "$ac_sed_cmds"; then
20401 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20403 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20405 ac_sed_frag=`expr $ac_sed_frag + 1`
20407 ac_end=`expr $ac_end + $ac_max_sed_lines`
20410 if test -z "$ac_sed_cmds"; then
20413 fi # test -n "$CONFIG_FILES"
20416 cat >>$CONFIG_STATUS <<\_ACEOF
20417 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20420 - | *:- | *:-:* ) # input from stdin
20422 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20424 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20426 * ) ac_file_in=$ac_file.in ;;
20429 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20430 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20432 X"$ac_file" : 'X\(//\)[^/]' \| \
20433 X"$ac_file" : 'X\(//\)$' \| \
20434 X"$ac_file" : 'X\(/\)' \| \
20435 . : '\(.\)' 2>/dev/null ||
20437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20439 /^X\(\/\/\)$/{ s//\1/; q; }
20440 /^X\(\/\).*/{ s//\1/; q; }
20442 { if $as_mkdir_p; then
20447 while test ! -d "$as_dir"; do
20448 as_dirs="$as_dir $as_dirs"
20449 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20451 X"$as_dir" : 'X\(//\)[^/]' \| \
20452 X"$as_dir" : 'X\(//\)$' \| \
20453 X"$as_dir" : 'X\(/\)' \| \
20454 . : '\(.\)' 2>/dev/null ||
20456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20458 /^X\(\/\/\)$/{ s//\1/; q; }
20459 /^X\(\/\).*/{ s//\1/; q; }
20462 test ! -n "$as_dirs" || mkdir $as_dirs
20463 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20464 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20465 { (exit 1); exit 1; }; }; }
20469 if test "$ac_dir" != .; then
20470 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20471 # A "../" for each directory in $ac_dir_suffix.
20472 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20474 ac_dir_suffix= ac_top_builddir=
20478 .) # No --srcdir option. We are building in place.
20480 if test -z "$ac_top_builddir"; then
20483 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20485 [\\/]* | ?:[\\/]* ) # Absolute path.
20486 ac_srcdir=$srcdir$ac_dir_suffix;
20487 ac_top_srcdir=$srcdir ;;
20488 *) # Relative path.
20489 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20490 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20493 # Do not use `cd foo && pwd` to compute absolute paths, because
20494 # the directories may not exist.
20496 .) ac_abs_builddir="$ac_dir";;
20499 .) ac_abs_builddir=`pwd`;;
20500 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20501 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20504 case $ac_abs_builddir in
20505 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20507 case ${ac_top_builddir}. in
20508 .) ac_abs_top_builddir=$ac_abs_builddir;;
20509 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20510 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20513 case $ac_abs_builddir in
20514 .) ac_abs_srcdir=$ac_srcdir;;
20517 .) ac_abs_srcdir=$ac_abs_builddir;;
20518 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20519 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20522 case $ac_abs_builddir in
20523 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20525 case $ac_top_srcdir in
20526 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20527 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20528 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20535 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20538 if test x"$ac_file" != x-; then
20539 { echo "$as_me:$LINENO: creating $ac_file" >&5
20540 echo "$as_me: creating $ac_file" >&6;}
20543 # Let's still pretend it is `configure' which instantiates (i.e., don't
20544 # use $as_me), people would be surprised to read:
20545 # /* config.h. Generated by config.status. */
20546 if test x"$ac_file" = x-; then
20549 configure_input="$ac_file. "
20551 configure_input=$configure_input"Generated from `echo $ac_file_in |
20552 sed 's,.*/,,'` by configure."
20554 # First look for the input files in the build tree, otherwise in the
20556 ac_file_inputs=`IFS=:
20557 for f in $ac_file_in; do
20559 -) echo $tmp/stdin ;;
20561 # Absolute (can't be DOS-style, as IFS=:)
20562 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20563 echo "$as_me: error: cannot find input file: $f" >&2;}
20564 { (exit 1); exit 1; }; }
20567 if test -f "$f"; then
20570 elif test -f "$srcdir/$f"; then
20575 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20576 echo "$as_me: error: cannot find input file: $f" >&2;}
20577 { (exit 1); exit 1; }; }
20580 done` || { (exit 1); exit 1; }
20582 cat >>$CONFIG_STATUS <<_ACEOF
20586 cat >>$CONFIG_STATUS <<\_ACEOF
20588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20589 s,@configure_input@,$configure_input,;t t
20590 s,@srcdir@,$ac_srcdir,;t t
20591 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20592 s,@top_srcdir@,$ac_top_srcdir,;t t
20593 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20594 s,@builddir@,$ac_builddir,;t t
20595 s,@abs_builddir@,$ac_abs_builddir,;t t
20596 s,@top_builddir@,$ac_top_builddir,;t t
20597 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20598 s,@INSTALL@,$ac_INSTALL,;t t
20599 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20601 if test x"$ac_file" != x-; then
20602 mv $tmp/out $ac_file
20610 cat >>$CONFIG_STATUS <<\_ACEOF
20613 # CONFIG_HEADER section.
20616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20619 # ac_d sets the value in "#define NAME VALUE" lines.
20620 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20621 ac_dB='[ ].*$,\1#\2'
20624 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20625 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20626 ac_uB='$,\1#\2define\3'
20630 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20633 - | *:- | *:-:* ) # input from stdin
20635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20639 * ) ac_file_in=$ac_file.in ;;
20642 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20643 echo "$as_me: creating $ac_file" >&6;}
20645 # First look for the input files in the build tree, otherwise in the
20647 ac_file_inputs=`IFS=:
20648 for f in $ac_file_in; do
20650 -) echo $tmp/stdin ;;
20652 # Absolute (can't be DOS-style, as IFS=:)
20653 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20654 echo "$as_me: error: cannot find input file: $f" >&2;}
20655 { (exit 1); exit 1; }; }
20656 # Do quote $f, to prevent DOS paths from being IFS'd.
20659 if test -f "$f"; then
20662 elif test -f "$srcdir/$f"; then
20667 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20668 echo "$as_me: error: cannot find input file: $f" >&2;}
20669 { (exit 1); exit 1; }; }
20672 done` || { (exit 1); exit 1; }
20673 # Remove the trailing spaces.
20674 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20678 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20679 # `conftest.undefs', that substitutes the proper values into
20680 # config.h.in to produce config.h. The first handles `#define'
20681 # templates, and the second `#undef' templates.
20682 # And first: Protect against being on the right side of a sed subst in
20683 # config.status. Protect against being in an unquoted here document
20684 # in config.status.
20685 rm -f conftest.defines conftest.undefs
20686 # Using a here document instead of a string reduces the quoting nightmare.
20687 # Putting comments in sed scripts is not portable.
20689 # `end' is used to avoid that the second main sed command (meant for
20690 # 0-ary CPP macros) applies to n-ary macro definitions.
20691 # See the Autoconf documentation for `clear'.
20692 cat >confdef2sed.sed <<\_ACEOF
20697 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20699 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20702 # If some macros were called several times there might be several times
20703 # the same #defines, which is useless. Nevertheless, we may not want to
20704 # sort them, since we want the *last* AC-DEFINE to be honored.
20705 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20706 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20707 rm -f confdef2sed.sed
20709 # This sed command replaces #undef with comments. This is necessary, for
20710 # example, in the case of _POSIX_SOURCE, which is predefined and required
20711 # on some systems where configure will not decide to define it.
20712 cat >>conftest.undefs <<\_ACEOF
20713 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20716 # Break up conftest.defines because some shells have a limit on the size
20717 # of here documents, and old seds have small limits too (100 cmds).
20718 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20719 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20720 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20721 echo ' :' >>$CONFIG_STATUS
20722 rm -f conftest.tail
20723 while grep . conftest.defines >/dev/null
20725 # Write a limited-size here document to $tmp/defines.sed.
20726 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20727 # Speed up: don't consider the non `#define' lines.
20728 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20729 # Work around the forget-to-reset-the-flag bug.
20730 echo 't clr' >>$CONFIG_STATUS
20731 echo ': clr' >>$CONFIG_STATUS
20732 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20734 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20736 mv $tmp/out $tmp/in
20738 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20739 rm -f conftest.defines
20740 mv conftest.tail conftest.defines
20742 rm -f conftest.defines
20743 echo ' fi # grep' >>$CONFIG_STATUS
20744 echo >>$CONFIG_STATUS
20746 # Break up conftest.undefs because some shells have a limit on the size
20747 # of here documents, and old seds have small limits too (100 cmds).
20748 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20749 rm -f conftest.tail
20750 while grep . conftest.undefs >/dev/null
20752 # Write a limited-size here document to $tmp/undefs.sed.
20753 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20754 # Speed up: don't consider the non `#undef'
20755 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20756 # Work around the forget-to-reset-the-flag bug.
20757 echo 't clr' >>$CONFIG_STATUS
20758 echo ': clr' >>$CONFIG_STATUS
20759 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20761 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20763 mv $tmp/out $tmp/in
20765 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20766 rm -f conftest.undefs
20767 mv conftest.tail conftest.undefs
20769 rm -f conftest.undefs
20771 cat >>$CONFIG_STATUS <<\_ACEOF
20772 # Let's still pretend it is `configure' which instantiates (i.e., don't
20773 # use $as_me), people would be surprised to read:
20774 # /* config.h. Generated by config.status. */
20775 if test x"$ac_file" = x-; then
20776 echo "/* Generated by configure. */" >$tmp/config.h
20778 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20780 cat $tmp/in >>$tmp/config.h
20782 if test x"$ac_file" != x-; then
20783 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20784 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20785 echo "$as_me: $ac_file is unchanged" >&6;}
20787 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20789 X"$ac_file" : 'X\(//\)[^/]' \| \
20790 X"$ac_file" : 'X\(//\)$' \| \
20791 X"$ac_file" : 'X\(/\)' \| \
20792 . : '\(.\)' 2>/dev/null ||
20794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20796 /^X\(\/\/\)$/{ s//\1/; q; }
20797 /^X\(\/\).*/{ s//\1/; q; }
20799 { if $as_mkdir_p; then
20804 while test ! -d "$as_dir"; do
20805 as_dirs="$as_dir $as_dirs"
20806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20808 X"$as_dir" : 'X\(//\)[^/]' \| \
20809 X"$as_dir" : 'X\(//\)$' \| \
20810 X"$as_dir" : 'X\(/\)' \| \
20811 . : '\(.\)' 2>/dev/null ||
20813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20815 /^X\(\/\/\)$/{ s//\1/; q; }
20816 /^X\(\/\).*/{ s//\1/; q; }
20819 test ! -n "$as_dirs" || mkdir $as_dirs
20820 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20821 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20822 { (exit 1); exit 1; }; }; }
20825 mv $tmp/config.h $ac_file
20829 rm -f $tmp/config.h
20831 # Compute $ac_file's index in $config_headers.
20833 for _am_header in $config_headers :; do
20834 case $_am_header in
20835 $ac_file | $ac_file:* )
20838 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20841 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20842 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20843 X$ac_file : 'X\(//\)[^/]' \| \
20844 X$ac_file : 'X\(//\)$' \| \
20845 X$ac_file : 'X\(/\)' \| \
20846 . : '\(.\)' 2>/dev/null ||
20848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20850 /^X\(\/\/\)$/{ s//\1/; q; }
20851 /^X\(\/\).*/{ s//\1/; q; }
20852 s/.*/./; q'`/stamp-h$_am_stamp_count
20855 cat >>$CONFIG_STATUS <<\_ACEOF
20858 # CONFIG_COMMANDS section.
20860 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20861 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20862 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20863 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20864 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20865 X"$ac_dest" : 'X\(//\)[^/]' \| \
20866 X"$ac_dest" : 'X\(//\)$' \| \
20867 X"$ac_dest" : 'X\(/\)' \| \
20868 . : '\(.\)' 2>/dev/null ||
20870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20872 /^X\(\/\/\)$/{ s//\1/; q; }
20873 /^X\(\/\).*/{ s//\1/; q; }
20875 { if $as_mkdir_p; then
20880 while test ! -d "$as_dir"; do
20881 as_dirs="$as_dir $as_dirs"
20882 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20884 X"$as_dir" : 'X\(//\)[^/]' \| \
20885 X"$as_dir" : 'X\(//\)$' \| \
20886 X"$as_dir" : 'X\(/\)' \| \
20887 . : '\(.\)' 2>/dev/null ||
20889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20891 /^X\(\/\/\)$/{ s//\1/; q; }
20892 /^X\(\/\).*/{ s//\1/; q; }
20895 test ! -n "$as_dirs" || mkdir $as_dirs
20896 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20897 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20898 { (exit 1); exit 1; }; }; }
20902 if test "$ac_dir" != .; then
20903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20904 # A "../" for each directory in $ac_dir_suffix.
20905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20907 ac_dir_suffix= ac_top_builddir=
20911 .) # No --srcdir option. We are building in place.
20913 if test -z "$ac_top_builddir"; then
20916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20918 [\\/]* | ?:[\\/]* ) # Absolute path.
20919 ac_srcdir=$srcdir$ac_dir_suffix;
20920 ac_top_srcdir=$srcdir ;;
20921 *) # Relative path.
20922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20926 # Do not use `cd foo && pwd` to compute absolute paths, because
20927 # the directories may not exist.
20929 .) ac_abs_builddir="$ac_dir";;
20932 .) ac_abs_builddir=`pwd`;;
20933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20937 case $ac_abs_builddir in
20938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20940 case ${ac_top_builddir}. in
20941 .) ac_abs_top_builddir=$ac_abs_builddir;;
20942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20946 case $ac_abs_builddir in
20947 .) ac_abs_srcdir=$ac_srcdir;;
20950 .) ac_abs_srcdir=$ac_abs_builddir;;
20951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20955 case $ac_abs_builddir in
20956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20958 case $ac_top_srcdir in
20959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20966 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20967 echo "$as_me: executing $ac_dest commands" >&6;}
20969 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20970 # Strip MF so we end up with the name of the file.
20971 mf=`echo "$mf" | sed -e 's/:.*$//'`
20972 # Check whether this is an Automake generated Makefile or not.
20973 # We used to match only the files named `Makefile.in', but
20974 # some people rename them; so instead we look at the file content.
20975 # Grep'ing the first line is not enough: some people post-process
20976 # each Makefile.in and add a new line on top of each file to say so.
20977 # So let's grep whole file.
20978 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20979 dirpart=`(dirname "$mf") 2>/dev/null ||
20980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20981 X"$mf" : 'X\(//\)[^/]' \| \
20982 X"$mf" : 'X\(//\)$' \| \
20983 X"$mf" : 'X\(/\)' \| \
20984 . : '\(.\)' 2>/dev/null ||
20986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20988 /^X\(\/\/\)$/{ s//\1/; q; }
20989 /^X\(\/\).*/{ s//\1/; q; }
20994 # Extract the definition of DEPDIR, am__include, and am__quote
20995 # from the Makefile without running `make'.
20996 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20997 test -z "$DEPDIR" && continue
20998 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20999 test -z "am__include" && continue
21000 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21001 # When using ansi2knr, U may be empty or an underscore; expand it
21002 U=`sed -n 's/^U = //p' < "$mf"`
21003 # Find all dependency output files, they are included files with
21004 # $(DEPDIR) in their names. We invoke sed twice because it is the
21005 # simplest approach to changing $(DEPDIR) to its actual value in the
21007 for file in `sed -n "
21008 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21009 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21010 # Make sure the directory exists.
21011 test -f "$dirpart/$file" && continue
21012 fdir=`(dirname "$file") 2>/dev/null ||
21013 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21014 X"$file" : 'X\(//\)[^/]' \| \
21015 X"$file" : 'X\(//\)$' \| \
21016 X"$file" : 'X\(/\)' \| \
21017 . : '\(.\)' 2>/dev/null ||
21019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21021 /^X\(\/\/\)$/{ s//\1/; q; }
21022 /^X\(\/\).*/{ s//\1/; q; }
21024 { if $as_mkdir_p; then
21025 mkdir -p $dirpart/$fdir
21027 as_dir=$dirpart/$fdir
21029 while test ! -d "$as_dir"; do
21030 as_dirs="$as_dir $as_dirs"
21031 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21033 X"$as_dir" : 'X\(//\)[^/]' \| \
21034 X"$as_dir" : 'X\(//\)$' \| \
21035 X"$as_dir" : 'X\(/\)' \| \
21036 . : '\(.\)' 2>/dev/null ||
21038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21040 /^X\(\/\/\)$/{ s//\1/; q; }
21041 /^X\(\/\).*/{ s//\1/; q; }
21044 test ! -n "$as_dirs" || mkdir $as_dirs
21045 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21046 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21047 { (exit 1); exit 1; }; }; }
21049 # echo "creating $dirpart/$file"
21050 echo '# dummy' > "$dirpart/$file"
21058 cat >>$CONFIG_STATUS <<\_ACEOF
21060 { (exit 0); exit 0; }
21062 chmod +x $CONFIG_STATUS
21063 ac_clean_files=$ac_clean_files_save
21066 # configure is writing to config.log, and then calls config.status.
21067 # config.status does its own redirection, appending to config.log.
21068 # Unfortunately, on DOS this fails, as config.log is still kept open
21069 # by configure, so config.status won't be able to write to it; its
21070 # output is simply discarded. So we exec the FD to /dev/null,
21071 # effectively closing config.log, so it can be properly (re)opened and
21072 # appended to by config.status. When coming back to configure, we
21073 # need to make the FD available again.
21074 if test "$no_create" != yes; then
21076 ac_config_status_args=
21077 test "$silent" = yes &&
21078 ac_config_status_args="$ac_config_status_args --quiet"
21080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21083 # would make configure fail if this is the last instruction.
21084 $ac_cs_success || { (exit 1); exit 1; }