2 # From configure.in Revision: 1.54 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file="src/nss_main.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RENAME_TRUE RENAME_FALSE LIBVER OS LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures this package to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 --target=TARGET configure for building compilers for TARGET [HOST]
1022 if test -n "$ac_init_help"; then
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --enable-maintainer-mode enable make rules and dependencies not useful
1030 (and sometimes confusing) to the casual installer
1031 --disable-dependency-tracking Speeds up one-time builds
1032 --enable-dependency-tracking Do not reject slow dependency extractors
1033 --enable-static[=PKGS]
1034 build static libraries [default=no]
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-fast-install[=PKGS]
1038 optimize for fast installation [default=yes]
1039 --disable-libtool-lock avoid locking (might break parallel builds)
1040 --enable-debug Enable debug (see DEBUGGING)
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-mysql=DIR Location of your MySQL installation
1052 Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1072 if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1079 if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 ac_dir_suffix= ac_top_builddir=
1088 .) # No --srcdir option. We are building in place.
1090 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1106 .) ac_abs_builddir="$ac_dir";;
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1153 $ac_configure --help
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1176 It was created by $as_me, which was
1177 generated by GNU Autoconf 2.59. Invocation command line was
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_must_keep_next=false
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 -* ) ac_must_keep_next=true ;;
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log. We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close' the trap.
1283 trap 'exit_status=$?
1284 # Save into config.log some information that might help in debugging.
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1294 # The following way of writing the cache mishandles newlines in values,
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1317 for ac_var in $ac_subst_vars
1319 eval ac_val=$`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1324 if test -n "$ac_subst_files"; then
1331 for ac_var in $ac_subst_files
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -s confdefs.h; then
1346 sed "/^$/d" confdefs.h | sort
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1353 rm -f core *.core &&
1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 # Predefined preprocessor variables.
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's/^/| /' "$ac_site_file" >&5
1412 if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1429 # Check that the precious variables saved in the cache have kept the same
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453 echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455 echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505 for ac_dir in aux $srcdir/aux; do
1506 if test -f $ac_dir/install-sh; then
1508 ac_install_sh="$ac_aux_dir/install-sh -c"
1510 elif test -f $ac_dir/install.sh; then
1512 ac_install_sh="$ac_aux_dir/install.sh -c"
1514 elif test -f $ac_dir/shtool; then
1516 ac_install_sh="$ac_aux_dir/shtool install -c"
1520 if test -z "$ac_aux_dir"; then
1521 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1522 echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1523 { (exit 1); exit 1; }; }
1525 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1526 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1527 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535 { (exit 1); exit 1; }; }
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544 ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548 { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570 ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585 echo "$as_me:$LINENO: checking target system type" >&5
1586 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1587 if test "${ac_cv_target+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 ac_cv_target_alias=$target_alias
1591 test "x$ac_cv_target_alias" = "x" &&
1592 ac_cv_target_alias=$ac_cv_host_alias
1593 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1595 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1599 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1600 echo "${ECHO_T}$ac_cv_target" >&6
1601 target=$ac_cv_target
1602 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607 # The aliases save the names the user supplied, while $host etc.
1608 # will get canonicalized.
1609 test -n "$target_alias" &&
1610 test "$program_prefix$program_suffix$program_transform_name" = \
1612 program_prefix=${target_alias}-
1614 am__api_version="1.6"
1615 # Find a good install program. We prefer a C program (faster),
1616 # so one script is as good as another. But avoid the broken or
1617 # incompatible versions:
1618 # SysV /etc/install, /usr/sbin/install
1619 # SunOS /usr/etc/install
1620 # IRIX /sbin/install
1622 # AmigaOS /C/install, which installs bootblocks on floppy discs
1623 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1626 # OS/2's system install, which has a completely different semantic
1627 # ./install, which can be erroneously created by make from ./install.sh.
1628 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1629 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1630 if test -z "$INSTALL"; then
1631 if test "${ac_cv_path_install+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 # Account for people who put trailing slashes in PATH elements.
1641 ./ | .// | /cC/* | \
1642 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1643 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1646 # OSF1 and SCO ODT 3.0 have their own names for install.
1647 # Don't use installbsd from OSF since it installs stuff as root
1649 for ac_prog in ginstall scoinst install; do
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1652 if test $ac_prog = install &&
1653 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654 # AIX install. It has an incompatible calling convention.
1656 elif test $ac_prog = install &&
1657 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658 # program-specific install script used by HP pwplus--don't use.
1661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1673 if test "${ac_cv_path_install+set}" = set; then
1674 INSTALL=$ac_cv_path_install
1676 # As a last resort, use the slow shell script. We don't cache a
1677 # path for INSTALL within a source directory, because that will
1678 # break other packages using the cache if that directory is
1679 # removed, or if the path is relative.
1680 INSTALL=$ac_install_sh
1683 echo "$as_me:$LINENO: result: $INSTALL" >&5
1684 echo "${ECHO_T}$INSTALL" >&6
1686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1687 # It thinks the first close brace ends the variable substitution.
1688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1694 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1695 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1698 echo timestamp > conftest.file
1699 # Do `set' in a subshell so we don't clobber the current shell's
1700 # arguments. Must try -L first in case configure is actually a
1701 # symlink; some systems play weird games with the mod time of symlinks
1702 # (eg FreeBSD returns the mod time of the symlink's containing
1705 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1706 if test "$*" = "X"; then
1708 set X `ls -t $srcdir/configure conftest.file`
1711 if test "$*" != "X $srcdir/configure conftest.file" \
1712 && test "$*" != "X conftest.file $srcdir/configure"; then
1714 # If neither matched, then we have a broken ls. This can happen
1715 # if, for instance, CONFIG_SHELL is bash and it inherits a
1716 # broken ls alias from the environment. This has actually
1717 # happened. Such a system could not be considered "sane".
1718 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1719 alias in your environment" >&5
1720 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1721 alias in your environment" >&2;}
1722 { (exit 1); exit 1; }; }
1725 test "$2" = conftest.file
1731 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1732 Check your system clock" >&5
1733 echo "$as_me: error: newly created file is older than distributed files!
1734 Check your system clock" >&2;}
1735 { (exit 1); exit 1; }; }
1737 echo "$as_me:$LINENO: result: yes" >&5
1738 echo "${ECHO_T}yes" >&6
1739 test "$program_prefix" != NONE &&
1740 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1741 # Use a double $ so make ignores it.
1742 test "$program_suffix" != NONE &&
1743 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1744 # Double any \ or $. echo might interpret backslashes.
1745 # By default was `s,x,x', remove it if useless.
1746 cat <<\_ACEOF >conftest.sed
1747 s/[\\$]/&&/g;s/;s,x,x,$//
1749 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1753 # expand $ac_aux_dir to an absolute path
1754 am_aux_dir=`cd $ac_aux_dir && pwd`
1756 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1757 # Use eval to expand $SHELL
1758 if eval "$MISSING --run true"; then
1759 am_missing_run="$MISSING --run "
1762 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1763 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1766 for ac_prog in gawk mawk nawk awk
1768 # Extract the first word of "$ac_prog", so it can be a program name with args.
1769 set dummy $ac_prog; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_AWK+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$AWK"; then
1776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_AWK="$ac_prog"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 if test -n "$AWK"; then
1796 echo "$as_me:$LINENO: result: $AWK" >&5
1797 echo "${ECHO_T}$AWK" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1803 test -n "$AWK" && break
1806 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1807 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1808 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1809 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 cat >conftest.make <<\_ACEOF
1814 @echo 'ac_maketemp="$(MAKE)"'
1816 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1817 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1818 if test -n "$ac_maketemp"; then
1819 eval ac_cv_prog_make_${ac_make}_set=yes
1821 eval ac_cv_prog_make_${ac_make}_set=no
1825 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1826 echo "$as_me:$LINENO: result: yes" >&5
1827 echo "${ECHO_T}yes" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 SET_MAKE="MAKE=${MAKE-make}"
1835 # test to see if srcdir already configured
1836 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1837 test -f $srcdir/config.status; then
1838 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1839 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1840 { (exit 1); exit 1; }; }
1843 # Define the identity of the package.
1844 PACKAGE=libnss-mysql
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE "$PACKAGE"
1853 cat >>confdefs.h <<_ACEOF
1854 #define VERSION "$VERSION"
1857 # Some tools Automake needs.
1859 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1862 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1865 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1868 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1871 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1874 AMTAR=${AMTAR-"${am_missing_run}tar"}
1876 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1878 # Installed binaries are usually stripped using `strip' when the user
1879 # run `make install-strip'. However `strip' might not be the right
1880 # tool to use in cross-compilation environments, therefore Automake
1881 # will honor the `STRIP' environment variable to overrule this program.
1882 if test "$cross_compiling" != no; then
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1885 set dummy ${ac_tool_prefix}strip; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_STRIP+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 if test -n "$STRIP"; then
1892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 STRIP=$ac_cv_prog_STRIP
1911 if test -n "$STRIP"; then
1912 echo "$as_me:$LINENO: result: $STRIP" >&5
1913 echo "${ECHO_T}$STRIP" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1920 if test -z "$ac_cv_prog_STRIP"; then
1922 # Extract the first word of "strip", so it can be a program name with args.
1923 set dummy strip; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$ac_ct_STRIP"; then
1930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_ac_ct_STRIP="strip"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1949 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1950 if test -n "$ac_ct_STRIP"; then
1951 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1952 echo "${ECHO_T}$ac_ct_STRIP" >&6
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1960 STRIP="$ac_cv_prog_STRIP"
1964 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1966 # We need awk for the "check" target. The system "awk" is bad on
1971 # Add the stamp file to the list of files AC keeps track of,
1972 # along with our hook.
1973 ac_config_headers="$ac_config_headers config.h"
1977 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1978 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1979 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1980 if test "${enable_maintainer_mode+set}" = set; then
1981 enableval="$enable_maintainer_mode"
1982 USE_MAINTAINER_MODE=$enableval
1984 USE_MAINTAINER_MODE=no
1986 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1987 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1990 if test $USE_MAINTAINER_MODE = yes; then
1991 MAINTAINER_MODE_TRUE=
1992 MAINTAINER_MODE_FALSE='#'
1994 MAINTAINER_MODE_TRUE='#'
1995 MAINTAINER_MODE_FALSE=
1998 MAINT=$MAINTAINER_MODE_TRUE
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$ac_cv_prog_CC"; then
2046 # Extract the first word of "gcc", so it can be a program name with args.
2047 set dummy gcc; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_CC="gcc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2086 if test -z "$CC"; then
2087 if test -n "$ac_tool_prefix"; then
2088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2089 set dummy ${ac_tool_prefix}cc; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$CC"; then
2096 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_CC="${ac_tool_prefix}cc"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 if test -n "$CC"; then
2116 echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2124 if test -z "$ac_cv_prog_CC"; then
2126 # Extract the first word of "cc", so it can be a program name with args.
2127 set dummy cc; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test -n "$ac_ct_CC"; then
2134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_prog_ac_ct_CC="cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2153 if test -n "$ac_ct_CC"; then
2154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2155 echo "${ECHO_T}$ac_ct_CC" >&6
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2167 if test -z "$CC"; then
2168 # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2187 ac_prog_rejected=yes
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2201 if test $# != 0; then
2202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 if test -n "$CC"; then
2213 echo "$as_me:$LINENO: result: $CC" >&5
2214 echo "${ECHO_T}$CC" >&6
2216 echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2221 if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 if test -n "$CC"; then
2253 echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6
2256 echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2260 test -n "$CC" && break
2263 if test -z "$CC"; then
2267 # Extract the first word of "$ac_prog", so it can be a program name with args.
2268 set dummy $ac_prog; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_ac_ct_CC="$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2294 if test -n "$ac_ct_CC"; then
2295 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2296 echo "${ECHO_T}$ac_ct_CC" >&6
2298 echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2302 test -n "$ac_ct_CC" && break
2311 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }
2317 # Provide some information about the compiler.
2318 echo "$as_me:$LINENO:" \
2319 "checking for C compiler version" >&5
2320 ac_compiler=`set X $ac_compile; echo $2`
2321 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2322 (eval $ac_compiler --version </dev/null >&5) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2327 (eval $ac_compiler -v </dev/null >&5) 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2332 (eval $ac_compiler -V </dev/null >&5) 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2337 cat >conftest.$ac_ext <<_ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2352 ac_clean_files_save=$ac_clean_files
2353 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2354 # Try to create an executable without -o first, disregard a.out.
2355 # It will help us diagnose broken compilers, and finding out an intuition
2357 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2358 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2359 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2360 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2361 (eval $ac_link_default) 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; then
2365 # Find the output, starting from the most likely. This scheme is
2366 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2369 # Be careful to initialize this variable, since it used to be cached.
2370 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 # b.out is created by i960 compilers.
2373 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2375 test -f "$ac_file" || continue
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2380 # This is the source file.
2383 # We found the default executable, but exeext='' is most
2387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388 # FIXME: I believe we export ac_cv_exeext for Libtool,
2389 # but it would be cool to find out if it's true. Does anybody
2390 # maintain Libtool? --akim.
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2401 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: C compiler cannot create executables
2404 See \`config.log' for more details." >&2;}
2405 { (exit 77); exit 77; }; }
2408 ac_exeext=$ac_cv_exeext
2409 echo "$as_me:$LINENO: result: $ac_file" >&5
2410 echo "${ECHO_T}$ac_file" >&6
2412 # Check the compiler produces executables we can run. If not, either
2413 # the compiler is broken, or we cross compile.
2414 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2415 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2416 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2417 # If not cross compiling, check that we can run a simple program.
2418 if test "$cross_compiling" != yes; then
2419 if { ac_try='./$ac_file'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2427 if test "$cross_compiling" = maybe; then
2430 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2431 If you meant to cross compile, use \`--host'.
2432 See \`config.log' for more details." >&5
2433 echo "$as_me: error: cannot run C compiled programs.
2434 If you meant to cross compile, use \`--host'.
2435 See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2440 echo "$as_me:$LINENO: result: yes" >&5
2441 echo "${ECHO_T}yes" >&6
2443 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2444 ac_clean_files=$ac_clean_files_save
2445 # Check the compiler produces executables we can run. If not, either
2446 # the compiler is broken, or we cross compile.
2447 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2448 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2449 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2450 echo "${ECHO_T}$cross_compiling" >&6
2452 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2453 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2455 (eval $ac_link) 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2460 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2461 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 for ac_file in conftest.exe conftest conftest.*; do
2464 test -f "$ac_file" || continue
2466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2477 See \`config.log' for more details." >&2;}
2478 { (exit 1); exit 1; }; }
2481 rm -f conftest$ac_cv_exeext
2482 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2483 echo "${ECHO_T}$ac_cv_exeext" >&6
2485 rm -f conftest.$ac_ext
2486 EXEEXT=$ac_cv_exeext
2488 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2489 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2490 if test "${ac_cv_objext+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2508 rm -f conftest.o conftest.obj
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510 (eval $ac_compile) 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6
2536 OBJEXT=$ac_cv_objext
2538 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1 >conftest.err
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2594 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2595 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2596 GCC=`test $ac_compiler_gnu = yes && echo yes`
2597 ac_test_CFLAGS=${CFLAGS+set}
2598 ac_save_CFLAGS=$CFLAGS
2600 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2601 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2602 if test "${ac_cv_prog_cc_g+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 cat >conftest.$ac_ext <<_ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>conftest.er1
2624 grep -v '^ *+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag"
2630 || test ! -s conftest.err'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2653 if test "$ac_test_CFLAGS" = set; then
2654 CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656 if test "$GCC" = yes; then
2662 if test "$GCC" = yes; then
2668 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2669 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2670 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 ac_cv_prog_cc_stdc=no
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2699 s = g (p, va_arg (v,int));
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2705 function prototypes and stuff, but not '\xHH' hex character constants.
2706 These don't provoke an error unfortunately, instead are silently treated
2707 as 'x'. The following induces an error, until -std1 is added to get
2708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2709 array size at least. It's necessary to write '\x00'==0 to get something
2710 that's true only with -std1. */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2727 # Don't try gcc -ansi; that turns off useful extensions and
2728 # breaks some systems' header files.
2729 # AIX -qlanglvl=ansi
2730 # Ultrix and OSF/1 -std1
2731 # HP-UX 10.20 and later -Ae
2732 # HP-UX older versions -Aa -D_HPUX_SOURCE
2733 # SVR4 -Xc -D__EXTENSIONS__
2734 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 CC="$ac_save_CC $ac_arg"
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_cv_prog_cc_stdc=$ac_arg
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2766 rm -f conftest.err conftest.$ac_objext
2768 rm -f conftest.$ac_ext conftest.$ac_objext
2773 case "x$ac_cv_prog_cc_stdc" in
2775 echo "$as_me:$LINENO: result: none needed" >&5
2776 echo "${ECHO_T}none needed" >&6 ;;
2778 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2779 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2780 CC="$CC $ac_cv_prog_cc_stdc" ;;
2783 # Some people use a C++ compiler to compile C. Since we use `exit',
2784 # in C++ we need to declare it. In case someone uses the same compiler
2785 # for both compiling C and C++ we need to have the C++ compiler decide
2786 # the declaration of exit, since it's the most demanding environment.
2787 cat >conftest.$ac_ext <<_ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>conftest.er1
2796 grep -v '^ *+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_c_werror_flag"
2802 || test ! -s conftest.err'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 for ac_declaration in \
2816 'extern "C" void std::exit (int) throw (); using std::exit;' \
2817 'extern "C" void std::exit (int); using std::exit;' \
2818 'extern "C" void exit (int) throw ();' \
2819 'extern "C" void exit (int);' \
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -z "$ac_c_werror_flag"
2848 || test ! -s conftest.err'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>conftest.er1
2887 grep -v '^ *+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -z "$ac_c_werror_flag"
2893 || test ! -s conftest.err'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; } &&
2899 { ac_try='test -s conftest.$ac_objext'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 if test -n "$ac_declaration"; then
2915 echo '#ifdef __cplusplus' >>confdefs.h
2916 echo $ac_declaration >>confdefs.h
2917 echo '#endif' >>confdefs.h
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 rm -f .deps 2>/dev/null
2932 mkdir .deps 2>/dev/null
2933 if test -d .deps; then
2936 # MS-DOS does not allow filenames that begin with a dot.
2939 rmdir .deps 2>/dev/null
2942 ac_config_commands="$ac_config_commands depfiles"
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2950 # If we don't find an include directive, just comment out the code.
2951 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2952 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2956 # First try GNU make style include.
2957 echo "include confinc" > confmf
2958 # We grep out `Entering directory' and `Leaving directory'
2959 # messages which can occur if `w' ends up in MAKEFLAGS.
2960 # In particular we don't look at `^make:' because GNU make might
2961 # be invoked under some other name (usually "gmake"), in which
2962 # case it prints its new name instead of `make'.
2963 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2968 # Now try BSD make style include.
2969 if test "$am__include" = "#"; then
2970 echo '.include "confinc"' > confmf
2971 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2972 am__include=.include
2979 echo "$as_me:$LINENO: result: $_am_result" >&5
2980 echo "${ECHO_T}$_am_result" >&6
2981 rm -f confinc confmf
2983 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2984 if test "${enable_dependency_tracking+set}" = set; then
2985 enableval="$enable_dependency_tracking"
2988 if test "x$enable_dependency_tracking" != xno; then
2989 am_depcomp="$ac_aux_dir/depcomp"
2994 if test "x$enable_dependency_tracking" != xno; then
3005 depcc="$CC" am_compiler_list=
3007 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3008 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3009 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3013 # We make a subdir and do the tests there. Otherwise we can end up
3014 # making bogus files that we don't know about and never remove. For
3015 # instance it was reported that on HP-UX the gcc test will end up
3016 # making a dummy file named `D' -- because `-MD' means `put the output
3019 # Copy depcomp to subdir because otherwise we won't find it if we're
3020 # using a relative directory.
3021 cp "$am_depcomp" conftest.dir
3024 am_cv_CC_dependencies_compiler_type=none
3025 if test "$am_compiler_list" = ""; then
3026 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3028 for depmode in $am_compiler_list; do
3029 # We need to recreate these files for each test, as the compiler may
3030 # overwrite some of them when testing with obscure command lines.
3031 # This happens at least with the AIX C compiler.
3032 echo '#include "conftest.h"' > conftest.c
3033 echo 'int i;' > conftest.h
3034 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3038 # after this tag, mechanisms are not by side-effect, so they'll
3039 # only be used when explicitly requested
3040 if test "x$enable_dependency_tracking" = xyes; then
3048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3049 # mode. It turns out that the SunPro C++ compiler does not properly
3050 # handle `-M -o', and we need to detect this.
3051 if depmode=$depmode \
3052 source=conftest.c object=conftest.o \
3053 depfile=conftest.Po tmpdepfile=conftest.TPo \
3054 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3055 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3057 am_cv_CC_dependencies_compiler_type=$depmode
3065 am_cv_CC_dependencies_compiler_type=none
3069 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3070 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3075 # Check whether --enable-static or --disable-static was given.
3076 if test "${enable_static+set}" = set; then
3077 enableval="$enable_static"
3078 p=${PACKAGE-default}
3080 yes) enable_static=yes ;;
3081 no) enable_static=no ;;
3084 # Look at the argument we got. We use all the common list separators.
3085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3086 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3100 # Check whether --enable-shared or --disable-shared was given.
3101 if test "${enable_shared+set}" = set; then
3102 enableval="$enable_shared"
3103 p=${PACKAGE-default}
3105 yes) enable_shared=yes ;;
3106 no) enable_shared=no ;;
3109 # Look at the argument we got. We use all the common list separators.
3110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3111 for pkg in $enableval; do
3113 if test "X$pkg" = "X$p"; then
3124 # Check whether --enable-fast-install or --disable-fast-install was given.
3125 if test "${enable_fast_install+set}" = set; then
3126 enableval="$enable_fast_install"
3127 p=${PACKAGE-default}
3129 yes) enable_fast_install=yes ;;
3130 no) enable_fast_install=no ;;
3132 enable_fast_install=no
3133 # Look at the argument we got. We use all the common list separators.
3134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3135 for pkg in $enableval; do
3137 if test "X$pkg" = "X$p"; then
3138 enable_fast_install=yes
3145 enable_fast_install=yes
3148 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3149 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3150 if test "${lt_cv_path_SED+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 # Loop through the user's path and test for sed and gsed.
3154 # Then use that list of sed's as ones to test for truncation.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for lt_ac_prog in sed gsed; do
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3163 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3170 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3171 # along with /bin/sed that truncates output.
3172 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3173 test ! -f $lt_ac_sed && break
3174 cat /dev/null > conftest.in
3176 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3177 # Check for GNU sed and select it if it is found.
3178 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3179 lt_cv_path_SED=$lt_ac_sed
3183 cat conftest.in conftest.in >conftest.tmp
3184 mv conftest.tmp conftest.in
3185 cp conftest.in conftest.nl
3187 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3188 cmp -s conftest.out conftest.nl || break
3189 # 10000 chars as input seems more than enough
3190 test $lt_ac_count -gt 10 && break
3191 lt_ac_count=`expr $lt_ac_count + 1`
3192 if test $lt_ac_count -gt $lt_ac_max; then
3193 lt_ac_max=$lt_ac_count
3194 lt_cv_path_SED=$lt_ac_sed
3202 echo "$as_me:$LINENO: result: $SED" >&5
3203 echo "${ECHO_T}$SED" >&6
3205 echo "$as_me:$LINENO: checking for egrep" >&5
3206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3207 if test "${ac_cv_prog_egrep+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3211 then ac_cv_prog_egrep='grep -E'
3212 else ac_cv_prog_egrep='egrep'
3215 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3216 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3217 EGREP=$ac_cv_prog_egrep
3221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3222 if test "${with_gnu_ld+set}" = set; then
3223 withval="$with_gnu_ld"
3224 test "$withval" = no || with_gnu_ld=yes
3229 if test "$GCC" = yes; then
3230 # Check if gcc -print-prog-name=ld gives a path.
3231 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3235 # gcc leaves a trailing carriage return which upsets mingw
3236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3241 # Accept absolute paths.
3243 re_direlt='/[^/][^/]*/\.\./'
3244 # Canonicalize the pathname of ld
3245 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3247 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3249 test -z "$LD" && LD="$ac_prog"
3252 # If it fails, then pretend we aren't using GCC.
3256 # If it is relative, then search for the first ld in PATH.
3260 elif test "$with_gnu_ld" = yes; then
3261 echo "$as_me:$LINENO: checking for GNU ld" >&5
3262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3264 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3267 if test "${lt_cv_path_LD+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 if test -z "$LD"; then
3271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3272 for ac_dir in $PATH; do
3274 test -z "$ac_dir" && ac_dir=.
3275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3276 lt_cv_path_LD="$ac_dir/$ac_prog"
3277 # Check to see if the program is GNU ld. I'd rather use --version,
3278 # but apparently some GNU ld's only accept -v.
3279 # Break only if it was the GNU/non-GNU ld that we prefer.
3280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3281 *GNU* | *'with BFD'*)
3282 test "$with_gnu_ld" != no && break
3285 test "$with_gnu_ld" != yes && break
3292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3297 if test -n "$LD"; then
3298 echo "$as_me:$LINENO: result: $LD" >&5
3299 echo "${ECHO_T}$LD" >&6
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3306 { (exit 1); exit 1; }; }
3307 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3313 case `$LD -v 2>&1 </dev/null` in
3314 *GNU* | *'with BFD'*)
3315 lt_cv_prog_gnu_ld=yes
3318 lt_cv_prog_gnu_ld=no
3322 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3324 with_gnu_ld=$lt_cv_prog_gnu_ld
3327 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3328 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3329 if test "${lt_cv_ld_reload_flag+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 lt_cv_ld_reload_flag='-r'
3334 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3335 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3336 reload_flag=$lt_cv_ld_reload_flag
3337 case $reload_flag in
3339 *) reload_flag=" $reload_flag" ;;
3341 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3343 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3344 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3345 if test "${lt_cv_path_NM+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 if test -n "$NM"; then
3349 # Let the user override the test.
3352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3353 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3355 test -z "$ac_dir" && ac_dir=.
3356 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3357 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3358 # Check to see if the nm accepts a BSD-compat flag.
3359 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3360 # nm: unknown option "B" ignored
3361 # Tru64's nm complains that /dev/null is an invalid object file
3362 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3363 */dev/null* | *'Invalid file or object type'*)
3364 lt_cv_path_NM="$tmp_nm -B"
3368 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3370 lt_cv_path_NM="$tmp_nm -p"
3374 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3375 continue # so that we can try to find one that supports BSD flags
3382 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3385 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3386 echo "${ECHO_T}$lt_cv_path_NM" >&6
3389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3392 if test "$LN_S" = "ln -s"; then
3393 echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6
3396 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3397 echo "${ECHO_T}no, using $LN_S" >&6
3400 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3401 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3402 if test "${lt_cv_deplibs_check_method+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 lt_cv_file_magic_cmd='$MAGIC_CMD'
3406 lt_cv_file_magic_test_file=
3407 lt_cv_deplibs_check_method='unknown'
3408 # Need to set the preceding variable on all platforms that support
3409 # interlibrary dependencies.
3410 # 'none' -- dependencies not supported.
3411 # `unknown' -- same as none, but documents that we really don't know.
3412 # 'pass_all' -- all dependencies passed with no checks.
3413 # 'test_compile' -- check by making test program.
3414 # 'file_magic [[regex]]' -- check by looking for files in library path
3415 # which responds to the $file_magic_cmd with a given extended regex.
3416 # If you have `file' or equivalent on your system and you're not sure
3417 # whether `pass_all' will *always* work, you probably want this one.
3421 lt_cv_deplibs_check_method=pass_all
3425 lt_cv_deplibs_check_method=pass_all
3429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3430 lt_cv_file_magic_cmd='/usr/bin/file -L'
3431 lt_cv_file_magic_test_file=/shlib/libc.so
3435 # win32_libid is a shell function defined in ltmain.sh
3436 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3437 lt_cv_file_magic_cmd='win32_libid'
3441 # Base MSYS/MinGW do not provide the 'file' command needed by
3442 # win32_libid shell function, so use a weaker test based on 'objdump'.
3443 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3444 lt_cv_file_magic_cmd='$OBJDUMP -f'
3447 darwin* | rhapsody*)
3448 lt_cv_deplibs_check_method=pass_all
3451 freebsd* | kfreebsd*-gnu)
3452 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3455 # Not sure whether the presence of OpenBSD here was a mistake.
3456 # Let's accept both of them until this is cleared up.
3457 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3458 lt_cv_file_magic_cmd=/usr/bin/file
3459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3463 lt_cv_deplibs_check_method=pass_all
3468 lt_cv_deplibs_check_method=pass_all
3471 hpux10.20* | hpux11*)
3472 lt_cv_file_magic_cmd=/usr/bin/file
3475 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3476 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3479 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]'
3480 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3483 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3484 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3489 irix5* | irix6* | nonstopux*)
3491 *-32|*"-32 ") libmagic=32-bit;;
3492 *-n32|*"-n32 ") libmagic=N32;;
3493 *-64|*"-64 ") libmagic=64-bit;;
3494 *) libmagic=never-match;;
3496 lt_cv_deplibs_check_method=pass_all
3499 # This must be Linux ELF.
3502 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3503 lt_cv_deplibs_check_method=pass_all ;;
3505 # glibc up to 2.1.1 does not perform some relocations on ARM
3506 # this will be overridden with pass_all, but let us keep it just in case
3507 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3509 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3510 lt_cv_deplibs_check_method=pass_all
3514 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3523 lt_cv_file_magic_cmd=/usr/bin/file
3524 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3528 lt_cv_deplibs_check_method=unknown
3532 lt_cv_file_magic_cmd=/usr/bin/file
3533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3537 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3541 osf3* | osf4* | osf5*)
3542 lt_cv_deplibs_check_method=pass_all
3546 lt_cv_deplibs_check_method=pass_all
3550 lt_cv_deplibs_check_method=pass_all
3553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3554 case $host_vendor in
3556 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]'
3557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3560 lt_cv_deplibs_check_method=pass_all
3563 lt_cv_file_magic_cmd='/bin/file'
3564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3567 lt_cv_file_magic_cmd='/bin/file'
3568 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3569 lt_cv_file_magic_test_file=/lib/libc.so
3572 lt_cv_deplibs_check_method=pass_all
3577 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3578 lt_cv_deplibs_check_method=pass_all
3583 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3584 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3585 file_magic_cmd=$lt_cv_file_magic_cmd
3586 deplibs_check_method=$lt_cv_deplibs_check_method
3587 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3592 # If no C compiler was specified, use CC.
3595 # Allow CC to be a program name with arguments.
3599 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3600 if test "${enable_libtool_lock+set}" = set; then
3601 enableval="$enable_libtool_lock"
3604 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3606 # Some flags need to be propagated to the compiler or linker for good
3610 # Find out which ABI we are using.
3611 echo 'int i;' > conftest.$ac_ext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; then
3617 case `/usr/bin/file conftest.$ac_objext` in
3629 # Find out which ABI we are using.
3630 echo '#line 3630 "configure"' > conftest.$ac_ext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; then
3636 if test "$lt_cv_prog_gnu_ld" = yes; then
3637 case `/usr/bin/file conftest.$ac_objext` in
3639 LD="${LD-ld} -melf32bsmip"
3642 LD="${LD-ld} -melf32bmipn32"
3645 LD="${LD-ld} -melf64bmip"
3649 case `/usr/bin/file conftest.$ac_objext` in
3665 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3666 # Find out which ABI we are using.
3667 echo 'int i;' > conftest.$ac_ext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3669 (eval $ac_compile) 2>&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; then
3673 case "`/usr/bin/file conftest.o`" in
3677 LD="${LD-ld} -m elf_i386"
3679 ppc64-*linux*|powerpc64-*linux*)
3680 LD="${LD-ld} -m elf32ppclinux"
3683 LD="${LD-ld} -m elf_s390"
3686 LD="${LD-ld} -m elf32_sparc"
3693 LD="${LD-ld} -m elf_x86_64"
3695 ppc*-*linux*|powerpc*-*linux*)
3696 LD="${LD-ld} -m elf64ppc"
3699 LD="${LD-ld} -m elf64_s390"
3702 LD="${LD-ld} -m elf64_sparc"
3712 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3713 SAVE_CFLAGS="$CFLAGS"
3714 CFLAGS="$CFLAGS -belf"
3715 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3716 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3717 if test "${lt_cv_cc_needs_belf+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext conftest$ac_exeext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3743 (eval $ac_link) 2>conftest.er1
3745 grep -v '^ *+' conftest.er1 >conftest.err
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -z "$ac_c_werror_flag"
3751 || test ! -s conftest.err'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try='test -s conftest$ac_exeext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 lt_cv_cc_needs_belf=yes
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3768 lt_cv_cc_needs_belf=no
3770 rm -f conftest.err conftest.$ac_objext \
3771 conftest$ac_exeext conftest.$ac_ext
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3780 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3781 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3783 CFLAGS="$SAVE_CFLAGS"
3789 need_locks="$enable_libtool_lock"
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3799 # On Suns, sometimes $CPP names a directory.
3800 if test -n "$CPP" && test -d "$CPP"; then
3803 if test -z "$CPP"; then
3804 if test "${ac_cv_prog_CPP+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 # Double quotes because CPP needs to be expanded
3808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3811 for ac_c_preproc_warn_flag in '' yes
3813 # Use a header file that comes with gcc, so configuring glibc
3814 # with a fresh cross-compiler works.
3815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3816 # <limits.h> exists even on freestanding compilers.
3817 # On the NeXT, cc -E runs the code through the compiler's parser,
3818 # not just through cpp. "Syntax error" is here to catch this case.
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3826 # include <limits.h>
3828 # include <assert.h>
3832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } >/dev/null; then
3840 if test -s conftest.err; then
3841 ac_cpp_err=$ac_c_preproc_warn_flag
3842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3849 if test -z "$ac_cpp_err"; then
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 # Broken: fails on valid input.
3858 rm -f conftest.err conftest.$ac_ext
3860 # OK, works on sane cases. Now check whether non-existent headers
3861 # can be detected and how.
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <ac_nonexistent.h>
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null; then
3878 if test -s conftest.err; then
3879 ac_cpp_err=$ac_c_preproc_warn_flag
3880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3887 if test -z "$ac_cpp_err"; then
3888 # Broken: success on invalid input.
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 # Passes both tests.
3898 rm -f conftest.err conftest.$ac_ext
3901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3902 rm -f conftest.err conftest.$ac_ext
3903 if $ac_preproc_ok; then
3915 echo "$as_me:$LINENO: result: $CPP" >&5
3916 echo "${ECHO_T}$CPP" >&6
3918 for ac_c_preproc_warn_flag in '' yes
3920 # Use a header file that comes with gcc, so configuring glibc
3921 # with a fresh cross-compiler works.
3922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3923 # <limits.h> exists even on freestanding compilers.
3924 # On the NeXT, cc -E runs the code through the compiler's parser,
3925 # not just through cpp. "Syntax error" is here to catch this case.
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3933 # include <limits.h>
3935 # include <assert.h>
3939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } >/dev/null; then
3947 if test -s conftest.err; then
3948 ac_cpp_err=$ac_c_preproc_warn_flag
3949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3956 if test -z "$ac_cpp_err"; then
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 # Broken: fails on valid input.
3965 rm -f conftest.err conftest.$ac_ext
3967 # OK, works on sane cases. Now check whether non-existent headers
3968 # can be detected and how.
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 #include <ac_nonexistent.h>
3977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } >/dev/null; then
3985 if test -s conftest.err; then
3986 ac_cpp_err=$ac_c_preproc_warn_flag
3987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3994 if test -z "$ac_cpp_err"; then
3995 # Broken: success on invalid input.
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 # Passes both tests.
4005 rm -f conftest.err conftest.$ac_ext
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.err conftest.$ac_ext
4010 if $ac_preproc_ok; then
4013 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4014 See \`config.log' for more details." >&5
4015 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4016 See \`config.log' for more details." >&2;}
4017 { (exit 1); exit 1; }; }
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4029 if test "${ac_cv_header_stdc+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 cat >conftest.$ac_ext <<_ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_c_werror_flag"
4061 || test ! -s conftest.err'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; } &&
4067 { ac_try='test -s conftest.$ac_objext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 ac_cv_header_stdc=yes
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 ac_cv_header_stdc=no
4080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4082 if test $ac_cv_header_stdc = yes; then
4083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 $EGREP "memchr" >/dev/null 2>&1; then
4097 ac_cv_header_stdc=no
4103 if test $ac_cv_header_stdc = yes; then
4104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "free" >/dev/null 2>&1; then
4118 ac_cv_header_stdc=no
4124 if test $ac_cv_header_stdc = yes; then
4125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4126 if test "$cross_compiling" = yes; then
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4136 #if ((' ' & 0x0FF) == 0x020)
4137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4140 # define ISLOWER(c) \
4141 (('a' <= (c) && (c) <= 'i') \
4142 || ('j' <= (c) && (c) <= 'r') \
4143 || ('s' <= (c) && (c) <= 'z'))
4144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4152 for (i = 0; i < 256; i++)
4153 if (XOR (islower (i), ISLOWER (i))
4154 || toupper (i) != TOUPPER (i))
4159 rm -f conftest$ac_exeext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161 (eval $ac_link) 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4172 echo "$as_me: program exited with status $ac_status" >&5
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4177 ac_cv_header_stdc=no
4179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4183 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4184 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4185 if test $ac_cv_header_stdc = yes; then
4187 cat >>confdefs.h <<\_ACEOF
4188 #define STDC_HEADERS 1
4193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4203 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4204 inttypes.h stdint.h unistd.h
4206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4207 echo "$as_me:$LINENO: checking for $ac_header" >&5
4208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 $ac_includes_default
4220 #include <$ac_header>
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>conftest.er1
4226 grep -v '^ *+' conftest.er1 >conftest.err
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try='test -z "$ac_c_werror_flag"
4232 || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 eval "$as_ac_Header=yes"
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 eval "$as_ac_Header=no"
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4256 cat >>confdefs.h <<_ACEOF
4257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4266 for ac_header in dlfcn.h
4268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4270 echo "$as_me:$LINENO: checking for $ac_header" >&5
4271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4278 # Is the header compilable?
4279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 $ac_includes_default
4288 #include <$ac_header>
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_header_compiler=yes
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_header_compiler=no
4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4321 echo "${ECHO_T}$ac_header_compiler" >&6
4323 # Is the header present?
4324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4326 cat >conftest.$ac_ext <<_ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 #include <$ac_header>
4334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4337 grep -v '^ *+' conftest.er1 >conftest.err
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } >/dev/null; then
4342 if test -s conftest.err; then
4343 ac_cpp_err=$ac_c_preproc_warn_flag
4344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4351 if test -z "$ac_cpp_err"; then
4352 ac_header_preproc=yes
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 ac_header_preproc=no
4359 rm -f conftest.err conftest.$ac_ext
4360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4361 echo "${ECHO_T}$ac_header_preproc" >&6
4363 # So? What about this header?
4364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4370 ac_header_preproc=yes
4373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4387 ## ------------------------------------------ ##
4388 ## Report this to the AC_PACKAGE_NAME lists. ##
4389 ## ------------------------------------------ ##
4392 sed "s/^/$as_me: WARNING: /" >&2
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 eval "$as_ac_Header=\$ac_header_preproc"
4402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4407 cat >>confdefs.h <<_ACEOF
4408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4416 ac_cpp='$CXXCPP $CPPFLAGS'
4417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4420 if test -n "$ac_tool_prefix"; then
4421 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_CXX+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$CXX"; then
4431 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 if test -n "$CXX"; then
4451 echo "$as_me:$LINENO: result: $CXX" >&5
4452 echo "${ECHO_T}$CXX" >&6
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4458 test -n "$CXX" && break
4461 if test -z "$CXX"; then
4463 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$ac_ct_CXX"; then
4473 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_ac_ct_CXX="$ac_prog"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4492 if test -n "$ac_ct_CXX"; then
4493 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4494 echo "${ECHO_T}$ac_ct_CXX" >&6
4496 echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4500 test -n "$ac_ct_CXX" && break
4502 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4508 # Provide some information about the compiler.
4509 echo "$as_me:$LINENO:" \
4510 "checking for C++ compiler version" >&5
4511 ac_compiler=`set X $ac_compile; echo $2`
4512 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4513 (eval $ac_compiler --version </dev/null >&5) 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }
4517 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4518 (eval $ac_compiler -v </dev/null >&5) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }
4522 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4523 (eval $ac_compiler -V </dev/null >&5) 2>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }
4528 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4529 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4530 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
4555 grep -v '^ *+' conftest.er1 >conftest.err
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_cxx_werror_flag"
4561 || test ! -s conftest.err'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4584 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4585 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4586 GXX=`test $ac_compiler_gnu = yes && echo yes`
4587 ac_test_CXXFLAGS=${CXXFLAGS+set}
4588 ac_save_CXXFLAGS=$CXXFLAGS
4590 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4591 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4592 if test "${ac_cv_prog_cxx_g+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 cat >conftest.$ac_ext <<_ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -z "$ac_cxx_werror_flag"
4620 || test ! -s conftest.err'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try='test -s conftest.$ac_objext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 ac_cv_prog_cxx_g=yes
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4641 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4642 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4643 if test "$ac_test_CXXFLAGS" = set; then
4644 CXXFLAGS=$ac_save_CXXFLAGS
4645 elif test $ac_cv_prog_cxx_g = yes; then
4646 if test "$GXX" = yes; then
4652 if test "$GXX" = yes; then
4658 for ac_declaration in \
4660 'extern "C" void std::exit (int) throw (); using std::exit;' \
4661 'extern "C" void std::exit (int); using std::exit;' \
4662 'extern "C" void exit (int) throw ();' \
4663 'extern "C" void exit (int);' \
4666 cat >conftest.$ac_ext <<_ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_cxx_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 cat >conftest.$ac_ext <<_ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>conftest.er1
4731 grep -v '^ *+' conftest.er1 >conftest.err
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -z "$ac_cxx_werror_flag"
4737 || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758 if test -n "$ac_declaration"; then
4759 echo '#ifdef __cplusplus' >>confdefs.h
4760 echo $ac_declaration >>confdefs.h
4761 echo '#endif' >>confdefs.h
4765 ac_cpp='$CXXCPP $CPPFLAGS'
4766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4770 depcc="$CXX" am_compiler_list=
4772 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4773 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4774 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4778 # We make a subdir and do the tests there. Otherwise we can end up
4779 # making bogus files that we don't know about and never remove. For
4780 # instance it was reported that on HP-UX the gcc test will end up
4781 # making a dummy file named `D' -- because `-MD' means `put the output
4784 # Copy depcomp to subdir because otherwise we won't find it if we're
4785 # using a relative directory.
4786 cp "$am_depcomp" conftest.dir
4789 am_cv_CXX_dependencies_compiler_type=none
4790 if test "$am_compiler_list" = ""; then
4791 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4793 for depmode in $am_compiler_list; do
4794 # We need to recreate these files for each test, as the compiler may
4795 # overwrite some of them when testing with obscure command lines.
4796 # This happens at least with the AIX C compiler.
4797 echo '#include "conftest.h"' > conftest.c
4798 echo 'int i;' > conftest.h
4799 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4803 # after this tag, mechanisms are not by side-effect, so they'll
4804 # only be used when explicitly requested
4805 if test "x$enable_dependency_tracking" = xyes; then
4813 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4814 # mode. It turns out that the SunPro C++ compiler does not properly
4815 # handle `-M -o', and we need to detect this.
4816 if depmode=$depmode \
4817 source=conftest.c object=conftest.o \
4818 depfile=conftest.Po tmpdepfile=conftest.TPo \
4819 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4820 grep conftest.h conftest.Po > /dev/null 2>&1 &&
4821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4822 am_cv_CXX_dependencies_compiler_type=$depmode
4830 am_cv_CXX_dependencies_compiler_type=none
4834 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4835 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4836 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4840 ac_cpp='$CXXCPP $CPPFLAGS'
4841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4844 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4845 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4846 if test -z "$CXXCPP"; then
4847 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 # Double quotes because CXXCPP needs to be expanded
4851 for CXXCPP in "$CXX -E" "/lib/cpp"
4854 for ac_cxx_preproc_warn_flag in '' yes
4856 # Use a header file that comes with gcc, so configuring glibc
4857 # with a fresh cross-compiler works.
4858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 # <limits.h> exists even on freestanding compilers.
4860 # On the NeXT, cc -E runs the code through the compiler's parser,
4861 # not just through cpp. "Syntax error" is here to catch this case.
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4869 # include <limits.h>
4871 # include <assert.h>
4875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null; then
4883 if test -s conftest.err; then
4884 ac_cpp_err=$ac_cxx_preproc_warn_flag
4885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4892 if test -z "$ac_cpp_err"; then
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 # Broken: fails on valid input.
4901 rm -f conftest.err conftest.$ac_ext
4903 # OK, works on sane cases. Now check whether non-existent headers
4904 # can be detected and how.
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <ac_nonexistent.h>
4913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4916 grep -v '^ *+' conftest.er1 >conftest.err
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } >/dev/null; then
4921 if test -s conftest.err; then
4922 ac_cpp_err=$ac_cxx_preproc_warn_flag
4923 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4930 if test -z "$ac_cpp_err"; then
4931 # Broken: success on invalid input.
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 # Passes both tests.
4941 rm -f conftest.err conftest.$ac_ext
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then
4951 ac_cv_prog_CXXCPP=$CXXCPP
4954 CXXCPP=$ac_cv_prog_CXXCPP
4956 ac_cv_prog_CXXCPP=$CXXCPP
4958 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4959 echo "${ECHO_T}$CXXCPP" >&6
4961 for ac_cxx_preproc_warn_flag in '' yes
4963 # Use a header file that comes with gcc, so configuring glibc
4964 # with a fresh cross-compiler works.
4965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966 # <limits.h> exists even on freestanding compilers.
4967 # On the NeXT, cc -E runs the code through the compiler's parser,
4968 # not just through cpp. "Syntax error" is here to catch this case.
4969 cat >conftest.$ac_ext <<_ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4976 # include <limits.h>
4978 # include <assert.h>
4982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } >/dev/null; then
4990 if test -s conftest.err; then
4991 ac_cpp_err=$ac_cxx_preproc_warn_flag
4992 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4999 if test -z "$ac_cpp_err"; then
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 # Broken: fails on valid input.
5008 rm -f conftest.err conftest.$ac_ext
5010 # OK, works on sane cases. Now check whether non-existent headers
5011 # can be detected and how.
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <ac_nonexistent.h>
5020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023 grep -v '^ *+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } >/dev/null; then
5028 if test -s conftest.err; then
5029 ac_cpp_err=$ac_cxx_preproc_warn_flag
5030 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5037 if test -z "$ac_cpp_err"; then
5038 # Broken: success on invalid input.
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 # Passes both tests.
5048 rm -f conftest.err conftest.$ac_ext
5051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5052 rm -f conftest.err conftest.$ac_ext
5053 if $ac_preproc_ok; then
5056 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5057 See \`config.log' for more details." >&5
5058 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5059 See \`config.log' for more details." >&2;}
5060 { (exit 1); exit 1; }; }
5064 ac_cpp='$CXXCPP $CPPFLAGS'
5065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5071 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5072 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5074 if test -n "$ac_tool_prefix"; then
5075 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5079 echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5081 if test "${ac_cv_prog_F77+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 if test -n "$F77"; then
5085 ac_cv_prog_F77="$F77" # Let the user override the test.
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 if test -n "$F77"; then
5105 echo "$as_me:$LINENO: result: $F77" >&5
5106 echo "${ECHO_T}$F77" >&6
5108 echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6
5112 test -n "$F77" && break
5115 if test -z "$F77"; then
5117 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5119 # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5123 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 if test -n "$ac_ct_F77"; then
5127 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_ac_ct_F77="$ac_prog"
5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5146 if test -n "$ac_ct_F77"; then
5147 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5148 echo "${ECHO_T}$ac_ct_F77" >&6
5150 echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5154 test -n "$ac_ct_F77" && break
5161 # Provide some information about the compiler.
5162 echo "$as_me:5162:" \
5163 "checking for Fortran 77 compiler version" >&5
5164 ac_compiler=`set X $ac_compile; echo $2`
5165 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5166 (eval $ac_compiler --version </dev/null >&5) 2>&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }
5170 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5171 (eval $ac_compiler -v </dev/null >&5) 2>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }
5175 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5176 (eval $ac_compiler -V </dev/null >&5) 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }
5182 # If we don't use `.F' as extension, the preprocessor is not run on the
5183 # input file. (Note that this only needs to work for GNU compilers.)
5186 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5187 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5188 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 cat >conftest.$ac_ext <<_ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>conftest.er1
5203 grep -v '^ *+' conftest.er1 >conftest.err
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -z "$ac_f77_werror_flag"
5209 || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5232 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5233 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5235 ac_test_FFLAGS=${FFLAGS+set}
5236 ac_save_FFLAGS=$FFLAGS
5238 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5239 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5240 if test "${ac_cv_prog_f77_g+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 cat >conftest.$ac_ext <<_ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_f77_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_prog_f77_g=yes
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5281 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5282 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5283 if test "$ac_test_FFLAGS" = set; then
5284 FFLAGS=$ac_save_FFLAGS
5285 elif test $ac_cv_prog_f77_g = yes; then
5286 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5292 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5299 G77=`test $ac_compiler_gnu = yes && echo yes`
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5310 # find the maximum length of command line arguments
5311 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5312 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5313 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 # On DJGPP, this test can blow up pretty badly due to problems in libc
5322 # (any single argument exceeding 2000 bytes causes a buffer overrun
5323 # during glob expansion). Even if it were fixed, the result of this
5324 # check would be larger than it should be.
5325 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5329 # Under GNU Hurd, this test is not required because there is
5330 # no limit to the length of command line arguments.
5331 # Libtool will interpret -1 as no limit whatsoever
5332 lt_cv_sys_max_cmd_len=-1;
5336 # On Win9x/ME, this test blows up -- it succeeds, but takes
5337 # about 5 minutes as the teststring grows exponentially.
5338 # Worse, since 9x/ME are not pre-emptively multitasking,
5339 # you end up with a "frozen" computer, even though with patience
5340 # the test eventually succeeds (with a max line length of 256k).
5341 # Instead, let's just punt: use the minimum linelength reported by
5342 # all of the supported platforms: 8192 (on NT/2K/XP).
5343 lt_cv_sys_max_cmd_len=8192;
5347 # On AmigaOS with pdksh, this test takes hours, literally.
5348 # So we just punt and use a minimum line length of 8192.
5349 lt_cv_sys_max_cmd_len=8192;
5353 # If test is not a shell built-in, we'll probably end up computing a
5354 # maximum length that is only half of the actual maximum length, but
5356 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5357 = "XX$testring") >/dev/null 2>&1 &&
5358 new_result=`expr "X$testring" : ".*" 2>&1` &&
5359 lt_cv_sys_max_cmd_len=$new_result &&
5360 test $i != 17 # 1/2 MB should be enough
5363 testring=$testring$testring
5366 # Add a significant safety factor because C++ compilers can tack on massive
5367 # amounts of additional arguments before passing them to the linker.
5368 # It appears as though 1/2 is a usable value.
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5375 if test -n $lt_cv_sys_max_cmd_len ; then
5376 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5377 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5379 echo "$as_me:$LINENO: result: none" >&5
5380 echo "${ECHO_T}none" >&6
5386 # Check for command to grab the raw symbol name followed by C symbol from nm.
5387 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5388 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5389 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 # These are sane defaults that work on at least a few old systems.
5394 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5396 # Character class describing NM global symbol codes.
5397 symcode='[BCDEGRST]'
5399 # Regexp to match symbols that can be accessed directly from C.
5400 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5402 # Transform the above into a raw symbol and a C symbol.
5403 symxfrm='\1 \2\3 \3'
5405 # Transform an extracted symbol line into a proper C declaration
5406 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5408 # Transform an extracted symbol line into symbol name and symbol address
5409 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'"
5411 # Define system-specific variables.
5416 cygwin* | mingw* | pw32*)
5417 symcode='[ABCDGISTW]'
5419 hpux*) # Its linker distinguishes data from code symbols
5420 if test "$host_cpu" = ia64; then
5421 symcode='[ABCDEGRST]'
5423 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5424 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'"
5427 symcode='[BCDEGRST]'
5430 symcode='[BCDEGQRST]'
5440 # Handle CRLF in mingw tool chain
5444 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5448 # If we're using GNU nm, then use its standard symbol codes.
5449 case `$NM -V 2>&1` in
5450 *GNU* | *'with BFD'*)
5451 symcode='[ABCDGIRSTW]' ;;
5454 # Try without a prefix undercore, then with it.
5455 for ac_symprfx in "" "_"; do
5457 # Write the raw and C identifiers.
5458 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5460 # Check to see that the pipe works correctly.
5464 cat > conftest.$ac_ext <<EOF
5469 void nm_test_func(){}
5473 int main(){nm_test_var='a';nm_test_func();return(0);}
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; then
5481 # Now try to grab the symbols.
5483 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5484 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && test -s "$nlist"; then
5488 # Try sorting and uniquifying the output.
5489 if sort "$nlist" | uniq > "$nlist"T; then
5490 mv -f "$nlist"T "$nlist"
5495 # Make sure that we snagged all the symbols we need.
5496 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5497 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5498 cat <<EOF > conftest.$ac_ext
5504 # Now generate the symbol file.
5505 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5507 cat <<EOF >> conftest.$ac_ext
5508 #if defined (__STDC__) && __STDC__
5509 # define lt_ptr_t void *
5511 # define lt_ptr_t char *
5515 /* The mapping between symbol names and symbols. */
5520 lt_preloaded_symbols[] =
5523 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5524 cat <<\EOF >> conftest.$ac_ext
5532 # Now try linking the two files.
5533 mv conftest.$ac_objext conftstm.$ac_objext
5534 lt_save_LIBS="$LIBS"
5535 lt_save_CFLAGS="$CFLAGS"
5536 LIBS="conftstm.$ac_objext"
5537 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539 (eval $ac_link) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5545 LIBS="$lt_save_LIBS"
5546 CFLAGS="$lt_save_CFLAGS"
5548 echo "cannot find nm_test_func in $nlist" >&5
5551 echo "cannot find nm_test_var in $nlist" >&5
5554 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5557 echo "$progname: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 rm -f conftest* conftst*
5562 # Do not use the global_symbol_pipe unless it works.
5563 if test "$pipe_works" = yes; then
5566 lt_cv_sys_global_symbol_pipe=
5572 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5573 lt_cv_sys_global_symbol_to_cdecl=
5575 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5576 echo "$as_me:$LINENO: result: failed" >&5
5577 echo "${ECHO_T}failed" >&6
5579 echo "$as_me:$LINENO: result: ok" >&5
5580 echo "${ECHO_T}ok" >&6
5583 echo "$as_me:$LINENO: checking for objdir" >&5
5584 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5585 if test "${lt_cv_objdir+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 rm -f .libs 2>/dev/null
5589 mkdir .libs 2>/dev/null
5590 if test -d .libs; then
5593 # MS-DOS does not allow filenames that begin with a dot.
5596 rmdir .libs 2>/dev/null
5598 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5599 echo "${ECHO_T}$lt_cv_objdir" >&6
5600 objdir=$lt_cv_objdir
5608 # AIX sometimes has problems with the GCC collect2 program. For some
5609 # reason, if we set the COLLECT_NAMES environment variable, the problems
5610 # vanish in a puff of smoke.
5611 if test "X${COLLECT_NAMES+set}" != Xset; then
5613 export COLLECT_NAMES
5618 # Sed substitution that helps us do robust quoting. It backslashifies
5619 # metacharacters that are still active within double-quoted strings.
5620 Xsed='sed -e s/^X//'
5621 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5623 # Same as above, but do not quote variable references.
5624 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5626 # Sed substitution to delay expansion of an escaped shell variable in a
5627 # double_quote_subst'ed string.
5628 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5630 # Sed substitution to avoid accidental globbing in evaled expressions
5631 no_glob_subst='s/\*/\\\*/g'
5637 default_ofile=libtool
5638 can_build_shared=yes
5640 # All known linkers require a `.a' archive for static linking (except M$VC,
5641 # which needs '.lib').
5643 ltmain="$ac_aux_dir/ltmain.sh"
5644 ofile="$default_ofile"
5645 with_gnu_ld="$lt_cv_prog_gnu_ld"
5647 if test -n "$ac_tool_prefix"; then
5648 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5649 set dummy ${ac_tool_prefix}ar; ac_word=$2
5650 echo "$as_me:$LINENO: checking for $ac_word" >&5
5651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652 if test "${ac_cv_prog_AR+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 if test -n "$AR"; then
5656 ac_cv_prog_AR="$AR" # Let the user override the test.
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_prog_AR="${ac_tool_prefix}ar"
5666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 if test -n "$AR"; then
5676 echo "$as_me:$LINENO: result: $AR" >&5
5677 echo "${ECHO_T}$AR" >&6
5679 echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5684 if test -z "$ac_cv_prog_AR"; then
5686 # Extract the first word of "ar", so it can be a program name with args.
5687 set dummy ar; ac_word=$2
5688 echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 if test -n "$ac_ct_AR"; then
5694 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_ac_ct_AR="ar"
5704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5713 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5714 if test -n "$ac_ct_AR"; then
5715 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5716 echo "${ECHO_T}$ac_ct_AR" >&6
5718 echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_prog_RANLIB+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 if test -n "$RANLIB"; then
5736 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756 echo "$as_me:$LINENO: result: $RANLIB" >&5
5757 echo "${ECHO_T}$RANLIB" >&6
5759 echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5764 if test -z "$ac_cv_prog_RANLIB"; then
5765 ac_ct_RANLIB=$RANLIB
5766 # Extract the first word of "ranlib", so it can be a program name with args.
5767 set dummy ranlib; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 if test -n "$ac_ct_RANLIB"; then
5774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_ac_ct_RANLIB="ranlib"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5794 if test -n "$ac_ct_RANLIB"; then
5795 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5796 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5798 echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5802 RANLIB=$ac_ct_RANLIB
5804 RANLIB="$ac_cv_prog_RANLIB"
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}strip; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_STRIP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 if test -n "$STRIP"; then
5816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 STRIP=$ac_cv_prog_STRIP
5835 if test -n "$STRIP"; then
5836 echo "$as_me:$LINENO: result: $STRIP" >&5
5837 echo "${ECHO_T}$STRIP" >&6
5839 echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5844 if test -z "$ac_cv_prog_STRIP"; then
5846 # Extract the first word of "strip", so it can be a program name with args.
5847 set dummy strip; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 if test -n "$ac_ct_STRIP"; then
5854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_ac_ct_STRIP="strip"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5873 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874 if test -n "$ac_ct_STRIP"; then
5875 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5876 echo "${ECHO_T}$ac_ct_STRIP" >&6
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5884 STRIP="$ac_cv_prog_STRIP"
5889 old_CFLAGS="$CFLAGS"
5891 # Set sane defaults for various variables
5892 test -z "$AR" && AR=ar
5893 test -z "$AR_FLAGS" && AR_FLAGS=cru
5894 test -z "$AS" && AS=as
5895 test -z "$CC" && CC=cc
5896 test -z "$LTCC" && LTCC=$CC
5897 test -z "$DLLTOOL" && DLLTOOL=dlltool
5898 test -z "$LD" && LD=ld
5899 test -z "$LN_S" && LN_S="ln -s"
5900 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5901 test -z "$NM" && NM=nm
5902 test -z "$SED" && SED=sed
5903 test -z "$OBJDUMP" && OBJDUMP=objdump
5904 test -z "$RANLIB" && RANLIB=:
5905 test -z "$STRIP" && STRIP=:
5906 test -z "$ac_objext" && ac_objext=o
5908 # Determine commands to create old-style static archives.
5909 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5910 old_postinstall_cmds='chmod 644 $oldlib'
5911 old_postuninstall_cmds=
5913 if test -n "$RANLIB"; then
5916 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5919 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5922 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5925 # Only perform the check for file, if the check method requires it
5926 case $deplibs_check_method in
5928 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5929 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5930 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5939 lt_save_MAGIC_CMD="$MAGIC_CMD"
5940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5942 for ac_dir in $ac_dummy; do
5944 test -z "$ac_dir" && ac_dir=.
5945 if test -f $ac_dir/${ac_tool_prefix}file; then
5946 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5947 if test -n "$file_magic_test_file"; then
5948 case $deplibs_check_method in
5950 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5953 $EGREP "$file_magic_regex" > /dev/null; then
5958 *** Warning: the command libtool uses to detect shared libraries,
5959 *** $file_magic_cmd, produces output that libtool cannot recognize.
5960 *** The result is that libtool may fail to recognize shared libraries
5961 *** as such. This will affect the creation of libtool libraries that
5962 *** depend on shared libraries, but programs linked with such libtool
5963 *** libraries will work regardless of this problem. Nevertheless, you
5964 *** may want to report the problem to your system manager and/or to
5965 *** bug-libtool@gnu.org
5975 MAGIC_CMD="$lt_save_MAGIC_CMD"
5980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5981 if test -n "$MAGIC_CMD"; then
5982 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5983 echo "${ECHO_T}$MAGIC_CMD" >&6
5985 echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5989 if test -z "$lt_cv_path_MAGIC_CMD"; then
5990 if test -n "$ac_tool_prefix"; then
5991 echo "$as_me:$LINENO: checking for file" >&5
5992 echo $ECHO_N "checking for file... $ECHO_C" >&6
5993 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6001 lt_save_MAGIC_CMD="$MAGIC_CMD"
6002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6004 for ac_dir in $ac_dummy; do
6006 test -z "$ac_dir" && ac_dir=.
6007 if test -f $ac_dir/file; then
6008 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6009 if test -n "$file_magic_test_file"; then
6010 case $deplibs_check_method in
6012 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6015 $EGREP "$file_magic_regex" > /dev/null; then
6020 *** Warning: the command libtool uses to detect shared libraries,
6021 *** $file_magic_cmd, produces output that libtool cannot recognize.
6022 *** The result is that libtool may fail to recognize shared libraries
6023 *** as such. This will affect the creation of libtool libraries that
6024 *** depend on shared libraries, but programs linked with such libtool
6025 *** libraries will work regardless of this problem. Nevertheless, you
6026 *** may want to report the problem to your system manager and/or to
6027 *** bug-libtool@gnu.org
6037 MAGIC_CMD="$lt_save_MAGIC_CMD"
6042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043 if test -n "$MAGIC_CMD"; then
6044 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6045 echo "${ECHO_T}$MAGIC_CMD" >&6
6047 echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6063 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6064 if test "${enable_libtool_lock+set}" = set; then
6065 enableval="$enable_libtool_lock"
6068 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6071 # Check whether --with-pic or --without-pic was given.
6072 if test "${with_pic+set}" = set; then
6078 test -z "$pic_mode" && pic_mode=default
6080 # Use C for the default configuration in the libtool script
6084 ac_cpp='$CPP $CPPFLAGS'
6085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6090 # Source file extension for C test sources.
6093 # Object file extension for compiled C test sources.
6097 # Code to be used in simple compile tests
6098 lt_simple_compile_test_code="int some_variable = 0;\n"
6100 # Code to be used in simple link tests
6101 lt_simple_link_test_code='int main(){return(0);}\n'
6104 # If no C compiler was specified, use CC.
6107 # Allow CC to be a program name with arguments.
6112 # Check for any special shared library compilation flags.
6115 if test "$GCC" = no; then
6118 lt_prog_cc_shlib='-belf'
6122 if test -n "$lt_prog_cc_shlib"; then
6123 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6124 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6125 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6127 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6128 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6129 lt_cv_prog_cc_can_build_shared=no
6135 # Check to make sure the static flag actually works.
6137 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6138 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6139 if test "${lt_prog_compiler_static_works+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 lt_prog_compiler_static_works=no
6143 save_LDFLAGS="$LDFLAGS"
6144 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6145 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6146 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6147 # The compiler can only warn and ignore the option if not recognized
6148 # So say no if there are warnings
6149 if test -s conftest.err; then
6150 # Append any errors to the config.log.
6151 cat conftest.err 1>&5
6153 lt_prog_compiler_static_works=yes
6157 LDFLAGS="$save_LDFLAGS"
6160 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6161 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6163 if test x"$lt_prog_compiler_static_works" = xyes; then
6166 lt_prog_compiler_static=
6172 lt_prog_compiler_no_builtin_flag=
6174 if test "$GCC" = yes; then
6175 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6178 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6179 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6180 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 lt_cv_prog_compiler_rtti_exceptions=no
6184 ac_outfile=conftest.$ac_objext
6185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6186 lt_compiler_flag="-fno-rtti -fno-exceptions"
6187 # Insert the option either (1) after the last *FLAGS variable, or
6188 # (2) before a word containing "conftest.", or (3) at the end.
6189 # Note that $ac_compile itself does not contain backslashes and begins
6190 # with a dollar sign (not a hyphen), so the echo should work correctly.
6191 # The option is referenced via a variable to avoid confusing sed.
6192 lt_compile=`echo "$ac_compile" | $SED \
6193 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6195 -e 's:$: $lt_compiler_flag:'`
6196 (eval echo "\"\$as_me:6196: $lt_compile\"" >&5)
6197 (eval "$lt_compile" 2>conftest.err)
6199 cat conftest.err >&5
6200 echo "$as_me:6200: \$? = $ac_status" >&5
6201 if (exit $ac_status) && test -s "$ac_outfile"; then
6202 # The compiler can only warn and ignore the option if not recognized
6203 # So say no if there are warnings
6204 if test ! -s conftest.err; then
6205 lt_cv_prog_compiler_rtti_exceptions=yes
6211 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6214 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6215 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6222 lt_prog_compiler_wl=
6223 lt_prog_compiler_pic=
6224 lt_prog_compiler_static=
6226 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6229 if test "$GCC" = yes; then
6230 lt_prog_compiler_wl='-Wl,'
6231 lt_prog_compiler_static='-static'
6235 # All AIX code is PIC.
6236 if test "$host_cpu" = ia64; then
6237 # AIX 5 now supports IA64 processor
6238 lt_prog_compiler_static='-Bstatic'
6243 # FIXME: we need at least 68020 code to build shared libraries, but
6244 # adding the `-m68020' flag to GCC prevents building anything better,
6246 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6250 # PIC is the default for these OSes.
6253 mingw* | pw32* | os2*)
6254 # This hack is so that the source file can tell whether it is being
6255 # built for inclusion in a dll (and should export symbols for example).
6256 lt_prog_compiler_pic='-DDLL_EXPORT'
6259 darwin* | rhapsody*)
6260 # PIC is the default on this platform
6261 # Common symbols not allowed in MH_DYLIB files
6262 lt_prog_compiler_pic='-fno-common'
6266 # Just because we use GCC doesn't mean we suddenly get shared libraries
6267 # on systems that don't support them.
6268 lt_prog_compiler_can_build_shared=no
6273 if test -d /usr/nec; then
6274 lt_prog_compiler_pic=-Kconform_pic
6279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6286 lt_prog_compiler_pic='-fPIC'
6292 lt_prog_compiler_pic='-fPIC'
6296 # PORTME Check for flag to pass linker flags through the system compiler.
6299 lt_prog_compiler_wl='-Wl,'
6300 if test "$host_cpu" = ia64; then
6301 # AIX 5 now supports IA64 processor
6302 lt_prog_compiler_static='-Bstatic'
6304 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6308 mingw* | pw32* | os2*)
6309 # This hack is so that the source file can tell whether it is being
6310 # built for inclusion in a dll (and should export symbols for example).
6311 lt_prog_compiler_pic='-DDLL_EXPORT'
6314 hpux9* | hpux10* | hpux11*)
6315 lt_prog_compiler_wl='-Wl,'
6316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6323 lt_prog_compiler_pic='+Z'
6326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6327 lt_prog_compiler_static='${wl}-a ${wl}archive'
6330 irix5* | irix6* | nonstopux*)
6331 lt_prog_compiler_wl='-Wl,'
6332 # PIC (with -KPIC) is the default.
6333 lt_prog_compiler_static='-non_shared'
6337 lt_prog_compiler_pic='-KPIC'
6338 lt_prog_compiler_static='-Bstatic'
6344 lt_prog_compiler_wl='-Wl,'
6345 lt_prog_compiler_pic='-KPIC'
6346 lt_prog_compiler_static='-static'
6349 lt_prog_compiler_wl='-Wl,'
6350 # All Alpha code is PIC.
6351 lt_prog_compiler_static='-non_shared'
6356 osf3* | osf4* | osf5*)
6357 lt_prog_compiler_wl='-Wl,'
6358 # All OSF/1 code is PIC.
6359 lt_prog_compiler_static='-non_shared'
6363 lt_prog_compiler_pic='-Kpic'
6364 lt_prog_compiler_static='-dn'
6368 lt_prog_compiler_wl='-Wl,'
6369 lt_prog_compiler_pic='-KPIC'
6370 lt_prog_compiler_static='-Bstatic'
6374 lt_prog_compiler_wl='-Qoption ld '
6375 lt_prog_compiler_pic='-PIC'
6376 lt_prog_compiler_static='-Bstatic'
6379 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6380 lt_prog_compiler_wl='-Wl,'
6381 lt_prog_compiler_pic='-KPIC'
6382 lt_prog_compiler_static='-Bstatic'
6386 if test -d /usr/nec ;then
6387 lt_prog_compiler_pic='-Kconform_pic'
6388 lt_prog_compiler_static='-Bstatic'
6393 lt_prog_compiler_pic='-pic'
6394 lt_prog_compiler_static='-Bstatic'
6398 lt_prog_compiler_can_build_shared=no
6403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6404 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6407 # Check to make sure the PIC flag actually works.
6409 if test -n "$lt_prog_compiler_pic"; then
6411 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6412 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6413 if test "${lt_prog_compiler_pic_works+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 lt_prog_compiler_pic_works=no
6417 ac_outfile=conftest.$ac_objext
6418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6420 # Insert the option either (1) after the last *FLAGS variable, or
6421 # (2) before a word containing "conftest.", or (3) at the end.
6422 # Note that $ac_compile itself does not contain backslashes and begins
6423 # with a dollar sign (not a hyphen), so the echo should work correctly.
6424 # The option is referenced via a variable to avoid confusing sed.
6425 lt_compile=`echo "$ac_compile" | $SED \
6426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6428 -e 's:$: $lt_compiler_flag:'`
6429 (eval echo "\"\$as_me:6429: $lt_compile\"" >&5)
6430 (eval "$lt_compile" 2>conftest.err)
6432 cat conftest.err >&5
6433 echo "$as_me:6433: \$? = $ac_status" >&5
6434 if (exit $ac_status) && test -s "$ac_outfile"; then
6435 # The compiler can only warn and ignore the option if not recognized
6436 # So say no if there are warnings
6437 if test ! -s conftest.err; then
6438 lt_prog_compiler_pic_works=yes
6444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6445 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6447 if test x"$lt_prog_compiler_pic_works" = xyes; then
6448 case $lt_prog_compiler_pic in
6450 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6453 lt_prog_compiler_pic=
6454 lt_prog_compiler_can_build_shared=no
6459 # For platforms which do not support PIC, -DPIC is meaningless:
6461 lt_prog_compiler_pic=
6464 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6468 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6469 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 lt_cv_prog_compiler_c_o=no
6474 $rm -r conftest 2>/dev/null
6478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6480 lt_compiler_flag="-o out/conftest2.$ac_objext"
6481 # Insert the option either (1) after the last *FLAGS variable, or
6482 # (2) before a word containing "conftest.", or (3) at the end.
6483 # Note that $ac_compile itself does not contain backslashes and begins
6484 # with a dollar sign (not a hyphen), so the echo should work correctly.
6485 lt_compile=`echo "$ac_compile" | $SED \
6486 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6488 -e 's:$: $lt_compiler_flag:'`
6489 (eval echo "\"\$as_me:6489: $lt_compile\"" >&5)
6490 (eval "$lt_compile" 2>out/conftest.err)
6492 cat out/conftest.err >&5
6493 echo "$as_me:6493: \$? = $ac_status" >&5
6494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6496 # The compiler can only warn and ignore the option if not recognized
6497 # So say no if there are warnings
6498 if test ! -s out/conftest.err; then
6499 lt_cv_prog_compiler_c_o=yes
6504 # SGI C++ compiler will create directory out/ii_files/ for
6505 # template instantiation
6506 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6507 $rm out/* && rmdir out
6513 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6514 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6517 hard_links="nottested"
6518 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6519 # do not overwrite the value of need_locks provided by the user
6520 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6521 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6526 ln conftest.a conftest.b 2>&5 || hard_links=no
6527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6528 echo "$as_me:$LINENO: result: $hard_links" >&5
6529 echo "${ECHO_T}$hard_links" >&6
6530 if test "$hard_links" = no; then
6531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6532 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6539 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6540 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6543 allow_undefined_flag=
6544 enable_shared_with_static_runtimes=no
6546 archive_expsym_cmds=
6547 old_archive_From_new_cmds=
6548 old_archive_from_expsyms_cmds=
6549 export_dynamic_flag_spec=
6550 whole_archive_flag_spec=
6551 thread_safe_flag_spec=
6552 hardcode_libdir_flag_spec=
6553 hardcode_libdir_flag_spec_ld=
6554 hardcode_libdir_separator=
6557 hardcode_shlibpath_var=unsupported
6558 link_all_deplibs=unknown
6559 hardcode_automatic=no
6562 always_export_symbols=no
6563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6564 # include_expsyms should be a list of space-separated symbols to be *always*
6565 # included in the symbol list
6567 # exclude_expsyms can be an extended regexp of symbols to exclude
6568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6570 # as well as any symbol that contains `d'.
6571 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6573 # platforms (ab)use it in PIC code, but their linkers get confused if
6574 # the symbol is explicitly referenced. Since portable code cannot
6575 # rely on this symbol name, it's probably fine to never include it in
6576 # preloaded symbol tables.
6577 extract_expsyms_cmds=
6580 cygwin* | mingw* | pw32*)
6581 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6582 # When not using gcc, we currently assume that we are using
6583 # Microsoft Visual C++.
6584 if test "$GCC" != yes; then
6594 if test "$with_gnu_ld" = yes; then
6595 # If archive_cmds runs LD, not CC, wlarc should be empty
6598 # See if GNU ld supports shared libraries.
6600 aix3* | aix4* | aix5*)
6601 # On AIX/PPC, the GNU linker is very broken
6602 if test "$host_cpu" != ia64; then
6606 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6607 *** to be unable to reliably create shared libraries on AIX.
6608 *** Therefore, libtool is disabling shared libraries support. If you
6609 *** really care for shared libraries, you may want to modify your PATH
6610 *** so that a non-GNU linker is found, and then restart.
6617 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)'
6618 hardcode_libdir_flag_spec='-L$libdir'
6619 hardcode_minus_L=yes
6621 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6622 # that the semantics of dynamic libraries on AmigaOS, at least up
6623 # to version 4, is to share data among multiple programs linked
6624 # with the same dynamic library. Since this doesn't match the
6625 # behavior of shared libraries on other platforms, we can't use
6631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6632 allow_undefined_flag=unsupported
6633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6634 # support --undefined. This deserves some investigation. FIXME
6635 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641 cygwin* | mingw* | pw32*)
6642 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6643 # as there is no search path for DLLs.
6644 hardcode_libdir_flag_spec='-L$libdir'
6645 allow_undefined_flag=unsupported
6646 always_export_symbols=no
6647 enable_shared_with_static_runtimes=yes
6648 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6650 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6652 # If the export-symbols file already is a .def file (1st line
6653 # is EXPORTS), use it as is; otherwise, prepend...
6654 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6655 cp $export_symbols $output_objdir/$soname.def;
6657 echo EXPORTS > $output_objdir/$soname.def;
6658 cat $export_symbols >> $output_objdir/$soname.def;
6660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6668 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6677 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6682 *** create shared libraries on Solaris systems. Therefore, libtool
6683 *** is disabling shared libraries support. We urge you to upgrade GNU
6684 *** binutils to release 2.9.1 or newer. Another option is to modify
6685 *** your PATH or compiler configuration so that the native linker is
6686 *** used, and then restart.
6689 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6698 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6701 hardcode_shlibpath_var=no
6705 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6706 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707 archive_cmds="$tmp_archive_cmds"
6708 supports_anon_versioning=no
6709 case `$LD -v 2>/dev/null` in
6710 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6713 *\ 2.11.*) ;; # other 2.11 versions
6714 *) supports_anon_versioning=yes ;;
6716 if test $supports_anon_versioning = yes; then
6717 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6719 $echo "local: *; };" >> $output_objdir/$libname.ver~
6720 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6722 archive_expsym_cmds="$tmp_archive_cmds"
6730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6732 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6739 if test "$ld_shlibs" = yes; then
6740 runpath_var=LD_RUN_PATH
6741 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6742 export_dynamic_flag_spec='${wl}--export-dynamic'
6743 # ancient GNU ld didn't support --whole-archive et. al.
6744 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6745 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6747 whole_archive_flag_spec=
6751 # PORTME fill in a description of your system's linker (not GNU ld)
6754 allow_undefined_flag=unsupported
6755 always_export_symbols=yes
6756 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'
6757 # Note: this linker hardcodes the directories in LIBPATH if there
6758 # are no directories specified by -L.
6759 hardcode_minus_L=yes
6760 if test "$GCC" = yes && test -z "$link_static_flag"; then
6761 # Neither direct hardcoding nor static linking is supported with a
6763 hardcode_direct=unsupported
6768 if test "$host_cpu" = ia64; then
6769 # On IA64, the linker does run time linking by default, so we don't
6770 # have to do anything special.
6771 aix_use_runtimelinking=no
6772 exp_sym_flag='-Bexport'
6775 # If we're using GNU nm, then we don't want the "-C" option.
6776 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6777 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6778 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'
6780 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'
6782 aix_use_runtimelinking=no
6784 # Test if we are trying to use run time linking or normal
6785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6786 # need to do runtime linking.
6787 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6788 for ld_flag in $LDFLAGS; do
6789 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6790 aix_use_runtimelinking=yes
6796 exp_sym_flag='-bexport'
6797 no_entry_flag='-bnoentry'
6800 # When large executables or shared objects are built, AIX ld can
6801 # have problems creating the table of contents. If linking a library
6802 # or program results in "error TOC overflow" add -mminimal-toc to
6803 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6804 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6808 hardcode_libdir_separator=':'
6809 link_all_deplibs=yes
6811 if test "$GCC" = yes; then
6812 case $host_os in aix4.012|aix4.012.*)
6813 # We only want to do this on AIX 4.2 and lower, the check
6814 # below for broken collect2 doesn't work under 4.3+
6815 collect2name=`${CC} -print-prog-name=collect2`
6816 if test -f "$collect2name" && \
6817 strings "$collect2name" | grep resolve_lib_name >/dev/null
6819 # We have reworked collect2
6822 # We have old collect2
6823 hardcode_direct=unsupported
6824 # It fails to find uninstalled libraries when the uninstalled
6825 # path is not listed in the libpath. Setting hardcode_minus_L
6826 # to unsupported forces relinking
6827 hardcode_minus_L=yes
6828 hardcode_libdir_flag_spec='-L$libdir'
6829 hardcode_libdir_separator=
6832 shared_flag='-shared'
6835 if test "$host_cpu" = ia64; then
6836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6837 # chokes on -Wl,-G. The following line is correct:
6840 if test "$aix_use_runtimelinking" = yes; then
6841 shared_flag='${wl}-G'
6843 shared_flag='${wl}-bM:SRE'
6848 # It seems that -bexpall does not export symbols beginning with
6849 # underscore (_), so it is better to generate a list of symbols to export.
6850 always_export_symbols=yes
6851 if test "$aix_use_runtimelinking" = yes; then
6852 # Warning - without using the other runtime loading flags (-brtl),
6853 # -berok will link without error, but may produce a broken library.
6854 allow_undefined_flag='-berok'
6855 # Determine the default libpath from the value encoded in an empty executable.
6856 cat >conftest.$ac_ext <<_ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6871 rm -f conftest.$ac_objext conftest$ac_exeext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873 (eval $ac_link) 2>conftest.er1
6875 grep -v '^ *+' conftest.er1 >conftest.err
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest$ac_exeext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6896 # Check for a 64-bit object if we didn't find anything.
6897 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; }
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6904 rm -f conftest.err conftest.$ac_objext \
6905 conftest$ac_exeext conftest.$ac_ext
6906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6908 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6909 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"
6911 if test "$host_cpu" = ia64; then
6912 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6913 allow_undefined_flag="-z nodefs"
6914 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"
6916 # Determine the default libpath from the value encoded in an empty executable.
6917 cat >conftest.$ac_ext <<_ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6932 rm -f conftest.$ac_objext conftest$ac_exeext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934 (eval $ac_link) 2>conftest.er1
6936 grep -v '^ *+' conftest.er1 >conftest.err
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -z "$ac_c_werror_flag"
6942 || test ! -s conftest.err'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; } &&
6948 { ac_try='test -s conftest$ac_exeext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6955 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6957 # Check for a 64-bit object if we didn't find anything.
6958 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; }
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6965 rm -f conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6969 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6970 # Warning - without using the other run time loading flags,
6971 # -berok will link without error, but may produce a broken library.
6972 no_undefined_flag=' ${wl}-bernotok'
6973 allow_undefined_flag=' ${wl}-berok'
6974 # -bexpall does not export symbols beginning with underscore (_)
6975 always_export_symbols=yes
6976 # Exported symbols can be pulled into shared objects from archives
6977 whole_archive_flag_spec=' '
6978 archive_cmds_need_lc=yes
6979 # This is similar to how AIX traditionally builds it's shared libraries.
6980 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'
6986 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)'
6987 hardcode_libdir_flag_spec='-L$libdir'
6988 hardcode_minus_L=yes
6989 # see comment about different semantics on the GNU ld section
6994 export_dynamic_flag_spec=-rdynamic
6997 cygwin* | mingw* | pw32*)
6998 # When not using gcc, we currently assume that we are using
6999 # Microsoft Visual C++.
7000 # hardcode_libdir_flag_spec is actually meaningless, as there is
7001 # no search path for DLLs.
7002 hardcode_libdir_flag_spec=' '
7003 allow_undefined_flag=unsupported
7004 # Tell ltmain to make .lib files, not .a files.
7006 # Tell ltmain to make .dll files, not .so files.
7008 # FIXME: Setting linknames here is a bad hack.
7009 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7010 # The linker will automatically build a .lib file if we build a DLL.
7011 old_archive_From_new_cmds='true'
7012 # FIXME: Should let the user specify the lib program.
7013 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7014 fix_srcfile_path='`cygpath -w "$srcfile"`'
7015 enable_shared_with_static_runtimes=yes
7018 darwin* | rhapsody*)
7019 if test "$GXX" = yes ; then
7020 archive_cmds_need_lc=no
7022 rhapsody* | darwin1.[012])
7023 allow_undefined_flag='-undefined suppress'
7026 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7027 allow_undefined_flag='-flat_namespace -undefined suppress'
7029 case ${MACOSX_DEPLOYMENT_TARGET} in
7031 allow_undefined_flag='-flat_namespace -undefined suppress'
7034 allow_undefined_flag='-undefined dynamic_lookup'
7040 lt_int_apple_cc_single_mod=no
7041 output_verbose_link_cmd='echo'
7042 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7043 lt_int_apple_cc_single_mod=yes
7045 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7046 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7048 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'
7050 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7051 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7052 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7053 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}'
7055 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}'
7057 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}'
7059 hardcode_automatic=yes
7060 hardcode_shlibpath_var=unsupported
7061 whole_archive_flag_spec='-all_load $convenience'
7062 link_all_deplibs=yes
7069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7070 hardcode_libdir_flag_spec='-L$libdir'
7071 hardcode_shlibpath_var=no
7078 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7079 # support. Future versions do this automatically, but an explicit c++rt0.o
7080 # does not break anything, and helps significantly (at the cost of a little
7083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7084 hardcode_libdir_flag_spec='-R$libdir'
7086 hardcode_shlibpath_var=no
7089 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7093 hardcode_minus_L=yes
7094 hardcode_shlibpath_var=no
7097 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7098 freebsd* | kfreebsd*-gnu)
7099 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7100 hardcode_libdir_flag_spec='-R$libdir'
7102 hardcode_shlibpath_var=no
7106 if test "$GCC" = yes; then
7107 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'
7109 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'
7111 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7112 hardcode_libdir_separator=:
7115 # hardcode_minus_L: Not really in the search PATH,
7116 # but as the default location of the library.
7117 hardcode_minus_L=yes
7118 export_dynamic_flag_spec='${wl}-E'
7122 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7125 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7134 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7137 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7141 if test "$with_gnu_ld" = no; then
7144 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7145 hardcode_libdir_flag_spec_ld='+b $libdir'
7146 hardcode_libdir_separator=:
7148 hardcode_shlibpath_var=no
7151 hardcode_libdir_flag_spec='-L$libdir'
7153 hardcode_shlibpath_var=no
7155 # hardcode_minus_L: Not really in the search PATH,
7156 # but as the default location of the library.
7157 hardcode_minus_L=yes
7160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7161 hardcode_libdir_separator=:
7163 export_dynamic_flag_spec='${wl}-E'
7165 # hardcode_minus_L: Not really in the search PATH,
7166 # but as the default location of the library.
7167 hardcode_minus_L=yes
7173 irix5* | irix6* | nonstopux*)
7174 if test "$GCC" = yes; then
7175 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'
7177 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'
7178 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7181 hardcode_libdir_separator=:
7182 link_all_deplibs=yes
7186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7189 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7191 hardcode_libdir_flag_spec='-R$libdir'
7193 hardcode_shlibpath_var=no
7197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200 hardcode_libdir_separator=:
7201 hardcode_shlibpath_var=no
7206 hardcode_shlibpath_var=no
7207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7209 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7210 export_dynamic_flag_spec='${wl}-E'
7213 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7215 hardcode_libdir_flag_spec='-R$libdir'
7218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7219 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7226 hardcode_libdir_flag_spec='-L$libdir'
7227 hardcode_minus_L=yes
7228 allow_undefined_flag=unsupported
7229 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'
7230 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7234 if test "$GCC" = yes; then
7235 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7236 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'
7238 allow_undefined_flag=' -expect_unresolved \*'
7239 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'
7241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7242 hardcode_libdir_separator=:
7245 osf4* | osf5*) # as osf3* with the addition of -msym flag
7246 if test "$GCC" = yes; then
7247 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7248 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'
7249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7251 allow_undefined_flag=' -expect_unresolved \*'
7252 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'
7253 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7254 $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'
7256 # Both c and cxx compiler support -rpath directly
7257 hardcode_libdir_flag_spec='-rpath $libdir'
7259 hardcode_libdir_separator=:
7263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7264 hardcode_shlibpath_var=no
7265 export_dynamic_flag_spec='${wl}-Bexport'
7266 runpath_var=LD_RUN_PATH
7267 hardcode_runpath_var=yes
7271 no_undefined_flag=' -z text'
7272 if test "$GCC" = yes; then
7273 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7274 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7275 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7277 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7279 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7281 hardcode_libdir_flag_spec='-R$libdir'
7282 hardcode_shlibpath_var=no
7284 solaris2.[0-5] | solaris2.[0-5].*) ;;
7285 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7286 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7288 link_all_deplibs=yes
7292 if test "x$host_vendor" = xsequent; then
7293 # Use $CC to link under sequent, because it throws in some extra .o
7294 # files that make .init and .fini sections work.
7295 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7297 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7299 hardcode_libdir_flag_spec='-L$libdir'
7301 hardcode_minus_L=yes
7302 hardcode_shlibpath_var=no
7306 case $host_vendor in
7308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309 hardcode_direct=yes # is this really true???
7312 ## LD is ld it makes a PLAMLIB
7313 ## CC just makes a GrossModule.
7314 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7315 reload_cmds='$CC -r -o $output$reload_objs'
7319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7320 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7323 runpath_var='LD_RUN_PATH'
7324 hardcode_shlibpath_var=no
7328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329 hardcode_shlibpath_var=no
7330 export_dynamic_flag_spec='-Bexport'
7334 if test -d /usr/nec; then
7335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336 hardcode_shlibpath_var=no
7337 runpath_var=LD_RUN_PATH
7338 hardcode_runpath_var=yes
7344 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7347 hardcode_shlibpath_var=no
7348 hardcode_runpath_var=yes
7349 runpath_var=LD_RUN_PATH
7352 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7353 no_undefined_flag='${wl}-z ${wl}text'
7354 if test "$GCC" = yes; then
7355 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7357 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7359 runpath_var='LD_RUN_PATH'
7360 hardcode_shlibpath_var=no
7364 no_undefined_flag=' -z text'
7365 # $CC -shared without GNU ld will not create a library from C++
7366 # object files and a static libstdc++, better avoid it by now
7367 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7369 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7370 hardcode_libdir_flag_spec=
7371 hardcode_shlibpath_var=no
7372 runpath_var='LD_RUN_PATH'
7376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7377 hardcode_libdir_flag_spec='-L$libdir'
7378 hardcode_shlibpath_var=no
7387 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7388 echo "${ECHO_T}$ld_shlibs" >&6
7389 test "$ld_shlibs" = no && can_build_shared=no
7391 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7392 if test "$GCC" = yes; then
7393 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7397 # Do we need to explicitly link libc?
7399 case "x$archive_cmds_need_lc" in
7401 # Assume -lc should be added
7402 archive_cmds_need_lc=yes
7404 if test "$enable_shared" = yes && test "$GCC" = yes; then
7405 case $archive_cmds in
7407 # FIXME: we may have to deal with multi-command sequences.
7410 # Test whether the compiler implicitly links with -lc since on some
7411 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7412 # to ld, don't add -lc before -lgcc.
7413 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7414 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419 (eval $ac_compile) 2>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } 2>conftest.err; then
7425 libobjs=conftest.$ac_objext
7427 wl=$lt_prog_compiler_wl
7433 lt_save_allow_undefined_flag=$allow_undefined_flag
7434 allow_undefined_flag=
7435 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7436 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }
7441 archive_cmds_need_lc=no
7443 archive_cmds_need_lc=yes
7445 allow_undefined_flag=$lt_save_allow_undefined_flag
7447 cat conftest.err 1>&5
7450 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7451 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7458 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7459 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7461 libname_spec='lib$name'
7469 shlibpath_overrides_runpath=unknown
7471 dynamic_linker="$host_os ld.so"
7472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7473 if test "$GCC" = yes; then
7474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7475 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7476 # if the path contains ";" then we assume it to be the separator
7477 # otherwise default to the standard path separator (i.e. ":") - it is
7478 # assumed that no part of a normal pathname contains ";" but that should
7479 # okay in the real world where ";" in dirpaths is itself problematic.
7480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7487 need_lib_prefix=unknown
7488 hardcode_into_libs=no
7490 # when you set need_version to no, make sure it does not cause -set_version
7491 # flags to be left without arguments
7492 need_version=unknown
7497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7498 shlibpath_var=LIBPATH
7500 # AIX 3 has no versioning support, so we append a major version to the name.
7501 soname_spec='${libname}${release}${shared_ext}$major'
7508 hardcode_into_libs=yes
7509 if test "$host_cpu" = ia64; then
7510 # AIX 5 supports IA64
7511 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7512 shlibpath_var=LD_LIBRARY_PATH
7514 # With GCC up to 2.95.x, collect2 would create an import file
7515 # for dependence libraries. The import file would start with
7516 # the line `#! .'. This would cause the generated library to
7517 # depend on `.', always an invalid library. This was fixed in
7518 # development snapshots of GCC prior to 3.0.
7520 aix4 | aix4.[01] | aix4.[01].*)
7521 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7523 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7530 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7531 # soname into executable. Probably we can add versioning support to
7532 # collect2, so additional links can be useful in future.
7533 if test "$aix_use_runtimelinking" = yes; then
7534 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7535 # instead of lib<name>.a to let people know that these are not
7536 # typical AIX shared libraries.
7537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7539 # We preserve .a as extension for shared libraries through AIX4.2
7540 # and later when we are not doing run time linking.
7541 library_names_spec='${libname}${release}.a $libname.a'
7542 soname_spec='${libname}${release}${shared_ext}$major'
7544 shlibpath_var=LIBPATH
7549 library_names_spec='$libname.ixlibrary $libname.a'
7550 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7551 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'
7555 library_names_spec='${libname}${shared_ext}'
7556 dynamic_linker="$host_os ld.so"
7557 shlibpath_var=LIBRARY_PATH
7563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564 soname_spec='${libname}${release}${shared_ext}$major'
7565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7566 shlibpath_var=LD_LIBRARY_PATH
7567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7569 # the default ld.so.conf also contains /usr/contrib/lib and
7570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7571 # libtool to hard-code these into programs
7574 cygwin* | mingw* | pw32*)
7575 version_type=windows
7580 case $GCC,$host_os in
7581 yes,cygwin* | yes,mingw* | yes,pw32*)
7582 library_names_spec='$libname.dll.a'
7583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7584 postinstall_cmds='base_file=`basename \${file}`~
7585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7586 dldir=$destdir/`dirname \$dlpath`~
7587 test -d \$dldir || mkdir -p \$dldir~
7588 $install_prog $dir/$dlname \$dldir/$dlname'
7589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7590 dlpath=$dir/\$dldll~
7592 shlibpath_overrides_runpath=yes
7596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7598 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7601 # MinGW DLLs use traditional 'lib' prefix
7602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7604 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7605 # It is most probably a Windows format PATH printed by
7606 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7607 # path with ; separators, and with drive letters. We can handle the
7608 # drive letters (cygwin fileutils understands them), so leave them,
7609 # especially as we might pass files found there to a mingw objdump,
7610 # which wouldn't understand a cygwinified path. Ahh.
7611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7617 # pw32 DLLs use 'pw' prefix rather than 'lib'
7618 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7627 dynamic_linker='Win32 ld.exe'
7628 # FIXME: first we should search . and the directory the executable is in
7632 darwin* | rhapsody*)
7633 dynamic_linker="$host_os dyld"
7637 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7638 soname_spec='${libname}${release}${major}$shared_ext'
7639 shlibpath_overrides_runpath=yes
7640 shlibpath_var=DYLD_LIBRARY_PATH
7641 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7642 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7643 if test "$GCC" = yes; then
7644 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"`
7646 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7656 soname_spec='${libname}${release}${shared_ext}$major'
7657 shlibpath_var=LD_LIBRARY_PATH
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7671 shlibpath_overrides_runpath=no
7672 hardcode_into_libs=yes
7673 dynamic_linker='GNU ld.so'
7677 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7678 version_type=freebsd-$objformat
7679 case $version_type in
7681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7690 shlibpath_var=LD_LIBRARY_PATH
7693 shlibpath_overrides_runpath=yes
7695 freebsd3.01* | freebsdelf3.01*)
7696 shlibpath_overrides_runpath=yes
7697 hardcode_into_libs=yes
7700 shlibpath_overrides_runpath=no
7701 hardcode_into_libs=yes
7710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7711 soname_spec='${libname}${release}${shared_ext}$major'
7712 shlibpath_var=LD_LIBRARY_PATH
7713 hardcode_into_libs=yes
7716 hpux9* | hpux10* | hpux11*)
7717 # Give a soname corresponding to the major version so that dld.sl refuses to
7718 # link against other versions.
7725 hardcode_into_libs=yes
7726 dynamic_linker="$host_os dld.so"
7727 shlibpath_var=LD_LIBRARY_PATH
7728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730 soname_spec='${libname}${release}${shared_ext}$major'
7731 if test "X$HPUX_IA64_MODE" = X32; then
7732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7740 hardcode_into_libs=yes
7741 dynamic_linker="$host_os dld.sl"
7742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7745 soname_spec='${libname}${release}${shared_ext}$major'
7746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7751 dynamic_linker="$host_os dld.sl"
7752 shlibpath_var=SHLIB_PATH
7753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7755 soname_spec='${libname}${release}${shared_ext}$major'
7758 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7759 postinstall_cmds='chmod 555 $lib'
7762 irix5* | irix6* | nonstopux*)
7764 nonstopux*) version_type=nonstopux ;;
7766 if test "$lt_cv_prog_gnu_ld" = yes; then
7774 soname_spec='${libname}${release}${shared_ext}$major'
7775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7777 irix5* | nonstopux*)
7781 case $LD in # libtool.m4 will add one of these switches to LD
7782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7783 libsuff= shlibsuff= libmagic=32-bit;;
7784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7785 libsuff=32 shlibsuff=N32 libmagic=N32;;
7786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7788 *) libsuff= shlibsuff= libmagic=never-match;;
7792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7793 shlibpath_overrides_runpath=no
7794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7796 hardcode_into_libs=yes
7799 # No shared lib support for Linux oldld, aout, or coff.
7800 linux*oldld* | linux*aout* | linux*coff*)
7804 # This must be Linux ELF.
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810 soname_spec='${libname}${release}${shared_ext}$major'
7811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7812 shlibpath_var=LD_LIBRARY_PATH
7813 shlibpath_overrides_runpath=no
7814 # This implies no fast_install, which is unacceptable.
7815 # Some rework will be needed to allow for fast_install
7816 # before this can be enabled.
7817 hardcode_into_libs=yes
7819 # Append ld.so.conf contents to the search path
7820 if test -f /etc/ld.so.conf; then
7821 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7822 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7825 # We used to test for /lib/ld.so.1 and disable shared libraries on
7826 # powerpc, because MkLinux only supported shared libraries with the
7827 # GNU dynamic linker. Since this was broken with cross compilers,
7828 # most powerpc-linux boxes support dynamic linking these days and
7829 # people can always --disable-shared, the test was removed, and we
7830 # assume the GNU/Linux dynamic linker is in use.
7831 dynamic_linker='GNU/Linux ld.so'
7838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7839 soname_spec='${libname}${release}${shared_ext}$major'
7840 shlibpath_var=LD_LIBRARY_PATH
7841 shlibpath_overrides_runpath=no
7842 hardcode_into_libs=yes
7843 dynamic_linker='GNU ld.so'
7850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7853 dynamic_linker='NetBSD (a.out) ld.so'
7855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7856 soname_spec='${libname}${release}${shared_ext}$major'
7857 dynamic_linker='NetBSD ld.elf_so'
7859 shlibpath_var=LD_LIBRARY_PATH
7860 shlibpath_overrides_runpath=yes
7861 hardcode_into_libs=yes
7866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7867 shlibpath_var=LD_LIBRARY_PATH
7868 shlibpath_overrides_runpath=yes
7875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7876 soname_spec='${libname}${release}${shared_ext}$major'
7877 shlibpath_var=LD_LIBRARY_PATH
7878 shlibpath_overrides_runpath=yes
7885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7887 shlibpath_var=LD_LIBRARY_PATH
7888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7890 openbsd2.[89] | openbsd2.[89].*)
7891 shlibpath_overrides_runpath=no
7894 shlibpath_overrides_runpath=yes
7898 shlibpath_overrides_runpath=yes
7903 libname_spec='$name'
7906 library_names_spec='$libname${shared_ext} $libname.a'
7907 dynamic_linker='OS/2 ld.exe'
7908 shlibpath_var=LIBPATH
7911 osf3* | osf4* | osf5*)
7915 soname_spec='${libname}${release}${shared_ext}$major'
7916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7917 shlibpath_var=LD_LIBRARY_PATH
7918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7924 soname_spec='${libname}${release}${shared_ext}$major'
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7926 shlibpath_var=LD_LIBRARY_PATH
7933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7934 soname_spec='${libname}${release}${shared_ext}$major'
7935 shlibpath_var=LD_LIBRARY_PATH
7936 shlibpath_overrides_runpath=yes
7937 hardcode_into_libs=yes
7938 # ldd complains unless libraries are executable
7939 postinstall_cmds='chmod +x $lib'
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7945 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7946 shlibpath_var=LD_LIBRARY_PATH
7947 shlibpath_overrides_runpath=yes
7948 if test "$with_gnu_ld" = yes; then
7954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957 soname_spec='${libname}${release}${shared_ext}$major'
7958 shlibpath_var=LD_LIBRARY_PATH
7959 case $host_vendor in
7961 shlibpath_overrides_runpath=no
7963 export_dynamic_flag_spec='${wl}-Blargedynsym'
7964 runpath_var=LD_RUN_PATH
7972 shlibpath_overrides_runpath=no
7973 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7979 if test -d /usr/nec ;then
7981 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7982 soname_spec='$libname${shared_ext}.$major'
7983 shlibpath_var=LD_LIBRARY_PATH
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 shlibpath_var=LD_LIBRARY_PATH
7998 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7999 echo "${ECHO_T}$dynamic_linker" >&6
8000 test "$dynamic_linker" = no && can_build_shared=no
8002 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8003 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8005 if test -n "$hardcode_libdir_flag_spec" || \
8006 test -n "$runpath_var " || \
8007 test "X$hardcode_automatic"="Xyes" ; then
8009 # We can hardcode non-existant directories.
8010 if test "$hardcode_direct" != no &&
8011 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8012 # have to relink, otherwise we might link with an installed library
8013 # when we should be linking with a yet-to-be-installed one
8014 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8015 test "$hardcode_minus_L" != no; then
8016 # Linking always hardcodes the temporary library directory.
8017 hardcode_action=relink
8019 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8020 hardcode_action=immediate
8023 # We cannot hardcode anything, or else we can only hardcode existing
8025 hardcode_action=unsupported
8027 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8028 echo "${ECHO_T}$hardcode_action" >&6
8030 if test "$hardcode_action" = relink; then
8031 # Fast installation is not supported
8032 enable_fast_install=no
8033 elif test "$shlibpath_overrides_runpath" = yes ||
8034 test "$enable_shared" = no; then
8035 # Fast installation is not necessary
8036 enable_fast_install=needless
8041 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8042 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8043 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8044 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8045 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8046 echo "$as_me:$LINENO: result: yes" >&5
8047 echo "${ECHO_T}yes" >&6
8049 # FIXME - insert some real tests, host_os isn't really good enough
8052 if test -n "$STRIP" ; then
8053 striplib="$STRIP -x"
8054 echo "$as_me:$LINENO: result: yes" >&5
8055 echo "${ECHO_T}yes" >&6
8057 echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8062 echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8068 if test "x$enable_dlopen" != xyes; then
8069 enable_dlopen=unknown
8070 enable_dlopen_self=unknown
8071 enable_dlopen_self_static=unknown
8078 lt_cv_dlopen="load_add_on"
8080 lt_cv_dlopen_self=yes
8084 lt_cv_dlopen="LoadLibrary"
8089 lt_cv_dlopen="dlopen"
8094 # if libdl is installed we need to link against it
8095 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8096 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 ac_check_lib_save_LIBS=$LIBS
8102 cat >conftest.$ac_ext <<_ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8109 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126 (eval $ac_link) 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest$ac_exeext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_lib_dl_dlopen=yes
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_cv_lib_dl_dlopen=no
8153 rm -f conftest.err conftest.$ac_objext \
8154 conftest$ac_exeext conftest.$ac_ext
8155 LIBS=$ac_check_lib_save_LIBS
8157 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8158 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8159 if test $ac_cv_lib_dl_dlopen = yes; then
8160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8165 lt_cv_dlopen_self=yes
8172 echo "$as_me:$LINENO: checking for shl_load" >&5
8173 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8174 if test "${ac_cv_func_shl_load+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8185 #define shl_load innocuous_shl_load
8187 /* System header to define __stub macros and hopefully few prototypes,
8188 which can conflict with char shl_load (); below.
8189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190 <limits.h> exists even on freestanding compilers. */
8193 # include <limits.h>
8195 # include <assert.h>
8200 /* Override any gcc2 internal prototype to avoid an error. */
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8208 /* The GNU C library defines this for functions which it implements
8209 to always fail with ENOSYS. Some functions are actually named
8210 something starting with __ and the normal name is an alias. */
8211 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8214 char (*f) () = shl_load;
8223 return f != shl_load;
8228 rm -f conftest.$ac_objext conftest$ac_exeext
8229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230 (eval $ac_link) 2>conftest.er1
8232 grep -v '^ *+' conftest.er1 >conftest.err
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -z "$ac_c_werror_flag"
8238 || test ! -s conftest.err'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; } &&
8244 { ac_try='test -s conftest$ac_exeext'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8250 ac_cv_func_shl_load=yes
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_cv_func_shl_load=no
8257 rm -f conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
8260 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8261 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8262 if test $ac_cv_func_shl_load = yes; then
8263 lt_cv_dlopen="shl_load"
8265 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8266 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8267 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_check_lib_save_LIBS=$LIBS
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8279 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag"
8304 || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_lib_dld_shl_load=yes
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 ac_cv_lib_dld_shl_load=no
8323 rm -f conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8325 LIBS=$ac_check_lib_save_LIBS
8327 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8328 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8329 if test $ac_cv_lib_dld_shl_load = yes; then
8330 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8332 echo "$as_me:$LINENO: checking for dlopen" >&5
8333 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8334 if test "${ac_cv_func_dlopen+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8345 #define dlopen innocuous_dlopen
8347 /* System header to define __stub macros and hopefully few prototypes,
8348 which can conflict with char dlopen (); below.
8349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8350 <limits.h> exists even on freestanding compilers. */
8353 # include <limits.h>
8355 # include <assert.h>
8360 /* Override any gcc2 internal prototype to avoid an error. */
8365 /* We use char because int might match the return type of a gcc2
8366 builtin and then its argument prototype would still apply. */
8368 /* The GNU C library defines this for functions which it implements
8369 to always fail with ENOSYS. Some functions are actually named
8370 something starting with __ and the normal name is an alias. */
8371 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8374 char (*f) () = dlopen;
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390 (eval $ac_link) 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag"
8398 || test ! -s conftest.err'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 ac_cv_func_dlopen=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_func_dlopen=no
8417 rm -f conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8420 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8421 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8422 if test $ac_cv_func_dlopen = yes; then
8423 lt_cv_dlopen="dlopen"
8425 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8426 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8427 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 ac_check_lib_save_LIBS=$LIBS
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_lib_dl_dlopen=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_lib_dl_dlopen=no
8483 rm -f conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 LIBS=$ac_check_lib_save_LIBS
8487 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8488 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8489 if test $ac_cv_lib_dl_dlopen = yes; then
8490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8492 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8493 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8494 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_check_lib_save_LIBS=$LIBS
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8506 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8521 rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523 (eval $ac_link) 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_c_werror_flag"
8531 || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_lib_svld_dlopen=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_cv_lib_svld_dlopen=no
8550 rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_lib_save_LIBS
8554 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8555 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8556 if test $ac_cv_lib_svld_dlopen = yes; then
8557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8559 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8560 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8561 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 ac_check_lib_save_LIBS=$LIBS
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8573 /* Override any gcc2 internal prototype to avoid an error. */
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590 (eval $ac_link) 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag"
8598 || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_cv_lib_dld_dld_link=yes
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_cv_lib_dld_dld_link=no
8617 rm -f conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8621 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8622 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8623 if test $ac_cv_lib_dld_dld_link = yes; then
8624 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8645 if test "x$lt_cv_dlopen" != xno; then
8651 case $lt_cv_dlopen in
8653 save_CPPFLAGS="$CPPFLAGS"
8654 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8656 save_LDFLAGS="$LDFLAGS"
8657 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8660 LIBS="$lt_cv_dlopen_libs $LIBS"
8662 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8663 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8664 if test "${lt_cv_dlopen_self+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 if test "$cross_compiling" = yes; then :
8668 lt_cv_dlopen_self=cross
8670 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8671 lt_status=$lt_dlunknown
8672 cat > conftest.$ac_ext <<EOF
8673 #line 8673 "configure"
8674 #include "confdefs.h"
8683 # define LT_DLGLOBAL RTLD_GLOBAL
8686 # define LT_DLGLOBAL DL_GLOBAL
8688 # define LT_DLGLOBAL 0
8692 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8693 find out it does not work in some platform. */
8694 #ifndef LT_DLLAZY_OR_NOW
8696 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8699 # define LT_DLLAZY_OR_NOW DL_LAZY
8702 # define LT_DLLAZY_OR_NOW RTLD_NOW
8705 # define LT_DLLAZY_OR_NOW DL_NOW
8707 # define LT_DLLAZY_OR_NOW 0
8715 extern "C" void exit (int);
8718 void fnord() { int i=42;}
8721 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8722 int status = $lt_dlunknown;
8726 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8727 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8728 /* dlclose (self); */
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735 (eval $ac_link) 2>&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8739 (./conftest; exit; ) 2>/dev/null
8742 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8743 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8744 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8747 # compilation failed
8748 lt_cv_dlopen_self=no
8755 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8756 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8758 if test "x$lt_cv_dlopen_self" = xyes; then
8759 LDFLAGS="$LDFLAGS $link_static_flag"
8760 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8761 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8762 if test "${lt_cv_dlopen_self_static+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 if test "$cross_compiling" = yes; then :
8766 lt_cv_dlopen_self_static=cross
8768 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8769 lt_status=$lt_dlunknown
8770 cat > conftest.$ac_ext <<EOF
8771 #line 8771 "configure"
8772 #include "confdefs.h"
8781 # define LT_DLGLOBAL RTLD_GLOBAL
8784 # define LT_DLGLOBAL DL_GLOBAL
8786 # define LT_DLGLOBAL 0
8790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8791 find out it does not work in some platform. */
8792 #ifndef LT_DLLAZY_OR_NOW
8794 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8797 # define LT_DLLAZY_OR_NOW DL_LAZY
8800 # define LT_DLLAZY_OR_NOW RTLD_NOW
8803 # define LT_DLLAZY_OR_NOW DL_NOW
8805 # define LT_DLLAZY_OR_NOW 0
8813 extern "C" void exit (int);
8816 void fnord() { int i=42;}
8819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8820 int status = $lt_dlunknown;
8824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8825 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8826 /* dlclose (self); */
8832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833 (eval $ac_link) 2>&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8837 (./conftest; exit; ) 2>/dev/null
8840 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8841 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8842 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8845 # compilation failed
8846 lt_cv_dlopen_self_static=no
8853 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8854 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8857 CPPFLAGS="$save_CPPFLAGS"
8858 LDFLAGS="$save_LDFLAGS"
8863 case $lt_cv_dlopen_self in
8864 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8865 *) enable_dlopen_self=unknown ;;
8868 case $lt_cv_dlopen_self_static in
8869 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8870 *) enable_dlopen_self_static=unknown ;;
8875 # Report which librarie types wil actually be built
8876 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8877 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8878 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8879 echo "${ECHO_T}$can_build_shared" >&6
8881 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8882 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8883 test "$can_build_shared" = "no" && enable_shared=no
8885 # On AIX, shared libraries and static libraries use the same namespace, and
8886 # are all built from PIC.
8889 test "$enable_shared" = yes && enable_static=no
8890 if test -n "$RANLIB"; then
8891 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8892 postinstall_cmds='$RANLIB $lib'
8897 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8898 test "$enable_shared" = yes && enable_static=no
8901 darwin* | rhapsody*)
8902 if test "$GCC" = yes; then
8903 archive_cmds_need_lc=no
8905 rhapsody* | darwin1.[012])
8906 allow_undefined_flag='-undefined suppress'
8909 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8910 allow_undefined_flag='-flat_namespace -undefined suppress'
8912 case ${MACOSX_DEPLOYMENT_TARGET} in
8914 allow_undefined_flag='-flat_namespace -undefined suppress'
8917 allow_undefined_flag='-undefined dynamic_lookup'
8923 output_verbose_link_cmd='echo'
8924 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8925 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8927 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}'
8928 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}'
8930 hardcode_automatic=yes
8931 hardcode_shlibpath_var=unsupported
8932 whole_archive_flag_spec='-all_load $convenience'
8933 link_all_deplibs=yes
8939 echo "$as_me:$LINENO: result: $enable_shared" >&5
8940 echo "${ECHO_T}$enable_shared" >&6
8942 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8943 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8944 # Make sure either enable_shared or enable_static is yes.
8945 test "$enable_shared" = yes || enable_static=yes
8946 echo "$as_me:$LINENO: result: $enable_static" >&5
8947 echo "${ECHO_T}$enable_static" >&6
8949 # The else clause should only fire when bootstrapping the
8950 # libtool distribution, otherwise you forgot to ship ltmain.sh
8951 # with your package, and you will get complaints that there are
8952 # no rules to generate ltmain.sh.
8953 if test -f "$ltmain"; then
8954 # See if we are running on zsh, and set the options which allow our commands through
8955 # without removal of \ escapes.
8956 if test -n "${ZSH_VERSION+set}" ; then
8957 setopt NO_GLOB_SUBST
8959 # Now quote all the things that may contain metacharacters while being
8960 # careful not to overquote the AC_SUBSTed values. We take copies of the
8961 # variables and quote the copies for generation of the libtool script.
8962 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8964 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8965 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8966 deplibs_check_method reload_flag reload_cmds need_locks \
8967 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8968 lt_cv_sys_global_symbol_to_c_name_address \
8969 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8970 old_postinstall_cmds old_postuninstall_cmds \
8974 lt_prog_compiler_wl \
8975 lt_prog_compiler_pic \
8976 lt_prog_compiler_static \
8977 lt_prog_compiler_no_builtin_flag \
8978 export_dynamic_flag_spec \
8979 thread_safe_flag_spec \
8980 whole_archive_flag_spec \
8981 enable_shared_with_static_runtimes \
8983 old_archive_from_new_cmds \
8988 compiler_lib_search_path \
8990 archive_expsym_cmds \
8992 postuninstall_cmds \
8993 old_archive_from_expsyms_cmds \
8994 allow_undefined_flag \
8996 export_symbols_cmds \
8997 hardcode_libdir_flag_spec \
8998 hardcode_libdir_flag_spec_ld \
8999 hardcode_libdir_separator \
9000 hardcode_automatic \
9002 module_expsym_cmds \
9003 lt_cv_prog_compiler_c_o \
9008 old_archive_cmds | \
9009 old_archive_from_new_cmds | \
9011 archive_expsym_cmds | \
9013 module_expsym_cmds | \
9014 old_archive_from_expsyms_cmds | \
9015 export_symbols_cmds | \
9016 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9017 postinstall_cmds | postuninstall_cmds | \
9018 old_postinstall_cmds | old_postuninstall_cmds | \
9019 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9020 # Double-quote double-evaled strings.
9021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9030 *'\$0 --fallback-echo"')
9031 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9036 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9038 { echo "$as_me:$LINENO: creating $ofile" >&5
9039 echo "$as_me: creating $ofile" >&6;}
9041 cat <<__EOF__ >> "$cfgfile"
9044 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9045 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9046 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9048 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9049 # Free Software Foundation, Inc.
9051 # This file is part of GNU Libtool:
9052 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9054 # This program is free software; you can redistribute it and/or modify
9055 # it under the terms of the GNU General Public License as published by
9056 # the Free Software Foundation; either version 2 of the License, or
9057 # (at your option) any later version.
9059 # This program is distributed in the hope that it will be useful, but
9060 # WITHOUT ANY WARRANTY; without even the implied warranty of
9061 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9062 # General Public License for more details.
9064 # You should have received a copy of the GNU General Public License
9065 # along with this program; if not, write to the Free Software
9066 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9068 # As a special exception to the GNU General Public License, if you
9069 # distribute this file as part of a program that contains a
9070 # configuration script generated by Autoconf, you may include it under
9071 # the same distribution terms that you use for the rest of that program.
9073 # A sed program that does not truncate output.
9076 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9077 Xsed="$SED -e s/^X//"
9079 # The HP-UX ksh and POSIX shell print the target directory to stdout
9081 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9083 # The names of the tagged configurations supported by this script.
9086 # ### BEGIN LIBTOOL CONFIG
9088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9090 # Shell to use when invoking shell scripts.
9093 # Whether or not to build shared libraries.
9094 build_libtool_libs=$enable_shared
9096 # Whether or not to build static libraries.
9097 build_old_libs=$enable_static
9099 # Whether or not to add -lc for building shared libraries.
9100 build_libtool_need_lc=$archive_cmds_need_lc
9102 # Whether or not to disallow shared libs when runtime libs are static
9103 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9105 # Whether or not to optimize for fast installation.
9106 fast_install=$enable_fast_install
9109 host_alias=$host_alias
9112 # An echo program that does not interpret backslashes.
9117 AR_FLAGS=$lt_AR_FLAGS
9122 # A language-specific compiler.
9125 # Is the compiler the GNU C compiler?
9131 # The linker used to build libraries.
9134 # Whether we need hard or soft links.
9137 # A BSD-compatible nm program.
9140 # A symbol stripping program
9143 # Used to examine libraries when file_magic_cmd begins "file"
9144 MAGIC_CMD=$MAGIC_CMD
9146 # Used on cygwin: DLL creation program.
9149 # Used on cygwin: object dumper.
9152 # Used on cygwin: assembler.
9155 # The name of the directory that contains temporary libtool files.
9158 # How to create reloadable object files.
9159 reload_flag=$lt_reload_flag
9160 reload_cmds=$lt_reload_cmds
9162 # How to pass a linker flag through the compiler.
9163 wl=$lt_lt_prog_compiler_wl
9165 # Object file suffix (normally "o").
9168 # Old archive suffix (normally "a").
9171 # Shared library suffix (normally ".so").
9174 # Executable file suffix (normally "").
9177 # Additional compiler flags for building library objects.
9178 pic_flag=$lt_lt_prog_compiler_pic
9181 # What is the maximum length of a command?
9182 max_cmd_len=$lt_cv_sys_max_cmd_len
9184 # Does compiler simultaneously support -c and -o options?
9185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9187 # Must we lock files when doing compilation ?
9188 need_locks=$lt_need_locks
9190 # Do we need the lib prefix for modules?
9191 need_lib_prefix=$need_lib_prefix
9193 # Do we need a version for libraries?
9194 need_version=$need_version
9196 # Whether dlopen is supported.
9197 dlopen_support=$enable_dlopen
9199 # Whether dlopen of programs is supported.
9200 dlopen_self=$enable_dlopen_self
9202 # Whether dlopen of statically linked programs is supported.
9203 dlopen_self_static=$enable_dlopen_self_static
9205 # Compiler flag to prevent dynamic linking.
9206 link_static_flag=$lt_lt_prog_compiler_static
9208 # Compiler flag to turn off builtin functions.
9209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9211 # Compiler flag to allow reflexive dlopens.
9212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9214 # Compiler flag to generate shared objects directly from archives.
9215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9217 # Compiler flag to generate thread-safe objects.
9218 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9220 # Library versioning type.
9221 version_type=$version_type
9223 # Format of library name prefix.
9224 libname_spec=$lt_libname_spec
9226 # List of archive names. First name is the real one, the rest are links.
9227 # The last name is the one that the linker finds with -lNAME.
9228 library_names_spec=$lt_library_names_spec
9230 # The coded name of the library, if different from the real name.
9231 soname_spec=$lt_soname_spec
9233 # Commands used to build and install an old-style archive.
9235 old_archive_cmds=$lt_old_archive_cmds
9236 old_postinstall_cmds=$lt_old_postinstall_cmds
9237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9239 # Create an old-style archive from a shared archive.
9240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9242 # Create a temporary old-style archive to link instead of a shared archive.
9243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9245 # Commands used to build and install a shared archive.
9246 archive_cmds=$lt_archive_cmds
9247 archive_expsym_cmds=$lt_archive_expsym_cmds
9248 postinstall_cmds=$lt_postinstall_cmds
9249 postuninstall_cmds=$lt_postuninstall_cmds
9251 # Commands used to build a loadable module (assumed same as above if empty)
9252 module_cmds=$lt_module_cmds
9253 module_expsym_cmds=$lt_module_expsym_cmds
9255 # Commands to strip libraries.
9256 old_striplib=$lt_old_striplib
9257 striplib=$lt_striplib
9259 # Dependencies to place before the objects being linked to create a
9261 predep_objects=$lt_predep_objects
9263 # Dependencies to place after the objects being linked to create a
9265 postdep_objects=$lt_postdep_objects
9267 # Dependencies to place before the objects being linked to create a
9271 # Dependencies to place after the objects being linked to create a
9273 postdeps=$lt_postdeps
9275 # The library search path used internally by the compiler when linking
9277 compiler_lib_search_path=$lt_compiler_lib_search_path
9279 # Method to check whether dependent libraries are shared objects.
9280 deplibs_check_method=$lt_deplibs_check_method
9282 # Command to use when deplibs_check_method == file_magic.
9283 file_magic_cmd=$lt_file_magic_cmd
9285 # Flag that allows shared libraries with undefined symbols to be built.
9286 allow_undefined_flag=$lt_allow_undefined_flag
9288 # Flag that forces no undefined symbols.
9289 no_undefined_flag=$lt_no_undefined_flag
9291 # Commands used to finish a libtool library installation in a directory.
9292 finish_cmds=$lt_finish_cmds
9294 # Same as above, but a single script fragment to be evaled but not shown.
9295 finish_eval=$lt_finish_eval
9297 # Take the output of nm and produce a listing of raw symbols and C names.
9298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9300 # Transform the output of nm in a proper C declaration
9301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9303 # Transform the output of nm in a C name address pair
9304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9306 # This is the shared library runtime path variable.
9307 runpath_var=$runpath_var
9309 # This is the shared library path variable.
9310 shlibpath_var=$shlibpath_var
9312 # Is shlibpath searched before the hard-coded library search path?
9313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9315 # How to hardcode a shared library path into an executable.
9316 hardcode_action=$hardcode_action
9318 # Whether we should hardcode library paths into libraries.
9319 hardcode_into_libs=$hardcode_into_libs
9321 # Flag to hardcode \$libdir into a binary during linking.
9322 # This must work even if \$libdir does not exist.
9323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9325 # If ld is used when linking, flag to hardcode \$libdir into
9326 # a binary during linking. This must work even if \$libdir does
9328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9330 # Whether we need a single -rpath flag with a separated argument.
9331 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9335 hardcode_direct=$hardcode_direct
9337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9339 hardcode_minus_L=$hardcode_minus_L
9341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9342 # the resulting binary.
9343 hardcode_shlibpath_var=$hardcode_shlibpath_var
9345 # Set to yes if building a shared library automatically hardcodes DIR into the library
9346 # and all subsequent libraries and executables linked against it.
9347 hardcode_automatic=$hardcode_automatic
9349 # Variables whose values should be saved in libtool wrapper scripts and
9350 # restored at relink time.
9351 variables_saved_for_relink="$variables_saved_for_relink"
9353 # Whether libtool must link a program against all its dependency libraries.
9354 link_all_deplibs=$link_all_deplibs
9356 # Compile-time system search path for libraries
9357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9359 # Run-time system search path for libraries
9360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9362 # Fix the shell variable \$srcfile for the compiler.
9363 fix_srcfile_path="$fix_srcfile_path"
9365 # Set to yes if exported symbols are required.
9366 always_export_symbols=$always_export_symbols
9368 # The commands to list exported symbols.
9369 export_symbols_cmds=$lt_export_symbols_cmds
9371 # The commands to extract the exported symbol list from a shared archive.
9372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9374 # Symbols that should not be listed in the preloaded symbols.
9375 exclude_expsyms=$lt_exclude_expsyms
9377 # Symbols that must always be exported.
9378 include_expsyms=$lt_include_expsyms
9380 # ### END LIBTOOL CONFIG
9387 cat <<\EOF >> "$cfgfile"
9389 # AIX sometimes has problems with the GCC collect2 program. For some
9390 # reason, if we set the COLLECT_NAMES environment variable, the problems
9391 # vanish in a puff of smoke.
9392 if test "X${COLLECT_NAMES+set}" != Xset; then
9394 export COLLECT_NAMES
9400 # We use sed instead of cat because bash on DJGPP gets confused if
9401 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9402 # text mode, it properly converts lines to CR/LF. This bash problem
9403 # is reportedly fixed, but why not run on old versions too?
9404 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9406 mv -f "$cfgfile" "$ofile" || \
9407 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9411 # If there is no Makefile yet, we rely on a make rule to execute
9412 # `config.status --recheck' to rerun these tests and create the
9413 # libtool script then.
9414 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9415 if test -f "$ltmain_in"; then
9416 test -f Makefile && make "$ltmain"
9422 ac_cpp='$CPP $CPPFLAGS'
9423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9430 # Check whether --with-tags or --without-tags was given.
9431 if test "${with_tags+set}" = set; then
9432 withval="$with_tags"
9436 if test -f "$ltmain" && test -n "$tagnames"; then
9437 if test ! -f "${ofile}"; then
9438 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9439 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9442 if test -z "$LTCC"; then
9443 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9444 if test -z "$LTCC"; then
9445 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9446 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9449 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9453 # Extract list of available tagged configurations in $ofile.
9454 # Note that this assumes the entire list is on one line.
9455 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9458 for tagname in $tagnames; do
9460 # Check whether tagname contains only valid characters
9461 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9463 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9464 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9465 { (exit 1); exit 1; }; }
9469 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9471 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9472 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9473 { (exit 1); exit 1; }; }
9476 # Update the list of available tags.
9477 if test -n "$tagname"; then
9478 echo appending configuration tag \"$tagname\" to $ofile
9482 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9484 ac_cpp='$CXXCPP $CPPFLAGS'
9485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9492 archive_cmds_need_lc_CXX=no
9493 allow_undefined_flag_CXX=
9494 always_export_symbols_CXX=no
9495 archive_expsym_cmds_CXX=
9496 export_dynamic_flag_spec_CXX=
9497 hardcode_direct_CXX=no
9498 hardcode_libdir_flag_spec_CXX=
9499 hardcode_libdir_flag_spec_ld_CXX=
9500 hardcode_libdir_separator_CXX=
9501 hardcode_minus_L_CXX=no
9502 hardcode_automatic_CXX=no
9504 module_expsym_cmds_CXX=
9505 link_all_deplibs_CXX=unknown
9506 old_archive_cmds_CXX=$old_archive_cmds
9507 no_undefined_flag_CXX=
9508 whole_archive_flag_spec_CXX=
9509 enable_shared_with_static_runtimes_CXX=no
9511 # Dependencies to place before and after the object being linked:
9513 postdep_objects_CXX=
9516 compiler_lib_search_path_CXX=
9518 # Source file extension for C++ test sources.
9521 # Object file extension for compiled C++ test sources.
9525 # Code to be used in simple compile tests
9526 lt_simple_compile_test_code="int some_variable = 0;\n"
9528 # Code to be used in simple link tests
9529 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9533 # If no C compiler was specified, use CC.
9536 # Allow CC to be a program name with arguments.
9540 # Allow CC to be a program name with arguments.
9545 lt_save_with_gnu_ld=$with_gnu_ld
9546 lt_save_path_LD=$lt_cv_path_LD
9547 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9548 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9550 unset lt_cv_prog_gnu_ld
9552 if test -n "${lt_cv_path_LDCXX+set}"; then
9553 lt_cv_path_LD=$lt_cv_path_LDCXX
9557 test -z "${LDCXX+set}" || LD=$LDCXX
9561 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9563 # We don't want -fno-exception wen compiling C++ code, so set the
9564 # no_builtin_flag separately
9565 if test "$GXX" = yes; then
9566 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9568 lt_prog_compiler_no_builtin_flag_CXX=
9571 if test "$GXX" = yes; then
9572 # Set up default GNU C++ configuration
9575 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9576 if test "${with_gnu_ld+set}" = set; then
9577 withval="$with_gnu_ld"
9578 test "$withval" = no || with_gnu_ld=yes
9583 if test "$GCC" = yes; then
9584 # Check if gcc -print-prog-name=ld gives a path.
9585 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9586 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9589 # gcc leaves a trailing carriage return which upsets mingw
9590 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9592 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9595 # Accept absolute paths.
9597 re_direlt='/[^/][^/]*/\.\./'
9598 # Canonicalize the pathname of ld
9599 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9600 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9601 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9603 test -z "$LD" && LD="$ac_prog"
9606 # If it fails, then pretend we aren't using GCC.
9610 # If it is relative, then search for the first ld in PATH.
9614 elif test "$with_gnu_ld" = yes; then
9615 echo "$as_me:$LINENO: checking for GNU ld" >&5
9616 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9618 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9619 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9621 if test "${lt_cv_path_LD+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 if test -z "$LD"; then
9625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9626 for ac_dir in $PATH; do
9628 test -z "$ac_dir" && ac_dir=.
9629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9630 lt_cv_path_LD="$ac_dir/$ac_prog"
9631 # Check to see if the program is GNU ld. I'd rather use --version,
9632 # but apparently some GNU ld's only accept -v.
9633 # Break only if it was the GNU/non-GNU ld that we prefer.
9634 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9635 *GNU* | *'with BFD'*)
9636 test "$with_gnu_ld" != no && break
9639 test "$with_gnu_ld" != yes && break
9646 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9651 if test -n "$LD"; then
9652 echo "$as_me:$LINENO: result: $LD" >&5
9653 echo "${ECHO_T}$LD" >&6
9655 echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6
9658 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9659 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9660 { (exit 1); exit 1; }; }
9661 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9662 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9663 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9667 case `$LD -v 2>&1 </dev/null` in
9668 *GNU* | *'with BFD'*)
9669 lt_cv_prog_gnu_ld=yes
9672 lt_cv_prog_gnu_ld=no
9676 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9677 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9678 with_gnu_ld=$lt_cv_prog_gnu_ld
9682 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9683 # archiving commands below assume that GNU ld is being used.
9684 if test "$with_gnu_ld" = yes; then
9685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9686 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'
9688 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9691 # If archive_cmds runs LD, not CC, wlarc should be empty
9692 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9693 # investigate it a little bit more. (MM)
9696 # ancient GNU ld didn't support --whole-archive et. al.
9697 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9698 grep 'no-whole-archive' > /dev/null; then
9699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9701 whole_archive_flag_spec_CXX=
9707 # A generic and very simple default shared library creation
9708 # command for GNU C++ for the case where it uses the native
9709 # linker, instead of GNU ld. If possible, this setting should
9710 # overridden to take advantage of the native linker features on
9711 # the platform it is being used on.
9712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9715 # Commands to make compiler produce verbose output that lists
9716 # what "hidden" libraries, object files and flags are used when
9717 # linking a shared library.
9718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9726 # PORTME: fill in a description of your system's C++ link characteristics
9727 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9728 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9732 # FIXME: insert proper C++ library support
9736 if test "$host_cpu" = ia64; then
9737 # On IA64, the linker does run time linking by default, so we don't
9738 # have to do anything special.
9739 aix_use_runtimelinking=no
9740 exp_sym_flag='-Bexport'
9743 aix_use_runtimelinking=no
9745 # Test if we are trying to use run time linking or normal
9746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9747 # need to do runtime linking.
9748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9749 for ld_flag in $LDFLAGS; do
9752 aix_use_runtimelinking=yes
9759 exp_sym_flag='-bexport'
9760 no_entry_flag='-bnoentry'
9763 # When large executables or shared objects are built, AIX ld can
9764 # have problems creating the table of contents. If linking a library
9765 # or program results in "error TOC overflow" add -mminimal-toc to
9766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9770 hardcode_direct_CXX=yes
9771 hardcode_libdir_separator_CXX=':'
9772 link_all_deplibs_CXX=yes
9774 if test "$GXX" = yes; then
9775 case $host_os in aix4.012|aix4.012.*)
9776 # We only want to do this on AIX 4.2 and lower, the check
9777 # below for broken collect2 doesn't work under 4.3+
9778 collect2name=`${CC} -print-prog-name=collect2`
9779 if test -f "$collect2name" && \
9780 strings "$collect2name" | grep resolve_lib_name >/dev/null
9782 # We have reworked collect2
9783 hardcode_direct_CXX=yes
9785 # We have old collect2
9786 hardcode_direct_CXX=unsupported
9787 # It fails to find uninstalled libraries when the uninstalled
9788 # path is not listed in the libpath. Setting hardcode_minus_L
9789 # to unsupported forces relinking
9790 hardcode_minus_L_CXX=yes
9791 hardcode_libdir_flag_spec_CXX='-L$libdir'
9792 hardcode_libdir_separator_CXX=
9795 shared_flag='-shared'
9798 if test "$host_cpu" = ia64; then
9799 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9800 # chokes on -Wl,-G. The following line is correct:
9803 if test "$aix_use_runtimelinking" = yes; then
9804 shared_flag='${wl}-G'
9806 shared_flag='${wl}-bM:SRE'
9811 # It seems that -bexpall does not export symbols beginning with
9812 # underscore (_), so it is better to generate a list of symbols to export.
9813 always_export_symbols_CXX=yes
9814 if test "$aix_use_runtimelinking" = yes; then
9815 # Warning - without using the other runtime loading flags (-brtl),
9816 # -berok will link without error, but may produce a broken library.
9817 allow_undefined_flag_CXX='-berok'
9818 # Determine the default libpath from the value encoded in an empty executable.
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1 >conftest.err
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_cxx_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9859 # Check for a 64-bit object if we didn't find anything.
9860 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; }
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9867 rm -f conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9871 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9873 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"
9875 if test "$host_cpu" = ia64; then
9876 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9877 allow_undefined_flag_CXX="-z nodefs"
9878 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"
9880 # Determine the default libpath from the value encoded in an empty executable.
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898 (eval $ac_link) 2>conftest.er1
9900 grep -v '^ *+' conftest.er1 >conftest.err
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } &&
9905 { ac_try='test -z "$ac_cxx_werror_flag"
9906 || test ! -s conftest.err'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9921 # Check for a 64-bit object if we didn't find anything.
9922 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; }
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9929 rm -f conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9933 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9934 # Warning - without using the other run time loading flags,
9935 # -berok will link without error, but may produce a broken library.
9936 no_undefined_flag_CXX=' ${wl}-bernotok'
9937 allow_undefined_flag_CXX=' ${wl}-berok'
9938 # -bexpall does not export symbols beginning with underscore (_)
9939 always_export_symbols_CXX=yes
9940 # Exported symbols can be pulled into shared objects from archives
9941 whole_archive_flag_spec_CXX=' '
9942 archive_cmds_need_lc_CXX=yes
9943 # This is similar to how AIX traditionally builds it's shared libraries.
9944 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'
9949 case $cc_basename in
9951 # FIXME: insert proper C++ library support
9957 cygwin* | mingw* | pw32*)
9958 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9959 # as there is no search path for DLLs.
9960 hardcode_libdir_flag_spec_CXX='-L$libdir'
9961 allow_undefined_flag_CXX=unsupported
9962 always_export_symbols_CXX=no
9963 enable_shared_with_static_runtimes_CXX=yes
9965 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9966 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'
9967 # If the export-symbols file already is a .def file (1st line
9968 # is EXPORTS), use it as is; otherwise, prepend...
9969 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9970 cp $export_symbols $output_objdir/$soname.def;
9972 echo EXPORTS > $output_objdir/$soname.def;
9973 cat $export_symbols >> $output_objdir/$soname.def;
9975 $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'
9981 darwin* | rhapsody*)
9982 if test "$GXX" = yes; then
9983 archive_cmds_need_lc_CXX=no
9985 rhapsody* | darwin1.[012])
9986 allow_undefined_flag_CXX='-undefined suppress'
9989 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9990 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9992 case ${MACOSX_DEPLOYMENT_TARGET} in
9994 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9997 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10003 lt_int_apple_cc_single_mod=no
10004 output_verbose_link_cmd='echo'
10005 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10006 lt_int_apple_cc_single_mod=yes
10008 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10009 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10011 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'
10013 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10015 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10016 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10017 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}'
10019 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}'
10021 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}'
10022 hardcode_direct_CXX=no
10023 hardcode_automatic_CXX=yes
10024 hardcode_shlibpath_var_CXX=unsupported
10025 whole_archive_flag_spec_CXX='-all_load $convenience'
10026 link_all_deplibs_CXX=yes
10033 case $cc_basename in
10035 # FIXME: insert proper C++ library support
10039 # Green Hills C++ Compiler
10040 # FIXME: insert proper C++ library support
10044 # FIXME: insert proper C++ library support
10050 # C++ shared libraries reported to be fairly broken before switch to ELF
10054 archive_cmds_need_lc_CXX=no
10056 freebsd* | kfreebsd*-gnu)
10057 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10064 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10065 hardcode_libdir_separator_CXX=:
10066 export_dynamic_flag_spec_CXX='${wl}-E'
10067 hardcode_direct_CXX=yes
10068 hardcode_minus_L_CXX=yes # Not in the search PATH,
10069 # but as the default
10070 # location of the library.
10072 case $cc_basename in
10074 # FIXME: insert proper C++ library support
10078 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'
10079 # Commands to make compiler produce verbose output that lists
10080 # what "hidden" libraries, object files and flags are used when
10081 # linking a shared library.
10083 # There doesn't appear to be a way to prevent this compiler from
10084 # explicitly linking system object files so we need to strip them
10085 # from the output so that they don't get included in the library
10087 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10090 if test "$GXX" = yes; then
10091 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'
10093 # FIXME: insert proper C++ library support
10100 if test $with_gnu_ld = no; then
10101 case "$host_cpu" in
10103 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10104 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10105 hardcode_libdir_separator_CXX=:
10108 hardcode_libdir_flag_spec_CXX='-L$libdir'
10111 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10112 hardcode_libdir_separator_CXX=:
10113 export_dynamic_flag_spec_CXX='${wl}-E'
10117 case "$host_cpu" in
10119 hardcode_direct_CXX=no
10120 hardcode_shlibpath_var_CXX=no
10123 hardcode_direct_CXX=no
10124 hardcode_shlibpath_var_CXX=no
10125 hardcode_minus_L_CXX=yes # Not in the search PATH,
10126 # but as the default
10127 # location of the library.
10130 hardcode_direct_CXX=yes
10131 hardcode_minus_L_CXX=yes # Not in the search PATH,
10132 # but as the default
10133 # location of the library.
10137 case $cc_basename in
10139 # FIXME: insert proper C++ library support
10143 case "$host_cpu" in
10145 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10148 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10151 # Commands to make compiler produce verbose output that lists
10152 # what "hidden" libraries, object files and flags are used when
10153 # linking a shared library.
10155 # There doesn't appear to be a way to prevent this compiler from
10156 # explicitly linking system object files so we need to strip them
10157 # from the output so that they don't get included in the library
10159 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'
10162 if test "$GXX" = yes; then
10163 if test $with_gnu_ld = no; then
10164 case "$host_cpu" in
10166 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10169 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'
10174 # FIXME: insert proper C++ library support
10181 case $cc_basename in
10184 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'
10186 # Archives containing C++ object files must be created using
10187 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10188 # necessary to make sure instantiated templates are included
10190 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10193 if test "$GXX" = yes; then
10194 if test "$with_gnu_ld" = no; then
10195 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'
10197 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'
10200 link_all_deplibs_CXX=yes
10203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10204 hardcode_libdir_separator_CXX=:
10207 case $cc_basename in
10209 # Kuck and Associates, Inc. (KAI) C++ Compiler
10211 # KCC will only create a shared library if the output file
10212 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10213 # to its proper name (with version) after linking.
10214 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'
10215 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'
10216 # Commands to make compiler produce verbose output that lists
10217 # what "hidden" libraries, object files and flags are used when
10218 # linking a shared library.
10220 # There doesn't appear to be a way to prevent this compiler from
10221 # explicitly linking system object files so we need to strip them
10222 # from the output so that they don't get included in the library
10224 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'
10226 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10227 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10229 # Archives containing C++ object files must be created using
10230 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10231 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10236 archive_cmds_need_lc_CXX=no
10237 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10238 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'
10239 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10240 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10241 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10245 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246 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'
10248 runpath_var=LD_RUN_PATH
10249 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10250 hardcode_libdir_separator_CXX=:
10252 # Commands to make compiler produce verbose output that lists
10253 # what "hidden" libraries, object files and flags are used when
10254 # linking a shared library.
10256 # There doesn't appear to be a way to prevent this compiler from
10257 # explicitly linking system object files so we need to strip them
10258 # from the output so that they don't get included in the library
10260 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'
10265 # FIXME: insert proper C++ library support
10269 # FIXME: insert proper C++ library support
10273 case $cc_basename in
10275 # FIXME: insert proper C++ library support
10279 # FIXME: insert proper C++ library support
10285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10286 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10288 hardcode_libdir_flag_spec_CXX='-R$libdir'
10289 hardcode_direct_CXX=yes
10290 hardcode_shlibpath_var_CXX=no
10292 # Workaround some broken pre-1.5 toolchains
10293 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10296 case $cc_basename in
10298 # Kuck and Associates, Inc. (KAI) C++ Compiler
10300 # KCC will only create a shared library if the output file
10301 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10302 # to its proper name (with version) after linking.
10303 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'
10305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10306 hardcode_libdir_separator_CXX=:
10308 # Archives containing C++ object files must be created using
10309 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10310 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10314 # Rational C++ 2.4.1
10315 # FIXME: insert proper C++ library support
10319 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10320 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'
10322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10323 hardcode_libdir_separator_CXX=:
10325 # Commands to make compiler produce verbose output that lists
10326 # what "hidden" libraries, object files and flags are used when
10327 # linking a shared library.
10329 # There doesn't appear to be a way to prevent this compiler from
10330 # explicitly linking system object files so we need to strip them
10331 # from the output so that they don't get included in the library
10333 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'
10336 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10337 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10338 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'
10340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10341 hardcode_libdir_separator_CXX=:
10343 # Commands to make compiler produce verbose output that lists
10344 # what "hidden" libraries, object files and flags are used when
10345 # linking a shared library.
10346 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10349 # FIXME: insert proper C++ library support
10356 case $cc_basename in
10358 # Kuck and Associates, Inc. (KAI) C++ Compiler
10360 # KCC will only create a shared library if the output file
10361 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10362 # to its proper name (with version) after linking.
10363 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'
10365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10366 hardcode_libdir_separator_CXX=:
10368 # Archives containing C++ object files must be created using
10369 # the KAI C++ compiler.
10370 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10373 # Rational C++ 2.4.1
10374 # FIXME: insert proper C++ library support
10378 allow_undefined_flag_CXX=' -expect_unresolved \*'
10379 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'
10380 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10381 echo "-hidden">> $lib.exp~
10382 $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~
10385 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10386 hardcode_libdir_separator_CXX=:
10388 # Commands to make compiler produce verbose output that lists
10389 # what "hidden" libraries, object files and flags are used when
10390 # linking a shared library.
10392 # There doesn't appear to be a way to prevent this compiler from
10393 # explicitly linking system object files so we need to strip them
10394 # from the output so that they don't get included in the library
10396 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'
10399 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10400 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10401 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'
10403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10404 hardcode_libdir_separator_CXX=:
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10409 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10412 # FIXME: insert proper C++ library support
10419 # FIXME: insert proper C++ library support
10423 archive_cmds_need_lc_CXX=no
10424 case $cc_basename in
10426 # FIXME: insert proper C++ library support
10430 # FIXME: insert proper C++ library support
10436 case $cc_basename in
10439 # FIXME: insert proper C++ library support
10444 # FIXME: insert proper C++ library support
10448 # FIXME: insert proper C++ library support
10454 case $cc_basename in
10456 # Sun C++ 4.2, 5.x and Centerline C++
10457 no_undefined_flag_CXX=' -zdefs'
10458 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10459 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10460 $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'
10462 hardcode_libdir_flag_spec_CXX='-R$libdir'
10463 hardcode_shlibpath_var_CXX=no
10465 solaris2.0-5 | solaris2.0-5.*) ;;
10467 # The C++ compiler is used as linker so we must use $wl
10468 # flag to pass the commands to the underlying system
10470 # Supported since Solaris 2.6 (maybe 2.5.1?)
10471 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10474 link_all_deplibs_CXX=yes
10476 # Commands to make compiler produce verbose output that lists
10477 # what "hidden" libraries, object files and flags are used when
10478 # linking a shared library.
10480 # There doesn't appear to be a way to prevent this compiler from
10481 # explicitly linking system object files so we need to strip them
10482 # from the output so that they don't get included in the library
10484 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'
10486 # Archives containing C++ object files must be created using
10487 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10488 # necessary to make sure instantiated templates are included
10490 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10493 # Green Hills C++ Compiler
10494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10496 # The C++ compiler must be used to create the archive.
10497 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10500 # GNU C++ compiler with Solaris linker
10501 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10502 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10503 if $CC --version | grep -v '^2\.7' > /dev/null; then
10504 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10505 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10506 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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\""
10513 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10515 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10516 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10517 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10519 # Commands to make compiler produce verbose output that lists
10520 # what "hidden" libraries, object files and flags are used when
10521 # linking a shared library.
10522 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10525 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10530 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10531 archive_cmds_need_lc_CXX=no
10534 case $cc_basename in
10536 # NonStop-UX NCC 3.20
10537 # FIXME: insert proper C++ library support
10541 # FIXME: insert proper C++ library support
10547 # FIXME: insert proper C++ library support
10551 # FIXME: insert proper C++ library support
10555 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10556 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10557 test "$ld_shlibs_CXX" = no && can_build_shared=no
10563 cat > conftest.$ac_ext <<EOF
10567 Foo (void) { a = 0; }
10573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574 (eval $ac_compile) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; then
10578 # Parse the compiler output and extract the necessary
10579 # objects, libraries and library flags.
10581 # Sentinel used to keep track of whether or not we are before
10582 # the conftest object file.
10583 pre_test_object_deps_done=no
10585 # The `*' in the case matches for architectures that use `case' in
10586 # $output_verbose_cmd can trigger glob expansion during the loop
10587 # eval without this substitution.
10588 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10590 for p in `eval $output_verbose_link_cmd`; do
10594 # Some compilers place space between "-{L,R}" and the path.
10595 # Remove the space.
10596 if test $p = "-L" \
10597 || test $p = "-R"; then
10604 if test "$pre_test_object_deps_done" = no; then
10607 # Internal compiler library paths should come after those
10608 # provided the user. The postdeps already come after the
10609 # user supplied libs so there is no need to process them.
10610 if test -z "$compiler_lib_search_path_CXX"; then
10611 compiler_lib_search_path_CXX="${prev}${p}"
10613 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10616 # The "-l" case would never come before the object being
10617 # linked, so don't bother handling this case.
10620 if test -z "$postdeps_CXX"; then
10621 postdeps_CXX="${prev}${p}"
10623 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10629 # This assumes that the test object file only shows up
10630 # once in the compiler output.
10631 if test "$p" = "conftest.$objext"; then
10632 pre_test_object_deps_done=yes
10636 if test "$pre_test_object_deps_done" = no; then
10637 if test -z "$predep_objects_CXX"; then
10638 predep_objects_CXX="$p"
10640 predep_objects_CXX="$predep_objects_CXX $p"
10643 if test -z "$postdep_objects_CXX"; then
10644 postdep_objects_CXX="$p"
10646 postdep_objects_CXX="$postdep_objects_CXX $p"
10651 *) ;; # Ignore the rest.
10659 echo "libtool.m4: error: problem compiling CXX test program"
10662 $rm -f confest.$objext
10664 case " $postdeps_CXX " in
10665 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10668 lt_prog_compiler_wl_CXX=
10669 lt_prog_compiler_pic_CXX=
10670 lt_prog_compiler_static_CXX=
10672 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10673 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10675 # C++ specific cases for pic, static, wl, etc.
10676 if test "$GXX" = yes; then
10677 lt_prog_compiler_wl_CXX='-Wl,'
10678 lt_prog_compiler_static_CXX='-static'
10682 # All AIX code is PIC.
10683 if test "$host_cpu" = ia64; then
10684 # AIX 5 now supports IA64 processor
10685 lt_prog_compiler_static_CXX='-Bstatic'
10689 # FIXME: we need at least 68020 code to build shared libraries, but
10690 # adding the `-m68020' flag to GCC prevents building anything better,
10692 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10694 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10695 # PIC is the default for these OSes.
10697 mingw* | os2* | pw32*)
10698 # This hack is so that the source file can tell whether it is being
10699 # built for inclusion in a dll (and should export symbols for example).
10700 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10702 darwin* | rhapsody*)
10703 # PIC is the default on this platform
10704 # Common symbols not allowed in MH_DYLIB files
10705 lt_prog_compiler_pic_CXX='-fno-common'
10708 # DJGPP does not support shared libraries at all
10709 lt_prog_compiler_pic_CXX=
10712 if test -d /usr/nec; then
10713 lt_prog_compiler_pic_CXX=-Kconform_pic
10717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10718 # not for PA HP-UX.
10719 case "$host_cpu" in
10723 lt_prog_compiler_pic_CXX='-fPIC'
10728 lt_prog_compiler_pic_CXX='-fPIC'
10734 # All AIX code is PIC.
10735 if test "$host_cpu" = ia64; then
10736 # AIX 5 now supports IA64 processor
10737 lt_prog_compiler_static_CXX='-Bstatic'
10739 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10743 case $cc_basename in
10745 # Green Hills C++ Compiler
10746 # _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"
10751 case $cc_basename in
10753 lt_prog_compiler_pic_CXX='-KPIC'
10756 # Green Hills C++ Compiler
10757 lt_prog_compiler_pic_CXX='-pic'
10763 freebsd* | kfreebsd*-gnu)
10764 # FreeBSD uses GNU C++
10766 hpux9* | hpux10* | hpux11*)
10767 case $cc_basename in
10769 lt_prog_compiler_wl_CXX='-Wl,'
10770 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10771 if test "$host_cpu" != ia64; then
10772 lt_prog_compiler_pic_CXX='+Z'
10776 lt_prog_compiler_wl_CXX='-Wl,'
10777 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10778 case "$host_cpu" in
10783 lt_prog_compiler_pic_CXX='+Z'
10791 irix5* | irix6* | nonstopux*)
10792 case $cc_basename in
10794 lt_prog_compiler_wl_CXX='-Wl,'
10795 lt_prog_compiler_static_CXX='-non_shared'
10796 # CC pic flag -KPIC is the default.
10803 case $cc_basename in
10806 lt_prog_compiler_wl_CXX='--backend -Wl,'
10807 lt_prog_compiler_pic_CXX='-fPIC'
10811 lt_prog_compiler_wl_CXX='-Wl,'
10812 lt_prog_compiler_pic_CXX='-KPIC'
10813 lt_prog_compiler_static_CXX='-static'
10817 # Make sure the PIC flag is empty. It appears that all Alpha
10818 # Linux and Compaq Tru64 Unix objects are PIC.
10819 lt_prog_compiler_pic_CXX=
10820 lt_prog_compiler_static_CXX='-non_shared'
10831 case $cc_basename in
10833 lt_prog_compiler_pic_CXX='-W c,exportall'
10841 osf3* | osf4* | osf5*)
10842 case $cc_basename in
10844 lt_prog_compiler_wl_CXX='--backend -Wl,'
10847 # Rational C++ 2.4.1
10848 lt_prog_compiler_pic_CXX='-pic'
10851 # Digital/Compaq C++
10852 lt_prog_compiler_wl_CXX='-Wl,'
10853 # Make sure the PIC flag is empty. It appears that all Alpha
10854 # Linux and Compaq Tru64 Unix objects are PIC.
10855 lt_prog_compiler_pic_CXX=
10856 lt_prog_compiler_static_CXX='-non_shared'
10865 case $cc_basename in
10867 lt_prog_compiler_pic_CXX='-fPIC'
10874 case $cc_basename in
10876 # Sun C++ 4.2, 5.x and Centerline C++
10877 lt_prog_compiler_pic_CXX='-KPIC'
10878 lt_prog_compiler_static_CXX='-Bstatic'
10879 lt_prog_compiler_wl_CXX='-Qoption ld '
10882 # Green Hills C++ Compiler
10883 lt_prog_compiler_pic_CXX='-PIC'
10890 case $cc_basename in
10893 lt_prog_compiler_pic_CXX='-pic'
10894 lt_prog_compiler_static_CXX='-Bstatic'
10898 lt_prog_compiler_pic_CXX='-pic'
10905 case $cc_basename in
10907 # NonStop-UX NCC 3.20
10908 lt_prog_compiler_pic_CXX='-KPIC'
10919 lt_prog_compiler_can_build_shared_CXX=no
10924 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10925 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10928 # Check to make sure the PIC flag actually works.
10930 if test -n "$lt_prog_compiler_pic_CXX"; then
10932 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10933 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10934 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 lt_prog_compiler_pic_works_CXX=no
10938 ac_outfile=conftest.$ac_objext
10939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10940 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10941 # Insert the option either (1) after the last *FLAGS variable, or
10942 # (2) before a word containing "conftest.", or (3) at the end.
10943 # Note that $ac_compile itself does not contain backslashes and begins
10944 # with a dollar sign (not a hyphen), so the echo should work correctly.
10945 # The option is referenced via a variable to avoid confusing sed.
10946 lt_compile=`echo "$ac_compile" | $SED \
10947 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10949 -e 's:$: $lt_compiler_flag:'`
10950 (eval echo "\"\$as_me:10950: $lt_compile\"" >&5)
10951 (eval "$lt_compile" 2>conftest.err)
10953 cat conftest.err >&5
10954 echo "$as_me:10954: \$? = $ac_status" >&5
10955 if (exit $ac_status) && test -s "$ac_outfile"; then
10956 # The compiler can only warn and ignore the option if not recognized
10957 # So say no if there are warnings
10958 if test ! -s conftest.err; then
10959 lt_prog_compiler_pic_works_CXX=yes
10965 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10966 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10968 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10969 case $lt_prog_compiler_pic_CXX in
10971 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10974 lt_prog_compiler_pic_CXX=
10975 lt_prog_compiler_can_build_shared_CXX=no
10980 # For platforms which do not support PIC, -DPIC is meaningless:
10982 lt_prog_compiler_pic_CXX=
10985 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10989 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10990 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10991 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 lt_cv_prog_compiler_c_o_CXX=no
10995 $rm -r conftest 2>/dev/null
10999 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11001 lt_compiler_flag="-o out/conftest2.$ac_objext"
11002 # Insert the option either (1) after the last *FLAGS variable, or
11003 # (2) before a word containing "conftest.", or (3) at the end.
11004 # Note that $ac_compile itself does not contain backslashes and begins
11005 # with a dollar sign (not a hyphen), so the echo should work correctly.
11006 lt_compile=`echo "$ac_compile" | $SED \
11007 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11009 -e 's:$: $lt_compiler_flag:'`
11010 (eval echo "\"\$as_me:11010: $lt_compile\"" >&5)
11011 (eval "$lt_compile" 2>out/conftest.err)
11013 cat out/conftest.err >&5
11014 echo "$as_me:11014: \$? = $ac_status" >&5
11015 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11017 # The compiler can only warn and ignore the option if not recognized
11018 # So say no if there are warnings
11019 if test ! -s out/conftest.err; then
11020 lt_cv_prog_compiler_c_o_CXX=yes
11025 # SGI C++ compiler will create directory out/ii_files/ for
11026 # template instantiation
11027 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11028 $rm out/* && rmdir out
11034 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11035 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11038 hard_links="nottested"
11039 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11040 # do not overwrite the value of need_locks provided by the user
11041 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11042 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11047 ln conftest.a conftest.b 2>&5 || hard_links=no
11048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11049 echo "$as_me:$LINENO: result: $hard_links" >&5
11050 echo "${ECHO_T}$hard_links" >&6
11051 if test "$hard_links" = no; then
11052 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11053 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11060 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11061 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11063 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11066 # If we're using GNU nm, then we don't want the "-C" option.
11067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11068 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11069 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'
11071 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'
11075 export_symbols_cmds_CXX="$ltdll_cmds"
11078 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11081 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11085 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11086 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11087 test "$ld_shlibs_CXX" = no && can_build_shared=no
11089 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11090 if test "$GCC" = yes; then
11091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11095 # Do we need to explicitly link libc?
11097 case "x$archive_cmds_need_lc_CXX" in
11099 # Assume -lc should be added
11100 archive_cmds_need_lc_CXX=yes
11102 if test "$enable_shared" = yes && test "$GCC" = yes; then
11103 case $archive_cmds_CXX in
11105 # FIXME: we may have to deal with multi-command sequences.
11108 # Test whether the compiler implicitly links with -lc since on some
11109 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11110 # to ld, don't add -lc before -lgcc.
11111 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11112 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11114 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11117 (eval $ac_compile) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } 2>conftest.err; then
11123 libobjs=conftest.$ac_objext
11125 wl=$lt_prog_compiler_wl_CXX
11131 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11132 allow_undefined_flag_CXX=
11133 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11134 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }
11139 archive_cmds_need_lc_CXX=no
11141 archive_cmds_need_lc_CXX=yes
11143 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11145 cat conftest.err 1>&5
11148 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11149 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11156 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11157 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11158 library_names_spec=
11159 libname_spec='lib$name'
11163 postuninstall_cmds=
11167 shlibpath_overrides_runpath=unknown
11169 dynamic_linker="$host_os ld.so"
11170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11171 if test "$GCC" = yes; then
11172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11173 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11174 # if the path contains ";" then we assume it to be the separator
11175 # otherwise default to the standard path separator (i.e. ":") - it is
11176 # assumed that no part of a normal pathname contains ";" but that should
11177 # okay in the real world where ";" in dirpaths is itself problematic.
11178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11185 need_lib_prefix=unknown
11186 hardcode_into_libs=no
11188 # when you set need_version to no, make sure it does not cause -set_version
11189 # flags to be left without arguments
11190 need_version=unknown
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11196 shlibpath_var=LIBPATH
11198 # AIX 3 has no versioning support, so we append a major version to the name.
11199 soname_spec='${libname}${release}${shared_ext}$major'
11206 hardcode_into_libs=yes
11207 if test "$host_cpu" = ia64; then
11208 # AIX 5 supports IA64
11209 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11210 shlibpath_var=LD_LIBRARY_PATH
11212 # With GCC up to 2.95.x, collect2 would create an import file
11213 # for dependence libraries. The import file would start with
11214 # the line `#! .'. This would cause the generated library to
11215 # depend on `.', always an invalid library. This was fixed in
11216 # development snapshots of GCC prior to 3.0.
11218 aix4 | aix4.[01] | aix4.[01].*)
11219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11221 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11224 can_build_shared=no
11228 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11229 # soname into executable. Probably we can add versioning support to
11230 # collect2, so additional links can be useful in future.
11231 if test "$aix_use_runtimelinking" = yes; then
11232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11233 # instead of lib<name>.a to let people know that these are not
11234 # typical AIX shared libraries.
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237 # We preserve .a as extension for shared libraries through AIX4.2
11238 # and later when we are not doing run time linking.
11239 library_names_spec='${libname}${release}.a $libname.a'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11242 shlibpath_var=LIBPATH
11247 library_names_spec='$libname.ixlibrary $libname.a'
11248 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11249 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'
11253 library_names_spec='${libname}${shared_ext}'
11254 dynamic_linker="$host_os ld.so"
11255 shlibpath_var=LIBRARY_PATH
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11264 shlibpath_var=LD_LIBRARY_PATH
11265 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11266 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11267 # the default ld.so.conf also contains /usr/contrib/lib and
11268 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11269 # libtool to hard-code these into programs
11272 cygwin* | mingw* | pw32*)
11273 version_type=windows
11278 case $GCC,$host_os in
11279 yes,cygwin* | yes,mingw* | yes,pw32*)
11280 library_names_spec='$libname.dll.a'
11281 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11282 postinstall_cmds='base_file=`basename \${file}`~
11283 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11284 dldir=$destdir/`dirname \$dlpath`~
11285 test -d \$dldir || mkdir -p \$dldir~
11286 $install_prog $dir/$dlname \$dldir/$dlname'
11287 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11288 dlpath=$dir/\$dldll~
11290 shlibpath_overrides_runpath=yes
11294 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11295 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11296 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11299 # MinGW DLLs use traditional 'lib' prefix
11300 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11301 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11302 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11303 # It is most probably a Windows format PATH printed by
11304 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11305 # path with ; separators, and with drive letters. We can handle the
11306 # drive letters (cygwin fileutils understands them), so leave them,
11307 # especially as we might pass files found there to a mingw objdump,
11308 # which wouldn't understand a cygwinified path. Ahh.
11309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11315 # pw32 DLLs use 'pw' prefix rather than 'lib'
11316 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11322 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11325 dynamic_linker='Win32 ld.exe'
11326 # FIXME: first we should search . and the directory the executable is in
11330 darwin* | rhapsody*)
11331 dynamic_linker="$host_os dyld"
11332 version_type=darwin
11335 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11336 soname_spec='${libname}${release}${major}$shared_ext'
11337 shlibpath_overrides_runpath=yes
11338 shlibpath_var=DYLD_LIBRARY_PATH
11339 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11340 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11341 if test "$GCC" = yes; then
11342 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"`
11344 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 shlibpath_var=LD_LIBRARY_PATH
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 shlibpath_overrides_runpath=no
11370 hardcode_into_libs=yes
11371 dynamic_linker='GNU ld.so'
11375 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11376 version_type=freebsd-$objformat
11377 case $version_type in
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11388 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=yes
11393 freebsd3.01* | freebsdelf3.01*)
11394 shlibpath_overrides_runpath=yes
11395 hardcode_into_libs=yes
11398 shlibpath_overrides_runpath=no
11399 hardcode_into_libs=yes
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11409 soname_spec='${libname}${release}${shared_ext}$major'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 hardcode_into_libs=yes
11414 hpux9* | hpux10* | hpux11*)
11415 # Give a soname corresponding to the major version so that dld.sl refuses to
11416 # link against other versions.
11420 case "$host_cpu" in
11423 hardcode_into_libs=yes
11424 dynamic_linker="$host_os dld.so"
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 if test "X$HPUX_IA64_MODE" = X32; then
11430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11438 hardcode_into_libs=yes
11439 dynamic_linker="$host_os dld.sl"
11440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11449 dynamic_linker="$host_os dld.sl"
11450 shlibpath_var=SHLIB_PATH
11451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11457 postinstall_cmds='chmod 555 $lib'
11460 irix5* | irix6* | nonstopux*)
11462 nonstopux*) version_type=nonstopux ;;
11464 if test "$lt_cv_prog_gnu_ld" = yes; then
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11475 irix5* | nonstopux*)
11476 libsuff= shlibsuff=
11479 case $LD in # libtool.m4 will add one of these switches to LD
11480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11481 libsuff= shlibsuff= libmagic=32-bit;;
11482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11483 libsuff=32 shlibsuff=N32 libmagic=N32;;
11484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11486 *) libsuff= shlibsuff= libmagic=never-match;;
11490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11491 shlibpath_overrides_runpath=no
11492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11494 hardcode_into_libs=yes
11497 # No shared lib support for Linux oldld, aout, or coff.
11498 linux*oldld* | linux*aout* | linux*coff*)
11502 # This must be Linux ELF.
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 soname_spec='${libname}${release}${shared_ext}$major'
11509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=no
11512 # This implies no fast_install, which is unacceptable.
11513 # Some rework will be needed to allow for fast_install
11514 # before this can be enabled.
11515 hardcode_into_libs=yes
11517 # Append ld.so.conf contents to the search path
11518 if test -f /etc/ld.so.conf; then
11519 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11520 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11523 # We used to test for /lib/ld.so.1 and disable shared libraries on
11524 # powerpc, because MkLinux only supported shared libraries with the
11525 # GNU dynamic linker. Since this was broken with cross compilers,
11526 # most powerpc-linux boxes support dynamic linking these days and
11527 # people can always --disable-shared, the test was removed, and we
11528 # assume the GNU/Linux dynamic linker is in use.
11529 dynamic_linker='GNU/Linux ld.so'
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 shlibpath_overrides_runpath=no
11540 hardcode_into_libs=yes
11541 dynamic_linker='GNU ld.so'
11548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11551 dynamic_linker='NetBSD (a.out) ld.so'
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 dynamic_linker='NetBSD ld.elf_so'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 shlibpath_overrides_runpath=yes
11559 hardcode_into_libs=yes
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 shlibpath_overrides_runpath=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 shlibpath_overrides_runpath=yes
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11588 openbsd2.[89] | openbsd2.[89].*)
11589 shlibpath_overrides_runpath=no
11592 shlibpath_overrides_runpath=yes
11596 shlibpath_overrides_runpath=yes
11601 libname_spec='$name'
11604 library_names_spec='$libname${shared_ext} $libname.a'
11605 dynamic_linker='OS/2 ld.exe'
11606 shlibpath_var=LIBPATH
11609 osf3* | osf4* | osf5*)
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11617 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 shlibpath_var=LD_LIBRARY_PATH
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=yes
11635 hardcode_into_libs=yes
11636 # ldd complains unless libraries are executable
11637 postinstall_cmds='chmod +x $lib'
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=yes
11646 if test "$with_gnu_ld" = yes; then
11652 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655 soname_spec='${libname}${release}${shared_ext}$major'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 case $host_vendor in
11659 shlibpath_overrides_runpath=no
11661 export_dynamic_flag_spec='${wl}-Blargedynsym'
11662 runpath_var=LD_RUN_PATH
11670 shlibpath_overrides_runpath=no
11671 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11677 if test -d /usr/nec ;then
11679 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11680 soname_spec='$libname${shared_ext}.$major'
11681 shlibpath_var=LD_LIBRARY_PATH
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 shlibpath_var=LD_LIBRARY_PATH
11696 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11697 echo "${ECHO_T}$dynamic_linker" >&6
11698 test "$dynamic_linker" = no && can_build_shared=no
11700 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11701 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11702 hardcode_action_CXX=
11703 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11704 test -n "$runpath_var CXX" || \
11705 test "X$hardcode_automatic_CXX"="Xyes" ; then
11707 # We can hardcode non-existant directories.
11708 if test "$hardcode_direct_CXX" != no &&
11709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11710 # have to relink, otherwise we might link with an installed library
11711 # when we should be linking with a yet-to-be-installed one
11712 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11713 test "$hardcode_minus_L_CXX" != no; then
11714 # Linking always hardcodes the temporary library directory.
11715 hardcode_action_CXX=relink
11717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11718 hardcode_action_CXX=immediate
11721 # We cannot hardcode anything, or else we can only hardcode existing
11723 hardcode_action_CXX=unsupported
11725 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11726 echo "${ECHO_T}$hardcode_action_CXX" >&6
11728 if test "$hardcode_action_CXX" = relink; then
11729 # Fast installation is not supported
11730 enable_fast_install=no
11731 elif test "$shlibpath_overrides_runpath" = yes ||
11732 test "$enable_shared" = no; then
11733 # Fast installation is not necessary
11734 enable_fast_install=needless
11739 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11740 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11741 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11742 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11743 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11744 echo "$as_me:$LINENO: result: yes" >&5
11745 echo "${ECHO_T}yes" >&6
11747 # FIXME - insert some real tests, host_os isn't really good enough
11750 if test -n "$STRIP" ; then
11751 striplib="$STRIP -x"
11752 echo "$as_me:$LINENO: result: yes" >&5
11753 echo "${ECHO_T}yes" >&6
11755 echo "$as_me:$LINENO: result: no" >&5
11756 echo "${ECHO_T}no" >&6
11760 echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6
11766 if test "x$enable_dlopen" != xyes; then
11767 enable_dlopen=unknown
11768 enable_dlopen_self=unknown
11769 enable_dlopen_self_static=unknown
11776 lt_cv_dlopen="load_add_on"
11778 lt_cv_dlopen_self=yes
11782 lt_cv_dlopen="LoadLibrary"
11787 lt_cv_dlopen="dlopen"
11792 # if libdl is installed we need to link against it
11793 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11794 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11795 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 ac_check_lib_save_LIBS=$LIBS
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11807 /* Override any gcc2 internal prototype to avoid an error. */
11811 /* We use char because int might match the return type of a gcc2
11812 builtin and then its argument prototype would still apply. */
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } &&
11831 { ac_try='test -z "$ac_cxx_werror_flag"
11832 || test ! -s conftest.err'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_lib_dl_dlopen=yes
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_cv_lib_dl_dlopen=no
11851 rm -f conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11855 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11857 if test $ac_cv_lib_dl_dlopen = yes; then
11858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11861 lt_cv_dlopen="dyld"
11863 lt_cv_dlopen_self=yes
11870 echo "$as_me:$LINENO: checking for shl_load" >&5
11871 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11872 if test "${ac_cv_func_shl_load+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11883 #define shl_load innocuous_shl_load
11885 /* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char shl_load (); below.
11887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888 <limits.h> exists even on freestanding compilers. */
11891 # include <limits.h>
11893 # include <assert.h>
11898 /* Override any gcc2 internal prototype to avoid an error. */
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11912 char (*f) () = shl_load;
11921 return f != shl_load;
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_cxx_werror_flag"
11936 || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_cv_func_shl_load=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_cv_func_shl_load=no
11955 rm -f conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11958 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11959 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11960 if test $ac_cv_func_shl_load = yes; then
11961 lt_cv_dlopen="shl_load"
11963 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11964 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11965 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 ac_check_lib_save_LIBS=$LIBS
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_cxx_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_lib_dld_shl_load=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_lib_dld_shl_load=no
12021 rm -f conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12025 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12026 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12027 if test $ac_cv_lib_dld_shl_load = yes; then
12028 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12030 echo "$as_me:$LINENO: checking for dlopen" >&5
12031 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12032 if test "${ac_cv_func_dlopen+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12043 #define dlopen innocuous_dlopen
12045 /* System header to define __stub macros and hopefully few prototypes,
12046 which can conflict with char dlopen (); below.
12047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048 <limits.h> exists even on freestanding compilers. */
12051 # include <limits.h>
12053 # include <assert.h>
12058 /* Override any gcc2 internal prototype to avoid an error. */
12063 /* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12066 /* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12072 char (*f) () = dlopen;
12081 return f != dlopen;
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088 (eval $ac_link) 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_cxx_werror_flag"
12096 || test ! -s conftest.err'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest$ac_exeext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_func_dlopen=yes
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_cv_func_dlopen=no
12115 rm -f conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12118 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12119 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12120 if test $ac_cv_func_dlopen = yes; then
12121 lt_cv_dlopen="dlopen"
12123 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12124 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12125 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 ac_check_lib_save_LIBS=$LIBS
12130 cat >conftest.$ac_ext <<_ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12137 /* Override any gcc2 internal prototype to avoid an error. */
12141 /* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>conftest.er1
12156 grep -v '^ *+' conftest.er1 >conftest.err
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -z "$ac_cxx_werror_flag"
12162 || test ! -s conftest.err'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; } &&
12168 { ac_try='test -s conftest$ac_exeext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 ac_cv_lib_dl_dlopen=yes
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 ac_cv_lib_dl_dlopen=no
12181 rm -f conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12185 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12186 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12187 if test $ac_cv_lib_dl_dlopen = yes; then
12188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12190 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12191 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12192 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 ac_check_lib_save_LIBS=$LIBS
12196 LIBS="-lsvld $LIBS"
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12204 /* Override any gcc2 internal prototype to avoid an error. */
12208 /* We use char because int might match the return type of a gcc2
12209 builtin and then its argument prototype would still apply. */
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_cxx_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_lib_svld_dlopen=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_lib_svld_dlopen=no
12248 rm -f conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12252 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12253 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12254 if test $ac_cv_lib_svld_dlopen = yes; then
12255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12257 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12258 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12259 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 ac_check_lib_save_LIBS=$LIBS
12264 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12271 /* Override any gcc2 internal prototype to avoid an error. */
12275 /* We use char because int might match the return type of a gcc2
12276 builtin and then its argument prototype would still apply. */
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288 (eval $ac_link) 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_cxx_werror_flag"
12296 || test ! -s conftest.err'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest$ac_exeext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_lib_dld_dld_link=yes
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_cv_lib_dld_dld_link=no
12315 rm -f conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12319 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12320 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12321 if test $ac_cv_lib_dld_dld_link = yes; then
12322 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12343 if test "x$lt_cv_dlopen" != xno; then
12349 case $lt_cv_dlopen in
12351 save_CPPFLAGS="$CPPFLAGS"
12352 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12354 save_LDFLAGS="$LDFLAGS"
12355 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12358 LIBS="$lt_cv_dlopen_libs $LIBS"
12360 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12361 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12362 if test "${lt_cv_dlopen_self+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 if test "$cross_compiling" = yes; then :
12366 lt_cv_dlopen_self=cross
12368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369 lt_status=$lt_dlunknown
12370 cat > conftest.$ac_ext <<EOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12381 # define LT_DLGLOBAL RTLD_GLOBAL
12384 # define LT_DLGLOBAL DL_GLOBAL
12386 # define LT_DLGLOBAL 0
12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391 find out it does not work in some platform. */
12392 #ifndef LT_DLLAZY_OR_NOW
12394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12397 # define LT_DLLAZY_OR_NOW DL_LAZY
12400 # define LT_DLLAZY_OR_NOW RTLD_NOW
12403 # define LT_DLLAZY_OR_NOW DL_NOW
12405 # define LT_DLLAZY_OR_NOW 0
12413 extern "C" void exit (int);
12416 void fnord() { int i=42;}
12419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12420 int status = $lt_dlunknown;
12424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12425 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12426 /* dlclose (self); */
12432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433 (eval $ac_link) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12437 (./conftest; exit; ) 2>/dev/null
12439 case x$lt_status in
12440 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12441 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12442 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12445 # compilation failed
12446 lt_cv_dlopen_self=no
12453 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12454 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12456 if test "x$lt_cv_dlopen_self" = xyes; then
12457 LDFLAGS="$LDFLAGS $link_static_flag"
12458 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12459 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12460 if test "${lt_cv_dlopen_self_static+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 if test "$cross_compiling" = yes; then :
12464 lt_cv_dlopen_self_static=cross
12466 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12467 lt_status=$lt_dlunknown
12468 cat > conftest.$ac_ext <<EOF
12469 #line 12469 "configure"
12470 #include "confdefs.h"
12479 # define LT_DLGLOBAL RTLD_GLOBAL
12482 # define LT_DLGLOBAL DL_GLOBAL
12484 # define LT_DLGLOBAL 0
12488 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12489 find out it does not work in some platform. */
12490 #ifndef LT_DLLAZY_OR_NOW
12492 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12495 # define LT_DLLAZY_OR_NOW DL_LAZY
12498 # define LT_DLLAZY_OR_NOW RTLD_NOW
12501 # define LT_DLLAZY_OR_NOW DL_NOW
12503 # define LT_DLLAZY_OR_NOW 0
12511 extern "C" void exit (int);
12514 void fnord() { int i=42;}
12517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12518 int status = $lt_dlunknown;
12522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12523 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12524 /* dlclose (self); */
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531 (eval $ac_link) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12535 (./conftest; exit; ) 2>/dev/null
12537 case x$lt_status in
12538 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12539 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12540 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12543 # compilation failed
12544 lt_cv_dlopen_self_static=no
12551 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12552 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12555 CPPFLAGS="$save_CPPFLAGS"
12556 LDFLAGS="$save_LDFLAGS"
12561 case $lt_cv_dlopen_self in
12562 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12563 *) enable_dlopen_self=unknown ;;
12566 case $lt_cv_dlopen_self_static in
12567 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12568 *) enable_dlopen_self_static=unknown ;;
12573 # The else clause should only fire when bootstrapping the
12574 # libtool distribution, otherwise you forgot to ship ltmain.sh
12575 # with your package, and you will get complaints that there are
12576 # no rules to generate ltmain.sh.
12577 if test -f "$ltmain"; then
12578 # See if we are running on zsh, and set the options which allow our commands through
12579 # without removal of \ escapes.
12580 if test -n "${ZSH_VERSION+set}" ; then
12581 setopt NO_GLOB_SUBST
12583 # Now quote all the things that may contain metacharacters while being
12584 # careful not to overquote the AC_SUBSTed values. We take copies of the
12585 # variables and quote the copies for generation of the libtool script.
12586 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12588 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12589 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12590 deplibs_check_method reload_flag reload_cmds need_locks \
12591 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12592 lt_cv_sys_global_symbol_to_c_name_address \
12593 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12594 old_postinstall_cmds old_postuninstall_cmds \
12598 lt_prog_compiler_wl_CXX \
12599 lt_prog_compiler_pic_CXX \
12600 lt_prog_compiler_static_CXX \
12601 lt_prog_compiler_no_builtin_flag_CXX \
12602 export_dynamic_flag_spec_CXX \
12603 thread_safe_flag_spec_CXX \
12604 whole_archive_flag_spec_CXX \
12605 enable_shared_with_static_runtimes_CXX \
12606 old_archive_cmds_CXX \
12607 old_archive_from_new_cmds_CXX \
12608 predep_objects_CXX \
12609 postdep_objects_CXX \
12612 compiler_lib_search_path_CXX \
12614 archive_expsym_cmds_CXX \
12615 postinstall_cmds_CXX \
12616 postuninstall_cmds_CXX \
12617 old_archive_from_expsyms_cmds_CXX \
12618 allow_undefined_flag_CXX \
12619 no_undefined_flag_CXX \
12620 export_symbols_cmds_CXX \
12621 hardcode_libdir_flag_spec_CXX \
12622 hardcode_libdir_flag_spec_ld_CXX \
12623 hardcode_libdir_separator_CXX \
12624 hardcode_automatic_CXX \
12626 module_expsym_cmds_CXX \
12627 lt_cv_prog_compiler_c_o_CXX \
12628 exclude_expsyms_CXX \
12629 include_expsyms_CXX; do
12632 old_archive_cmds_CXX | \
12633 old_archive_from_new_cmds_CXX | \
12634 archive_cmds_CXX | \
12635 archive_expsym_cmds_CXX | \
12636 module_cmds_CXX | \
12637 module_expsym_cmds_CXX | \
12638 old_archive_from_expsyms_cmds_CXX | \
12639 export_symbols_cmds_CXX | \
12640 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12641 postinstall_cmds | postuninstall_cmds | \
12642 old_postinstall_cmds | old_postuninstall_cmds | \
12643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12644 # Double-quote double-evaled strings.
12645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12654 *'\$0 --fallback-echo"')
12655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12661 cat <<__EOF__ >> "$cfgfile"
12662 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12664 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12666 # Shell to use when invoking shell scripts.
12669 # Whether or not to build shared libraries.
12670 build_libtool_libs=$enable_shared
12672 # Whether or not to build static libraries.
12673 build_old_libs=$enable_static
12675 # Whether or not to add -lc for building shared libraries.
12676 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12678 # Whether or not to disallow shared libs when runtime libs are static
12679 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12681 # Whether or not to optimize for fast installation.
12682 fast_install=$enable_fast_install
12685 host_alias=$host_alias
12688 # An echo program that does not interpret backslashes.
12693 AR_FLAGS=$lt_AR_FLAGS
12698 # A language-specific compiler.
12699 CC=$lt_compiler_CXX
12701 # Is the compiler the GNU C compiler?
12707 # The linker used to build libraries.
12710 # Whether we need hard or soft links.
12713 # A BSD-compatible nm program.
12716 # A symbol stripping program
12719 # Used to examine libraries when file_magic_cmd begins "file"
12720 MAGIC_CMD=$MAGIC_CMD
12722 # Used on cygwin: DLL creation program.
12725 # Used on cygwin: object dumper.
12728 # Used on cygwin: assembler.
12731 # The name of the directory that contains temporary libtool files.
12734 # How to create reloadable object files.
12735 reload_flag=$lt_reload_flag
12736 reload_cmds=$lt_reload_cmds
12738 # How to pass a linker flag through the compiler.
12739 wl=$lt_lt_prog_compiler_wl_CXX
12741 # Object file suffix (normally "o").
12742 objext="$ac_objext"
12744 # Old archive suffix (normally "a").
12747 # Shared library suffix (normally ".so").
12750 # Executable file suffix (normally "").
12753 # Additional compiler flags for building library objects.
12754 pic_flag=$lt_lt_prog_compiler_pic_CXX
12757 # What is the maximum length of a command?
12758 max_cmd_len=$lt_cv_sys_max_cmd_len
12760 # Does compiler simultaneously support -c and -o options?
12761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12763 # Must we lock files when doing compilation ?
12764 need_locks=$lt_need_locks
12766 # Do we need the lib prefix for modules?
12767 need_lib_prefix=$need_lib_prefix
12769 # Do we need a version for libraries?
12770 need_version=$need_version
12772 # Whether dlopen is supported.
12773 dlopen_support=$enable_dlopen
12775 # Whether dlopen of programs is supported.
12776 dlopen_self=$enable_dlopen_self
12778 # Whether dlopen of statically linked programs is supported.
12779 dlopen_self_static=$enable_dlopen_self_static
12781 # Compiler flag to prevent dynamic linking.
12782 link_static_flag=$lt_lt_prog_compiler_static_CXX
12784 # Compiler flag to turn off builtin functions.
12785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12787 # Compiler flag to allow reflexive dlopens.
12788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12790 # Compiler flag to generate shared objects directly from archives.
12791 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12793 # Compiler flag to generate thread-safe objects.
12794 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12796 # Library versioning type.
12797 version_type=$version_type
12799 # Format of library name prefix.
12800 libname_spec=$lt_libname_spec
12802 # List of archive names. First name is the real one, the rest are links.
12803 # The last name is the one that the linker finds with -lNAME.
12804 library_names_spec=$lt_library_names_spec
12806 # The coded name of the library, if different from the real name.
12807 soname_spec=$lt_soname_spec
12809 # Commands used to build and install an old-style archive.
12811 old_archive_cmds=$lt_old_archive_cmds_CXX
12812 old_postinstall_cmds=$lt_old_postinstall_cmds
12813 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12815 # Create an old-style archive from a shared archive.
12816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12818 # Create a temporary old-style archive to link instead of a shared archive.
12819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12821 # Commands used to build and install a shared archive.
12822 archive_cmds=$lt_archive_cmds_CXX
12823 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12824 postinstall_cmds=$lt_postinstall_cmds
12825 postuninstall_cmds=$lt_postuninstall_cmds
12827 # Commands used to build a loadable module (assumed same as above if empty)
12828 module_cmds=$lt_module_cmds_CXX
12829 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12831 # Commands to strip libraries.
12832 old_striplib=$lt_old_striplib
12833 striplib=$lt_striplib
12835 # Dependencies to place before the objects being linked to create a
12837 predep_objects=$lt_predep_objects_CXX
12839 # Dependencies to place after the objects being linked to create a
12841 postdep_objects=$lt_postdep_objects_CXX
12843 # Dependencies to place before the objects being linked to create a
12845 predeps=$lt_predeps_CXX
12847 # Dependencies to place after the objects being linked to create a
12849 postdeps=$lt_postdeps_CXX
12851 # The library search path used internally by the compiler when linking
12852 # a shared library.
12853 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12855 # Method to check whether dependent libraries are shared objects.
12856 deplibs_check_method=$lt_deplibs_check_method
12858 # Command to use when deplibs_check_method == file_magic.
12859 file_magic_cmd=$lt_file_magic_cmd
12861 # Flag that allows shared libraries with undefined symbols to be built.
12862 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12864 # Flag that forces no undefined symbols.
12865 no_undefined_flag=$lt_no_undefined_flag_CXX
12867 # Commands used to finish a libtool library installation in a directory.
12868 finish_cmds=$lt_finish_cmds
12870 # Same as above, but a single script fragment to be evaled but not shown.
12871 finish_eval=$lt_finish_eval
12873 # Take the output of nm and produce a listing of raw symbols and C names.
12874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12876 # Transform the output of nm in a proper C declaration
12877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12879 # Transform the output of nm in a C name address pair
12880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12882 # This is the shared library runtime path variable.
12883 runpath_var=$runpath_var
12885 # This is the shared library path variable.
12886 shlibpath_var=$shlibpath_var
12888 # Is shlibpath searched before the hard-coded library search path?
12889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12891 # How to hardcode a shared library path into an executable.
12892 hardcode_action=$hardcode_action_CXX
12894 # Whether we should hardcode library paths into libraries.
12895 hardcode_into_libs=$hardcode_into_libs
12897 # Flag to hardcode \$libdir into a binary during linking.
12898 # This must work even if \$libdir does not exist.
12899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12901 # If ld is used when linking, flag to hardcode \$libdir into
12902 # a binary during linking. This must work even if \$libdir does
12904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12906 # Whether we need a single -rpath flag with a separated argument.
12907 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12909 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12910 # resulting binary.
12911 hardcode_direct=$hardcode_direct_CXX
12913 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12914 # resulting binary.
12915 hardcode_minus_L=$hardcode_minus_L_CXX
12917 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12918 # the resulting binary.
12919 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12921 # Set to yes if building a shared library automatically hardcodes DIR into the library
12922 # and all subsequent libraries and executables linked against it.
12923 hardcode_automatic=$hardcode_automatic_CXX
12925 # Variables whose values should be saved in libtool wrapper scripts and
12926 # restored at relink time.
12927 variables_saved_for_relink="$variables_saved_for_relink"
12929 # Whether libtool must link a program against all its dependency libraries.
12930 link_all_deplibs=$link_all_deplibs_CXX
12932 # Compile-time system search path for libraries
12933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12935 # Run-time system search path for libraries
12936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12938 # Fix the shell variable \$srcfile for the compiler.
12939 fix_srcfile_path="$fix_srcfile_path_CXX"
12941 # Set to yes if exported symbols are required.
12942 always_export_symbols=$always_export_symbols_CXX
12944 # The commands to list exported symbols.
12945 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12947 # The commands to extract the exported symbol list from a shared archive.
12948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12950 # Symbols that should not be listed in the preloaded symbols.
12951 exclude_expsyms=$lt_exclude_expsyms_CXX
12953 # Symbols that must always be exported.
12954 include_expsyms=$lt_include_expsyms_CXX
12956 # ### END LIBTOOL TAG CONFIG: $tagname
12962 # If there is no Makefile yet, we rely on a make rule to execute
12963 # `config.status --recheck' to rerun these tests and create the
12964 # libtool script then.
12965 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12966 if test -f "$ltmain_in"; then
12967 test -f Makefile && make "$ltmain"
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12982 with_gnu_ldcxx=$with_gnu_ld
12983 with_gnu_ld=$lt_save_with_gnu_ld
12984 lt_cv_path_LDCXX=$lt_cv_path_LD
12985 lt_cv_path_LD=$lt_save_path_LD
12986 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12987 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12995 if test -n "$F77" && test "X$F77" != "Xno"; then
12998 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12999 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13003 archive_cmds_need_lc_F77=no
13004 allow_undefined_flag_F77=
13005 always_export_symbols_F77=no
13006 archive_expsym_cmds_F77=
13007 export_dynamic_flag_spec_F77=
13008 hardcode_direct_F77=no
13009 hardcode_libdir_flag_spec_F77=
13010 hardcode_libdir_flag_spec_ld_F77=
13011 hardcode_libdir_separator_F77=
13012 hardcode_minus_L_F77=no
13013 hardcode_automatic_F77=no
13015 module_expsym_cmds_F77=
13016 link_all_deplibs_F77=unknown
13017 old_archive_cmds_F77=$old_archive_cmds
13018 no_undefined_flag_F77=
13019 whole_archive_flag_spec_F77=
13020 enable_shared_with_static_runtimes_F77=no
13022 # Source file extension for f77 test sources.
13025 # Object file extension for compiled f77 test sources.
13029 # Code to be used in simple compile tests
13030 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13032 # Code to be used in simple link tests
13033 lt_simple_link_test_code=" program t\n end\n"
13035 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13037 # If no C compiler was specified, use CC.
13040 # Allow CC to be a program name with arguments.
13044 # Allow CC to be a program name with arguments.
13049 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13051 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13052 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13053 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13054 echo "${ECHO_T}$can_build_shared" >&6
13056 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13057 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13058 test "$can_build_shared" = "no" && enable_shared=no
13060 # On AIX, shared libraries and static libraries use the same namespace, and
13061 # are all built from PIC.
13064 test "$enable_shared" = yes && enable_static=no
13065 if test -n "$RANLIB"; then
13066 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13067 postinstall_cmds='$RANLIB $lib'
13071 test "$enable_shared" = yes && enable_static=no
13074 echo "$as_me:$LINENO: result: $enable_shared" >&5
13075 echo "${ECHO_T}$enable_shared" >&6
13077 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13078 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13079 # Make sure either enable_shared or enable_static is yes.
13080 test "$enable_shared" = yes || enable_static=yes
13081 echo "$as_me:$LINENO: result: $enable_static" >&5
13082 echo "${ECHO_T}$enable_static" >&6
13084 test "$ld_shlibs_F77" = no && can_build_shared=no
13089 lt_prog_compiler_wl_F77=
13090 lt_prog_compiler_pic_F77=
13091 lt_prog_compiler_static_F77=
13093 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13094 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13096 if test "$GCC" = yes; then
13097 lt_prog_compiler_wl_F77='-Wl,'
13098 lt_prog_compiler_static_F77='-static'
13102 # All AIX code is PIC.
13103 if test "$host_cpu" = ia64; then
13104 # AIX 5 now supports IA64 processor
13105 lt_prog_compiler_static_F77='-Bstatic'
13110 # FIXME: we need at least 68020 code to build shared libraries, but
13111 # adding the `-m68020' flag to GCC prevents building anything better,
13113 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13116 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13117 # PIC is the default for these OSes.
13120 mingw* | pw32* | os2*)
13121 # This hack is so that the source file can tell whether it is being
13122 # built for inclusion in a dll (and should export symbols for example).
13123 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13126 darwin* | rhapsody*)
13127 # PIC is the default on this platform
13128 # Common symbols not allowed in MH_DYLIB files
13129 lt_prog_compiler_pic_F77='-fno-common'
13133 # Just because we use GCC doesn't mean we suddenly get shared libraries
13134 # on systems that don't support them.
13135 lt_prog_compiler_can_build_shared_F77=no
13140 if test -d /usr/nec; then
13141 lt_prog_compiler_pic_F77=-Kconform_pic
13146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147 # not for PA HP-UX.
13148 case "$host_cpu" in
13153 lt_prog_compiler_pic_F77='-fPIC'
13159 lt_prog_compiler_pic_F77='-fPIC'
13163 # PORTME Check for flag to pass linker flags through the system compiler.
13166 lt_prog_compiler_wl_F77='-Wl,'
13167 if test "$host_cpu" = ia64; then
13168 # AIX 5 now supports IA64 processor
13169 lt_prog_compiler_static_F77='-Bstatic'
13171 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13175 mingw* | pw32* | os2*)
13176 # This hack is so that the source file can tell whether it is being
13177 # built for inclusion in a dll (and should export symbols for example).
13178 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13181 hpux9* | hpux10* | hpux11*)
13182 lt_prog_compiler_wl_F77='-Wl,'
13183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13184 # not for PA HP-UX.
13185 case "$host_cpu" in
13190 lt_prog_compiler_pic_F77='+Z'
13193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13194 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13197 irix5* | irix6* | nonstopux*)
13198 lt_prog_compiler_wl_F77='-Wl,'
13199 # PIC (with -KPIC) is the default.
13200 lt_prog_compiler_static_F77='-non_shared'
13204 lt_prog_compiler_pic_F77='-KPIC'
13205 lt_prog_compiler_static_F77='-Bstatic'
13211 lt_prog_compiler_wl_F77='-Wl,'
13212 lt_prog_compiler_pic_F77='-KPIC'
13213 lt_prog_compiler_static_F77='-static'
13216 lt_prog_compiler_wl_F77='-Wl,'
13217 # All Alpha code is PIC.
13218 lt_prog_compiler_static_F77='-non_shared'
13223 osf3* | osf4* | osf5*)
13224 lt_prog_compiler_wl_F77='-Wl,'
13225 # All OSF/1 code is PIC.
13226 lt_prog_compiler_static_F77='-non_shared'
13230 lt_prog_compiler_pic_F77='-Kpic'
13231 lt_prog_compiler_static_F77='-dn'
13235 lt_prog_compiler_wl_F77='-Wl,'
13236 lt_prog_compiler_pic_F77='-KPIC'
13237 lt_prog_compiler_static_F77='-Bstatic'
13241 lt_prog_compiler_wl_F77='-Qoption ld '
13242 lt_prog_compiler_pic_F77='-PIC'
13243 lt_prog_compiler_static_F77='-Bstatic'
13246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13247 lt_prog_compiler_wl_F77='-Wl,'
13248 lt_prog_compiler_pic_F77='-KPIC'
13249 lt_prog_compiler_static_F77='-Bstatic'
13253 if test -d /usr/nec ;then
13254 lt_prog_compiler_pic_F77='-Kconform_pic'
13255 lt_prog_compiler_static_F77='-Bstatic'
13260 lt_prog_compiler_pic_F77='-pic'
13261 lt_prog_compiler_static_F77='-Bstatic'
13265 lt_prog_compiler_can_build_shared_F77=no
13270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13271 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13274 # Check to make sure the PIC flag actually works.
13276 if test -n "$lt_prog_compiler_pic_F77"; then
13278 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13280 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 lt_prog_compiler_pic_works_F77=no
13284 ac_outfile=conftest.$ac_objext
13285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13286 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13287 # Insert the option either (1) after the last *FLAGS variable, or
13288 # (2) before a word containing "conftest.", or (3) at the end.
13289 # Note that $ac_compile itself does not contain backslashes and begins
13290 # with a dollar sign (not a hyphen), so the echo should work correctly.
13291 # The option is referenced via a variable to avoid confusing sed.
13292 lt_compile=`echo "$ac_compile" | $SED \
13293 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13295 -e 's:$: $lt_compiler_flag:'`
13296 (eval echo "\"\$as_me:13296: $lt_compile\"" >&5)
13297 (eval "$lt_compile" 2>conftest.err)
13299 cat conftest.err >&5
13300 echo "$as_me:13300: \$? = $ac_status" >&5
13301 if (exit $ac_status) && test -s "$ac_outfile"; then
13302 # The compiler can only warn and ignore the option if not recognized
13303 # So say no if there are warnings
13304 if test ! -s conftest.err; then
13305 lt_prog_compiler_pic_works_F77=yes
13311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13312 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13314 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13315 case $lt_prog_compiler_pic_F77 in
13317 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13320 lt_prog_compiler_pic_F77=
13321 lt_prog_compiler_can_build_shared_F77=no
13326 # For platforms which do not support PIC, -DPIC is meaningless:
13328 lt_prog_compiler_pic_F77=
13331 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13337 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 lt_cv_prog_compiler_c_o_F77=no
13341 $rm -r conftest 2>/dev/null
13345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13347 lt_compiler_flag="-o out/conftest2.$ac_objext"
13348 # Insert the option either (1) after the last *FLAGS variable, or
13349 # (2) before a word containing "conftest.", or (3) at the end.
13350 # Note that $ac_compile itself does not contain backslashes and begins
13351 # with a dollar sign (not a hyphen), so the echo should work correctly.
13352 lt_compile=`echo "$ac_compile" | $SED \
13353 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13355 -e 's:$: $lt_compiler_flag:'`
13356 (eval echo "\"\$as_me:13356: $lt_compile\"" >&5)
13357 (eval "$lt_compile" 2>out/conftest.err)
13359 cat out/conftest.err >&5
13360 echo "$as_me:13360: \$? = $ac_status" >&5
13361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13363 # The compiler can only warn and ignore the option if not recognized
13364 # So say no if there are warnings
13365 if test ! -s out/conftest.err; then
13366 lt_cv_prog_compiler_c_o_F77=yes
13371 # SGI C++ compiler will create directory out/ii_files/ for
13372 # template instantiation
13373 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13374 $rm out/* && rmdir out
13380 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13381 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13384 hard_links="nottested"
13385 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13386 # do not overwrite the value of need_locks provided by the user
13387 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13388 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13393 ln conftest.a conftest.b 2>&5 || hard_links=no
13394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13395 echo "$as_me:$LINENO: result: $hard_links" >&5
13396 echo "${ECHO_T}$hard_links" >&6
13397 if test "$hard_links" = no; then
13398 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13399 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13406 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13410 allow_undefined_flag_F77=
13411 enable_shared_with_static_runtimes_F77=no
13413 archive_expsym_cmds_F77=
13414 old_archive_From_new_cmds_F77=
13415 old_archive_from_expsyms_cmds_F77=
13416 export_dynamic_flag_spec_F77=
13417 whole_archive_flag_spec_F77=
13418 thread_safe_flag_spec_F77=
13419 hardcode_libdir_flag_spec_F77=
13420 hardcode_libdir_flag_spec_ld_F77=
13421 hardcode_libdir_separator_F77=
13422 hardcode_direct_F77=no
13423 hardcode_minus_L_F77=no
13424 hardcode_shlibpath_var_F77=unsupported
13425 link_all_deplibs_F77=unknown
13426 hardcode_automatic_F77=no
13428 module_expsym_cmds_F77=
13429 always_export_symbols_F77=no
13430 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13431 # include_expsyms should be a list of space-separated symbols to be *always*
13432 # included in the symbol list
13433 include_expsyms_F77=
13434 # exclude_expsyms can be an extended regexp of symbols to exclude
13435 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13436 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13437 # as well as any symbol that contains `d'.
13438 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13439 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13440 # platforms (ab)use it in PIC code, but their linkers get confused if
13441 # the symbol is explicitly referenced. Since portable code cannot
13442 # rely on this symbol name, it's probably fine to never include it in
13443 # preloaded symbol tables.
13444 extract_expsyms_cmds=
13447 cygwin* | mingw* | pw32*)
13448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13449 # When not using gcc, we currently assume that we are using
13450 # Microsoft Visual C++.
13451 if test "$GCC" != yes; then
13461 if test "$with_gnu_ld" = yes; then
13462 # If archive_cmds runs LD, not CC, wlarc should be empty
13465 # See if GNU ld supports shared libraries.
13467 aix3* | aix4* | aix5*)
13468 # On AIX/PPC, the GNU linker is very broken
13469 if test "$host_cpu" != ia64; then
13473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13474 *** to be unable to reliably create shared libraries on AIX.
13475 *** Therefore, libtool is disabling shared libraries support. If you
13476 *** really care for shared libraries, you may want to modify your PATH
13477 *** so that a non-GNU linker is found, and then restart.
13484 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)'
13485 hardcode_libdir_flag_spec_F77='-L$libdir'
13486 hardcode_minus_L_F77=yes
13488 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13489 # that the semantics of dynamic libraries on AmigaOS, at least up
13490 # to version 4, is to share data among multiple programs linked
13491 # with the same dynamic library. Since this doesn't match the
13492 # behavior of shared libraries on other platforms, we can't use
13498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13499 allow_undefined_flag_F77=unsupported
13500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13501 # support --undefined. This deserves some investigation. FIXME
13502 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 cygwin* | mingw* | pw32*)
13509 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13510 # as there is no search path for DLLs.
13511 hardcode_libdir_flag_spec_F77='-L$libdir'
13512 allow_undefined_flag_F77=unsupported
13513 always_export_symbols_F77=no
13514 enable_shared_with_static_runtimes_F77=yes
13515 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13519 # If the export-symbols file already is a .def file (1st line
13520 # is EXPORTS), use it as is; otherwise, prepend...
13521 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13522 cp $export_symbols $output_objdir/$soname.def;
13524 echo EXPORTS > $output_objdir/$soname.def;
13525 cat $export_symbols >> $output_objdir/$soname.def;
13527 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13535 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13538 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13539 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13544 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13549 *** create shared libraries on Solaris systems. Therefore, libtool
13550 *** is disabling shared libraries support. We urge you to upgrade GNU
13551 *** binutils to release 2.9.1 or newer. Another option is to modify
13552 *** your PATH or compiler configuration so that the native linker is
13553 *** used, and then restart.
13556 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13557 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13558 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13565 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13567 hardcode_direct_F77=yes
13568 hardcode_shlibpath_var_F77=no
13572 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13573 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13574 archive_cmds_F77="$tmp_archive_cmds"
13575 supports_anon_versioning=no
13576 case `$LD -v 2>/dev/null` in
13577 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13578 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13579 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13580 *\ 2.11.*) ;; # other 2.11 versions
13581 *) supports_anon_versioning=yes ;;
13583 if test $supports_anon_versioning = yes; then
13584 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13586 $echo "local: *; };" >> $output_objdir/$libname.ver~
13587 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13589 archive_expsym_cmds_F77="$tmp_archive_cmds"
13597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13599 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13606 if test "$ld_shlibs_F77" = yes; then
13607 runpath_var=LD_RUN_PATH
13608 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13609 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13610 # ancient GNU ld didn't support --whole-archive et. al.
13611 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13612 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13614 whole_archive_flag_spec_F77=
13618 # PORTME fill in a description of your system's linker (not GNU ld)
13621 allow_undefined_flag_F77=unsupported
13622 always_export_symbols_F77=yes
13623 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'
13624 # Note: this linker hardcodes the directories in LIBPATH if there
13625 # are no directories specified by -L.
13626 hardcode_minus_L_F77=yes
13627 if test "$GCC" = yes && test -z "$link_static_flag"; then
13628 # Neither direct hardcoding nor static linking is supported with a
13630 hardcode_direct_F77=unsupported
13635 if test "$host_cpu" = ia64; then
13636 # On IA64, the linker does run time linking by default, so we don't
13637 # have to do anything special.
13638 aix_use_runtimelinking=no
13639 exp_sym_flag='-Bexport'
13642 # If we're using GNU nm, then we don't want the "-C" option.
13643 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13644 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13645 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'
13647 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'
13649 aix_use_runtimelinking=no
13651 # Test if we are trying to use run time linking or normal
13652 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13653 # need to do runtime linking.
13654 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13655 for ld_flag in $LDFLAGS; do
13656 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13657 aix_use_runtimelinking=yes
13663 exp_sym_flag='-bexport'
13664 no_entry_flag='-bnoentry'
13667 # When large executables or shared objects are built, AIX ld can
13668 # have problems creating the table of contents. If linking a library
13669 # or program results in "error TOC overflow" add -mminimal-toc to
13670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13673 archive_cmds_F77=''
13674 hardcode_direct_F77=yes
13675 hardcode_libdir_separator_F77=':'
13676 link_all_deplibs_F77=yes
13678 if test "$GCC" = yes; then
13679 case $host_os in aix4.012|aix4.012.*)
13680 # We only want to do this on AIX 4.2 and lower, the check
13681 # below for broken collect2 doesn't work under 4.3+
13682 collect2name=`${CC} -print-prog-name=collect2`
13683 if test -f "$collect2name" && \
13684 strings "$collect2name" | grep resolve_lib_name >/dev/null
13686 # We have reworked collect2
13687 hardcode_direct_F77=yes
13689 # We have old collect2
13690 hardcode_direct_F77=unsupported
13691 # It fails to find uninstalled libraries when the uninstalled
13692 # path is not listed in the libpath. Setting hardcode_minus_L
13693 # to unsupported forces relinking
13694 hardcode_minus_L_F77=yes
13695 hardcode_libdir_flag_spec_F77='-L$libdir'
13696 hardcode_libdir_separator_F77=
13699 shared_flag='-shared'
13702 if test "$host_cpu" = ia64; then
13703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13704 # chokes on -Wl,-G. The following line is correct:
13707 if test "$aix_use_runtimelinking" = yes; then
13708 shared_flag='${wl}-G'
13710 shared_flag='${wl}-bM:SRE'
13715 # It seems that -bexpall does not export symbols beginning with
13716 # underscore (_), so it is better to generate a list of symbols to export.
13717 always_export_symbols_F77=yes
13718 if test "$aix_use_runtimelinking" = yes; then
13719 # Warning - without using the other runtime loading flags (-brtl),
13720 # -berok will link without error, but may produce a broken library.
13721 allow_undefined_flag_F77='-berok'
13722 # Determine the default libpath from the value encoded in an empty executable.
13723 cat >conftest.$ac_ext <<_ACEOF
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13730 (eval $ac_link) 2>conftest.er1
13732 grep -v '^ *+' conftest.er1 >conftest.err
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_f77_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest$ac_exeext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13753 # Check for a 64-bit object if we didn't find anything.
13754 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; }
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13761 rm -f conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13765 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13766 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"
13768 if test "$host_cpu" = ia64; then
13769 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13770 allow_undefined_flag_F77="-z nodefs"
13771 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"
13773 # Determine the default libpath from the value encoded in an empty executable.
13774 cat >conftest.$ac_ext <<_ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781 (eval $ac_link) 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_f77_werror_flag"
13789 || test ! -s conftest.err'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest$ac_exeext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13802 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13804 # Check for a 64-bit object if we didn't find anything.
13805 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; }
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13812 rm -f conftest.err conftest.$ac_objext \
13813 conftest$ac_exeext conftest.$ac_ext
13814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13816 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13817 # Warning - without using the other run time loading flags,
13818 # -berok will link without error, but may produce a broken library.
13819 no_undefined_flag_F77=' ${wl}-bernotok'
13820 allow_undefined_flag_F77=' ${wl}-berok'
13821 # -bexpall does not export symbols beginning with underscore (_)
13822 always_export_symbols_F77=yes
13823 # Exported symbols can be pulled into shared objects from archives
13824 whole_archive_flag_spec_F77=' '
13825 archive_cmds_need_lc_F77=yes
13826 # This is similar to how AIX traditionally builds it's shared libraries.
13827 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'
13833 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)'
13834 hardcode_libdir_flag_spec_F77='-L$libdir'
13835 hardcode_minus_L_F77=yes
13836 # see comment about different semantics on the GNU ld section
13841 export_dynamic_flag_spec_F77=-rdynamic
13844 cygwin* | mingw* | pw32*)
13845 # When not using gcc, we currently assume that we are using
13846 # Microsoft Visual C++.
13847 # hardcode_libdir_flag_spec is actually meaningless, as there is
13848 # no search path for DLLs.
13849 hardcode_libdir_flag_spec_F77=' '
13850 allow_undefined_flag_F77=unsupported
13851 # Tell ltmain to make .lib files, not .a files.
13853 # Tell ltmain to make .dll files, not .so files.
13855 # FIXME: Setting linknames here is a bad hack.
13856 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13857 # The linker will automatically build a .lib file if we build a DLL.
13858 old_archive_From_new_cmds_F77='true'
13859 # FIXME: Should let the user specify the lib program.
13860 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13861 fix_srcfile_path='`cygpath -w "$srcfile"`'
13862 enable_shared_with_static_runtimes_F77=yes
13865 darwin* | rhapsody*)
13866 if test "$GXX" = yes ; then
13867 archive_cmds_need_lc_F77=no
13869 rhapsody* | darwin1.[012])
13870 allow_undefined_flag_F77='-undefined suppress'
13873 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13874 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13876 case ${MACOSX_DEPLOYMENT_TARGET} in
13878 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13881 allow_undefined_flag_F77='-undefined dynamic_lookup'
13887 lt_int_apple_cc_single_mod=no
13888 output_verbose_link_cmd='echo'
13889 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13890 lt_int_apple_cc_single_mod=yes
13892 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13893 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13895 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'
13897 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13898 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13899 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13900 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}'
13902 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}'
13904 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}'
13905 hardcode_direct_F77=no
13906 hardcode_automatic_F77=yes
13907 hardcode_shlibpath_var_F77=unsupported
13908 whole_archive_flag_spec_F77='-all_load $convenience'
13909 link_all_deplibs_F77=yes
13916 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13917 hardcode_libdir_flag_spec_F77='-L$libdir'
13918 hardcode_shlibpath_var_F77=no
13925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13926 # support. Future versions do this automatically, but an explicit c++rt0.o
13927 # does not break anything, and helps significantly (at the cost of a little
13930 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13931 hardcode_libdir_flag_spec_F77='-R$libdir'
13932 hardcode_direct_F77=yes
13933 hardcode_shlibpath_var_F77=no
13936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13938 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13939 hardcode_direct_F77=yes
13940 hardcode_minus_L_F77=yes
13941 hardcode_shlibpath_var_F77=no
13944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13945 freebsd* | kfreebsd*-gnu)
13946 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13947 hardcode_libdir_flag_spec_F77='-R$libdir'
13948 hardcode_direct_F77=yes
13949 hardcode_shlibpath_var_F77=no
13953 if test "$GCC" = yes; then
13954 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'
13956 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'
13958 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13959 hardcode_libdir_separator_F77=:
13960 hardcode_direct_F77=yes
13962 # hardcode_minus_L: Not really in the search PATH,
13963 # but as the default location of the library.
13964 hardcode_minus_L_F77=yes
13965 export_dynamic_flag_spec_F77='${wl}-E'
13969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13970 case "$host_cpu" in
13972 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13975 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13979 case "$host_cpu" in
13981 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13984 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13988 if test "$with_gnu_ld" = no; then
13989 case "$host_cpu" in
13991 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13992 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13993 hardcode_libdir_separator_F77=:
13994 hardcode_direct_F77=no
13995 hardcode_shlibpath_var_F77=no
13998 hardcode_libdir_flag_spec_F77='-L$libdir'
13999 hardcode_direct_F77=no
14000 hardcode_shlibpath_var_F77=no
14002 # hardcode_minus_L: Not really in the search PATH,
14003 # but as the default location of the library.
14004 hardcode_minus_L_F77=yes
14007 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14008 hardcode_libdir_separator_F77=:
14009 hardcode_direct_F77=yes
14010 export_dynamic_flag_spec_F77='${wl}-E'
14012 # hardcode_minus_L: Not really in the search PATH,
14013 # but as the default location of the library.
14014 hardcode_minus_L_F77=yes
14020 irix5* | irix6* | nonstopux*)
14021 if test "$GCC" = yes; then
14022 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'
14024 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'
14025 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14027 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14028 hardcode_libdir_separator_F77=:
14029 link_all_deplibs_F77=yes
14033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14036 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14038 hardcode_libdir_flag_spec_F77='-R$libdir'
14039 hardcode_direct_F77=yes
14040 hardcode_shlibpath_var_F77=no
14044 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14045 hardcode_direct_F77=yes
14046 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14047 hardcode_libdir_separator_F77=:
14048 hardcode_shlibpath_var_F77=no
14052 hardcode_direct_F77=yes
14053 hardcode_shlibpath_var_F77=no
14054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14055 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14056 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14057 export_dynamic_flag_spec_F77='${wl}-E'
14060 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14061 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14062 hardcode_libdir_flag_spec_F77='-R$libdir'
14065 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14066 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14073 hardcode_libdir_flag_spec_F77='-L$libdir'
14074 hardcode_minus_L_F77=yes
14075 allow_undefined_flag_F77=unsupported
14076 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'
14077 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14081 if test "$GCC" = yes; then
14082 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14083 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'
14085 allow_undefined_flag_F77=' -expect_unresolved \*'
14086 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'
14088 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14089 hardcode_libdir_separator_F77=:
14092 osf4* | osf5*) # as osf3* with the addition of -msym flag
14093 if test "$GCC" = yes; then
14094 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14095 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'
14096 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14098 allow_undefined_flag_F77=' -expect_unresolved \*'
14099 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'
14100 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~
14101 $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'
14103 # Both c and cxx compiler support -rpath directly
14104 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14106 hardcode_libdir_separator_F77=:
14110 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14111 hardcode_shlibpath_var_F77=no
14112 export_dynamic_flag_spec_F77='${wl}-Bexport'
14113 runpath_var=LD_RUN_PATH
14114 hardcode_runpath_var=yes
14118 no_undefined_flag_F77=' -z text'
14119 if test "$GCC" = yes; then
14120 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14121 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14122 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14124 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14125 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14126 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14128 hardcode_libdir_flag_spec_F77='-R$libdir'
14129 hardcode_shlibpath_var_F77=no
14131 solaris2.[0-5] | solaris2.[0-5].*) ;;
14132 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14133 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14135 link_all_deplibs_F77=yes
14139 if test "x$host_vendor" = xsequent; then
14140 # Use $CC to link under sequent, because it throws in some extra .o
14141 # files that make .init and .fini sections work.
14142 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14144 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14146 hardcode_libdir_flag_spec_F77='-L$libdir'
14147 hardcode_direct_F77=yes
14148 hardcode_minus_L_F77=yes
14149 hardcode_shlibpath_var_F77=no
14153 case $host_vendor in
14155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14156 hardcode_direct_F77=yes # is this really true???
14159 ## LD is ld it makes a PLAMLIB
14160 ## CC just makes a GrossModule.
14161 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14162 reload_cmds_F77='$CC -r -o $output$reload_objs'
14163 hardcode_direct_F77=no
14166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14167 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14170 runpath_var='LD_RUN_PATH'
14171 hardcode_shlibpath_var_F77=no
14175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14176 hardcode_shlibpath_var_F77=no
14177 export_dynamic_flag_spec_F77='-Bexport'
14181 if test -d /usr/nec; then
14182 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14183 hardcode_shlibpath_var_F77=no
14184 runpath_var=LD_RUN_PATH
14185 hardcode_runpath_var=yes
14191 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14192 hardcode_direct_F77=yes
14193 hardcode_minus_L_F77=no
14194 hardcode_shlibpath_var_F77=no
14195 hardcode_runpath_var=yes
14196 runpath_var=LD_RUN_PATH
14199 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14200 no_undefined_flag_F77='${wl}-z ${wl}text'
14201 if test "$GCC" = yes; then
14202 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14204 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14206 runpath_var='LD_RUN_PATH'
14207 hardcode_shlibpath_var_F77=no
14211 no_undefined_flag_F77=' -z text'
14212 # $CC -shared without GNU ld will not create a library from C++
14213 # object files and a static libstdc++, better avoid it by now
14214 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14216 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14217 hardcode_libdir_flag_spec_F77=
14218 hardcode_shlibpath_var_F77=no
14219 runpath_var='LD_RUN_PATH'
14223 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14224 hardcode_libdir_flag_spec_F77='-L$libdir'
14225 hardcode_shlibpath_var_F77=no
14234 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14235 echo "${ECHO_T}$ld_shlibs_F77" >&6
14236 test "$ld_shlibs_F77" = no && can_build_shared=no
14238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14239 if test "$GCC" = yes; then
14240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14244 # Do we need to explicitly link libc?
14246 case "x$archive_cmds_need_lc_F77" in
14248 # Assume -lc should be added
14249 archive_cmds_need_lc_F77=yes
14251 if test "$enable_shared" = yes && test "$GCC" = yes; then
14252 case $archive_cmds_F77 in
14254 # FIXME: we may have to deal with multi-command sequences.
14257 # Test whether the compiler implicitly links with -lc since on some
14258 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14259 # to ld, don't add -lc before -lgcc.
14260 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14261 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266 (eval $ac_compile) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } 2>conftest.err; then
14272 libobjs=conftest.$ac_objext
14274 wl=$lt_prog_compiler_wl_F77
14280 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14281 allow_undefined_flag_F77=
14282 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14283 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }
14288 archive_cmds_need_lc_F77=no
14290 archive_cmds_need_lc_F77=yes
14292 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14294 cat conftest.err 1>&5
14297 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14298 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14305 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14306 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14307 library_names_spec=
14308 libname_spec='lib$name'
14312 postuninstall_cmds=
14316 shlibpath_overrides_runpath=unknown
14318 dynamic_linker="$host_os ld.so"
14319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14320 if test "$GCC" = yes; then
14321 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14322 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14323 # if the path contains ";" then we assume it to be the separator
14324 # otherwise default to the standard path separator (i.e. ":") - it is
14325 # assumed that no part of a normal pathname contains ";" but that should
14326 # okay in the real world where ";" in dirpaths is itself problematic.
14327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14332 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14334 need_lib_prefix=unknown
14335 hardcode_into_libs=no
14337 # when you set need_version to no, make sure it does not cause -set_version
14338 # flags to be left without arguments
14339 need_version=unknown
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14345 shlibpath_var=LIBPATH
14347 # AIX 3 has no versioning support, so we append a major version to the name.
14348 soname_spec='${libname}${release}${shared_ext}$major'
14355 hardcode_into_libs=yes
14356 if test "$host_cpu" = ia64; then
14357 # AIX 5 supports IA64
14358 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14359 shlibpath_var=LD_LIBRARY_PATH
14361 # With GCC up to 2.95.x, collect2 would create an import file
14362 # for dependence libraries. The import file would start with
14363 # the line `#! .'. This would cause the generated library to
14364 # depend on `.', always an invalid library. This was fixed in
14365 # development snapshots of GCC prior to 3.0.
14367 aix4 | aix4.[01] | aix4.[01].*)
14368 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14370 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14373 can_build_shared=no
14377 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14378 # soname into executable. Probably we can add versioning support to
14379 # collect2, so additional links can be useful in future.
14380 if test "$aix_use_runtimelinking" = yes; then
14381 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14382 # instead of lib<name>.a to let people know that these are not
14383 # typical AIX shared libraries.
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14386 # We preserve .a as extension for shared libraries through AIX4.2
14387 # and later when we are not doing run time linking.
14388 library_names_spec='${libname}${release}.a $libname.a'
14389 soname_spec='${libname}${release}${shared_ext}$major'
14391 shlibpath_var=LIBPATH
14396 library_names_spec='$libname.ixlibrary $libname.a'
14397 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14398 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'
14402 library_names_spec='${libname}${shared_ext}'
14403 dynamic_linker="$host_os ld.so"
14404 shlibpath_var=LIBRARY_PATH
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14413 shlibpath_var=LD_LIBRARY_PATH
14414 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14415 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14416 # the default ld.so.conf also contains /usr/contrib/lib and
14417 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14418 # libtool to hard-code these into programs
14421 cygwin* | mingw* | pw32*)
14422 version_type=windows
14427 case $GCC,$host_os in
14428 yes,cygwin* | yes,mingw* | yes,pw32*)
14429 library_names_spec='$libname.dll.a'
14430 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14431 postinstall_cmds='base_file=`basename \${file}`~
14432 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14433 dldir=$destdir/`dirname \$dlpath`~
14434 test -d \$dldir || mkdir -p \$dldir~
14435 $install_prog $dir/$dlname \$dldir/$dlname'
14436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14437 dlpath=$dir/\$dldll~
14439 shlibpath_overrides_runpath=yes
14443 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14444 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14445 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14448 # MinGW DLLs use traditional 'lib' prefix
14449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14450 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14451 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14452 # It is most probably a Windows format PATH printed by
14453 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14454 # path with ; separators, and with drive letters. We can handle the
14455 # drive letters (cygwin fileutils understands them), so leave them,
14456 # especially as we might pass files found there to a mingw objdump,
14457 # which wouldn't understand a cygwinified path. Ahh.
14458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14464 # pw32 DLLs use 'pw' prefix rather than 'lib'
14465 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14471 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14474 dynamic_linker='Win32 ld.exe'
14475 # FIXME: first we should search . and the directory the executable is in
14479 darwin* | rhapsody*)
14480 dynamic_linker="$host_os dyld"
14481 version_type=darwin
14484 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14485 soname_spec='${libname}${release}${major}$shared_ext'
14486 shlibpath_overrides_runpath=yes
14487 shlibpath_var=DYLD_LIBRARY_PATH
14488 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14489 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14490 if test "$GCC" = yes; then
14491 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"`
14493 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14495 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 shlibpath_var=LD_LIBRARY_PATH
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=no
14519 hardcode_into_libs=yes
14520 dynamic_linker='GNU ld.so'
14524 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14525 version_type=freebsd-$objformat
14526 case $version_type in
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14537 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes
14542 freebsd3.01* | freebsdelf3.01*)
14543 shlibpath_overrides_runpath=yes
14544 hardcode_into_libs=yes
14547 shlibpath_overrides_runpath=no
14548 hardcode_into_libs=yes
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 hardcode_into_libs=yes
14563 hpux9* | hpux10* | hpux11*)
14564 # Give a soname corresponding to the major version so that dld.sl refuses to
14565 # link against other versions.
14569 case "$host_cpu" in
14572 hardcode_into_libs=yes
14573 dynamic_linker="$host_os dld.so"
14574 shlibpath_var=LD_LIBRARY_PATH
14575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 if test "X$HPUX_IA64_MODE" = X32; then
14579 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14581 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14587 hardcode_into_libs=yes
14588 dynamic_linker="$host_os dld.sl"
14589 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14598 dynamic_linker="$host_os dld.sl"
14599 shlibpath_var=SHLIB_PATH
14600 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 soname_spec='${libname}${release}${shared_ext}$major'
14605 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14606 postinstall_cmds='chmod 555 $lib'
14609 irix5* | irix6* | nonstopux*)
14611 nonstopux*) version_type=nonstopux ;;
14613 if test "$lt_cv_prog_gnu_ld" = yes; then
14621 soname_spec='${libname}${release}${shared_ext}$major'
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14624 irix5* | nonstopux*)
14625 libsuff= shlibsuff=
14628 case $LD in # libtool.m4 will add one of these switches to LD
14629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14630 libsuff= shlibsuff= libmagic=32-bit;;
14631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14632 libsuff=32 shlibsuff=N32 libmagic=N32;;
14633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14635 *) libsuff= shlibsuff= libmagic=never-match;;
14639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14640 shlibpath_overrides_runpath=no
14641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14643 hardcode_into_libs=yes
14646 # No shared lib support for Linux oldld, aout, or coff.
14647 linux*oldld* | linux*aout* | linux*coff*)
14651 # This must be Linux ELF.
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 shlibpath_overrides_runpath=no
14661 # This implies no fast_install, which is unacceptable.
14662 # Some rework will be needed to allow for fast_install
14663 # before this can be enabled.
14664 hardcode_into_libs=yes
14666 # Append ld.so.conf contents to the search path
14667 if test -f /etc/ld.so.conf; then
14668 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14669 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14672 # We used to test for /lib/ld.so.1 and disable shared libraries on
14673 # powerpc, because MkLinux only supported shared libraries with the
14674 # GNU dynamic linker. Since this was broken with cross compilers,
14675 # most powerpc-linux boxes support dynamic linking these days and
14676 # people can always --disable-shared, the test was removed, and we
14677 # assume the GNU/Linux dynamic linker is in use.
14678 dynamic_linker='GNU/Linux ld.so'
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 shlibpath_var=LD_LIBRARY_PATH
14688 shlibpath_overrides_runpath=no
14689 hardcode_into_libs=yes
14690 dynamic_linker='GNU ld.so'
14697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14700 dynamic_linker='NetBSD (a.out) ld.so'
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 dynamic_linker='NetBSD ld.elf_so'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=yes
14708 hardcode_into_libs=yes
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 shlibpath_var=LD_LIBRARY_PATH
14715 shlibpath_overrides_runpath=yes
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 soname_spec='${libname}${release}${shared_ext}$major'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 shlibpath_overrides_runpath=yes
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14734 shlibpath_var=LD_LIBRARY_PATH
14735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14737 openbsd2.[89] | openbsd2.[89].*)
14738 shlibpath_overrides_runpath=no
14741 shlibpath_overrides_runpath=yes
14745 shlibpath_overrides_runpath=yes
14750 libname_spec='$name'
14753 library_names_spec='$libname${shared_ext} $libname.a'
14754 dynamic_linker='OS/2 ld.exe'
14755 shlibpath_var=LIBPATH
14758 osf3* | osf4* | osf5*)
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 shlibpath_var=LD_LIBRARY_PATH
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781 soname_spec='${libname}${release}${shared_ext}$major'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=yes
14784 hardcode_into_libs=yes
14785 # ldd complains unless libraries are executable
14786 postinstall_cmds='chmod +x $lib'
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=yes
14795 if test "$with_gnu_ld" = yes; then
14801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804 soname_spec='${libname}${release}${shared_ext}$major'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 case $host_vendor in
14808 shlibpath_overrides_runpath=no
14810 export_dynamic_flag_spec='${wl}-Blargedynsym'
14811 runpath_var=LD_RUN_PATH
14819 shlibpath_overrides_runpath=no
14820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14826 if test -d /usr/nec ;then
14828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14829 soname_spec='$libname${shared_ext}.$major'
14830 shlibpath_var=LD_LIBRARY_PATH
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 shlibpath_var=LD_LIBRARY_PATH
14845 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14846 echo "${ECHO_T}$dynamic_linker" >&6
14847 test "$dynamic_linker" = no && can_build_shared=no
14849 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14850 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14851 hardcode_action_F77=
14852 if test -n "$hardcode_libdir_flag_spec_F77" || \
14853 test -n "$runpath_var F77" || \
14854 test "X$hardcode_automatic_F77"="Xyes" ; then
14856 # We can hardcode non-existant directories.
14857 if test "$hardcode_direct_F77" != no &&
14858 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14859 # have to relink, otherwise we might link with an installed library
14860 # when we should be linking with a yet-to-be-installed one
14861 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14862 test "$hardcode_minus_L_F77" != no; then
14863 # Linking always hardcodes the temporary library directory.
14864 hardcode_action_F77=relink
14866 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14867 hardcode_action_F77=immediate
14870 # We cannot hardcode anything, or else we can only hardcode existing
14872 hardcode_action_F77=unsupported
14874 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14875 echo "${ECHO_T}$hardcode_action_F77" >&6
14877 if test "$hardcode_action_F77" = relink; then
14878 # Fast installation is not supported
14879 enable_fast_install=no
14880 elif test "$shlibpath_overrides_runpath" = yes ||
14881 test "$enable_shared" = no; then
14882 # Fast installation is not necessary
14883 enable_fast_install=needless
14888 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14889 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14890 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14891 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14892 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14893 echo "$as_me:$LINENO: result: yes" >&5
14894 echo "${ECHO_T}yes" >&6
14896 # FIXME - insert some real tests, host_os isn't really good enough
14899 if test -n "$STRIP" ; then
14900 striplib="$STRIP -x"
14901 echo "$as_me:$LINENO: result: yes" >&5
14902 echo "${ECHO_T}yes" >&6
14904 echo "$as_me:$LINENO: result: no" >&5
14905 echo "${ECHO_T}no" >&6
14909 echo "$as_me:$LINENO: result: no" >&5
14910 echo "${ECHO_T}no" >&6
14917 # The else clause should only fire when bootstrapping the
14918 # libtool distribution, otherwise you forgot to ship ltmain.sh
14919 # with your package, and you will get complaints that there are
14920 # no rules to generate ltmain.sh.
14921 if test -f "$ltmain"; then
14922 # See if we are running on zsh, and set the options which allow our commands through
14923 # without removal of \ escapes.
14924 if test -n "${ZSH_VERSION+set}" ; then
14925 setopt NO_GLOB_SUBST
14927 # Now quote all the things that may contain metacharacters while being
14928 # careful not to overquote the AC_SUBSTed values. We take copies of the
14929 # variables and quote the copies for generation of the libtool script.
14930 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14932 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14933 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14934 deplibs_check_method reload_flag reload_cmds need_locks \
14935 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14936 lt_cv_sys_global_symbol_to_c_name_address \
14937 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14938 old_postinstall_cmds old_postuninstall_cmds \
14942 lt_prog_compiler_wl_F77 \
14943 lt_prog_compiler_pic_F77 \
14944 lt_prog_compiler_static_F77 \
14945 lt_prog_compiler_no_builtin_flag_F77 \
14946 export_dynamic_flag_spec_F77 \
14947 thread_safe_flag_spec_F77 \
14948 whole_archive_flag_spec_F77 \
14949 enable_shared_with_static_runtimes_F77 \
14950 old_archive_cmds_F77 \
14951 old_archive_from_new_cmds_F77 \
14952 predep_objects_F77 \
14953 postdep_objects_F77 \
14956 compiler_lib_search_path_F77 \
14958 archive_expsym_cmds_F77 \
14959 postinstall_cmds_F77 \
14960 postuninstall_cmds_F77 \
14961 old_archive_from_expsyms_cmds_F77 \
14962 allow_undefined_flag_F77 \
14963 no_undefined_flag_F77 \
14964 export_symbols_cmds_F77 \
14965 hardcode_libdir_flag_spec_F77 \
14966 hardcode_libdir_flag_spec_ld_F77 \
14967 hardcode_libdir_separator_F77 \
14968 hardcode_automatic_F77 \
14970 module_expsym_cmds_F77 \
14971 lt_cv_prog_compiler_c_o_F77 \
14972 exclude_expsyms_F77 \
14973 include_expsyms_F77; do
14976 old_archive_cmds_F77 | \
14977 old_archive_from_new_cmds_F77 | \
14978 archive_cmds_F77 | \
14979 archive_expsym_cmds_F77 | \
14980 module_cmds_F77 | \
14981 module_expsym_cmds_F77 | \
14982 old_archive_from_expsyms_cmds_F77 | \
14983 export_symbols_cmds_F77 | \
14984 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14985 postinstall_cmds | postuninstall_cmds | \
14986 old_postinstall_cmds | old_postuninstall_cmds | \
14987 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14988 # Double-quote double-evaled strings.
14989 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14998 *'\$0 --fallback-echo"')
14999 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15005 cat <<__EOF__ >> "$cfgfile"
15006 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15008 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15010 # Shell to use when invoking shell scripts.
15013 # Whether or not to build shared libraries.
15014 build_libtool_libs=$enable_shared
15016 # Whether or not to build static libraries.
15017 build_old_libs=$enable_static
15019 # Whether or not to add -lc for building shared libraries.
15020 build_libtool_need_lc=$archive_cmds_need_lc_F77
15022 # Whether or not to disallow shared libs when runtime libs are static
15023 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15025 # Whether or not to optimize for fast installation.
15026 fast_install=$enable_fast_install
15029 host_alias=$host_alias
15032 # An echo program that does not interpret backslashes.
15037 AR_FLAGS=$lt_AR_FLAGS
15042 # A language-specific compiler.
15043 CC=$lt_compiler_F77
15045 # Is the compiler the GNU C compiler?
15051 # The linker used to build libraries.
15054 # Whether we need hard or soft links.
15057 # A BSD-compatible nm program.
15060 # A symbol stripping program
15063 # Used to examine libraries when file_magic_cmd begins "file"
15064 MAGIC_CMD=$MAGIC_CMD
15066 # Used on cygwin: DLL creation program.
15069 # Used on cygwin: object dumper.
15072 # Used on cygwin: assembler.
15075 # The name of the directory that contains temporary libtool files.
15078 # How to create reloadable object files.
15079 reload_flag=$lt_reload_flag
15080 reload_cmds=$lt_reload_cmds
15082 # How to pass a linker flag through the compiler.
15083 wl=$lt_lt_prog_compiler_wl_F77
15085 # Object file suffix (normally "o").
15086 objext="$ac_objext"
15088 # Old archive suffix (normally "a").
15091 # Shared library suffix (normally ".so").
15094 # Executable file suffix (normally "").
15097 # Additional compiler flags for building library objects.
15098 pic_flag=$lt_lt_prog_compiler_pic_F77
15101 # What is the maximum length of a command?
15102 max_cmd_len=$lt_cv_sys_max_cmd_len
15104 # Does compiler simultaneously support -c and -o options?
15105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15107 # Must we lock files when doing compilation ?
15108 need_locks=$lt_need_locks
15110 # Do we need the lib prefix for modules?
15111 need_lib_prefix=$need_lib_prefix
15113 # Do we need a version for libraries?
15114 need_version=$need_version
15116 # Whether dlopen is supported.
15117 dlopen_support=$enable_dlopen
15119 # Whether dlopen of programs is supported.
15120 dlopen_self=$enable_dlopen_self
15122 # Whether dlopen of statically linked programs is supported.
15123 dlopen_self_static=$enable_dlopen_self_static
15125 # Compiler flag to prevent dynamic linking.
15126 link_static_flag=$lt_lt_prog_compiler_static_F77
15128 # Compiler flag to turn off builtin functions.
15129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15131 # Compiler flag to allow reflexive dlopens.
15132 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15134 # Compiler flag to generate shared objects directly from archives.
15135 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15137 # Compiler flag to generate thread-safe objects.
15138 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15140 # Library versioning type.
15141 version_type=$version_type
15143 # Format of library name prefix.
15144 libname_spec=$lt_libname_spec
15146 # List of archive names. First name is the real one, the rest are links.
15147 # The last name is the one that the linker finds with -lNAME.
15148 library_names_spec=$lt_library_names_spec
15150 # The coded name of the library, if different from the real name.
15151 soname_spec=$lt_soname_spec
15153 # Commands used to build and install an old-style archive.
15155 old_archive_cmds=$lt_old_archive_cmds_F77
15156 old_postinstall_cmds=$lt_old_postinstall_cmds
15157 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15159 # Create an old-style archive from a shared archive.
15160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15162 # Create a temporary old-style archive to link instead of a shared archive.
15163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15165 # Commands used to build and install a shared archive.
15166 archive_cmds=$lt_archive_cmds_F77
15167 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15168 postinstall_cmds=$lt_postinstall_cmds
15169 postuninstall_cmds=$lt_postuninstall_cmds
15171 # Commands used to build a loadable module (assumed same as above if empty)
15172 module_cmds=$lt_module_cmds_F77
15173 module_expsym_cmds=$lt_module_expsym_cmds_F77
15175 # Commands to strip libraries.
15176 old_striplib=$lt_old_striplib
15177 striplib=$lt_striplib
15179 # Dependencies to place before the objects being linked to create a
15181 predep_objects=$lt_predep_objects_F77
15183 # Dependencies to place after the objects being linked to create a
15185 postdep_objects=$lt_postdep_objects_F77
15187 # Dependencies to place before the objects being linked to create a
15189 predeps=$lt_predeps_F77
15191 # Dependencies to place after the objects being linked to create a
15193 postdeps=$lt_postdeps_F77
15195 # The library search path used internally by the compiler when linking
15196 # a shared library.
15197 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15199 # Method to check whether dependent libraries are shared objects.
15200 deplibs_check_method=$lt_deplibs_check_method
15202 # Command to use when deplibs_check_method == file_magic.
15203 file_magic_cmd=$lt_file_magic_cmd
15205 # Flag that allows shared libraries with undefined symbols to be built.
15206 allow_undefined_flag=$lt_allow_undefined_flag_F77
15208 # Flag that forces no undefined symbols.
15209 no_undefined_flag=$lt_no_undefined_flag_F77
15211 # Commands used to finish a libtool library installation in a directory.
15212 finish_cmds=$lt_finish_cmds
15214 # Same as above, but a single script fragment to be evaled but not shown.
15215 finish_eval=$lt_finish_eval
15217 # Take the output of nm and produce a listing of raw symbols and C names.
15218 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15220 # Transform the output of nm in a proper C declaration
15221 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15223 # Transform the output of nm in a C name address pair
15224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15226 # This is the shared library runtime path variable.
15227 runpath_var=$runpath_var
15229 # This is the shared library path variable.
15230 shlibpath_var=$shlibpath_var
15232 # Is shlibpath searched before the hard-coded library search path?
15233 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15235 # How to hardcode a shared library path into an executable.
15236 hardcode_action=$hardcode_action_F77
15238 # Whether we should hardcode library paths into libraries.
15239 hardcode_into_libs=$hardcode_into_libs
15241 # Flag to hardcode \$libdir into a binary during linking.
15242 # This must work even if \$libdir does not exist.
15243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15245 # If ld is used when linking, flag to hardcode \$libdir into
15246 # a binary during linking. This must work even if \$libdir does
15248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15250 # Whether we need a single -rpath flag with a separated argument.
15251 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15253 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15254 # resulting binary.
15255 hardcode_direct=$hardcode_direct_F77
15257 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15258 # resulting binary.
15259 hardcode_minus_L=$hardcode_minus_L_F77
15261 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15262 # the resulting binary.
15263 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15265 # Set to yes if building a shared library automatically hardcodes DIR into the library
15266 # and all subsequent libraries and executables linked against it.
15267 hardcode_automatic=$hardcode_automatic_F77
15269 # Variables whose values should be saved in libtool wrapper scripts and
15270 # restored at relink time.
15271 variables_saved_for_relink="$variables_saved_for_relink"
15273 # Whether libtool must link a program against all its dependency libraries.
15274 link_all_deplibs=$link_all_deplibs_F77
15276 # Compile-time system search path for libraries
15277 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15279 # Run-time system search path for libraries
15280 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15282 # Fix the shell variable \$srcfile for the compiler.
15283 fix_srcfile_path="$fix_srcfile_path_F77"
15285 # Set to yes if exported symbols are required.
15286 always_export_symbols=$always_export_symbols_F77
15288 # The commands to list exported symbols.
15289 export_symbols_cmds=$lt_export_symbols_cmds_F77
15291 # The commands to extract the exported symbol list from a shared archive.
15292 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15294 # Symbols that should not be listed in the preloaded symbols.
15295 exclude_expsyms=$lt_exclude_expsyms_F77
15297 # Symbols that must always be exported.
15298 include_expsyms=$lt_include_expsyms_F77
15300 # ### END LIBTOOL TAG CONFIG: $tagname
15306 # If there is no Makefile yet, we rely on a make rule to execute
15307 # `config.status --recheck' to rerun these tests and create the
15308 # libtool script then.
15309 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15310 if test -f "$ltmain_in"; then
15311 test -f Makefile && make "$ltmain"
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15330 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15334 # Source file extension for Java test sources.
15337 # Object file extension for compiled Java test sources.
15341 # Code to be used in simple compile tests
15342 lt_simple_compile_test_code="class foo {}\n"
15344 # Code to be used in simple link tests
15345 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15347 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15349 # If no C compiler was specified, use CC.
15352 # Allow CC to be a program name with arguments.
15356 # Allow CC to be a program name with arguments.
15362 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15363 archive_cmds_need_lc_GCJ=no
15366 lt_prog_compiler_no_builtin_flag_GCJ=
15368 if test "$GCC" = yes; then
15369 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15372 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15373 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15374 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 lt_cv_prog_compiler_rtti_exceptions=no
15378 ac_outfile=conftest.$ac_objext
15379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15380 lt_compiler_flag="-fno-rtti -fno-exceptions"
15381 # Insert the option either (1) after the last *FLAGS variable, or
15382 # (2) before a word containing "conftest.", or (3) at the end.
15383 # Note that $ac_compile itself does not contain backslashes and begins
15384 # with a dollar sign (not a hyphen), so the echo should work correctly.
15385 # The option is referenced via a variable to avoid confusing sed.
15386 lt_compile=`echo "$ac_compile" | $SED \
15387 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389 -e 's:$: $lt_compiler_flag:'`
15390 (eval echo "\"\$as_me:15390: $lt_compile\"" >&5)
15391 (eval "$lt_compile" 2>conftest.err)
15393 cat conftest.err >&5
15394 echo "$as_me:15394: \$? = $ac_status" >&5
15395 if (exit $ac_status) && test -s "$ac_outfile"; then
15396 # The compiler can only warn and ignore the option if not recognized
15397 # So say no if there are warnings
15398 if test ! -s conftest.err; then
15399 lt_cv_prog_compiler_rtti_exceptions=yes
15405 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15406 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15408 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15409 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15416 lt_prog_compiler_wl_GCJ=
15417 lt_prog_compiler_pic_GCJ=
15418 lt_prog_compiler_static_GCJ=
15420 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15421 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15423 if test "$GCC" = yes; then
15424 lt_prog_compiler_wl_GCJ='-Wl,'
15425 lt_prog_compiler_static_GCJ='-static'
15429 # All AIX code is PIC.
15430 if test "$host_cpu" = ia64; then
15431 # AIX 5 now supports IA64 processor
15432 lt_prog_compiler_static_GCJ='-Bstatic'
15437 # FIXME: we need at least 68020 code to build shared libraries, but
15438 # adding the `-m68020' flag to GCC prevents building anything better,
15440 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15443 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15444 # PIC is the default for these OSes.
15447 mingw* | pw32* | os2*)
15448 # This hack is so that the source file can tell whether it is being
15449 # built for inclusion in a dll (and should export symbols for example).
15450 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15453 darwin* | rhapsody*)
15454 # PIC is the default on this platform
15455 # Common symbols not allowed in MH_DYLIB files
15456 lt_prog_compiler_pic_GCJ='-fno-common'
15460 # Just because we use GCC doesn't mean we suddenly get shared libraries
15461 # on systems that don't support them.
15462 lt_prog_compiler_can_build_shared_GCJ=no
15467 if test -d /usr/nec; then
15468 lt_prog_compiler_pic_GCJ=-Kconform_pic
15473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15474 # not for PA HP-UX.
15475 case "$host_cpu" in
15480 lt_prog_compiler_pic_GCJ='-fPIC'
15486 lt_prog_compiler_pic_GCJ='-fPIC'
15490 # PORTME Check for flag to pass linker flags through the system compiler.
15493 lt_prog_compiler_wl_GCJ='-Wl,'
15494 if test "$host_cpu" = ia64; then
15495 # AIX 5 now supports IA64 processor
15496 lt_prog_compiler_static_GCJ='-Bstatic'
15498 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15502 mingw* | pw32* | os2*)
15503 # This hack is so that the source file can tell whether it is being
15504 # built for inclusion in a dll (and should export symbols for example).
15505 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15508 hpux9* | hpux10* | hpux11*)
15509 lt_prog_compiler_wl_GCJ='-Wl,'
15510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15511 # not for PA HP-UX.
15512 case "$host_cpu" in
15517 lt_prog_compiler_pic_GCJ='+Z'
15520 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15521 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15524 irix5* | irix6* | nonstopux*)
15525 lt_prog_compiler_wl_GCJ='-Wl,'
15526 # PIC (with -KPIC) is the default.
15527 lt_prog_compiler_static_GCJ='-non_shared'
15531 lt_prog_compiler_pic_GCJ='-KPIC'
15532 lt_prog_compiler_static_GCJ='-Bstatic'
15538 lt_prog_compiler_wl_GCJ='-Wl,'
15539 lt_prog_compiler_pic_GCJ='-KPIC'
15540 lt_prog_compiler_static_GCJ='-static'
15543 lt_prog_compiler_wl_GCJ='-Wl,'
15544 # All Alpha code is PIC.
15545 lt_prog_compiler_static_GCJ='-non_shared'
15550 osf3* | osf4* | osf5*)
15551 lt_prog_compiler_wl_GCJ='-Wl,'
15552 # All OSF/1 code is PIC.
15553 lt_prog_compiler_static_GCJ='-non_shared'
15557 lt_prog_compiler_pic_GCJ='-Kpic'
15558 lt_prog_compiler_static_GCJ='-dn'
15562 lt_prog_compiler_wl_GCJ='-Wl,'
15563 lt_prog_compiler_pic_GCJ='-KPIC'
15564 lt_prog_compiler_static_GCJ='-Bstatic'
15568 lt_prog_compiler_wl_GCJ='-Qoption ld '
15569 lt_prog_compiler_pic_GCJ='-PIC'
15570 lt_prog_compiler_static_GCJ='-Bstatic'
15573 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15574 lt_prog_compiler_wl_GCJ='-Wl,'
15575 lt_prog_compiler_pic_GCJ='-KPIC'
15576 lt_prog_compiler_static_GCJ='-Bstatic'
15580 if test -d /usr/nec ;then
15581 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15582 lt_prog_compiler_static_GCJ='-Bstatic'
15587 lt_prog_compiler_pic_GCJ='-pic'
15588 lt_prog_compiler_static_GCJ='-Bstatic'
15592 lt_prog_compiler_can_build_shared_GCJ=no
15597 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15598 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15601 # Check to make sure the PIC flag actually works.
15603 if test -n "$lt_prog_compiler_pic_GCJ"; then
15605 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15607 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 lt_prog_compiler_pic_works_GCJ=no
15611 ac_outfile=conftest.$ac_objext
15612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15613 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15614 # Insert the option either (1) after the last *FLAGS variable, or
15615 # (2) before a word containing "conftest.", or (3) at the end.
15616 # Note that $ac_compile itself does not contain backslashes and begins
15617 # with a dollar sign (not a hyphen), so the echo should work correctly.
15618 # The option is referenced via a variable to avoid confusing sed.
15619 lt_compile=`echo "$ac_compile" | $SED \
15620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15622 -e 's:$: $lt_compiler_flag:'`
15623 (eval echo "\"\$as_me:15623: $lt_compile\"" >&5)
15624 (eval "$lt_compile" 2>conftest.err)
15626 cat conftest.err >&5
15627 echo "$as_me:15627: \$? = $ac_status" >&5
15628 if (exit $ac_status) && test -s "$ac_outfile"; then
15629 # The compiler can only warn and ignore the option if not recognized
15630 # So say no if there are warnings
15631 if test ! -s conftest.err; then
15632 lt_prog_compiler_pic_works_GCJ=yes
15638 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15639 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15641 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15642 case $lt_prog_compiler_pic_GCJ in
15644 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15647 lt_prog_compiler_pic_GCJ=
15648 lt_prog_compiler_can_build_shared_GCJ=no
15653 # For platforms which do not support PIC, -DPIC is meaningless:
15655 lt_prog_compiler_pic_GCJ=
15658 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15662 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15663 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15664 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 lt_cv_prog_compiler_c_o_GCJ=no
15668 $rm -r conftest 2>/dev/null
15672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15674 lt_compiler_flag="-o out/conftest2.$ac_objext"
15675 # Insert the option either (1) after the last *FLAGS variable, or
15676 # (2) before a word containing "conftest.", or (3) at the end.
15677 # Note that $ac_compile itself does not contain backslashes and begins
15678 # with a dollar sign (not a hyphen), so the echo should work correctly.
15679 lt_compile=`echo "$ac_compile" | $SED \
15680 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682 -e 's:$: $lt_compiler_flag:'`
15683 (eval echo "\"\$as_me:15683: $lt_compile\"" >&5)
15684 (eval "$lt_compile" 2>out/conftest.err)
15686 cat out/conftest.err >&5
15687 echo "$as_me:15687: \$? = $ac_status" >&5
15688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15690 # The compiler can only warn and ignore the option if not recognized
15691 # So say no if there are warnings
15692 if test ! -s out/conftest.err; then
15693 lt_cv_prog_compiler_c_o_GCJ=yes
15698 # SGI C++ compiler will create directory out/ii_files/ for
15699 # template instantiation
15700 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15701 $rm out/* && rmdir out
15707 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15708 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15711 hard_links="nottested"
15712 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15713 # do not overwrite the value of need_locks provided by the user
15714 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15715 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15720 ln conftest.a conftest.b 2>&5 || hard_links=no
15721 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15722 echo "$as_me:$LINENO: result: $hard_links" >&5
15723 echo "${ECHO_T}$hard_links" >&6
15724 if test "$hard_links" = no; then
15725 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15726 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15733 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15734 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15737 allow_undefined_flag_GCJ=
15738 enable_shared_with_static_runtimes_GCJ=no
15740 archive_expsym_cmds_GCJ=
15741 old_archive_From_new_cmds_GCJ=
15742 old_archive_from_expsyms_cmds_GCJ=
15743 export_dynamic_flag_spec_GCJ=
15744 whole_archive_flag_spec_GCJ=
15745 thread_safe_flag_spec_GCJ=
15746 hardcode_libdir_flag_spec_GCJ=
15747 hardcode_libdir_flag_spec_ld_GCJ=
15748 hardcode_libdir_separator_GCJ=
15749 hardcode_direct_GCJ=no
15750 hardcode_minus_L_GCJ=no
15751 hardcode_shlibpath_var_GCJ=unsupported
15752 link_all_deplibs_GCJ=unknown
15753 hardcode_automatic_GCJ=no
15755 module_expsym_cmds_GCJ=
15756 always_export_symbols_GCJ=no
15757 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15758 # include_expsyms should be a list of space-separated symbols to be *always*
15759 # included in the symbol list
15760 include_expsyms_GCJ=
15761 # exclude_expsyms can be an extended regexp of symbols to exclude
15762 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15764 # as well as any symbol that contains `d'.
15765 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15767 # platforms (ab)use it in PIC code, but their linkers get confused if
15768 # the symbol is explicitly referenced. Since portable code cannot
15769 # rely on this symbol name, it's probably fine to never include it in
15770 # preloaded symbol tables.
15771 extract_expsyms_cmds=
15774 cygwin* | mingw* | pw32*)
15775 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15776 # When not using gcc, we currently assume that we are using
15777 # Microsoft Visual C++.
15778 if test "$GCC" != yes; then
15788 if test "$with_gnu_ld" = yes; then
15789 # If archive_cmds runs LD, not CC, wlarc should be empty
15792 # See if GNU ld supports shared libraries.
15794 aix3* | aix4* | aix5*)
15795 # On AIX/PPC, the GNU linker is very broken
15796 if test "$host_cpu" != ia64; then
15800 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15801 *** to be unable to reliably create shared libraries on AIX.
15802 *** Therefore, libtool is disabling shared libraries support. If you
15803 *** really care for shared libraries, you may want to modify your PATH
15804 *** so that a non-GNU linker is found, and then restart.
15811 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)'
15812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15813 hardcode_minus_L_GCJ=yes
15815 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15816 # that the semantics of dynamic libraries on AmigaOS, at least up
15817 # to version 4, is to share data among multiple programs linked
15818 # with the same dynamic library. Since this doesn't match the
15819 # behavior of shared libraries on other platforms, we can't use
15825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15826 allow_undefined_flag_GCJ=unsupported
15827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15828 # support --undefined. This deserves some investigation. FIXME
15829 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15835 cygwin* | mingw* | pw32*)
15836 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15837 # as there is no search path for DLLs.
15838 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15839 allow_undefined_flag_GCJ=unsupported
15840 always_export_symbols_GCJ=no
15841 enable_shared_with_static_runtimes_GCJ=yes
15842 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15844 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15846 # If the export-symbols file already is a .def file (1st line
15847 # is EXPORTS), use it as is; otherwise, prepend...
15848 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15849 cp $export_symbols $output_objdir/$soname.def;
15851 echo EXPORTS > $output_objdir/$soname.def;
15852 cat $export_symbols >> $output_objdir/$soname.def;
15854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15861 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15862 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15866 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15871 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15875 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15876 *** create shared libraries on Solaris systems. Therefore, libtool
15877 *** is disabling shared libraries support. We urge you to upgrade GNU
15878 *** binutils to release 2.9.1 or newer. Another option is to modify
15879 *** your PATH or compiler configuration so that the native linker is
15880 *** used, and then restart.
15883 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15884 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15885 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15892 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15894 hardcode_direct_GCJ=yes
15895 hardcode_shlibpath_var_GCJ=no
15899 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15900 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15901 archive_cmds_GCJ="$tmp_archive_cmds"
15902 supports_anon_versioning=no
15903 case `$LD -v 2>/dev/null` in
15904 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15905 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15906 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15907 *\ 2.11.*) ;; # other 2.11 versions
15908 *) supports_anon_versioning=yes ;;
15910 if test $supports_anon_versioning = yes; then
15911 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15913 $echo "local: *; };" >> $output_objdir/$libname.ver~
15914 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15916 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15925 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15926 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15933 if test "$ld_shlibs_GCJ" = yes; then
15934 runpath_var=LD_RUN_PATH
15935 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15936 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15937 # ancient GNU ld didn't support --whole-archive et. al.
15938 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15939 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15941 whole_archive_flag_spec_GCJ=
15945 # PORTME fill in a description of your system's linker (not GNU ld)
15948 allow_undefined_flag_GCJ=unsupported
15949 always_export_symbols_GCJ=yes
15950 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'
15951 # Note: this linker hardcodes the directories in LIBPATH if there
15952 # are no directories specified by -L.
15953 hardcode_minus_L_GCJ=yes
15954 if test "$GCC" = yes && test -z "$link_static_flag"; then
15955 # Neither direct hardcoding nor static linking is supported with a
15957 hardcode_direct_GCJ=unsupported
15962 if test "$host_cpu" = ia64; then
15963 # On IA64, the linker does run time linking by default, so we don't
15964 # have to do anything special.
15965 aix_use_runtimelinking=no
15966 exp_sym_flag='-Bexport'
15969 # If we're using GNU nm, then we don't want the "-C" option.
15970 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15971 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15972 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'
15974 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'
15976 aix_use_runtimelinking=no
15978 # Test if we are trying to use run time linking or normal
15979 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15980 # need to do runtime linking.
15981 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15982 for ld_flag in $LDFLAGS; do
15983 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15984 aix_use_runtimelinking=yes
15990 exp_sym_flag='-bexport'
15991 no_entry_flag='-bnoentry'
15994 # When large executables or shared objects are built, AIX ld can
15995 # have problems creating the table of contents. If linking a library
15996 # or program results in "error TOC overflow" add -mminimal-toc to
15997 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15998 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16000 archive_cmds_GCJ=''
16001 hardcode_direct_GCJ=yes
16002 hardcode_libdir_separator_GCJ=':'
16003 link_all_deplibs_GCJ=yes
16005 if test "$GCC" = yes; then
16006 case $host_os in aix4.012|aix4.012.*)
16007 # We only want to do this on AIX 4.2 and lower, the check
16008 # below for broken collect2 doesn't work under 4.3+
16009 collect2name=`${CC} -print-prog-name=collect2`
16010 if test -f "$collect2name" && \
16011 strings "$collect2name" | grep resolve_lib_name >/dev/null
16013 # We have reworked collect2
16014 hardcode_direct_GCJ=yes
16016 # We have old collect2
16017 hardcode_direct_GCJ=unsupported
16018 # It fails to find uninstalled libraries when the uninstalled
16019 # path is not listed in the libpath. Setting hardcode_minus_L
16020 # to unsupported forces relinking
16021 hardcode_minus_L_GCJ=yes
16022 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16023 hardcode_libdir_separator_GCJ=
16026 shared_flag='-shared'
16029 if test "$host_cpu" = ia64; then
16030 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16031 # chokes on -Wl,-G. The following line is correct:
16034 if test "$aix_use_runtimelinking" = yes; then
16035 shared_flag='${wl}-G'
16037 shared_flag='${wl}-bM:SRE'
16042 # It seems that -bexpall does not export symbols beginning with
16043 # underscore (_), so it is better to generate a list of symbols to export.
16044 always_export_symbols_GCJ=yes
16045 if test "$aix_use_runtimelinking" = yes; then
16046 # Warning - without using the other runtime loading flags (-brtl),
16047 # -berok will link without error, but may produce a broken library.
16048 allow_undefined_flag_GCJ='-berok'
16049 # Determine the default libpath from the value encoded in an empty executable.
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16067 (eval $ac_link) 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest$ac_exeext'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16090 # Check for a 64-bit object if we didn't find anything.
16091 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; }
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16098 rm -f conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16102 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16103 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"
16105 if test "$host_cpu" = ia64; then
16106 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16107 allow_undefined_flag_GCJ="-z nodefs"
16108 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"
16110 # Determine the default libpath from the value encoded in an empty executable.
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16128 (eval $ac_link) 2>conftest.er1
16130 grep -v '^ *+' conftest.er1 >conftest.err
16132 cat conftest.err >&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
16135 { ac_try='test -z "$ac_c_werror_flag"
16136 || test ! -s conftest.err'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest$ac_exeext'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16151 # Check for a 64-bit object if we didn't find anything.
16152 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; }
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16159 rm -f conftest.err conftest.$ac_objext \
16160 conftest$ac_exeext conftest.$ac_ext
16161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16163 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16164 # Warning - without using the other run time loading flags,
16165 # -berok will link without error, but may produce a broken library.
16166 no_undefined_flag_GCJ=' ${wl}-bernotok'
16167 allow_undefined_flag_GCJ=' ${wl}-berok'
16168 # -bexpall does not export symbols beginning with underscore (_)
16169 always_export_symbols_GCJ=yes
16170 # Exported symbols can be pulled into shared objects from archives
16171 whole_archive_flag_spec_GCJ=' '
16172 archive_cmds_need_lc_GCJ=yes
16173 # This is similar to how AIX traditionally builds it's shared libraries.
16174 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'
16180 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)'
16181 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16182 hardcode_minus_L_GCJ=yes
16183 # see comment about different semantics on the GNU ld section
16188 export_dynamic_flag_spec_GCJ=-rdynamic
16191 cygwin* | mingw* | pw32*)
16192 # When not using gcc, we currently assume that we are using
16193 # Microsoft Visual C++.
16194 # hardcode_libdir_flag_spec is actually meaningless, as there is
16195 # no search path for DLLs.
16196 hardcode_libdir_flag_spec_GCJ=' '
16197 allow_undefined_flag_GCJ=unsupported
16198 # Tell ltmain to make .lib files, not .a files.
16200 # Tell ltmain to make .dll files, not .so files.
16202 # FIXME: Setting linknames here is a bad hack.
16203 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16204 # The linker will automatically build a .lib file if we build a DLL.
16205 old_archive_From_new_cmds_GCJ='true'
16206 # FIXME: Should let the user specify the lib program.
16207 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16208 fix_srcfile_path='`cygpath -w "$srcfile"`'
16209 enable_shared_with_static_runtimes_GCJ=yes
16212 darwin* | rhapsody*)
16213 if test "$GXX" = yes ; then
16214 archive_cmds_need_lc_GCJ=no
16216 rhapsody* | darwin1.[012])
16217 allow_undefined_flag_GCJ='-undefined suppress'
16220 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16221 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16223 case ${MACOSX_DEPLOYMENT_TARGET} in
16225 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16228 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16234 lt_int_apple_cc_single_mod=no
16235 output_verbose_link_cmd='echo'
16236 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16237 lt_int_apple_cc_single_mod=yes
16239 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16240 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16242 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'
16244 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16246 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16247 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}'
16249 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}'
16251 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}'
16252 hardcode_direct_GCJ=no
16253 hardcode_automatic_GCJ=yes
16254 hardcode_shlibpath_var_GCJ=unsupported
16255 whole_archive_flag_spec_GCJ='-all_load $convenience'
16256 link_all_deplibs_GCJ=yes
16263 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16264 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16265 hardcode_shlibpath_var_GCJ=no
16272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16273 # support. Future versions do this automatically, but an explicit c++rt0.o
16274 # does not break anything, and helps significantly (at the cost of a little
16277 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16278 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16279 hardcode_direct_GCJ=yes
16280 hardcode_shlibpath_var_GCJ=no
16283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16285 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16286 hardcode_direct_GCJ=yes
16287 hardcode_minus_L_GCJ=yes
16288 hardcode_shlibpath_var_GCJ=no
16291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16292 freebsd* | kfreebsd*-gnu)
16293 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16294 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16295 hardcode_direct_GCJ=yes
16296 hardcode_shlibpath_var_GCJ=no
16300 if test "$GCC" = yes; then
16301 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'
16303 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'
16305 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16306 hardcode_libdir_separator_GCJ=:
16307 hardcode_direct_GCJ=yes
16309 # hardcode_minus_L: Not really in the search PATH,
16310 # but as the default location of the library.
16311 hardcode_minus_L_GCJ=yes
16312 export_dynamic_flag_spec_GCJ='${wl}-E'
16316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16317 case "$host_cpu" in
16319 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16322 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16326 case "$host_cpu" in
16328 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16331 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16335 if test "$with_gnu_ld" = no; then
16336 case "$host_cpu" in
16338 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16339 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16340 hardcode_libdir_separator_GCJ=:
16341 hardcode_direct_GCJ=no
16342 hardcode_shlibpath_var_GCJ=no
16345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16346 hardcode_direct_GCJ=no
16347 hardcode_shlibpath_var_GCJ=no
16349 # hardcode_minus_L: Not really in the search PATH,
16350 # but as the default location of the library.
16351 hardcode_minus_L_GCJ=yes
16354 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16355 hardcode_libdir_separator_GCJ=:
16356 hardcode_direct_GCJ=yes
16357 export_dynamic_flag_spec_GCJ='${wl}-E'
16359 # hardcode_minus_L: Not really in the search PATH,
16360 # but as the default location of the library.
16361 hardcode_minus_L_GCJ=yes
16367 irix5* | irix6* | nonstopux*)
16368 if test "$GCC" = yes; then
16369 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'
16371 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'
16372 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16374 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16375 hardcode_libdir_separator_GCJ=:
16376 link_all_deplibs_GCJ=yes
16380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16381 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16383 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16385 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16386 hardcode_direct_GCJ=yes
16387 hardcode_shlibpath_var_GCJ=no
16391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16392 hardcode_direct_GCJ=yes
16393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16394 hardcode_libdir_separator_GCJ=:
16395 hardcode_shlibpath_var_GCJ=no
16399 hardcode_direct_GCJ=yes
16400 hardcode_shlibpath_var_GCJ=no
16401 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16402 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16404 export_dynamic_flag_spec_GCJ='${wl}-E'
16407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16408 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16409 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16412 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16413 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16421 hardcode_minus_L_GCJ=yes
16422 allow_undefined_flag_GCJ=unsupported
16423 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'
16424 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16428 if test "$GCC" = yes; then
16429 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16430 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'
16432 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16433 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'
16435 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16436 hardcode_libdir_separator_GCJ=:
16439 osf4* | osf5*) # as osf3* with the addition of -msym flag
16440 if test "$GCC" = yes; then
16441 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16442 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'
16443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16445 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16446 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'
16447 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~
16448 $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'
16450 # Both c and cxx compiler support -rpath directly
16451 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16453 hardcode_libdir_separator_GCJ=:
16457 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_shlibpath_var_GCJ=no
16459 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16460 runpath_var=LD_RUN_PATH
16461 hardcode_runpath_var=yes
16465 no_undefined_flag_GCJ=' -z text'
16466 if test "$GCC" = yes; then
16467 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16469 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16471 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16475 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16476 hardcode_shlibpath_var_GCJ=no
16478 solaris2.[0-5] | solaris2.[0-5].*) ;;
16479 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16480 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16482 link_all_deplibs_GCJ=yes
16486 if test "x$host_vendor" = xsequent; then
16487 # Use $CC to link under sequent, because it throws in some extra .o
16488 # files that make .init and .fini sections work.
16489 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16491 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16494 hardcode_direct_GCJ=yes
16495 hardcode_minus_L_GCJ=yes
16496 hardcode_shlibpath_var_GCJ=no
16500 case $host_vendor in
16502 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16503 hardcode_direct_GCJ=yes # is this really true???
16506 ## LD is ld it makes a PLAMLIB
16507 ## CC just makes a GrossModule.
16508 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16509 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16510 hardcode_direct_GCJ=no
16513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16517 runpath_var='LD_RUN_PATH'
16518 hardcode_shlibpath_var_GCJ=no
16522 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523 hardcode_shlibpath_var_GCJ=no
16524 export_dynamic_flag_spec_GCJ='-Bexport'
16528 if test -d /usr/nec; then
16529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_shlibpath_var_GCJ=no
16531 runpath_var=LD_RUN_PATH
16532 hardcode_runpath_var=yes
16538 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16539 hardcode_direct_GCJ=yes
16540 hardcode_minus_L_GCJ=no
16541 hardcode_shlibpath_var_GCJ=no
16542 hardcode_runpath_var=yes
16543 runpath_var=LD_RUN_PATH
16546 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16547 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16548 if test "$GCC" = yes; then
16549 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16551 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16553 runpath_var='LD_RUN_PATH'
16554 hardcode_shlibpath_var_GCJ=no
16558 no_undefined_flag_GCJ=' -z text'
16559 # $CC -shared without GNU ld will not create a library from C++
16560 # object files and a static libstdc++, better avoid it by now
16561 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16562 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16564 hardcode_libdir_flag_spec_GCJ=
16565 hardcode_shlibpath_var_GCJ=no
16566 runpath_var='LD_RUN_PATH'
16570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16572 hardcode_shlibpath_var_GCJ=no
16581 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16582 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16583 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16586 if test "$GCC" = yes; then
16587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16591 # Do we need to explicitly link libc?
16593 case "x$archive_cmds_need_lc_GCJ" in
16595 # Assume -lc should be added
16596 archive_cmds_need_lc_GCJ=yes
16598 if test "$enable_shared" = yes && test "$GCC" = yes; then
16599 case $archive_cmds_GCJ in
16601 # FIXME: we may have to deal with multi-command sequences.
16604 # Test whether the compiler implicitly links with -lc since on some
16605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16606 # to ld, don't add -lc before -lgcc.
16607 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613 (eval $ac_compile) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } 2>conftest.err; then
16619 libobjs=conftest.$ac_objext
16621 wl=$lt_prog_compiler_wl_GCJ
16627 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16628 allow_undefined_flag_GCJ=
16629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16630 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }
16635 archive_cmds_need_lc_GCJ=no
16637 archive_cmds_need_lc_GCJ=yes
16639 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16641 cat conftest.err 1>&5
16644 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16645 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16652 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16654 library_names_spec=
16655 libname_spec='lib$name'
16659 postuninstall_cmds=
16663 shlibpath_overrides_runpath=unknown
16665 dynamic_linker="$host_os ld.so"
16666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16667 if test "$GCC" = yes; then
16668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16669 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16670 # if the path contains ";" then we assume it to be the separator
16671 # otherwise default to the standard path separator (i.e. ":") - it is
16672 # assumed that no part of a normal pathname contains ";" but that should
16673 # okay in the real world where ";" in dirpaths is itself problematic.
16674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16679 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16681 need_lib_prefix=unknown
16682 hardcode_into_libs=no
16684 # when you set need_version to no, make sure it does not cause -set_version
16685 # flags to be left without arguments
16686 need_version=unknown
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16692 shlibpath_var=LIBPATH
16694 # AIX 3 has no versioning support, so we append a major version to the name.
16695 soname_spec='${libname}${release}${shared_ext}$major'
16702 hardcode_into_libs=yes
16703 if test "$host_cpu" = ia64; then
16704 # AIX 5 supports IA64
16705 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16706 shlibpath_var=LD_LIBRARY_PATH
16708 # With GCC up to 2.95.x, collect2 would create an import file
16709 # for dependence libraries. The import file would start with
16710 # the line `#! .'. This would cause the generated library to
16711 # depend on `.', always an invalid library. This was fixed in
16712 # development snapshots of GCC prior to 3.0.
16714 aix4 | aix4.[01] | aix4.[01].*)
16715 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16717 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16720 can_build_shared=no
16724 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16725 # soname into executable. Probably we can add versioning support to
16726 # collect2, so additional links can be useful in future.
16727 if test "$aix_use_runtimelinking" = yes; then
16728 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16729 # instead of lib<name>.a to let people know that these are not
16730 # typical AIX shared libraries.
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733 # We preserve .a as extension for shared libraries through AIX4.2
16734 # and later when we are not doing run time linking.
16735 library_names_spec='${libname}${release}.a $libname.a'
16736 soname_spec='${libname}${release}${shared_ext}$major'
16738 shlibpath_var=LIBPATH
16743 library_names_spec='$libname.ixlibrary $libname.a'
16744 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16745 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'
16749 library_names_spec='${libname}${shared_ext}'
16750 dynamic_linker="$host_os ld.so"
16751 shlibpath_var=LIBRARY_PATH
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16763 # the default ld.so.conf also contains /usr/contrib/lib and
16764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16765 # libtool to hard-code these into programs
16768 cygwin* | mingw* | pw32*)
16769 version_type=windows
16774 case $GCC,$host_os in
16775 yes,cygwin* | yes,mingw* | yes,pw32*)
16776 library_names_spec='$libname.dll.a'
16777 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16778 postinstall_cmds='base_file=`basename \${file}`~
16779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16780 dldir=$destdir/`dirname \$dlpath`~
16781 test -d \$dldir || mkdir -p \$dldir~
16782 $install_prog $dir/$dlname \$dldir/$dlname'
16783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16784 dlpath=$dir/\$dldll~
16786 shlibpath_overrides_runpath=yes
16790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16795 # MinGW DLLs use traditional 'lib' prefix
16796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16799 # It is most probably a Windows format PATH printed by
16800 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16801 # path with ; separators, and with drive letters. We can handle the
16802 # drive letters (cygwin fileutils understands them), so leave them,
16803 # especially as we might pass files found there to a mingw objdump,
16804 # which wouldn't understand a cygwinified path. Ahh.
16805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16811 # pw32 DLLs use 'pw' prefix rather than 'lib'
16812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16821 dynamic_linker='Win32 ld.exe'
16822 # FIXME: first we should search . and the directory the executable is in
16826 darwin* | rhapsody*)
16827 dynamic_linker="$host_os dyld"
16828 version_type=darwin
16831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16832 soname_spec='${libname}${release}${major}$shared_ext'
16833 shlibpath_overrides_runpath=yes
16834 shlibpath_var=DYLD_LIBRARY_PATH
16835 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16837 if test "$GCC" = yes; then
16838 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"`
16840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 shlibpath_var=LD_LIBRARY_PATH
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16863 soname_spec='${libname}${release}${shared_ext}$major'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 shlibpath_overrides_runpath=no
16866 hardcode_into_libs=yes
16867 dynamic_linker='GNU ld.so'
16871 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16872 version_type=freebsd-$objformat
16873 case $version_type in
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16884 shlibpath_var=LD_LIBRARY_PATH
16887 shlibpath_overrides_runpath=yes
16889 freebsd3.01* | freebsdelf3.01*)
16890 shlibpath_overrides_runpath=yes
16891 hardcode_into_libs=yes
16894 shlibpath_overrides_runpath=no
16895 hardcode_into_libs=yes
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 shlibpath_var=LD_LIBRARY_PATH
16907 hardcode_into_libs=yes
16910 hpux9* | hpux10* | hpux11*)
16911 # Give a soname corresponding to the major version so that dld.sl refuses to
16912 # link against other versions.
16916 case "$host_cpu" in
16919 hardcode_into_libs=yes
16920 dynamic_linker="$host_os dld.so"
16921 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16924 soname_spec='${libname}${release}${shared_ext}$major'
16925 if test "X$HPUX_IA64_MODE" = X32; then
16926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16934 hardcode_into_libs=yes
16935 dynamic_linker="$host_os dld.sl"
16936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16945 dynamic_linker="$host_os dld.sl"
16946 shlibpath_var=SHLIB_PATH
16947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16953 postinstall_cmds='chmod 555 $lib'
16956 irix5* | irix6* | nonstopux*)
16958 nonstopux*) version_type=nonstopux ;;
16960 if test "$lt_cv_prog_gnu_ld" = yes; then
16968 soname_spec='${libname}${release}${shared_ext}$major'
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16971 irix5* | nonstopux*)
16972 libsuff= shlibsuff=
16975 case $LD in # libtool.m4 will add one of these switches to LD
16976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16977 libsuff= shlibsuff= libmagic=32-bit;;
16978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16979 libsuff=32 shlibsuff=N32 libmagic=N32;;
16980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16982 *) libsuff= shlibsuff= libmagic=never-match;;
16986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16987 shlibpath_overrides_runpath=no
16988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16990 hardcode_into_libs=yes
16993 # No shared lib support for Linux oldld, aout, or coff.
16994 linux*oldld* | linux*aout* | linux*coff*)
16998 # This must be Linux ELF.
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath=no
17008 # This implies no fast_install, which is unacceptable.
17009 # Some rework will be needed to allow for fast_install
17010 # before this can be enabled.
17011 hardcode_into_libs=yes
17013 # Append ld.so.conf contents to the search path
17014 if test -f /etc/ld.so.conf; then
17015 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17016 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17019 # We used to test for /lib/ld.so.1 and disable shared libraries on
17020 # powerpc, because MkLinux only supported shared libraries with the
17021 # GNU dynamic linker. Since this was broken with cross compilers,
17022 # most powerpc-linux boxes support dynamic linking these days and
17023 # people can always --disable-shared, the test was removed, and we
17024 # assume the GNU/Linux dynamic linker is in use.
17025 dynamic_linker='GNU/Linux ld.so'
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 shlibpath_var=LD_LIBRARY_PATH
17035 shlibpath_overrides_runpath=no
17036 hardcode_into_libs=yes
17037 dynamic_linker='GNU ld.so'
17044 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17047 dynamic_linker='NetBSD (a.out) ld.so'
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 dynamic_linker='NetBSD ld.elf_so'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 shlibpath_overrides_runpath=yes
17055 hardcode_into_libs=yes
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061 shlibpath_var=LD_LIBRARY_PATH
17062 shlibpath_overrides_runpath=yes
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=yes
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17084 openbsd2.[89] | openbsd2.[89].*)
17085 shlibpath_overrides_runpath=no
17088 shlibpath_overrides_runpath=yes
17092 shlibpath_overrides_runpath=yes
17097 libname_spec='$name'
17100 library_names_spec='$libname${shared_ext} $libname.a'
17101 dynamic_linker='OS/2 ld.exe'
17102 shlibpath_var=LIBPATH
17105 osf3* | osf4* | osf5*)
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111 shlibpath_var=LD_LIBRARY_PATH
17112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 shlibpath_var=LD_LIBRARY_PATH
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 shlibpath_overrides_runpath=yes
17131 hardcode_into_libs=yes
17132 # ldd complains unless libraries are executable
17133 postinstall_cmds='chmod +x $lib'
17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath=yes
17142 if test "$with_gnu_ld" = yes; then
17148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 shlibpath_var=LD_LIBRARY_PATH
17153 case $host_vendor in
17155 shlibpath_overrides_runpath=no
17157 export_dynamic_flag_spec='${wl}-Blargedynsym'
17158 runpath_var=LD_RUN_PATH
17166 shlibpath_overrides_runpath=no
17167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17173 if test -d /usr/nec ;then
17175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17176 soname_spec='$libname${shared_ext}.$major'
17177 shlibpath_var=LD_LIBRARY_PATH
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17192 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17193 echo "${ECHO_T}$dynamic_linker" >&6
17194 test "$dynamic_linker" = no && can_build_shared=no
17196 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17198 hardcode_action_GCJ=
17199 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17200 test -n "$runpath_var GCJ" || \
17201 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17203 # We can hardcode non-existant directories.
17204 if test "$hardcode_direct_GCJ" != no &&
17205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17206 # have to relink, otherwise we might link with an installed library
17207 # when we should be linking with a yet-to-be-installed one
17208 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17209 test "$hardcode_minus_L_GCJ" != no; then
17210 # Linking always hardcodes the temporary library directory.
17211 hardcode_action_GCJ=relink
17213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17214 hardcode_action_GCJ=immediate
17217 # We cannot hardcode anything, or else we can only hardcode existing
17219 hardcode_action_GCJ=unsupported
17221 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17222 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17224 if test "$hardcode_action_GCJ" = relink; then
17225 # Fast installation is not supported
17226 enable_fast_install=no
17227 elif test "$shlibpath_overrides_runpath" = yes ||
17228 test "$enable_shared" = no; then
17229 # Fast installation is not necessary
17230 enable_fast_install=needless
17235 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17236 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17237 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17238 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17239 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17240 echo "$as_me:$LINENO: result: yes" >&5
17241 echo "${ECHO_T}yes" >&6
17243 # FIXME - insert some real tests, host_os isn't really good enough
17246 if test -n "$STRIP" ; then
17247 striplib="$STRIP -x"
17248 echo "$as_me:$LINENO: result: yes" >&5
17249 echo "${ECHO_T}yes" >&6
17251 echo "$as_me:$LINENO: result: no" >&5
17252 echo "${ECHO_T}no" >&6
17256 echo "$as_me:$LINENO: result: no" >&5
17257 echo "${ECHO_T}no" >&6
17262 if test "x$enable_dlopen" != xyes; then
17263 enable_dlopen=unknown
17264 enable_dlopen_self=unknown
17265 enable_dlopen_self_static=unknown
17272 lt_cv_dlopen="load_add_on"
17274 lt_cv_dlopen_self=yes
17278 lt_cv_dlopen="LoadLibrary"
17283 lt_cv_dlopen="dlopen"
17288 # if libdl is installed we need to link against it
17289 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 ac_check_lib_save_LIBS=$LIBS
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17303 /* Override any gcc2 internal prototype to avoid an error. */
17307 /* We use char because int might match the return type of a gcc2
17308 builtin and then its argument prototype would still apply. */
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17320 (eval $ac_link) 2>conftest.er1
17322 grep -v '^ *+' conftest.er1 >conftest.err
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } &&
17327 { ac_try='test -z "$ac_c_werror_flag"
17328 || test ! -s conftest.err'
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest$ac_exeext'
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 ac_cv_lib_dl_dlopen=yes
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 ac_cv_lib_dl_dlopen=no
17347 rm -f conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17349 LIBS=$ac_check_lib_save_LIBS
17351 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17353 if test $ac_cv_lib_dl_dlopen = yes; then
17354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17357 lt_cv_dlopen="dyld"
17359 lt_cv_dlopen_self=yes
17366 echo "$as_me:$LINENO: checking for shl_load" >&5
17367 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17368 if test "${ac_cv_func_shl_load+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 cat >conftest.$ac_ext <<_ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17377 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17379 #define shl_load innocuous_shl_load
17381 /* System header to define __stub macros and hopefully few prototypes,
17382 which can conflict with char shl_load (); below.
17383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17384 <limits.h> exists even on freestanding compilers. */
17387 # include <limits.h>
17389 # include <assert.h>
17394 /* Override any gcc2 internal prototype to avoid an error. */
17399 /* We use char because int might match the return type of a gcc2
17400 builtin and then its argument prototype would still apply. */
17402 /* The GNU C library defines this for functions which it implements
17403 to always fail with ENOSYS. Some functions are actually named
17404 something starting with __ and the normal name is an alias. */
17405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17408 char (*f) () = shl_load;
17417 return f != shl_load;
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>conftest.er1
17426 grep -v '^ *+' conftest.er1 >conftest.err
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -z "$ac_c_werror_flag"
17432 || test ! -s conftest.err'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; } &&
17438 { ac_try='test -s conftest$ac_exeext'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17444 ac_cv_func_shl_load=yes
17446 echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 ac_cv_func_shl_load=no
17451 rm -f conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
17454 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17455 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17456 if test $ac_cv_func_shl_load = yes; then
17457 lt_cv_dlopen="shl_load"
17459 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17460 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 ac_check_lib_save_LIBS=$LIBS
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 /* Override any gcc2 internal prototype to avoid an error. */
17477 /* We use char because int might match the return type of a gcc2
17478 builtin and then its argument prototype would still apply. */
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17490 (eval $ac_link) 2>conftest.er1
17492 grep -v '^ *+' conftest.er1 >conftest.err
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag"
17498 || test ! -s conftest.err'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_cv_lib_dld_shl_load=yes
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_cv_lib_dld_shl_load=no
17517 rm -f conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
17519 LIBS=$ac_check_lib_save_LIBS
17521 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17522 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17523 if test $ac_cv_lib_dld_shl_load = yes; then
17524 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17526 echo "$as_me:$LINENO: checking for dlopen" >&5
17527 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17528 if test "${ac_cv_func_dlopen+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17539 #define dlopen innocuous_dlopen
17541 /* System header to define __stub macros and hopefully few prototypes,
17542 which can conflict with char dlopen (); below.
17543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17544 <limits.h> exists even on freestanding compilers. */
17547 # include <limits.h>
17549 # include <assert.h>
17554 /* Override any gcc2 internal prototype to avoid an error. */
17559 /* We use char because int might match the return type of a gcc2
17560 builtin and then its argument prototype would still apply. */
17562 /* The GNU C library defines this for functions which it implements
17563 to always fail with ENOSYS. Some functions are actually named
17564 something starting with __ and the normal name is an alias. */
17565 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17568 char (*f) () = dlopen;
17577 return f != dlopen;
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17584 (eval $ac_link) 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -z "$ac_c_werror_flag"
17592 || test ! -s conftest.err'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_func_dlopen=yes
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ac_cv_func_dlopen=no
17611 rm -f conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17614 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17615 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17616 if test $ac_cv_func_dlopen = yes; then
17617 lt_cv_dlopen="dlopen"
17619 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 ac_check_lib_save_LIBS=$LIBS
17626 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17633 /* Override any gcc2 internal prototype to avoid an error. */
17637 /* We use char because int might match the return type of a gcc2
17638 builtin and then its argument prototype would still apply. */
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17650 (eval $ac_link) 2>conftest.er1
17652 grep -v '^ *+' conftest.er1 >conftest.err
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag"
17658 || test ! -s conftest.err'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest$ac_exeext'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_cv_lib_dl_dlopen=yes
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17675 ac_cv_lib_dl_dlopen=no
17677 rm -f conftest.err conftest.$ac_objext \
17678 conftest$ac_exeext conftest.$ac_ext
17679 LIBS=$ac_check_lib_save_LIBS
17681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17683 if test $ac_cv_lib_dl_dlopen = yes; then
17684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17686 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17687 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17688 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 ac_check_lib_save_LIBS=$LIBS
17692 LIBS="-lsvld $LIBS"
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17700 /* Override any gcc2 internal prototype to avoid an error. */
17704 /* We use char because int might match the return type of a gcc2
17705 builtin and then its argument prototype would still apply. */
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>conftest.er1
17719 grep -v '^ *+' conftest.er1 >conftest.err
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -z "$ac_c_werror_flag"
17725 || test ! -s conftest.err'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17737 ac_cv_lib_svld_dlopen=yes
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17742 ac_cv_lib_svld_dlopen=no
17744 rm -f conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17748 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17749 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17750 if test $ac_cv_lib_svld_dlopen = yes; then
17751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17753 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17754 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17755 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 ac_check_lib_save_LIBS=$LIBS
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 /* Override any gcc2 internal prototype to avoid an error. */
17771 /* We use char because int might match the return type of a gcc2
17772 builtin and then its argument prototype would still apply. */
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784 (eval $ac_link) 2>conftest.er1
17786 grep -v '^ *+' conftest.er1 >conftest.err
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
17791 { ac_try='test -z "$ac_c_werror_flag"
17792 || test ! -s conftest.err'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_lib_dld_dld_link=yes
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ac_cv_lib_dld_dld_link=no
17811 rm -f conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17813 LIBS=$ac_check_lib_save_LIBS
17815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17816 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17817 if test $ac_cv_lib_dld_dld_link = yes; then
17818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17839 if test "x$lt_cv_dlopen" != xno; then
17845 case $lt_cv_dlopen in
17847 save_CPPFLAGS="$CPPFLAGS"
17848 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17850 save_LDFLAGS="$LDFLAGS"
17851 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17854 LIBS="$lt_cv_dlopen_libs $LIBS"
17856 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17857 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17858 if test "${lt_cv_dlopen_self+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 if test "$cross_compiling" = yes; then :
17862 lt_cv_dlopen_self=cross
17864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17865 lt_status=$lt_dlunknown
17866 cat > conftest.$ac_ext <<EOF
17867 #line 17867 "configure"
17868 #include "confdefs.h"
17877 # define LT_DLGLOBAL RTLD_GLOBAL
17880 # define LT_DLGLOBAL DL_GLOBAL
17882 # define LT_DLGLOBAL 0
17886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17887 find out it does not work in some platform. */
17888 #ifndef LT_DLLAZY_OR_NOW
17890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17893 # define LT_DLLAZY_OR_NOW DL_LAZY
17896 # define LT_DLLAZY_OR_NOW RTLD_NOW
17899 # define LT_DLLAZY_OR_NOW DL_NOW
17901 # define LT_DLLAZY_OR_NOW 0
17909 extern "C" void exit (int);
17912 void fnord() { int i=42;}
17915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17916 int status = $lt_dlunknown;
17920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17921 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17922 /* dlclose (self); */
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929 (eval $ac_link) 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17933 (./conftest; exit; ) 2>/dev/null
17935 case x$lt_status in
17936 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17937 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17938 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17941 # compilation failed
17942 lt_cv_dlopen_self=no
17949 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17950 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17952 if test "x$lt_cv_dlopen_self" = xyes; then
17953 LDFLAGS="$LDFLAGS $link_static_flag"
17954 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17955 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17956 if test "${lt_cv_dlopen_self_static+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 if test "$cross_compiling" = yes; then :
17960 lt_cv_dlopen_self_static=cross
17962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17963 lt_status=$lt_dlunknown
17964 cat > conftest.$ac_ext <<EOF
17965 #line 17965 "configure"
17966 #include "confdefs.h"
17975 # define LT_DLGLOBAL RTLD_GLOBAL
17978 # define LT_DLGLOBAL DL_GLOBAL
17980 # define LT_DLGLOBAL 0
17984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17985 find out it does not work in some platform. */
17986 #ifndef LT_DLLAZY_OR_NOW
17988 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17991 # define LT_DLLAZY_OR_NOW DL_LAZY
17994 # define LT_DLLAZY_OR_NOW RTLD_NOW
17997 # define LT_DLLAZY_OR_NOW DL_NOW
17999 # define LT_DLLAZY_OR_NOW 0
18007 extern "C" void exit (int);
18010 void fnord() { int i=42;}
18013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18014 int status = $lt_dlunknown;
18018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18020 /* dlclose (self); */
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027 (eval $ac_link) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18031 (./conftest; exit; ) 2>/dev/null
18033 case x$lt_status in
18034 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18035 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18036 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18039 # compilation failed
18040 lt_cv_dlopen_self_static=no
18047 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18048 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18051 CPPFLAGS="$save_CPPFLAGS"
18052 LDFLAGS="$save_LDFLAGS"
18057 case $lt_cv_dlopen_self in
18058 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18059 *) enable_dlopen_self=unknown ;;
18062 case $lt_cv_dlopen_self_static in
18063 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18064 *) enable_dlopen_self_static=unknown ;;
18069 # The else clause should only fire when bootstrapping the
18070 # libtool distribution, otherwise you forgot to ship ltmain.sh
18071 # with your package, and you will get complaints that there are
18072 # no rules to generate ltmain.sh.
18073 if test -f "$ltmain"; then
18074 # See if we are running on zsh, and set the options which allow our commands through
18075 # without removal of \ escapes.
18076 if test -n "${ZSH_VERSION+set}" ; then
18077 setopt NO_GLOB_SUBST
18079 # Now quote all the things that may contain metacharacters while being
18080 # careful not to overquote the AC_SUBSTed values. We take copies of the
18081 # variables and quote the copies for generation of the libtool script.
18082 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18084 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18085 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18086 deplibs_check_method reload_flag reload_cmds need_locks \
18087 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18088 lt_cv_sys_global_symbol_to_c_name_address \
18089 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18090 old_postinstall_cmds old_postuninstall_cmds \
18094 lt_prog_compiler_wl_GCJ \
18095 lt_prog_compiler_pic_GCJ \
18096 lt_prog_compiler_static_GCJ \
18097 lt_prog_compiler_no_builtin_flag_GCJ \
18098 export_dynamic_flag_spec_GCJ \
18099 thread_safe_flag_spec_GCJ \
18100 whole_archive_flag_spec_GCJ \
18101 enable_shared_with_static_runtimes_GCJ \
18102 old_archive_cmds_GCJ \
18103 old_archive_from_new_cmds_GCJ \
18104 predep_objects_GCJ \
18105 postdep_objects_GCJ \
18108 compiler_lib_search_path_GCJ \
18110 archive_expsym_cmds_GCJ \
18111 postinstall_cmds_GCJ \
18112 postuninstall_cmds_GCJ \
18113 old_archive_from_expsyms_cmds_GCJ \
18114 allow_undefined_flag_GCJ \
18115 no_undefined_flag_GCJ \
18116 export_symbols_cmds_GCJ \
18117 hardcode_libdir_flag_spec_GCJ \
18118 hardcode_libdir_flag_spec_ld_GCJ \
18119 hardcode_libdir_separator_GCJ \
18120 hardcode_automatic_GCJ \
18122 module_expsym_cmds_GCJ \
18123 lt_cv_prog_compiler_c_o_GCJ \
18124 exclude_expsyms_GCJ \
18125 include_expsyms_GCJ; do
18128 old_archive_cmds_GCJ | \
18129 old_archive_from_new_cmds_GCJ | \
18130 archive_cmds_GCJ | \
18131 archive_expsym_cmds_GCJ | \
18132 module_cmds_GCJ | \
18133 module_expsym_cmds_GCJ | \
18134 old_archive_from_expsyms_cmds_GCJ | \
18135 export_symbols_cmds_GCJ | \
18136 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18137 postinstall_cmds | postuninstall_cmds | \
18138 old_postinstall_cmds | old_postuninstall_cmds | \
18139 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18140 # Double-quote double-evaled strings.
18141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18150 *'\$0 --fallback-echo"')
18151 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18157 cat <<__EOF__ >> "$cfgfile"
18158 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18162 # Shell to use when invoking shell scripts.
18165 # Whether or not to build shared libraries.
18166 build_libtool_libs=$enable_shared
18168 # Whether or not to build static libraries.
18169 build_old_libs=$enable_static
18171 # Whether or not to add -lc for building shared libraries.
18172 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18174 # Whether or not to disallow shared libs when runtime libs are static
18175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18177 # Whether or not to optimize for fast installation.
18178 fast_install=$enable_fast_install
18181 host_alias=$host_alias
18184 # An echo program that does not interpret backslashes.
18189 AR_FLAGS=$lt_AR_FLAGS
18194 # A language-specific compiler.
18195 CC=$lt_compiler_GCJ
18197 # Is the compiler the GNU C compiler?
18203 # The linker used to build libraries.
18206 # Whether we need hard or soft links.
18209 # A BSD-compatible nm program.
18212 # A symbol stripping program
18215 # Used to examine libraries when file_magic_cmd begins "file"
18216 MAGIC_CMD=$MAGIC_CMD
18218 # Used on cygwin: DLL creation program.
18221 # Used on cygwin: object dumper.
18224 # Used on cygwin: assembler.
18227 # The name of the directory that contains temporary libtool files.
18230 # How to create reloadable object files.
18231 reload_flag=$lt_reload_flag
18232 reload_cmds=$lt_reload_cmds
18234 # How to pass a linker flag through the compiler.
18235 wl=$lt_lt_prog_compiler_wl_GCJ
18237 # Object file suffix (normally "o").
18238 objext="$ac_objext"
18240 # Old archive suffix (normally "a").
18243 # Shared library suffix (normally ".so").
18246 # Executable file suffix (normally "").
18249 # Additional compiler flags for building library objects.
18250 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18253 # What is the maximum length of a command?
18254 max_cmd_len=$lt_cv_sys_max_cmd_len
18256 # Does compiler simultaneously support -c and -o options?
18257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18259 # Must we lock files when doing compilation ?
18260 need_locks=$lt_need_locks
18262 # Do we need the lib prefix for modules?
18263 need_lib_prefix=$need_lib_prefix
18265 # Do we need a version for libraries?
18266 need_version=$need_version
18268 # Whether dlopen is supported.
18269 dlopen_support=$enable_dlopen
18271 # Whether dlopen of programs is supported.
18272 dlopen_self=$enable_dlopen_self
18274 # Whether dlopen of statically linked programs is supported.
18275 dlopen_self_static=$enable_dlopen_self_static
18277 # Compiler flag to prevent dynamic linking.
18278 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18280 # Compiler flag to turn off builtin functions.
18281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18283 # Compiler flag to allow reflexive dlopens.
18284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18286 # Compiler flag to generate shared objects directly from archives.
18287 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18289 # Compiler flag to generate thread-safe objects.
18290 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18292 # Library versioning type.
18293 version_type=$version_type
18295 # Format of library name prefix.
18296 libname_spec=$lt_libname_spec
18298 # List of archive names. First name is the real one, the rest are links.
18299 # The last name is the one that the linker finds with -lNAME.
18300 library_names_spec=$lt_library_names_spec
18302 # The coded name of the library, if different from the real name.
18303 soname_spec=$lt_soname_spec
18305 # Commands used to build and install an old-style archive.
18307 old_archive_cmds=$lt_old_archive_cmds_GCJ
18308 old_postinstall_cmds=$lt_old_postinstall_cmds
18309 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18311 # Create an old-style archive from a shared archive.
18312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18314 # Create a temporary old-style archive to link instead of a shared archive.
18315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18317 # Commands used to build and install a shared archive.
18318 archive_cmds=$lt_archive_cmds_GCJ
18319 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18320 postinstall_cmds=$lt_postinstall_cmds
18321 postuninstall_cmds=$lt_postuninstall_cmds
18323 # Commands used to build a loadable module (assumed same as above if empty)
18324 module_cmds=$lt_module_cmds_GCJ
18325 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18327 # Commands to strip libraries.
18328 old_striplib=$lt_old_striplib
18329 striplib=$lt_striplib
18331 # Dependencies to place before the objects being linked to create a
18333 predep_objects=$lt_predep_objects_GCJ
18335 # Dependencies to place after the objects being linked to create a
18337 postdep_objects=$lt_postdep_objects_GCJ
18339 # Dependencies to place before the objects being linked to create a
18341 predeps=$lt_predeps_GCJ
18343 # Dependencies to place after the objects being linked to create a
18345 postdeps=$lt_postdeps_GCJ
18347 # The library search path used internally by the compiler when linking
18348 # a shared library.
18349 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18351 # Method to check whether dependent libraries are shared objects.
18352 deplibs_check_method=$lt_deplibs_check_method
18354 # Command to use when deplibs_check_method == file_magic.
18355 file_magic_cmd=$lt_file_magic_cmd
18357 # Flag that allows shared libraries with undefined symbols to be built.
18358 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18360 # Flag that forces no undefined symbols.
18361 no_undefined_flag=$lt_no_undefined_flag_GCJ
18363 # Commands used to finish a libtool library installation in a directory.
18364 finish_cmds=$lt_finish_cmds
18366 # Same as above, but a single script fragment to be evaled but not shown.
18367 finish_eval=$lt_finish_eval
18369 # Take the output of nm and produce a listing of raw symbols and C names.
18370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18372 # Transform the output of nm in a proper C declaration
18373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18375 # Transform the output of nm in a C name address pair
18376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18378 # This is the shared library runtime path variable.
18379 runpath_var=$runpath_var
18381 # This is the shared library path variable.
18382 shlibpath_var=$shlibpath_var
18384 # Is shlibpath searched before the hard-coded library search path?
18385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18387 # How to hardcode a shared library path into an executable.
18388 hardcode_action=$hardcode_action_GCJ
18390 # Whether we should hardcode library paths into libraries.
18391 hardcode_into_libs=$hardcode_into_libs
18393 # Flag to hardcode \$libdir into a binary during linking.
18394 # This must work even if \$libdir does not exist.
18395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18397 # If ld is used when linking, flag to hardcode \$libdir into
18398 # a binary during linking. This must work even if \$libdir does
18400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18402 # Whether we need a single -rpath flag with a separated argument.
18403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18405 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18406 # resulting binary.
18407 hardcode_direct=$hardcode_direct_GCJ
18409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18410 # resulting binary.
18411 hardcode_minus_L=$hardcode_minus_L_GCJ
18413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18414 # the resulting binary.
18415 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18417 # Set to yes if building a shared library automatically hardcodes DIR into the library
18418 # and all subsequent libraries and executables linked against it.
18419 hardcode_automatic=$hardcode_automatic_GCJ
18421 # Variables whose values should be saved in libtool wrapper scripts and
18422 # restored at relink time.
18423 variables_saved_for_relink="$variables_saved_for_relink"
18425 # Whether libtool must link a program against all its dependency libraries.
18426 link_all_deplibs=$link_all_deplibs_GCJ
18428 # Compile-time system search path for libraries
18429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18431 # Run-time system search path for libraries
18432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18434 # Fix the shell variable \$srcfile for the compiler.
18435 fix_srcfile_path="$fix_srcfile_path_GCJ"
18437 # Set to yes if exported symbols are required.
18438 always_export_symbols=$always_export_symbols_GCJ
18440 # The commands to list exported symbols.
18441 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18443 # The commands to extract the exported symbol list from a shared archive.
18444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18446 # Symbols that should not be listed in the preloaded symbols.
18447 exclude_expsyms=$lt_exclude_expsyms_GCJ
18449 # Symbols that must always be exported.
18450 include_expsyms=$lt_include_expsyms_GCJ
18452 # ### END LIBTOOL TAG CONFIG: $tagname
18458 # If there is no Makefile yet, we rely on a make rule to execute
18459 # `config.status --recheck' to rerun these tests and create the
18460 # libtool script then.
18461 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18462 if test -f "$ltmain_in"; then
18463 test -f Makefile && make "$ltmain"
18469 ac_cpp='$CPP $CPPFLAGS'
18470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485 # Source file extension for RC test sources.
18488 # Object file extension for compiled RC test sources.
18492 # Code to be used in simple compile tests
18493 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18495 # Code to be used in simple link tests
18496 lt_simple_link_test_code="$lt_simple_compile_test_code"
18498 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18500 # If no C compiler was specified, use CC.
18503 # Allow CC to be a program name with arguments.
18507 # Allow CC to be a program name with arguments.
18512 lt_cv_prog_compiler_c_o_RC=yes
18514 # The else clause should only fire when bootstrapping the
18515 # libtool distribution, otherwise you forgot to ship ltmain.sh
18516 # with your package, and you will get complaints that there are
18517 # no rules to generate ltmain.sh.
18518 if test -f "$ltmain"; then
18519 # See if we are running on zsh, and set the options which allow our commands through
18520 # without removal of \ escapes.
18521 if test -n "${ZSH_VERSION+set}" ; then
18522 setopt NO_GLOB_SUBST
18524 # Now quote all the things that may contain metacharacters while being
18525 # careful not to overquote the AC_SUBSTed values. We take copies of the
18526 # variables and quote the copies for generation of the libtool script.
18527 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18529 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18530 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18531 deplibs_check_method reload_flag reload_cmds need_locks \
18532 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18533 lt_cv_sys_global_symbol_to_c_name_address \
18534 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18535 old_postinstall_cmds old_postuninstall_cmds \
18539 lt_prog_compiler_wl_RC \
18540 lt_prog_compiler_pic_RC \
18541 lt_prog_compiler_static_RC \
18542 lt_prog_compiler_no_builtin_flag_RC \
18543 export_dynamic_flag_spec_RC \
18544 thread_safe_flag_spec_RC \
18545 whole_archive_flag_spec_RC \
18546 enable_shared_with_static_runtimes_RC \
18547 old_archive_cmds_RC \
18548 old_archive_from_new_cmds_RC \
18549 predep_objects_RC \
18550 postdep_objects_RC \
18553 compiler_lib_search_path_RC \
18555 archive_expsym_cmds_RC \
18556 postinstall_cmds_RC \
18557 postuninstall_cmds_RC \
18558 old_archive_from_expsyms_cmds_RC \
18559 allow_undefined_flag_RC \
18560 no_undefined_flag_RC \
18561 export_symbols_cmds_RC \
18562 hardcode_libdir_flag_spec_RC \
18563 hardcode_libdir_flag_spec_ld_RC \
18564 hardcode_libdir_separator_RC \
18565 hardcode_automatic_RC \
18567 module_expsym_cmds_RC \
18568 lt_cv_prog_compiler_c_o_RC \
18569 exclude_expsyms_RC \
18570 include_expsyms_RC; do
18573 old_archive_cmds_RC | \
18574 old_archive_from_new_cmds_RC | \
18575 archive_cmds_RC | \
18576 archive_expsym_cmds_RC | \
18578 module_expsym_cmds_RC | \
18579 old_archive_from_expsyms_cmds_RC | \
18580 export_symbols_cmds_RC | \
18581 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18582 postinstall_cmds | postuninstall_cmds | \
18583 old_postinstall_cmds | old_postuninstall_cmds | \
18584 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18585 # Double-quote double-evaled strings.
18586 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18595 *'\$0 --fallback-echo"')
18596 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18602 cat <<__EOF__ >> "$cfgfile"
18603 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18607 # Shell to use when invoking shell scripts.
18610 # Whether or not to build shared libraries.
18611 build_libtool_libs=$enable_shared
18613 # Whether or not to build static libraries.
18614 build_old_libs=$enable_static
18616 # Whether or not to add -lc for building shared libraries.
18617 build_libtool_need_lc=$archive_cmds_need_lc_RC
18619 # Whether or not to disallow shared libs when runtime libs are static
18620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18622 # Whether or not to optimize for fast installation.
18623 fast_install=$enable_fast_install
18626 host_alias=$host_alias
18629 # An echo program that does not interpret backslashes.
18634 AR_FLAGS=$lt_AR_FLAGS
18639 # A language-specific compiler.
18642 # Is the compiler the GNU C compiler?
18648 # The linker used to build libraries.
18651 # Whether we need hard or soft links.
18654 # A BSD-compatible nm program.
18657 # A symbol stripping program
18660 # Used to examine libraries when file_magic_cmd begins "file"
18661 MAGIC_CMD=$MAGIC_CMD
18663 # Used on cygwin: DLL creation program.
18666 # Used on cygwin: object dumper.
18669 # Used on cygwin: assembler.
18672 # The name of the directory that contains temporary libtool files.
18675 # How to create reloadable object files.
18676 reload_flag=$lt_reload_flag
18677 reload_cmds=$lt_reload_cmds
18679 # How to pass a linker flag through the compiler.
18680 wl=$lt_lt_prog_compiler_wl_RC
18682 # Object file suffix (normally "o").
18683 objext="$ac_objext"
18685 # Old archive suffix (normally "a").
18688 # Shared library suffix (normally ".so").
18691 # Executable file suffix (normally "").
18694 # Additional compiler flags for building library objects.
18695 pic_flag=$lt_lt_prog_compiler_pic_RC
18698 # What is the maximum length of a command?
18699 max_cmd_len=$lt_cv_sys_max_cmd_len
18701 # Does compiler simultaneously support -c and -o options?
18702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18704 # Must we lock files when doing compilation ?
18705 need_locks=$lt_need_locks
18707 # Do we need the lib prefix for modules?
18708 need_lib_prefix=$need_lib_prefix
18710 # Do we need a version for libraries?
18711 need_version=$need_version
18713 # Whether dlopen is supported.
18714 dlopen_support=$enable_dlopen
18716 # Whether dlopen of programs is supported.
18717 dlopen_self=$enable_dlopen_self
18719 # Whether dlopen of statically linked programs is supported.
18720 dlopen_self_static=$enable_dlopen_self_static
18722 # Compiler flag to prevent dynamic linking.
18723 link_static_flag=$lt_lt_prog_compiler_static_RC
18725 # Compiler flag to turn off builtin functions.
18726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18728 # Compiler flag to allow reflexive dlopens.
18729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18731 # Compiler flag to generate shared objects directly from archives.
18732 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18734 # Compiler flag to generate thread-safe objects.
18735 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18737 # Library versioning type.
18738 version_type=$version_type
18740 # Format of library name prefix.
18741 libname_spec=$lt_libname_spec
18743 # List of archive names. First name is the real one, the rest are links.
18744 # The last name is the one that the linker finds with -lNAME.
18745 library_names_spec=$lt_library_names_spec
18747 # The coded name of the library, if different from the real name.
18748 soname_spec=$lt_soname_spec
18750 # Commands used to build and install an old-style archive.
18752 old_archive_cmds=$lt_old_archive_cmds_RC
18753 old_postinstall_cmds=$lt_old_postinstall_cmds
18754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18756 # Create an old-style archive from a shared archive.
18757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18759 # Create a temporary old-style archive to link instead of a shared archive.
18760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18762 # Commands used to build and install a shared archive.
18763 archive_cmds=$lt_archive_cmds_RC
18764 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18765 postinstall_cmds=$lt_postinstall_cmds
18766 postuninstall_cmds=$lt_postuninstall_cmds
18768 # Commands used to build a loadable module (assumed same as above if empty)
18769 module_cmds=$lt_module_cmds_RC
18770 module_expsym_cmds=$lt_module_expsym_cmds_RC
18772 # Commands to strip libraries.
18773 old_striplib=$lt_old_striplib
18774 striplib=$lt_striplib
18776 # Dependencies to place before the objects being linked to create a
18778 predep_objects=$lt_predep_objects_RC
18780 # Dependencies to place after the objects being linked to create a
18782 postdep_objects=$lt_postdep_objects_RC
18784 # Dependencies to place before the objects being linked to create a
18786 predeps=$lt_predeps_RC
18788 # Dependencies to place after the objects being linked to create a
18790 postdeps=$lt_postdeps_RC
18792 # The library search path used internally by the compiler when linking
18793 # a shared library.
18794 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18796 # Method to check whether dependent libraries are shared objects.
18797 deplibs_check_method=$lt_deplibs_check_method
18799 # Command to use when deplibs_check_method == file_magic.
18800 file_magic_cmd=$lt_file_magic_cmd
18802 # Flag that allows shared libraries with undefined symbols to be built.
18803 allow_undefined_flag=$lt_allow_undefined_flag_RC
18805 # Flag that forces no undefined symbols.
18806 no_undefined_flag=$lt_no_undefined_flag_RC
18808 # Commands used to finish a libtool library installation in a directory.
18809 finish_cmds=$lt_finish_cmds
18811 # Same as above, but a single script fragment to be evaled but not shown.
18812 finish_eval=$lt_finish_eval
18814 # Take the output of nm and produce a listing of raw symbols and C names.
18815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18817 # Transform the output of nm in a proper C declaration
18818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18820 # Transform the output of nm in a C name address pair
18821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18823 # This is the shared library runtime path variable.
18824 runpath_var=$runpath_var
18826 # This is the shared library path variable.
18827 shlibpath_var=$shlibpath_var
18829 # Is shlibpath searched before the hard-coded library search path?
18830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18832 # How to hardcode a shared library path into an executable.
18833 hardcode_action=$hardcode_action_RC
18835 # Whether we should hardcode library paths into libraries.
18836 hardcode_into_libs=$hardcode_into_libs
18838 # Flag to hardcode \$libdir into a binary during linking.
18839 # This must work even if \$libdir does not exist.
18840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18842 # If ld is used when linking, flag to hardcode \$libdir into
18843 # a binary during linking. This must work even if \$libdir does
18845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18847 # Whether we need a single -rpath flag with a separated argument.
18848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18851 # resulting binary.
18852 hardcode_direct=$hardcode_direct_RC
18854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18855 # resulting binary.
18856 hardcode_minus_L=$hardcode_minus_L_RC
18858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18859 # the resulting binary.
18860 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18862 # Set to yes if building a shared library automatically hardcodes DIR into the library
18863 # and all subsequent libraries and executables linked against it.
18864 hardcode_automatic=$hardcode_automatic_RC
18866 # Variables whose values should be saved in libtool wrapper scripts and
18867 # restored at relink time.
18868 variables_saved_for_relink="$variables_saved_for_relink"
18870 # Whether libtool must link a program against all its dependency libraries.
18871 link_all_deplibs=$link_all_deplibs_RC
18873 # Compile-time system search path for libraries
18874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18876 # Run-time system search path for libraries
18877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18879 # Fix the shell variable \$srcfile for the compiler.
18880 fix_srcfile_path="$fix_srcfile_path_RC"
18882 # Set to yes if exported symbols are required.
18883 always_export_symbols=$always_export_symbols_RC
18885 # The commands to list exported symbols.
18886 export_symbols_cmds=$lt_export_symbols_cmds_RC
18888 # The commands to extract the exported symbol list from a shared archive.
18889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18891 # Symbols that should not be listed in the preloaded symbols.
18892 exclude_expsyms=$lt_exclude_expsyms_RC
18894 # Symbols that must always be exported.
18895 include_expsyms=$lt_include_expsyms_RC
18897 # ### END LIBTOOL TAG CONFIG: $tagname
18903 # If there is no Makefile yet, we rely on a make rule to execute
18904 # `config.status --recheck' to rerun these tests and create the
18905 # libtool script then.
18906 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18907 if test -f "$ltmain_in"; then
18908 test -f Makefile && make "$ltmain"
18914 ac_cpp='$CPP $CPPFLAGS'
18915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18924 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18925 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18926 { (exit 1); exit 1; }; }
18930 # Append the new tag name to the list of available tags.
18931 if test -n "$tagname" ; then
18932 available_tags="$available_tags $tagname"
18938 # Now substitute the updated list of available tags.
18939 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18940 mv "${ofile}T" "$ofile"
18944 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18945 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18946 { (exit 1); exit 1; }; }
18952 # This can be used to rebuild libtool when needed
18953 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18955 # Always use our own libtool.
18956 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18958 # Prevent multiple expansion
18981 # Check whether --with-mysql or --without-mysql was given.
18982 if test "${with_mysql+set}" = set; then
18983 withval="$with_mysql"
18986 # Check whether --enable-debug or --disable-debug was given.
18987 if test "${enable_debug+set}" = set; then
18988 enableval="$enable_debug"
18990 cat >>confdefs.h <<\_ACEOF
18996 case "$target_os" in
18998 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
19002 test "$prefix" = "NONE" && prefix=
19005 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
19009 test "$prefix" = "NONE" && prefix= && libdir=/usr/lib
19012 CPPFLAGS="$CPPFLAGS -DPIC -D_REENTRANT"
19016 test "$prefix" = "NONE" && prefix= && libdir=/usr/lib
19024 if test "$RENAME" = "true"; then
19033 echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
19034 echo $ECHO_N "checking whether the linker accepts -znodelete... $ECHO_C" >&6
19035 if test "${nss_mysql_cv_cc_znodelete+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 LIBS="-Wl,-znodelete $SAVELIBS"
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19056 rm -f conftest.$ac_objext conftest$ac_exeext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058 (eval $ac_link) 2>conftest.er1
19060 grep -v '^ *+' conftest.er1 >conftest.err
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -z "$ac_c_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest$ac_exeext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 nss_mysql_cv_cc_znodelete=yes
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 nss_mysql_cv_cc_znodelete=no
19085 rm -f conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19089 echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
19090 echo "${ECHO_T}$nss_mysql_cv_cc_znodelete" >&6
19091 if test $nss_mysql_cv_cc_znodelete = "yes"; then
19092 LIBS="-Wl,-znodelete $SAVELIBS"
19100 baselist="$with_mysql \
19107 echo "$as_me:$LINENO: checking for MySQL headers" >&5
19108 echo $ECHO_N "checking for MySQL headers... $ECHO_C" >&6
19109 for f in $baselist; do
19110 if test -f "$f/include/mysql/mysql.h"
19112 MYSQL_INC_DIR="$f/include/mysql"
19116 if test -f "$f/include/mysql.h"
19118 MYSQL_INC_DIR="$f/include"
19123 if test -n "$MYSQL_INC_DIR"
19125 echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
19126 echo "${ECHO_T}$MYSQL_INC_DIR" >&6
19127 CPPFLAGS="-I $MYSQL_INC_DIR $CPPFLAGS"
19129 { { echo "$as_me:$LINENO: error: Cannot locate MySQL headers. Try using --with-mysql=DIR" >&5
19130 echo "$as_me: error: Cannot locate MySQL headers. Try using --with-mysql=DIR" >&2;}
19131 { (exit 1); exit 1; }; }
19134 echo "$as_me:$LINENO: checking for MySQL libraries" >&5
19135 echo $ECHO_N "checking for MySQL libraries... $ECHO_C" >&6
19136 for f in $baselist; do
19137 if test -f "$f/lib/libmysqlclient.so"
19139 MYSQL_LIB_DIR="$f/lib"
19143 if test -f "$f/lib/mysql/libmysqlclient.so"
19145 MYSQL_LIB_DIR="$f/lib/mysql"
19150 for f in $baselist; do
19151 if test -f "$f/lib/libmysqlclient.a"
19153 MYSQL_LIB_DIR="$f/lib"
19157 if test -f "$f/lib/mysql/libmysqlclient.a"
19159 MYSQL_LIB_DIR="$f/lib/mysql"
19164 if test -n "$MYSQL_LIB_DIR"
19166 echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
19167 echo "${ECHO_T}$MYSQL_LIB_DIR" >&6
19168 LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS"
19170 { { echo "$as_me:$LINENO: error: Cannot locate MySQL libraries. Try using --with-mysql=DIR" >&5
19171 echo "$as_me: error: Cannot locate MySQL libraries. Try using --with-mysql=DIR" >&2;}
19172 { (exit 1); exit 1; }; }
19178 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19179 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19180 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 ac_check_lib_save_LIBS=$LIBS
19184 LIBS="-lsocket $LIBS"
19185 cat >conftest.$ac_ext <<_ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19192 /* Override any gcc2 internal prototype to avoid an error. */
19196 /* We use char because int might match the return type of a gcc2
19197 builtin and then its argument prototype would still apply. */
19198 char getsockname ();
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209 (eval $ac_link) 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } &&
19216 { ac_try='test -z "$ac_c_werror_flag"
19217 || test ! -s conftest.err'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; } &&
19223 { ac_try='test -s conftest$ac_exeext'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
19229 ac_cv_lib_socket_getsockname=yes
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_lib_socket_getsockname=no
19236 rm -f conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
19238 LIBS=$ac_check_lib_save_LIBS
19240 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19241 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19242 if test $ac_cv_lib_socket_getsockname = yes; then
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_LIBSOCKET 1
19247 LIBS="-lsocket $LIBS"
19252 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19253 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19254 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 ac_check_lib_save_LIBS=$LIBS
19259 cat >conftest.$ac_ext <<_ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19266 /* Override any gcc2 internal prototype to avoid an error. */
19270 /* We use char because int might match the return type of a gcc2
19271 builtin and then its argument prototype would still apply. */
19272 char gethostbyname ();
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19283 (eval $ac_link) 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag"
19291 || test ! -s conftest.err'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest$ac_exeext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 ac_cv_lib_nsl_gethostbyname=yes
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 ac_cv_lib_nsl_gethostbyname=no
19310 rm -f conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19312 LIBS=$ac_check_lib_save_LIBS
19314 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19315 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19316 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_LIBNSL 1
19326 echo "$as_me:$LINENO: checking for floor in -lm" >&5
19327 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
19328 if test "${ac_cv_lib_m_floor+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 ac_check_lib_save_LIBS=$LIBS
19333 cat >conftest.$ac_ext <<_ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19340 /* Override any gcc2 internal prototype to avoid an error. */
19344 /* We use char because int might match the return type of a gcc2
19345 builtin and then its argument prototype would still apply. */
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>conftest.er1
19359 grep -v '^ *+' conftest.er1 >conftest.err
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -z "$ac_c_werror_flag"
19365 || test ! -s conftest.err'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_cv_lib_m_floor=yes
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_lib_m_floor=no
19384 rm -f conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19388 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
19389 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
19390 if test $ac_cv_lib_m_floor = yes; then
19391 cat >>confdefs.h <<_ACEOF
19392 #define HAVE_LIBM 1
19400 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
19401 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
19402 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 ac_check_lib_save_LIBS=$LIBS
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19414 /* Override any gcc2 internal prototype to avoid an error. */
19418 /* We use char because int might match the return type of a gcc2
19419 builtin and then its argument prototype would still apply. */
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19431 (eval $ac_link) 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_c_werror_flag"
19439 || test ! -s conftest.err'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; } &&
19445 { ac_try='test -s conftest$ac_exeext'
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_cv_lib_dl_dlsym=yes
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19456 ac_cv_lib_dl_dlsym=no
19458 rm -f conftest.err conftest.$ac_objext \
19459 conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19462 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
19463 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
19464 if test $ac_cv_lib_dl_dlsym = yes; then
19465 cat >>confdefs.h <<_ACEOF
19466 #define HAVE_LIBDL 1
19474 echo "$as_me:$LINENO: checking for compress in -lz" >&5
19475 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
19476 if test "${ac_cv_lib_z_compress+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 ac_check_lib_save_LIBS=$LIBS
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19488 /* Override any gcc2 internal prototype to avoid an error. */
19492 /* We use char because int might match the return type of a gcc2
19493 builtin and then its argument prototype would still apply. */
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19505 (eval $ac_link) 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag"
19513 || test ! -s conftest.err'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest$ac_exeext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_lib_z_compress=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_lib_z_compress=no
19532 rm -f conftest.err conftest.$ac_objext \
19533 conftest$ac_exeext conftest.$ac_ext
19534 LIBS=$ac_check_lib_save_LIBS
19536 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
19537 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
19538 if test $ac_cv_lib_z_compress = yes; then
19539 cat >>confdefs.h <<_ACEOF
19540 #define HAVE_LIBZ 1
19549 echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
19550 echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
19551 if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 ac_check_lib_save_LIBS=$LIBS
19555 LIBS="-lmysqlclient $LIBS"
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19574 (eval $ac_link) 2>conftest.er1
19576 grep -v '^ *+' conftest.er1 >conftest.err
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
19581 { ac_try='test -z "$ac_c_werror_flag"
19582 || test ! -s conftest.err'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; } &&
19588 { ac_try='test -s conftest$ac_exeext'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 ac_cv_lib_mysqlclient_main=yes
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19599 ac_cv_lib_mysqlclient_main=no
19601 rm -f conftest.err conftest.$ac_objext \
19602 conftest$ac_exeext conftest.$ac_ext
19603 LIBS=$ac_check_lib_save_LIBS
19605 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
19606 echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
19607 if test $ac_cv_lib_mysqlclient_main = yes; then
19608 cat >>confdefs.h <<_ACEOF
19609 #define HAVE_LIBMYSQLCLIENT 1
19612 LIBS="-lmysqlclient $LIBS"
19615 { { echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
19616 echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
19617 { (exit 1); exit 1; }; }
19621 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19622 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19623 if test "${ac_cv_header_stdc+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 cat >conftest.$ac_ext <<_ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19632 #include <stdlib.h>
19633 #include <stdarg.h>
19634 #include <string.h>
19645 rm -f conftest.$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 (eval $ac_compile) 2>conftest.er1
19649 grep -v '^ *+' conftest.er1 >conftest.err
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_c_werror_flag"
19655 || test ! -s conftest.err'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_cv_header_stdc=yes
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_cv_header_stdc=no
19674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19676 if test $ac_cv_header_stdc = yes; then
19677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 #include <string.h>
19687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688 $EGREP "memchr" >/dev/null 2>&1; then
19691 ac_cv_header_stdc=no
19697 if test $ac_cv_header_stdc = yes; then
19698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19699 cat >conftest.$ac_ext <<_ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19705 #include <stdlib.h>
19708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19709 $EGREP "free" >/dev/null 2>&1; then
19712 ac_cv_header_stdc=no
19718 if test $ac_cv_header_stdc = yes; then
19719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19720 if test "$cross_compiling" = yes; then
19723 cat >conftest.$ac_ext <<_ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19730 #if ((' ' & 0x0FF) == 0x020)
19731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19734 # define ISLOWER(c) \
19735 (('a' <= (c) && (c) <= 'i') \
19736 || ('j' <= (c) && (c) <= 'r') \
19737 || ('s' <= (c) && (c) <= 'z'))
19738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19746 for (i = 0; i < 256; i++)
19747 if (XOR (islower (i), ISLOWER (i))
19748 || toupper (i) != TOUPPER (i))
19753 rm -f conftest$ac_exeext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19755 (eval $ac_link) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; }; then
19766 echo "$as_me: program exited with status $ac_status" >&5
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 ( exit $ac_status )
19771 ac_cv_header_stdc=no
19773 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19777 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19778 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19779 if test $ac_cv_header_stdc = yes; then
19781 cat >>confdefs.h <<\_ACEOF
19782 #define STDC_HEADERS 1
19787 if test "${ac_cv_header_mysql_h+set}" = set; then
19788 echo "$as_me:$LINENO: checking for mysql.h" >&5
19789 echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
19790 if test "${ac_cv_header_mysql_h+set}" = set; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
19794 echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
19796 # Is the header compilable?
19797 echo "$as_me:$LINENO: checking mysql.h usability" >&5
19798 echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 $ac_includes_default
19808 rm -f conftest.$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810 (eval $ac_compile) 2>conftest.er1
19812 grep -v '^ *+' conftest.er1 >conftest.err
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try='test -z "$ac_c_werror_flag"
19818 || test ! -s conftest.err'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 ac_header_compiler=yes
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_header_compiler=no
19837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839 echo "${ECHO_T}$ac_header_compiler" >&6
19841 # Is the header present?
19842 echo "$as_me:$LINENO: checking mysql.h presence" >&5
19843 echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
19844 cat >conftest.$ac_ext <<_ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19855 grep -v '^ *+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } >/dev/null; then
19860 if test -s conftest.err; then
19861 ac_cpp_err=$ac_c_preproc_warn_flag
19862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19869 if test -z "$ac_cpp_err"; then
19870 ac_header_preproc=yes
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 ac_header_preproc=no
19877 rm -f conftest.err conftest.$ac_ext
19878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879 echo "${ECHO_T}$ac_header_preproc" >&6
19881 # So? What about this header?
19882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19884 { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
19885 echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
19887 echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
19888 ac_header_preproc=yes
19891 { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
19892 echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5
19894 echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
19896 echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5
19898 echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
19900 echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
19902 echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
19905 ## ------------------------------------------ ##
19906 ## Report this to the AC_PACKAGE_NAME lists. ##
19907 ## ------------------------------------------ ##
19910 sed "s/^/$as_me: WARNING: /" >&2
19913 echo "$as_me:$LINENO: checking for mysql.h" >&5
19914 echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
19915 if test "${ac_cv_header_mysql_h+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 ac_cv_header_mysql_h=$ac_header_preproc
19920 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
19921 echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
19924 if test $ac_cv_header_mysql_h = yes; then
19927 { { echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
19928 echo "$as_me: error: Unable to find mysql.h" >&2;}
19929 { (exit 1); exit 1; }; }
19938 for ac_header in syslog.h stdint.h nss.h nss_common.h shadow.h
19940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19942 echo "$as_me:$LINENO: checking for $ac_header" >&5
19943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19950 # Is the header compilable?
19951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19953 cat >conftest.$ac_ext <<_ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959 $ac_includes_default
19960 #include <$ac_header>
19962 rm -f conftest.$ac_objext
19963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19964 (eval $ac_compile) 2>conftest.er1
19966 grep -v '^ *+' conftest.er1 >conftest.err
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_c_werror_flag"
19972 || test ! -s conftest.err'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest.$ac_objext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_header_compiler=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_header_compiler=no
19991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19993 echo "${ECHO_T}$ac_header_compiler" >&6
19995 # Is the header present?
19996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19998 cat >conftest.$ac_ext <<_ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004 #include <$ac_header>
20006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20009 grep -v '^ *+' conftest.er1 >conftest.err
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } >/dev/null; then
20014 if test -s conftest.err; then
20015 ac_cpp_err=$ac_c_preproc_warn_flag
20016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20023 if test -z "$ac_cpp_err"; then
20024 ac_header_preproc=yes
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20029 ac_header_preproc=no
20031 rm -f conftest.err conftest.$ac_ext
20032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20033 echo "${ECHO_T}$ac_header_preproc" >&6
20035 # So? What about this header?
20036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20042 ac_header_preproc=yes
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20059 ## ------------------------------------------ ##
20060 ## Report this to the AC_PACKAGE_NAME lists. ##
20061 ## ------------------------------------------ ##
20064 sed "s/^/$as_me: WARNING: /" >&2
20067 echo "$as_me:$LINENO: checking for $ac_header" >&5
20068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 eval "$as_ac_Header=\$ac_header_preproc"
20074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20079 cat >>confdefs.h <<_ACEOF
20080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20088 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20089 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20090 if test "${ac_cv_c_const+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20103 /* FIXME: Include the comments suggested by Paul. */
20104 #ifndef __cplusplus
20105 /* Ultrix mips cc rejects this. */
20106 typedef int charset[2];
20108 /* SunOS 4.1.1 cc rejects this. */
20109 char const *const *ccp;
20111 /* NEC SVR4.0.2 mips cc rejects this. */
20112 struct point {int x, y;};
20113 static struct point const zero = {0,0};
20114 /* AIX XL C 1.02.0.0 rejects this.
20115 It does not let you subtract one const X* pointer from another in
20116 an arm of an if-expression whose if-part is not a constant
20118 const char *g = "string";
20119 ccp = &g + (g ? g-g : 0);
20120 /* HPUX 7.0 cc rejects these. */
20123 ccp = (char const *const *) p;
20124 { /* SCO 3.2v4 cc rejects this. */
20126 char const *s = 0 ? (char *) 0 : (char const *) 0;
20130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20131 int x[] = {25, 17};
20132 const int *foo = &x[0];
20135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20136 typedef const int *iptr;
20140 { /* AIX XL C 1.02.0.0 rejects this saying
20141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20142 struct s { int j; const int *ap[3]; };
20143 struct s *b; b->j = 5;
20145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20146 const int foo = 10;
20154 rm -f conftest.$ac_objext
20155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20156 (eval $ac_compile) 2>conftest.er1
20158 grep -v '^ *+' conftest.er1 >conftest.err
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -z "$ac_c_werror_flag"
20164 || test ! -s conftest.err'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; } &&
20170 { ac_try='test -s conftest.$ac_objext'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20185 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20186 echo "${ECHO_T}$ac_cv_c_const" >&6
20187 if test $ac_cv_c_const = no; then
20189 cat >>confdefs.h <<\_ACEOF
20195 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20196 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20197 if test "${ac_cv_type_uid_t+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 cat >conftest.$ac_ext <<_ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20206 #include <sys/types.h>
20209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20210 $EGREP "uid_t" >/dev/null 2>&1; then
20211 ac_cv_type_uid_t=yes
20213 ac_cv_type_uid_t=no
20218 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20219 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20220 if test $ac_cv_type_uid_t = no; then
20222 cat >>confdefs.h <<\_ACEOF
20227 cat >>confdefs.h <<\_ACEOF
20233 echo "$as_me:$LINENO: checking for size_t" >&5
20234 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20235 if test "${ac_cv_type_size_t+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 $ac_includes_default
20250 if (sizeof (size_t))
20256 rm -f conftest.$ac_objext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258 (eval $ac_compile) 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
20265 { ac_try='test -z "$ac_c_werror_flag"
20266 || test ! -s conftest.err'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20278 ac_cv_type_size_t=yes
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 ac_cv_type_size_t=no
20285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20287 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20288 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20289 if test $ac_cv_type_size_t = yes; then
20293 cat >>confdefs.h <<_ACEOF
20294 #define size_t unsigned
20299 echo "$as_me:$LINENO: checking for socklen_t" >&5
20300 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20301 if test "${ac_cv_type_socklen_t+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20311 #include <unistd.h>
20312 #include <sys/socket.h>
20318 if ((socklen_t *) 0)
20320 if (sizeof (socklen_t))
20326 rm -f conftest.$ac_objext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328 (eval $ac_compile) 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest.$ac_objext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_type_socklen_t=yes
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_cv_type_socklen_t=no
20355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20358 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
20359 if test $ac_cv_type_socklen_t = yes; then
20361 cat >>confdefs.h <<_ACEOF
20362 #define HAVE_SOCKLEN_T 1
20369 EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
20371 cat >>confdefs.h <<_ACEOF
20372 #define MAINCFG "$EXPANDED_SYSCONFDIR/libnss-mysql.cfg"
20376 cat >>confdefs.h <<_ACEOF
20377 #define ROOTCFG "$EXPANDED_SYSCONFDIR/libnss-mysql-root.cfg"
20381 ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
20383 cat >confcache <<\_ACEOF
20384 # This file is a shell script that caches the results of configure
20385 # tests run on this system so they can be shared between configure
20386 # scripts and configure runs, see configure's option --config-cache.
20387 # It is not useful on other systems. If it contains results you don't
20388 # want to keep, you may remove or edit it.
20390 # config.status only pays attention to the cache file if you give it
20391 # the --recheck option to rerun configure.
20393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20395 # following values.
20399 # The following way of writing the cache mishandles newlines in values,
20400 # but we know of no workaround that is simple, portable, and efficient.
20401 # So, don't put newlines in cache variables' values.
20402 # Ultrix sh set writes to stderr and can't be redirected directly,
20403 # and sets the high bit in the cache file unless we assign to the vars.
20406 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20408 # `set' does not quote correctly, so add quotes (double-quote
20409 # substitution turns \\\\ into \\, and sed turns \\ into \).
20412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20415 # `set' quotes correctly as required by POSIX, so do not add quotes.
20417 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20426 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20428 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20429 if test -w $cache_file; then
20430 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20431 cat confcache >$cache_file
20433 echo "not updating unwritable cache $cache_file"
20438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20439 # Let make expand exec_prefix.
20440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20444 # trailing colons and then remove the whole line if VPATH becomes empty
20445 # (actually we leave an empty line to preserve line numbers).
20446 if test "x$srcdir" = x.; then
20447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20448 s/:*\$(srcdir):*/:/;
20449 s/:*\${srcdir}:*/:/;
20451 s/^\([^=]*=[ ]*\):*/\1/;
20457 DEFS=-DHAVE_CONFIG_H
20461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20462 # 1. Remove the extension, and $U if already installed.
20463 ac_i=`echo "$ac_i" |
20464 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20466 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20467 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20469 LIBOBJS=$ac_libobjs
20471 LTLIBOBJS=$ac_ltlibobjs
20474 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20475 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20476 Usually this means the macro was only invoked conditionally." >&5
20477 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20478 Usually this means the macro was only invoked conditionally." >&2;}
20479 { (exit 1); exit 1; }; }
20481 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20482 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20483 Usually this means the macro was only invoked conditionally." >&5
20484 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20485 Usually this means the macro was only invoked conditionally." >&2;}
20486 { (exit 1); exit 1; }; }
20488 if test -z "${RENAME_TRUE}" && test -z "${RENAME_FALSE}"; then
20489 { { echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
20490 Usually this means the macro was only invoked conditionally." >&5
20491 echo "$as_me: error: conditional \"RENAME\" was never defined.
20492 Usually this means the macro was only invoked conditionally." >&2;}
20493 { (exit 1); exit 1; }; }
20496 : ${CONFIG_STATUS=./config.status}
20497 ac_clean_files_save=$ac_clean_files
20498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20501 cat >$CONFIG_STATUS <<_ACEOF
20503 # Generated by $as_me.
20504 # Run this file to recreate the current configuration.
20505 # Compiler output produced by configure, useful for debugging
20506 # configure, is in config.log if it exists.
20509 ac_cs_recheck=false
20511 SHELL=\${CONFIG_SHELL-$SHELL}
20514 cat >>$CONFIG_STATUS <<\_ACEOF
20515 ## --------------------- ##
20516 ## M4sh Initialization. ##
20517 ## --------------------- ##
20519 # Be Bourne compatible
20520 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20523 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20524 # is contrary to our usage. Disable this feature.
20525 alias -g '${1+"$@"}'='"$@"'
20526 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20529 DUALCASE=1; export DUALCASE # for MKS sh
20531 # Support unset when possible.
20532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20539 # Work around bugs in pre-3.0 UWIN ksh.
20540 $as_unset ENV MAIL MAILPATH
20547 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20548 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20549 LC_TELEPHONE LC_TIME
20551 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20552 eval $as_var=C; export $as_var
20558 # Required to use basename.
20559 if expr a : '\(a\)' >/dev/null 2>&1; then
20565 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20566 as_basename=basename
20572 # Name of the executable.
20573 as_me=`$as_basename "$0" ||
20574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20575 X"$0" : 'X\(//\)$' \| \
20576 X"$0" : 'X\(/\)$' \| \
20577 . : '\(.\)' 2>/dev/null ||
20579 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20580 /^X\/\(\/\/\)$/{ s//\1/; q; }
20581 /^X\/\(\/\).*/{ s//\1/; q; }
20585 # PATH needs CR, and LINENO needs CR and PATH.
20586 # Avoid depending upon Character Ranges.
20587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20590 as_cr_digits='0123456789'
20591 as_cr_alnum=$as_cr_Letters$as_cr_digits
20593 # The user is always right.
20594 if test "${PATH_SEPARATOR+set}" != set; then
20595 echo "#! /bin/sh" >conf$$.sh
20596 echo "exit 0" >>conf$$.sh
20598 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20607 as_lineno_1=$LINENO
20608 as_lineno_2=$LINENO
20609 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20610 test "x$as_lineno_1" != "x$as_lineno_2" &&
20611 test "x$as_lineno_3" = "x$as_lineno_2" || {
20612 # Find who we are. Look in the path if we contain no path at all
20615 *[\\/]* ) as_myself=$0 ;;
20616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20617 for as_dir in $PATH
20620 test -z "$as_dir" && as_dir=.
20621 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20626 # We did not find ourselves, most probably we were run as `sh COMMAND'
20627 # in which case we are not to be found in the path.
20628 if test "x$as_myself" = x; then
20631 if test ! -f "$as_myself"; then
20632 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20633 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20634 { (exit 1); exit 1; }; }
20636 case $CONFIG_SHELL in
20638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20639 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20642 test -z "$as_dir" && as_dir=.
20643 for as_base in sh bash ksh sh5; do
20646 if ("$as_dir/$as_base" -c '
20647 as_lineno_1=$LINENO
20648 as_lineno_2=$LINENO
20649 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20650 test "x$as_lineno_1" != "x$as_lineno_2" &&
20651 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20652 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20653 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20654 CONFIG_SHELL=$as_dir/$as_base
20655 export CONFIG_SHELL
20656 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20664 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20665 # uniformly replaced by the line number. The first 'sed' inserts a
20666 # line-number line before each line; the second 'sed' does the real
20667 # work. The second script uses 'N' to pair each line-number line
20668 # with the numbered line, and appends trailing '-' during
20669 # substitution so that $LINENO is not a special case at line end.
20670 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20671 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20672 sed '=' <$as_myself |
20677 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20680 s,^['$as_cr_digits']*\n,,
20681 ' >$as_me.lineno &&
20682 chmod +x $as_me.lineno ||
20683 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20684 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20685 { (exit 1); exit 1; }; }
20687 # Don't try to exec as it changes $[0], causing all sort of problems
20688 # (the dirname of $[0] is not the place where we might find the
20689 # original and so on. Autoconf is especially sensible to this).
20691 # Exit status is that of the last command.
20696 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20697 *c*,-n*) ECHO_N= ECHO_C='
20699 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20700 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20703 if expr a : '\(a\)' >/dev/null 2>&1; then
20709 rm -f conf$$ conf$$.exe conf$$.file
20711 if ln -s conf$$.file conf$$ 2>/dev/null; then
20712 # We could just check for DJGPP; but this test a) works b) is more generic
20713 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20714 if test -f conf$$.exe; then
20715 # Don't use ln at all; we don't have any links
20720 elif ln conf$$.file conf$$ 2>/dev/null; then
20725 rm -f conf$$ conf$$.exe conf$$.file
20727 if mkdir -p . 2>/dev/null; then
20730 test -d ./-p && rmdir ./-p
20734 as_executable_p="test -f"
20736 # Sed expression to map a string onto a valid CPP name.
20737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20739 # Sed expression to map a string onto a valid variable name.
20740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20744 # We need space, tab and new line, in precisely that order.
20754 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20755 # report actual input values of CONFIG_FILES etc. instead of their
20756 # values after options handling. Logging --version etc. is OK.
20760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20761 ## Running $as_me. ##
20766 This file was extended by $as_me, which was
20767 generated by GNU Autoconf 2.59. Invocation command line was
20769 CONFIG_FILES = $CONFIG_FILES
20770 CONFIG_HEADERS = $CONFIG_HEADERS
20771 CONFIG_LINKS = $CONFIG_LINKS
20772 CONFIG_COMMANDS = $CONFIG_COMMANDS
20776 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20780 # Files that config.status was made for.
20781 if test -n "$ac_config_files"; then
20782 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20785 if test -n "$ac_config_headers"; then
20786 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20789 if test -n "$ac_config_links"; then
20790 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20793 if test -n "$ac_config_commands"; then
20794 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20797 cat >>$CONFIG_STATUS <<\_ACEOF
20800 \`$as_me' instantiates files from templates according to the
20801 current configuration.
20803 Usage: $0 [OPTIONS] [FILE]...
20805 -h, --help print this help, then exit
20806 -V, --version print version number, then exit
20807 -q, --quiet do not print progress messages
20808 -d, --debug don't remove temporary files
20809 --recheck update $as_me by reconfiguring in the same conditions
20810 --file=FILE[:TEMPLATE]
20811 instantiate the configuration file FILE
20812 --header=FILE[:TEMPLATE]
20813 instantiate the configuration header FILE
20815 Configuration files:
20818 Configuration headers:
20821 Configuration commands:
20824 Report bugs to <bug-autoconf@gnu.org>."
20827 cat >>$CONFIG_STATUS <<_ACEOF
20830 configured by $0, generated by GNU Autoconf 2.59,
20831 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20833 Copyright (C) 2003 Free Software Foundation, Inc.
20834 This config.status script is free software; the Free Software Foundation
20835 gives unlimited permission to copy, distribute and modify it."
20840 cat >>$CONFIG_STATUS <<\_ACEOF
20841 # If no file are specified by the user, then we need to provide default
20842 # value. By we need to know if files were specified by the user.
20848 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20849 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20857 *) # This is not an option, so the user has probably given explicit
20860 ac_need_defaults=false;;
20864 # Handling of the options.
20866 cat >>$CONFIG_STATUS <<\_ACEOF
20867 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20869 --version | --vers* | -V )
20870 echo "$ac_cs_version"; exit 0 ;;
20872 # Conflict between --help and --header
20873 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20874 Try \`$0 --help' for more information." >&5
20875 echo "$as_me: error: ambiguous option: $1
20876 Try \`$0 --help' for more information." >&2;}
20877 { (exit 1); exit 1; }; };;
20878 --help | --hel | -h )
20879 echo "$ac_cs_usage"; exit 0 ;;
20880 --debug | --d* | -d )
20882 --file | --fil | --fi | --f )
20884 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20885 ac_need_defaults=false;;
20886 --header | --heade | --head | --hea )
20888 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20889 ac_need_defaults=false;;
20890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20891 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20894 # This is an error.
20895 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20896 Try \`$0 --help' for more information." >&5
20897 echo "$as_me: error: unrecognized option: $1
20898 Try \`$0 --help' for more information." >&2;}
20899 { (exit 1); exit 1; }; } ;;
20901 *) ac_config_targets="$ac_config_targets $1" ;;
20907 ac_configure_extra_args=
20909 if $ac_cs_silent; then
20911 ac_configure_extra_args="$ac_configure_extra_args --silent"
20915 cat >>$CONFIG_STATUS <<_ACEOF
20916 if \$ac_cs_recheck; then
20917 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20918 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20923 cat >>$CONFIG_STATUS <<_ACEOF
20925 # INIT-COMMANDS section.
20928 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20934 cat >>$CONFIG_STATUS <<\_ACEOF
20935 for ac_config_target in $ac_config_targets
20937 case "$ac_config_target" in
20938 # Handling of arguments.
20939 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20940 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20941 "src/version.c" ) CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
20942 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20943 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20944 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20945 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20946 { (exit 1); exit 1; }; };;
20950 # If the user did not use the arguments to specify the items to instantiate,
20951 # then the envvar interface is used. Set only those that are not.
20952 # We use the long form for the default assignment because of an extremely
20953 # bizarre bug on SunOS 4.1.3.
20954 if $ac_need_defaults; then
20955 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20956 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20957 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20960 # Have a temporary directory for convenience. Make it in the build tree
20961 # simply because there is no reason to put it here, and in addition,
20962 # creating and moving files from /tmp can sometimes cause problems.
20963 # Create a temporary directory, and hook for its removal unless debugging.
20966 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20967 trap '{ (exit 1); exit 1; }' 1 2 13 15
20970 # Create a (secure) tmp directory for tmp files.
20973 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20974 test -n "$tmp" && test -d "$tmp"
20977 tmp=./confstat$$-$RANDOM
20978 (umask 077 && mkdir $tmp)
20981 echo "$me: cannot create a temporary directory in ." >&2
20982 { (exit 1); exit 1; }
20987 cat >>$CONFIG_STATUS <<_ACEOF
20990 # CONFIG_FILES section.
20993 # No need to generate the scripts if there are no CONFIG_FILES.
20994 # This happens for instance when ./config.status config.h
20995 if test -n "\$CONFIG_FILES"; then
20996 # Protect against being on the right side of a sed subst in config.status.
20997 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20998 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20999 s,@SHELL@,$SHELL,;t t
21000 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21001 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21002 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21003 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21004 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21005 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21006 s,@exec_prefix@,$exec_prefix,;t t
21007 s,@prefix@,$prefix,;t t
21008 s,@program_transform_name@,$program_transform_name,;t t
21009 s,@bindir@,$bindir,;t t
21010 s,@sbindir@,$sbindir,;t t
21011 s,@libexecdir@,$libexecdir,;t t
21012 s,@datadir@,$datadir,;t t
21013 s,@sysconfdir@,$sysconfdir,;t t
21014 s,@sharedstatedir@,$sharedstatedir,;t t
21015 s,@localstatedir@,$localstatedir,;t t
21016 s,@libdir@,$libdir,;t t
21017 s,@includedir@,$includedir,;t t
21018 s,@oldincludedir@,$oldincludedir,;t t
21019 s,@infodir@,$infodir,;t t
21020 s,@mandir@,$mandir,;t t
21021 s,@build_alias@,$build_alias,;t t
21022 s,@host_alias@,$host_alias,;t t
21023 s,@target_alias@,$target_alias,;t t
21024 s,@DEFS@,$DEFS,;t t
21025 s,@ECHO_C@,$ECHO_C,;t t
21026 s,@ECHO_N@,$ECHO_N,;t t
21027 s,@ECHO_T@,$ECHO_T,;t t
21028 s,@LIBS@,$LIBS,;t t
21029 s,@build@,$build,;t t
21030 s,@build_cpu@,$build_cpu,;t t
21031 s,@build_vendor@,$build_vendor,;t t
21032 s,@build_os@,$build_os,;t t
21033 s,@host@,$host,;t t
21034 s,@host_cpu@,$host_cpu,;t t
21035 s,@host_vendor@,$host_vendor,;t t
21036 s,@host_os@,$host_os,;t t
21037 s,@target@,$target,;t t
21038 s,@target_cpu@,$target_cpu,;t t
21039 s,@target_vendor@,$target_vendor,;t t
21040 s,@target_os@,$target_os,;t t
21041 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21042 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21043 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21044 s,@PACKAGE@,$PACKAGE,;t t
21045 s,@VERSION@,$VERSION,;t t
21046 s,@ACLOCAL@,$ACLOCAL,;t t
21047 s,@AUTOCONF@,$AUTOCONF,;t t
21048 s,@AUTOMAKE@,$AUTOMAKE,;t t
21049 s,@AUTOHEADER@,$AUTOHEADER,;t t
21050 s,@MAKEINFO@,$MAKEINFO,;t t
21051 s,@AMTAR@,$AMTAR,;t t
21052 s,@install_sh@,$install_sh,;t t
21053 s,@STRIP@,$STRIP,;t t
21054 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21055 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21057 s,@SET_MAKE@,$SET_MAKE,;t t
21058 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21059 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21060 s,@MAINT@,$MAINT,;t t
21062 s,@CFLAGS@,$CFLAGS,;t t
21063 s,@LDFLAGS@,$LDFLAGS,;t t
21064 s,@CPPFLAGS@,$CPPFLAGS,;t t
21065 s,@ac_ct_CC@,$ac_ct_CC,;t t
21066 s,@EXEEXT@,$EXEEXT,;t t
21067 s,@OBJEXT@,$OBJEXT,;t t
21068 s,@DEPDIR@,$DEPDIR,;t t
21069 s,@am__include@,$am__include,;t t
21070 s,@am__quote@,$am__quote,;t t
21071 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21072 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21073 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21074 s,@CCDEPMODE@,$CCDEPMODE,;t t
21075 s,@EGREP@,$EGREP,;t t
21076 s,@LN_S@,$LN_S,;t t
21077 s,@ECHO@,$ECHO,;t t
21079 s,@ac_ct_AR@,$ac_ct_AR,;t t
21080 s,@RANLIB@,$RANLIB,;t t
21081 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21084 s,@CXXFLAGS@,$CXXFLAGS,;t t
21085 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21086 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21087 s,@CXXCPP@,$CXXCPP,;t t
21089 s,@FFLAGS@,$FFLAGS,;t t
21090 s,@ac_ct_F77@,$ac_ct_F77,;t t
21091 s,@LIBTOOL@,$LIBTOOL,;t t
21092 s,@RENAME_TRUE@,$RENAME_TRUE,;t t
21093 s,@RENAME_FALSE@,$RENAME_FALSE,;t t
21094 s,@LIBVER@,$LIBVER,;t t
21096 s,@LIBOBJS@,$LIBOBJS,;t t
21097 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21102 cat >>$CONFIG_STATUS <<\_ACEOF
21103 # Split the substitutions into bite-sized pieces for seds with
21104 # small command number limits, like on Digital OSF/1 and HP-UX.
21105 ac_max_sed_lines=48
21106 ac_sed_frag=1 # Number of current file.
21107 ac_beg=1 # First line for current file.
21108 ac_end=$ac_max_sed_lines # Line after last line for current file.
21111 while $ac_more_lines; do
21112 if test $ac_beg -gt 1; then
21113 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21115 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21117 if test ! -s $tmp/subs.frag; then
21118 ac_more_lines=false
21120 # The purpose of the label and of the branching condition is to
21121 # speed up the sed processing (if there are no `@' at all, there
21122 # is no need to browse any of the substitutions).
21123 # These are the two extra sed commands mentioned above.
21125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21126 if test -z "$ac_sed_cmds"; then
21127 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21129 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21131 ac_sed_frag=`expr $ac_sed_frag + 1`
21133 ac_end=`expr $ac_end + $ac_max_sed_lines`
21136 if test -z "$ac_sed_cmds"; then
21139 fi # test -n "$CONFIG_FILES"
21142 cat >>$CONFIG_STATUS <<\_ACEOF
21143 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21144 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21146 - | *:- | *:-:* ) # input from stdin
21148 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21150 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21151 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21152 * ) ac_file_in=$ac_file.in ;;
21155 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21156 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21158 X"$ac_file" : 'X\(//\)[^/]' \| \
21159 X"$ac_file" : 'X\(//\)$' \| \
21160 X"$ac_file" : 'X\(/\)' \| \
21161 . : '\(.\)' 2>/dev/null ||
21163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21165 /^X\(\/\/\)$/{ s//\1/; q; }
21166 /^X\(\/\).*/{ s//\1/; q; }
21168 { if $as_mkdir_p; then
21173 while test ! -d "$as_dir"; do
21174 as_dirs="$as_dir $as_dirs"
21175 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21177 X"$as_dir" : 'X\(//\)[^/]' \| \
21178 X"$as_dir" : 'X\(//\)$' \| \
21179 X"$as_dir" : 'X\(/\)' \| \
21180 . : '\(.\)' 2>/dev/null ||
21182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21184 /^X\(\/\/\)$/{ s//\1/; q; }
21185 /^X\(\/\).*/{ s//\1/; q; }
21188 test ! -n "$as_dirs" || mkdir $as_dirs
21189 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21190 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21191 { (exit 1); exit 1; }; }; }
21195 if test "$ac_dir" != .; then
21196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21197 # A "../" for each directory in $ac_dir_suffix.
21198 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21200 ac_dir_suffix= ac_top_builddir=
21204 .) # No --srcdir option. We are building in place.
21206 if test -z "$ac_top_builddir"; then
21209 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21211 [\\/]* | ?:[\\/]* ) # Absolute path.
21212 ac_srcdir=$srcdir$ac_dir_suffix;
21213 ac_top_srcdir=$srcdir ;;
21214 *) # Relative path.
21215 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21216 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21219 # Do not use `cd foo && pwd` to compute absolute paths, because
21220 # the directories may not exist.
21222 .) ac_abs_builddir="$ac_dir";;
21225 .) ac_abs_builddir=`pwd`;;
21226 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21227 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21230 case $ac_abs_builddir in
21231 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21233 case ${ac_top_builddir}. in
21234 .) ac_abs_top_builddir=$ac_abs_builddir;;
21235 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21236 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21239 case $ac_abs_builddir in
21240 .) ac_abs_srcdir=$ac_srcdir;;
21243 .) ac_abs_srcdir=$ac_abs_builddir;;
21244 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21245 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21248 case $ac_abs_builddir in
21249 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21251 case $ac_top_srcdir in
21252 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21253 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21254 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21261 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21264 if test x"$ac_file" != x-; then
21265 { echo "$as_me:$LINENO: creating $ac_file" >&5
21266 echo "$as_me: creating $ac_file" >&6;}
21269 # Let's still pretend it is `configure' which instantiates (i.e., don't
21270 # use $as_me), people would be surprised to read:
21271 # /* config.h. Generated by config.status. */
21272 if test x"$ac_file" = x-; then
21275 configure_input="$ac_file. "
21277 configure_input=$configure_input"Generated from `echo $ac_file_in |
21278 sed 's,.*/,,'` by configure."
21280 # First look for the input files in the build tree, otherwise in the
21282 ac_file_inputs=`IFS=:
21283 for f in $ac_file_in; do
21285 -) echo $tmp/stdin ;;
21287 # Absolute (can't be DOS-style, as IFS=:)
21288 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21289 echo "$as_me: error: cannot find input file: $f" >&2;}
21290 { (exit 1); exit 1; }; }
21293 if test -f "$f"; then
21296 elif test -f "$srcdir/$f"; then
21301 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21302 echo "$as_me: error: cannot find input file: $f" >&2;}
21303 { (exit 1); exit 1; }; }
21306 done` || { (exit 1); exit 1; }
21308 cat >>$CONFIG_STATUS <<_ACEOF
21312 cat >>$CONFIG_STATUS <<\_ACEOF
21314 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21315 s,@configure_input@,$configure_input,;t t
21316 s,@srcdir@,$ac_srcdir,;t t
21317 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21318 s,@top_srcdir@,$ac_top_srcdir,;t t
21319 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21320 s,@builddir@,$ac_builddir,;t t
21321 s,@abs_builddir@,$ac_abs_builddir,;t t
21322 s,@top_builddir@,$ac_top_builddir,;t t
21323 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21324 s,@INSTALL@,$ac_INSTALL,;t t
21325 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21327 if test x"$ac_file" != x-; then
21328 mv $tmp/out $ac_file
21336 cat >>$CONFIG_STATUS <<\_ACEOF
21339 # CONFIG_HEADER section.
21342 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21343 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21345 # ac_d sets the value in "#define NAME VALUE" lines.
21346 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21347 ac_dB='[ ].*$,\1#\2'
21350 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21351 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21352 ac_uB='$,\1#\2define\3'
21356 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21357 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21359 - | *:- | *:-:* ) # input from stdin
21361 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21362 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21363 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21364 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21365 * ) ac_file_in=$ac_file.in ;;
21368 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21369 echo "$as_me: creating $ac_file" >&6;}
21371 # First look for the input files in the build tree, otherwise in the
21373 ac_file_inputs=`IFS=:
21374 for f in $ac_file_in; do
21376 -) echo $tmp/stdin ;;
21378 # Absolute (can't be DOS-style, as IFS=:)
21379 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21380 echo "$as_me: error: cannot find input file: $f" >&2;}
21381 { (exit 1); exit 1; }; }
21382 # Do quote $f, to prevent DOS paths from being IFS'd.
21385 if test -f "$f"; then
21388 elif test -f "$srcdir/$f"; then
21393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21394 echo "$as_me: error: cannot find input file: $f" >&2;}
21395 { (exit 1); exit 1; }; }
21398 done` || { (exit 1); exit 1; }
21399 # Remove the trailing spaces.
21400 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21404 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21405 # `conftest.undefs', that substitutes the proper values into
21406 # config.h.in to produce config.h. The first handles `#define'
21407 # templates, and the second `#undef' templates.
21408 # And first: Protect against being on the right side of a sed subst in
21409 # config.status. Protect against being in an unquoted here document
21410 # in config.status.
21411 rm -f conftest.defines conftest.undefs
21412 # Using a here document instead of a string reduces the quoting nightmare.
21413 # Putting comments in sed scripts is not portable.
21415 # `end' is used to avoid that the second main sed command (meant for
21416 # 0-ary CPP macros) applies to n-ary macro definitions.
21417 # See the Autoconf documentation for `clear'.
21418 cat >confdef2sed.sed <<\_ACEOF
21423 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21425 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21428 # If some macros were called several times there might be several times
21429 # the same #defines, which is useless. Nevertheless, we may not want to
21430 # sort them, since we want the *last* AC-DEFINE to be honored.
21431 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21432 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21433 rm -f confdef2sed.sed
21435 # This sed command replaces #undef with comments. This is necessary, for
21436 # example, in the case of _POSIX_SOURCE, which is predefined and required
21437 # on some systems where configure will not decide to define it.
21438 cat >>conftest.undefs <<\_ACEOF
21439 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21442 # Break up conftest.defines because some shells have a limit on the size
21443 # of here documents, and old seds have small limits too (100 cmds).
21444 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21445 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21446 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21447 echo ' :' >>$CONFIG_STATUS
21448 rm -f conftest.tail
21449 while grep . conftest.defines >/dev/null
21451 # Write a limited-size here document to $tmp/defines.sed.
21452 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21453 # Speed up: don't consider the non `#define' lines.
21454 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21455 # Work around the forget-to-reset-the-flag bug.
21456 echo 't clr' >>$CONFIG_STATUS
21457 echo ': clr' >>$CONFIG_STATUS
21458 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21460 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21462 mv $tmp/out $tmp/in
21464 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21465 rm -f conftest.defines
21466 mv conftest.tail conftest.defines
21468 rm -f conftest.defines
21469 echo ' fi # grep' >>$CONFIG_STATUS
21470 echo >>$CONFIG_STATUS
21472 # Break up conftest.undefs because some shells have a limit on the size
21473 # of here documents, and old seds have small limits too (100 cmds).
21474 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21475 rm -f conftest.tail
21476 while grep . conftest.undefs >/dev/null
21478 # Write a limited-size here document to $tmp/undefs.sed.
21479 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21480 # Speed up: don't consider the non `#undef'
21481 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21482 # Work around the forget-to-reset-the-flag bug.
21483 echo 't clr' >>$CONFIG_STATUS
21484 echo ': clr' >>$CONFIG_STATUS
21485 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21487 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21489 mv $tmp/out $tmp/in
21491 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21492 rm -f conftest.undefs
21493 mv conftest.tail conftest.undefs
21495 rm -f conftest.undefs
21497 cat >>$CONFIG_STATUS <<\_ACEOF
21498 # Let's still pretend it is `configure' which instantiates (i.e., don't
21499 # use $as_me), people would be surprised to read:
21500 # /* config.h. Generated by config.status. */
21501 if test x"$ac_file" = x-; then
21502 echo "/* Generated by configure. */" >$tmp/config.h
21504 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21506 cat $tmp/in >>$tmp/config.h
21508 if test x"$ac_file" != x-; then
21509 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21510 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21511 echo "$as_me: $ac_file is unchanged" >&6;}
21513 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21514 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21515 X"$ac_file" : 'X\(//\)[^/]' \| \
21516 X"$ac_file" : 'X\(//\)$' \| \
21517 X"$ac_file" : 'X\(/\)' \| \
21518 . : '\(.\)' 2>/dev/null ||
21520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21522 /^X\(\/\/\)$/{ s//\1/; q; }
21523 /^X\(\/\).*/{ s//\1/; q; }
21525 { if $as_mkdir_p; then
21530 while test ! -d "$as_dir"; do
21531 as_dirs="$as_dir $as_dirs"
21532 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21534 X"$as_dir" : 'X\(//\)[^/]' \| \
21535 X"$as_dir" : 'X\(//\)$' \| \
21536 X"$as_dir" : 'X\(/\)' \| \
21537 . : '\(.\)' 2>/dev/null ||
21539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21541 /^X\(\/\/\)$/{ s//\1/; q; }
21542 /^X\(\/\).*/{ s//\1/; q; }
21545 test ! -n "$as_dirs" || mkdir $as_dirs
21546 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21547 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21548 { (exit 1); exit 1; }; }; }
21551 mv $tmp/config.h $ac_file
21555 rm -f $tmp/config.h
21557 # Run the commands associated with the file.
21559 config.h ) # update the timestamp
21560 echo 'timestamp for config.h' >"./stamp-h1"
21565 cat >>$CONFIG_STATUS <<\_ACEOF
21568 # CONFIG_COMMANDS section.
21570 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21571 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21572 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21573 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21574 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21575 X"$ac_dest" : 'X\(//\)[^/]' \| \
21576 X"$ac_dest" : 'X\(//\)$' \| \
21577 X"$ac_dest" : 'X\(/\)' \| \
21578 . : '\(.\)' 2>/dev/null ||
21580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21582 /^X\(\/\/\)$/{ s//\1/; q; }
21583 /^X\(\/\).*/{ s//\1/; q; }
21585 { if $as_mkdir_p; then
21590 while test ! -d "$as_dir"; do
21591 as_dirs="$as_dir $as_dirs"
21592 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21594 X"$as_dir" : 'X\(//\)[^/]' \| \
21595 X"$as_dir" : 'X\(//\)$' \| \
21596 X"$as_dir" : 'X\(/\)' \| \
21597 . : '\(.\)' 2>/dev/null ||
21599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21600 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21601 /^X\(\/\/\)$/{ s//\1/; q; }
21602 /^X\(\/\).*/{ s//\1/; q; }
21605 test ! -n "$as_dirs" || mkdir $as_dirs
21606 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21607 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21608 { (exit 1); exit 1; }; }; }
21612 if test "$ac_dir" != .; then
21613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21614 # A "../" for each directory in $ac_dir_suffix.
21615 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21617 ac_dir_suffix= ac_top_builddir=
21621 .) # No --srcdir option. We are building in place.
21623 if test -z "$ac_top_builddir"; then
21626 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21628 [\\/]* | ?:[\\/]* ) # Absolute path.
21629 ac_srcdir=$srcdir$ac_dir_suffix;
21630 ac_top_srcdir=$srcdir ;;
21631 *) # Relative path.
21632 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21633 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21636 # Do not use `cd foo && pwd` to compute absolute paths, because
21637 # the directories may not exist.
21639 .) ac_abs_builddir="$ac_dir";;
21642 .) ac_abs_builddir=`pwd`;;
21643 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21644 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21647 case $ac_abs_builddir in
21648 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21650 case ${ac_top_builddir}. in
21651 .) ac_abs_top_builddir=$ac_abs_builddir;;
21652 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21653 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21656 case $ac_abs_builddir in
21657 .) ac_abs_srcdir=$ac_srcdir;;
21660 .) ac_abs_srcdir=$ac_abs_builddir;;
21661 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21662 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21665 case $ac_abs_builddir in
21666 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21668 case $ac_top_srcdir in
21669 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21670 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21671 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21676 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21677 echo "$as_me: executing $ac_dest commands" >&6;}
21679 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21680 # Strip MF so we end up with the name of the file.
21681 mf=`echo "$mf" | sed -e 's/:.*$//'`
21682 # Check whether this is an Automake generated Makefile or not.
21683 # We used to match only the files named `Makefile.in', but
21684 # some people rename them; so instead we look at the file content.
21685 # Grep'ing the first line is not enough: some people post-process
21686 # each Makefile.in and add a new line on top of each file to say so.
21687 # So let's grep whole file.
21688 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21689 dirpart=`(dirname "$mf") 2>/dev/null ||
21690 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21691 X"$mf" : 'X\(//\)[^/]' \| \
21692 X"$mf" : 'X\(//\)$' \| \
21693 X"$mf" : 'X\(/\)' \| \
21694 . : '\(.\)' 2>/dev/null ||
21696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21698 /^X\(\/\/\)$/{ s//\1/; q; }
21699 /^X\(\/\).*/{ s//\1/; q; }
21704 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21705 # Extract the definition of DEP_FILES from the Makefile without
21707 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21708 test -z "$DEPDIR" && continue
21709 # When using ansi2knr, U may be empty or an underscore; expand it
21710 U=`sed -n -e '/^U = / s///p' < "$mf"`
21711 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21712 # We invoke sed twice because it is the simplest approach to
21713 # changing $(DEPDIR) to its actual value in the expansion.
21714 for file in `sed -n -e '
21715 /^DEP_FILES = .*\\\\$/ {
21724 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21725 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21726 # Make sure the directory exists.
21727 test -f "$dirpart/$file" && continue
21728 fdir=`(dirname "$file") 2>/dev/null ||
21729 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21730 X"$file" : 'X\(//\)[^/]' \| \
21731 X"$file" : 'X\(//\)$' \| \
21732 X"$file" : 'X\(/\)' \| \
21733 . : '\(.\)' 2>/dev/null ||
21735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21737 /^X\(\/\/\)$/{ s//\1/; q; }
21738 /^X\(\/\).*/{ s//\1/; q; }
21740 { if $as_mkdir_p; then
21741 mkdir -p $dirpart/$fdir
21743 as_dir=$dirpart/$fdir
21745 while test ! -d "$as_dir"; do
21746 as_dirs="$as_dir $as_dirs"
21747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21749 X"$as_dir" : 'X\(//\)[^/]' \| \
21750 X"$as_dir" : 'X\(//\)$' \| \
21751 X"$as_dir" : 'X\(/\)' \| \
21752 . : '\(.\)' 2>/dev/null ||
21754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21756 /^X\(\/\/\)$/{ s//\1/; q; }
21757 /^X\(\/\).*/{ s//\1/; q; }
21760 test ! -n "$as_dirs" || mkdir $as_dirs
21761 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21762 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21763 { (exit 1); exit 1; }; }; }
21765 # echo "creating $dirpart/$file"
21766 echo '# dummy' > "$dirpart/$file"
21774 cat >>$CONFIG_STATUS <<\_ACEOF
21776 { (exit 0); exit 0; }
21778 chmod +x $CONFIG_STATUS
21779 ac_clean_files=$ac_clean_files_save
21782 # configure is writing to config.log, and then calls config.status.
21783 # config.status does its own redirection, appending to config.log.
21784 # Unfortunately, on DOS this fails, as config.log is still kept open
21785 # by configure, so config.status won't be able to write to it; its
21786 # output is simply discarded. So we exec the FD to /dev/null,
21787 # effectively closing config.log, so it can be properly (re)opened and
21788 # appended to by config.status. When coming back to configure, we
21789 # need to make the FD available again.
21790 if test "$no_create" != yes; then
21792 ac_config_status_args=
21793 test "$silent" = yes &&
21794 ac_config_status_args="$ac_config_status_args --quiet"
21796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21799 # would make configure fail if this is the last instruction.
21800 $ac_cs_success || { (exit 1); exit 1; }