2 # From configure.in Revision: 1.56 .
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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL 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 build
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.9"
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`
1752 # expand $ac_aux_dir to an absolute path
1753 am_aux_dir=`cd $ac_aux_dir && pwd`
1755 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1756 # Use eval to expand $SHELL
1757 if eval "$MISSING --run true"; then
1758 am_missing_run="$MISSING --run "
1761 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1762 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1765 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1766 # We used to keeping the `.' as first argument, in order to
1767 # allow $(mkdir_p) to be used without argument. As in
1768 # $(mkdir_p) $(somedir)
1769 # where $(somedir) is conditionally defined. However this is wrong
1771 # 1. if the package is installed by a user who cannot write `.'
1772 # make install will fail,
1773 # 2. the above comment should most certainly read
1774 # $(mkdir_p) $(DESTDIR)$(somedir)
1775 # so it does not work when $(somedir) is undefined and
1776 # $(DESTDIR) is not.
1777 # To support the latter case, we have to write
1778 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1779 # so the `.' trick is pointless.
1780 mkdir_p='mkdir -p --'
1782 # On NextStep and OpenStep, the `mkdir' command does not
1783 # recognize any option. It will interpret all options as
1784 # directories to create, and then abort because `.' already
1786 for d in ./-p ./--version;
1788 test -d $d && rmdir $d
1790 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1791 if test -f "$ac_aux_dir/mkinstalldirs"; then
1792 mkdir_p='$(mkinstalldirs)'
1794 mkdir_p='$(install_sh) -d'
1798 for ac_prog in gawk mawk nawk awk
1800 # Extract the first word of "$ac_prog", so it can be a program name with args.
1801 set dummy $ac_prog; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_AWK+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 if test -n "$AWK"; then
1808 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_AWK="$ac_prog"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 if test -n "$AWK"; then
1828 echo "$as_me:$LINENO: result: $AWK" >&5
1829 echo "${ECHO_T}$AWK" >&6
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1835 test -n "$AWK" && break
1838 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1839 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1840 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1841 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 cat >conftest.make <<\_ACEOF
1846 @echo 'ac_maketemp="$(MAKE)"'
1848 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1849 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1850 if test -n "$ac_maketemp"; then
1851 eval ac_cv_prog_make_${ac_make}_set=yes
1853 eval ac_cv_prog_make_${ac_make}_set=no
1857 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1858 echo "$as_me:$LINENO: result: yes" >&5
1859 echo "${ECHO_T}yes" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 SET_MAKE="MAKE=${MAKE-make}"
1867 rm -rf .tst 2>/dev/null
1868 mkdir .tst 2>/dev/null
1869 if test -d .tst; then
1874 rmdir .tst 2>/dev/null
1876 # test to see if srcdir already configured
1877 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1878 test -f $srcdir/config.status; then
1879 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1880 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1881 { (exit 1); exit 1; }; }
1884 # test whether we have cygpath
1885 if test -z "$CYGPATH_W"; then
1886 if (cygpath --version) >/dev/null 2>/dev/null; then
1887 CYGPATH_W='cygpath -w'
1894 # Define the identity of the package.
1895 PACKAGE=libnss-mysql
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE "$PACKAGE"
1904 cat >>confdefs.h <<_ACEOF
1905 #define VERSION "$VERSION"
1908 # Some tools Automake needs.
1910 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1913 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1916 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1919 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1922 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1924 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1926 # Installed binaries are usually stripped using `strip' when the user
1927 # run `make install-strip'. However `strip' might not be the right
1928 # tool to use in cross-compilation environments, therefore Automake
1929 # will honor the `STRIP' environment variable to overrule this program.
1930 if test "$cross_compiling" != no; then
1931 if test -n "$ac_tool_prefix"; then
1932 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1933 set dummy ${ac_tool_prefix}strip; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_STRIP+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$STRIP"; then
1940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 STRIP=$ac_cv_prog_STRIP
1959 if test -n "$STRIP"; then
1960 echo "$as_me:$LINENO: result: $STRIP" >&5
1961 echo "${ECHO_T}$STRIP" >&6
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1968 if test -z "$ac_cv_prog_STRIP"; then
1970 # Extract the first word of "strip", so it can be a program name with args.
1971 set dummy strip; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$ac_ct_STRIP"; then
1978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_ac_ct_STRIP="strip"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1997 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1998 if test -n "$ac_ct_STRIP"; then
1999 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2000 echo "${ECHO_T}$ac_ct_STRIP" >&6
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2008 STRIP="$ac_cv_prog_STRIP"
2012 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2014 # We need awk for the "check" target. The system "awk" is bad on
2016 # Always define AMTAR for backward compatibility.
2018 AMTAR=${AMTAR-"${am_missing_run}tar"}
2020 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2026 ac_config_headers="$ac_config_headers config.h"
2028 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2029 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2030 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2031 if test "${enable_maintainer_mode+set}" = set; then
2032 enableval="$enable_maintainer_mode"
2033 USE_MAINTAINER_MODE=$enableval
2035 USE_MAINTAINER_MODE=no
2037 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2038 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2041 if test $USE_MAINTAINER_MODE = yes; then
2042 MAINTAINER_MODE_TRUE=
2043 MAINTAINER_MODE_FALSE='#'
2045 MAINTAINER_MODE_TRUE='#'
2046 MAINTAINER_MODE_FALSE=
2049 MAINT=$MAINTAINER_MODE_TRUE
2054 ac_cpp='$CPP $CPPFLAGS'
2055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058 if test -n "$ac_tool_prefix"; then
2059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2095 if test -z "$ac_cv_prog_CC"; then
2097 # Extract the first word of "gcc", so it can be a program name with args.
2098 set dummy gcc; ac_word=$2
2099 echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test -n "$ac_ct_CC"; then
2105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114 ac_cv_prog_ac_ct_CC="gcc"
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124 if test -n "$ac_ct_CC"; then
2125 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126 echo "${ECHO_T}$ac_ct_CC" >&6
2128 echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6
2137 if test -z "$CC"; then
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2140 set dummy ${ac_tool_prefix}cc; ac_word=$2
2141 echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_CC+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test -n "$CC"; then
2147 ac_cv_prog_CC="$CC" # Let the user override the test.
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156 ac_cv_prog_CC="${ac_tool_prefix}cc"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 if test -n "$CC"; then
2167 echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6
2170 echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6
2175 if test -z "$ac_cv_prog_CC"; then
2177 # Extract the first word of "cc", so it can be a program name with args.
2178 set dummy cc; ac_word=$2
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test -n "$ac_ct_CC"; then
2185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194 ac_cv_prog_ac_ct_CC="cc"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204 if test -n "$ac_ct_CC"; then
2205 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2206 echo "${ECHO_T}$ac_ct_CC" >&6
2208 echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2218 if test -z "$CC"; then
2219 # Extract the first word of "cc", so it can be a program name with args.
2220 set dummy cc; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2238 ac_prog_rejected=yes
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 if test $ac_prog_rejected = yes; then
2249 # We found a bogon in the path, so make sure we never use it.
2250 set dummy $ac_cv_prog_CC
2252 if test $# != 0; then
2253 # We chose a different compiler from the bogus one.
2254 # However, it has the same basename, so the bogon will be chosen
2255 # first if we set CC to just the basename; use the full file name.
2257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2263 if test -n "$CC"; then
2264 echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6
2267 echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2272 if test -z "$CC"; then
2273 if test -n "$ac_tool_prefix"; then
2276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$CC"; then
2284 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 if test -n "$CC"; then
2304 echo "$as_me:$LINENO: result: $CC" >&5
2305 echo "${ECHO_T}$CC" >&6
2307 echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6
2311 test -n "$CC" && break
2314 if test -z "$CC"; then
2318 # Extract the first word of "$ac_prog", so it can be a program name with args.
2319 set dummy $ac_prog; ac_word=$2
2320 echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 if test -n "$ac_ct_CC"; then
2326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335 ac_cv_prog_ac_ct_CC="$ac_prog"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2345 if test -n "$ac_ct_CC"; then
2346 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2347 echo "${ECHO_T}$ac_ct_CC" >&6
2349 echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2353 test -n "$ac_ct_CC" && break
2362 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: no acceptable C compiler found in \$PATH
2365 See \`config.log' for more details." >&2;}
2366 { (exit 1); exit 1; }; }
2368 # Provide some information about the compiler.
2369 echo "$as_me:$LINENO:" \
2370 "checking for C compiler version" >&5
2371 ac_compiler=`set X $ac_compile; echo $2`
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2373 (eval $ac_compiler --version </dev/null >&5) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2378 (eval $ac_compiler -v </dev/null >&5) 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }
2382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2383 (eval $ac_compiler -V </dev/null >&5) 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }
2388 cat >conftest.$ac_ext <<_ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2403 ac_clean_files_save=$ac_clean_files
2404 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2405 # Try to create an executable without -o first, disregard a.out.
2406 # It will help us diagnose broken compilers, and finding out an intuition
2408 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2409 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2410 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2412 (eval $ac_link_default) 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 # Find the output, starting from the most likely. This scheme is
2417 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2420 # Be careful to initialize this variable, since it used to be cached.
2421 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2423 # b.out is created by i960 compilers.
2424 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2426 test -f "$ac_file" || continue
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2431 # This is the source file.
2434 # We found the default executable, but exeext='' is most
2438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439 # FIXME: I believe we export ac_cv_exeext for Libtool,
2440 # but it would be cool to find out if it's true. Does anybody
2441 # maintain Libtool? --akim.
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2452 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2453 See \`config.log' for more details." >&5
2454 echo "$as_me: error: C compiler cannot create executables
2455 See \`config.log' for more details." >&2;}
2456 { (exit 77); exit 77; }; }
2459 ac_exeext=$ac_cv_exeext
2460 echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6
2463 # Check the compiler produces executables we can run. If not, either
2464 # the compiler is broken, or we cross compile.
2465 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2466 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2467 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2468 # If not cross compiling, check that we can run a simple program.
2469 if test "$cross_compiling" != yes; then
2470 if { ac_try='./$ac_file'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2478 if test "$cross_compiling" = maybe; then
2481 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482 If you meant to cross compile, use \`--host'.
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2491 echo "$as_me:$LINENO: result: yes" >&5
2492 echo "${ECHO_T}yes" >&6
2494 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2495 ac_clean_files=$ac_clean_files_save
2496 # Check the compiler produces executables we can run. If not, either
2497 # the compiler is broken, or we cross compile.
2498 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2499 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2500 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2501 echo "${ECHO_T}$cross_compiling" >&6
2503 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2504 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2506 (eval $ac_link) 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; then
2510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2512 # work properly (i.e., refer to `conftest.exe'), while it won't with
2514 for ac_file in conftest.exe conftest conftest.*; do
2515 test -f "$ac_file" || continue
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest$ac_cv_exeext
2533 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2534 echo "${ECHO_T}$ac_cv_exeext" >&6
2536 rm -f conftest.$ac_ext
2537 EXEEXT=$ac_cv_exeext
2539 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2540 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2541 if test "${ac_cv_objext+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.o conftest.obj
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2577 See \`config.log' for more details." >&5
2578 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2579 See \`config.log' for more details." >&2;}
2580 { (exit 1); exit 1; }; }
2583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2585 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2586 echo "${ECHO_T}$ac_cv_objext" >&6
2587 OBJEXT=$ac_cv_objext
2589 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2590 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2591 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 cat >conftest.$ac_ext <<_ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2645 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2647 GCC=`test $ac_compiler_gnu = yes && echo yes`
2648 ac_test_CFLAGS=${CFLAGS+set}
2649 ac_save_CFLAGS=$CFLAGS
2651 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2653 if test "${ac_cv_prog_cc_g+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 cat >conftest.$ac_ext <<_ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2671 rm -f conftest.$ac_objext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2673 (eval $ac_compile) 2>conftest.er1
2675 grep -v '^ *+' conftest.er1 >conftest.err
2677 cat conftest.err >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -z "$ac_c_werror_flag"
2681 || test ! -s conftest.err'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; } &&
2687 { ac_try='test -s conftest.$ac_objext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2704 if test "$ac_test_CFLAGS" = set; then
2705 CFLAGS=$ac_save_CFLAGS
2706 elif test $ac_cv_prog_cc_g = yes; then
2707 if test "$GCC" = yes; then
2713 if test "$GCC" = yes; then
2719 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2720 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2721 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 ac_cv_prog_cc_stdc=no
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 #include <sys/types.h>
2735 #include <sys/stat.h>
2736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2737 struct buf { int x; };
2738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2739 static char *e (p, i)
2745 static char *f (char * (*g) (char **, int), char **p, ...)
2750 s = g (p, va_arg (v,int));
2755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2756 function prototypes and stuff, but not '\xHH' hex character constants.
2757 These don't provoke an error unfortunately, instead are silently treated
2758 as 'x'. The following induces an error, until -std1 is added to get
2759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2760 array size at least. It's necessary to write '\x00'==0 to get something
2761 that's true only with -std1. */
2762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2764 int test (int i, double x);
2765 struct s1 {int (*f) (int a);};
2766 struct s2 {int (*f) (double a);};
2767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2778 # Don't try gcc -ansi; that turns off useful extensions and
2779 # breaks some systems' header files.
2780 # AIX -qlanglvl=ansi
2781 # Ultrix and OSF/1 -std1
2782 # HP-UX 10.20 and later -Ae
2783 # HP-UX older versions -Aa -D_HPUX_SOURCE
2784 # SVR4 -Xc -D__EXTENSIONS__
2785 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2787 CC="$ac_save_CC $ac_arg"
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_c_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 ac_cv_prog_cc_stdc=$ac_arg
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2817 rm -f conftest.err conftest.$ac_objext
2819 rm -f conftest.$ac_ext conftest.$ac_objext
2824 case "x$ac_cv_prog_cc_stdc" in
2826 echo "$as_me:$LINENO: result: none needed" >&5
2827 echo "${ECHO_T}none needed" >&6 ;;
2829 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2830 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2831 CC="$CC $ac_cv_prog_cc_stdc" ;;
2834 # Some people use a C++ compiler to compile C. Since we use `exit',
2835 # in C++ we need to declare it. In case someone uses the same compiler
2836 # for both compiling C and C++ we need to have the C++ compiler decide
2837 # the declaration of exit, since it's the most demanding environment.
2838 cat >conftest.$ac_ext <<_ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 for ac_declaration in \
2867 'extern "C" void std::exit (int) throw (); using std::exit;' \
2868 'extern "C" void std::exit (int); using std::exit;' \
2869 'extern "C" void exit (int) throw ();' \
2870 'extern "C" void exit (int);' \
2873 cat >conftest.$ac_ext <<_ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2889 rm -f conftest.$ac_objext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891 (eval $ac_compile) 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } &&
2898 { ac_try='test -z "$ac_c_werror_flag"
2899 || test ! -s conftest.err'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; } &&
2905 { ac_try='test -s conftest.$ac_objext'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965 if test -n "$ac_declaration"; then
2966 echo '#ifdef __cplusplus' >>confdefs.h
2967 echo $ac_declaration >>confdefs.h
2968 echo '#endif' >>confdefs.h
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 DEPDIR="${am__leading_dot}deps"
2984 ac_config_commands="$ac_config_commands depfiles"
2987 am_make=${MAKE-make}
2988 cat > confinc << 'END'
2993 # If we don't find an include directive, just comment out the code.
2994 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2995 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2999 # First try GNU make style include.
3000 echo "include confinc" > confmf
3001 # We grep out `Entering directory' and `Leaving directory'
3002 # messages which can occur if `w' ends up in MAKEFLAGS.
3003 # In particular we don't look at `^make:' because GNU make might
3004 # be invoked under some other name (usually "gmake"), in which
3005 # case it prints its new name instead of `make'.
3006 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3011 # Now try BSD make style include.
3012 if test "$am__include" = "#"; then
3013 echo '.include "confinc"' > confmf
3014 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3015 am__include=.include
3022 echo "$as_me:$LINENO: result: $_am_result" >&5
3023 echo "${ECHO_T}$_am_result" >&6
3024 rm -f confinc confmf
3026 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3027 if test "${enable_dependency_tracking+set}" = set; then
3028 enableval="$enable_dependency_tracking"
3031 if test "x$enable_dependency_tracking" != xno; then
3032 am_depcomp="$ac_aux_dir/depcomp"
3037 if test "x$enable_dependency_tracking" != xno; then
3048 depcc="$CC" am_compiler_list=
3050 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3051 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3052 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3056 # We make a subdir and do the tests there. Otherwise we can end up
3057 # making bogus files that we don't know about and never remove. For
3058 # instance it was reported that on HP-UX the gcc test will end up
3059 # making a dummy file named `D' -- because `-MD' means `put the output
3062 # Copy depcomp to subdir because otherwise we won't find it if we're
3063 # using a relative directory.
3064 cp "$am_depcomp" conftest.dir
3066 # We will build objects and dependencies in a subdirectory because
3067 # it helps to detect inapplicable dependency modes. For instance
3068 # both Tru64's cc and ICC support -MD to output dependencies as a
3069 # side effect of compilation, but ICC will put the dependencies in
3070 # the current directory while Tru64 will put them in the object
3074 am_cv_CC_dependencies_compiler_type=none
3075 if test "$am_compiler_list" = ""; then
3076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3078 for depmode in $am_compiler_list; do
3079 # Setup a source with many dependencies, because some compilers
3080 # like to wrap large dependency lists on column 80 (with \), and
3081 # we should not choose a depcomp mode which is confused by this.
3083 # We need to recreate these files for each test, as the compiler may
3084 # overwrite some of them when testing with obscure command lines.
3085 # This happens at least with the AIX C compiler.
3087 for i in 1 2 3 4 5 6; do
3088 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3089 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3090 # Solaris 8's {/usr,}/bin/sh.
3091 touch sub/conftst$i.h
3093 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3097 # after this tag, mechanisms are not by side-effect, so they'll
3098 # only be used when explicitly requested
3099 if test "x$enable_dependency_tracking" = xyes; then
3107 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3108 # mode. It turns out that the SunPro C++ compiler does not properly
3109 # handle `-M -o', and we need to detect this.
3110 if depmode=$depmode \
3111 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3112 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3113 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3114 >/dev/null 2>conftest.err &&
3115 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3116 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3117 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3118 # icc doesn't choke on unknown options, it will just issue warnings
3119 # or remarks (even with -Werror). So we grep stderr for any message
3120 # that says an option was ignored or not supported.
3121 # When given -MP, icc 7.0 and 7.1 complain thusly:
3122 # icc: Command line warning: ignoring option '-M'; no argument required
3123 # The diagnosis changed in icc 8.0:
3124 # icc: Command line remark: option '-MP' not supported
3125 if (grep 'ignoring option' conftest.err ||
3126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3127 am_cv_CC_dependencies_compiler_type=$depmode
3136 am_cv_CC_dependencies_compiler_type=none
3140 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3141 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3142 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3147 test "x$enable_dependency_tracking" != xno \
3148 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3150 am__fastdepCC_FALSE='#'
3152 am__fastdepCC_TRUE='#'
3153 am__fastdepCC_FALSE=
3158 # Check whether --enable-static or --disable-static was given.
3159 if test "${enable_static+set}" = set; then
3160 enableval="$enable_static"
3161 p=${PACKAGE-default}
3163 yes) enable_static=yes ;;
3164 no) enable_static=no ;;
3167 # Look at the argument we got. We use all the common list separators.
3168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3169 for pkg in $enableval; do
3171 if test "X$pkg" = "X$p"; then
3183 # Check whether --enable-shared or --disable-shared was given.
3184 if test "${enable_shared+set}" = set; then
3185 enableval="$enable_shared"
3186 p=${PACKAGE-default}
3188 yes) enable_shared=yes ;;
3189 no) enable_shared=no ;;
3192 # Look at the argument we got. We use all the common list separators.
3193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3194 for pkg in $enableval; do
3196 if test "X$pkg" = "X$p"; then
3207 # Check whether --enable-fast-install or --disable-fast-install was given.
3208 if test "${enable_fast_install+set}" = set; then
3209 enableval="$enable_fast_install"
3210 p=${PACKAGE-default}
3212 yes) enable_fast_install=yes ;;
3213 no) enable_fast_install=no ;;
3215 enable_fast_install=no
3216 # Look at the argument we got. We use all the common list separators.
3217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3218 for pkg in $enableval; do
3220 if test "X$pkg" = "X$p"; then
3221 enable_fast_install=yes
3228 enable_fast_install=yes
3231 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3232 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3233 if test "${lt_cv_path_SED+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 # Loop through the user's path and test for sed and gsed.
3237 # Then use that list of sed's as ones to test for truncation.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir=.
3243 for lt_ac_prog in sed gsed; do
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3246 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3253 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3254 # along with /bin/sed that truncates output.
3255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3256 test ! -f $lt_ac_sed && break
3257 cat /dev/null > conftest.in
3259 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3260 # Check for GNU sed and select it if it is found.
3261 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3262 lt_cv_path_SED=$lt_ac_sed
3266 cat conftest.in conftest.in >conftest.tmp
3267 mv conftest.tmp conftest.in
3268 cp conftest.in conftest.nl
3270 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3271 cmp -s conftest.out conftest.nl || break
3272 # 10000 chars as input seems more than enough
3273 test $lt_ac_count -gt 10 && break
3274 lt_ac_count=`expr $lt_ac_count + 1`
3275 if test $lt_ac_count -gt $lt_ac_max; then
3276 lt_ac_max=$lt_ac_count
3277 lt_cv_path_SED=$lt_ac_sed
3285 echo "$as_me:$LINENO: result: $SED" >&5
3286 echo "${ECHO_T}$SED" >&6
3288 echo "$as_me:$LINENO: checking for egrep" >&5
3289 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3290 if test "${ac_cv_prog_egrep+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3294 then ac_cv_prog_egrep='grep -E'
3295 else ac_cv_prog_egrep='egrep'
3298 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3299 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3300 EGREP=$ac_cv_prog_egrep
3304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3305 if test "${with_gnu_ld+set}" = set; then
3306 withval="$with_gnu_ld"
3307 test "$withval" = no || with_gnu_ld=yes
3312 if test "$GCC" = yes; then
3313 # Check if gcc -print-prog-name=ld gives a path.
3314 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3315 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3318 # gcc leaves a trailing carriage return which upsets mingw
3319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324 # Accept absolute paths.
3326 re_direlt='/[^/][^/]*/\.\./'
3327 # Canonicalize the pathname of ld
3328 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3330 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3332 test -z "$LD" && LD="$ac_prog"
3335 # If it fails, then pretend we aren't using GCC.
3339 # If it is relative, then search for the first ld in PATH.
3343 elif test "$with_gnu_ld" = yes; then
3344 echo "$as_me:$LINENO: checking for GNU ld" >&5
3345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3350 if test "${lt_cv_path_LD+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 if test -z "$LD"; then
3354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3355 for ac_dir in $PATH; do
3357 test -z "$ac_dir" && ac_dir=.
3358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3359 lt_cv_path_LD="$ac_dir/$ac_prog"
3360 # Check to see if the program is GNU ld. I'd rather use --version,
3361 # but apparently some GNU ld's only accept -v.
3362 # Break only if it was the GNU/non-GNU ld that we prefer.
3363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3364 *GNU* | *'with BFD'*)
3365 test "$with_gnu_ld" != no && break
3368 test "$with_gnu_ld" != yes && break
3375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3380 if test -n "$LD"; then
3381 echo "$as_me:$LINENO: result: $LD" >&5
3382 echo "${ECHO_T}$LD" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389 { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396 case `$LD -v 2>&1 </dev/null` in
3397 *GNU* | *'with BFD'*)
3398 lt_cv_prog_gnu_ld=yes
3401 lt_cv_prog_gnu_ld=no
3405 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3406 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3407 with_gnu_ld=$lt_cv_prog_gnu_ld
3410 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3411 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3412 if test "${lt_cv_ld_reload_flag+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 lt_cv_ld_reload_flag='-r'
3417 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3418 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3419 reload_flag=$lt_cv_ld_reload_flag
3420 case $reload_flag in
3422 *) reload_flag=" $reload_flag" ;;
3424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3426 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3427 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3428 if test "${lt_cv_path_NM+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 if test -n "$NM"; then
3432 # Let the user override the test.
3435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3436 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3438 test -z "$ac_dir" && ac_dir=.
3439 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3440 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3441 # Check to see if the nm accepts a BSD-compat flag.
3442 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3443 # nm: unknown option "B" ignored
3444 # Tru64's nm complains that /dev/null is an invalid object file
3445 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3446 */dev/null* | *'Invalid file or object type'*)
3447 lt_cv_path_NM="$tmp_nm -B"
3451 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3453 lt_cv_path_NM="$tmp_nm -p"
3457 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3458 continue # so that we can try to find one that supports BSD flags
3465 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3468 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3469 echo "${ECHO_T}$lt_cv_path_NM" >&6
3472 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3473 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3475 if test "$LN_S" = "ln -s"; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3479 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3480 echo "${ECHO_T}no, using $LN_S" >&6
3483 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3484 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3485 if test "${lt_cv_deplibs_check_method+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 lt_cv_file_magic_cmd='$MAGIC_CMD'
3489 lt_cv_file_magic_test_file=
3490 lt_cv_deplibs_check_method='unknown'
3491 # Need to set the preceding variable on all platforms that support
3492 # interlibrary dependencies.
3493 # 'none' -- dependencies not supported.
3494 # `unknown' -- same as none, but documents that we really don't know.
3495 # 'pass_all' -- all dependencies passed with no checks.
3496 # 'test_compile' -- check by making test program.
3497 # 'file_magic [[regex]]' -- check by looking for files in library path
3498 # which responds to the $file_magic_cmd with a given extended regex.
3499 # If you have `file' or equivalent on your system and you're not sure
3500 # whether `pass_all' will *always* work, you probably want this one.
3504 lt_cv_deplibs_check_method=pass_all
3508 lt_cv_deplibs_check_method=pass_all
3512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3513 lt_cv_file_magic_cmd='/usr/bin/file -L'
3514 lt_cv_file_magic_test_file=/shlib/libc.so
3518 # func_win32_libid is a shell function defined in ltmain.sh
3519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3520 lt_cv_file_magic_cmd='func_win32_libid'
3524 # Base MSYS/MinGW do not provide the 'file' command needed by
3525 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3527 lt_cv_file_magic_cmd='$OBJDUMP -f'
3530 darwin* | rhapsody*)
3531 lt_cv_deplibs_check_method=pass_all
3534 freebsd* | kfreebsd*-gnu)
3535 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3538 # Not sure whether the presence of OpenBSD here was a mistake.
3539 # Let's accept both of them until this is cleared up.
3540 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3541 lt_cv_file_magic_cmd=/usr/bin/file
3542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3546 lt_cv_deplibs_check_method=pass_all
3551 lt_cv_deplibs_check_method=pass_all
3554 hpux10.20* | hpux11*)
3555 lt_cv_file_magic_cmd=/usr/bin/file
3558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3559 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3562 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]'
3563 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3567 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3572 irix5* | irix6* | nonstopux*)
3574 *-32|*"-32 ") libmagic=32-bit;;
3575 *-n32|*"-n32 ") libmagic=N32;;
3576 *-64|*"-64 ") libmagic=64-bit;;
3577 *) libmagic=never-match;;
3579 lt_cv_deplibs_check_method=pass_all
3582 # This must be Linux ELF.
3585 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3586 lt_cv_deplibs_check_method=pass_all ;;
3588 # glibc up to 2.1.1 does not perform some relocations on ARM
3589 # this will be overridden with pass_all, but let us keep it just in case
3590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3592 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3593 lt_cv_deplibs_check_method=pass_all
3597 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3606 lt_cv_file_magic_cmd=/usr/bin/file
3607 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3611 lt_cv_deplibs_check_method=unknown
3615 lt_cv_file_magic_cmd=/usr/bin/file
3616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3617 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3620 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3624 osf3* | osf4* | osf5*)
3625 lt_cv_deplibs_check_method=pass_all
3629 lt_cv_deplibs_check_method=pass_all
3633 lt_cv_deplibs_check_method=pass_all
3636 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3637 case $host_vendor in
3639 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]'
3640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3643 lt_cv_deplibs_check_method=pass_all
3646 lt_cv_file_magic_cmd='/bin/file'
3647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3650 lt_cv_file_magic_cmd='/bin/file'
3651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3652 lt_cv_file_magic_test_file=/lib/libc.so
3655 lt_cv_deplibs_check_method=pass_all
3660 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3661 lt_cv_deplibs_check_method=pass_all
3666 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3667 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3668 file_magic_cmd=$lt_cv_file_magic_cmd
3669 deplibs_check_method=$lt_cv_deplibs_check_method
3670 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3675 # If no C compiler was specified, use CC.
3678 # Allow CC to be a program name with arguments.
3682 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3683 if test "${enable_libtool_lock+set}" = set; then
3684 enableval="$enable_libtool_lock"
3687 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3689 # Some flags need to be propagated to the compiler or linker for good
3693 # Find out which ABI we are using.
3694 echo 'int i;' > conftest.$ac_ext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; then
3700 case `/usr/bin/file conftest.$ac_objext` in
3712 # Find out which ABI we are using.
3713 echo '#line 3713 "configure"' > conftest.$ac_ext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; then
3719 if test "$lt_cv_prog_gnu_ld" = yes; then
3720 case `/usr/bin/file conftest.$ac_objext` in
3722 LD="${LD-ld} -melf32bsmip"
3725 LD="${LD-ld} -melf32bmipn32"
3728 LD="${LD-ld} -melf64bmip"
3732 case `/usr/bin/file conftest.$ac_objext` in
3748 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3749 # Find out which ABI we are using.
3750 echo 'int i;' > conftest.$ac_ext
3751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752 (eval $ac_compile) 2>&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; then
3756 case "`/usr/bin/file conftest.o`" in
3760 LD="${LD-ld} -m elf_i386"
3762 ppc64-*linux*|powerpc64-*linux*)
3763 LD="${LD-ld} -m elf32ppclinux"
3766 LD="${LD-ld} -m elf_s390"
3769 LD="${LD-ld} -m elf32_sparc"
3776 LD="${LD-ld} -m elf_x86_64"
3778 ppc*-*linux*|powerpc*-*linux*)
3779 LD="${LD-ld} -m elf64ppc"
3782 LD="${LD-ld} -m elf64_s390"
3785 LD="${LD-ld} -m elf64_sparc"
3795 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3796 SAVE_CFLAGS="$CFLAGS"
3797 CFLAGS="$CFLAGS -belf"
3798 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3799 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3800 if test "${lt_cv_cc_needs_belf+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag"
3834 || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 lt_cv_cc_needs_belf=yes
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 lt_cv_cc_needs_belf=no
3853 rm -f conftest.err conftest.$ac_objext \
3854 conftest$ac_exeext conftest.$ac_ext
3856 ac_cpp='$CPP $CPPFLAGS'
3857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3863 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3864 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3865 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3866 CFLAGS="$SAVE_CFLAGS"
3872 need_locks="$enable_libtool_lock"
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3882 # On Suns, sometimes $CPP names a directory.
3883 if test -n "$CPP" && test -d "$CPP"; then
3886 if test -z "$CPP"; then
3887 if test "${ac_cv_prog_CPP+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 # Double quotes because CPP needs to be expanded
3891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3894 for ac_c_preproc_warn_flag in '' yes
3896 # Use a header file that comes with gcc, so configuring glibc
3897 # with a fresh cross-compiler works.
3898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3899 # <limits.h> exists even on freestanding compilers.
3900 # On the NeXT, cc -E runs the code through the compiler's parser,
3901 # not just through cpp. "Syntax error" is here to catch this case.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3909 # include <limits.h>
3911 # include <assert.h>
3915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null; then
3923 if test -s conftest.err; then
3924 ac_cpp_err=$ac_c_preproc_warn_flag
3925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3932 if test -z "$ac_cpp_err"; then
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3938 # Broken: fails on valid input.
3941 rm -f conftest.err conftest.$ac_ext
3943 # OK, works on sane cases. Now check whether non-existent headers
3944 # can be detected and how.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <ac_nonexistent.h>
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } >/dev/null; then
3961 if test -s conftest.err; then
3962 ac_cpp_err=$ac_c_preproc_warn_flag
3963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970 if test -z "$ac_cpp_err"; then
3971 # Broken: success on invalid input.
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 # Passes both tests.
3981 rm -f conftest.err conftest.$ac_ext
3984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3985 rm -f conftest.err conftest.$ac_ext
3986 if $ac_preproc_ok; then
3998 echo "$as_me:$LINENO: result: $CPP" >&5
3999 echo "${ECHO_T}$CPP" >&6
4001 for ac_c_preproc_warn_flag in '' yes
4003 # Use a header file that comes with gcc, so configuring glibc
4004 # with a fresh cross-compiler works.
4005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 # <limits.h> exists even on freestanding compilers.
4007 # On the NeXT, cc -E runs the code through the compiler's parser,
4008 # not just through cpp. "Syntax error" is here to catch this case.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4016 # include <limits.h>
4018 # include <assert.h>
4022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } >/dev/null; then
4030 if test -s conftest.err; then
4031 ac_cpp_err=$ac_c_preproc_warn_flag
4032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 if test -z "$ac_cpp_err"; then
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 # Broken: fails on valid input.
4048 rm -f conftest.err conftest.$ac_ext
4050 # OK, works on sane cases. Now check whether non-existent headers
4051 # can be detected and how.
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <ac_nonexistent.h>
4060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev/null; then
4068 if test -s conftest.err; then
4069 ac_cpp_err=$ac_c_preproc_warn_flag
4070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4077 if test -z "$ac_cpp_err"; then
4078 # Broken: success on invalid input.
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Passes both tests.
4088 rm -f conftest.err conftest.$ac_ext
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then
4096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&5
4098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details." >&2;}
4100 { (exit 1); exit 1; }; }
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_header_stdc=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_cv_header_stdc=no
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4165 if test $ac_cv_header_stdc = yes; then
4166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "memchr" >/dev/null 2>&1; then
4180 ac_cv_header_stdc=no
4186 if test $ac_cv_header_stdc = yes; then
4187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "free" >/dev/null 2>&1; then
4201 ac_cv_header_stdc=no
4207 if test $ac_cv_header_stdc = yes; then
4208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209 if test "$cross_compiling" = yes; then
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223 # define ISLOWER(c) \
4224 (('a' <= (c) && (c) <= 'i') \
4225 || ('j' <= (c) && (c) <= 'r') \
4226 || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4235 for (i = 0; i < 256; i++)
4236 if (XOR (islower (i), ISLOWER (i))
4237 || toupper (i) != TOUPPER (i))
4242 rm -f conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4255 echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4260 ac_cv_header_stdc=no
4262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4266 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4268 if test $ac_cv_header_stdc = yes; then
4270 cat >>confdefs.h <<\_ACEOF
4271 #define STDC_HEADERS 1
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4303 #include <$ac_header>
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest.$ac_objext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 eval "$as_ac_Header=yes"
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 eval "$as_ac_Header=no"
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339 cat >>confdefs.h <<_ACEOF
4340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349 for ac_header in dlfcn.h
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353 echo "$as_me:$LINENO: checking for $ac_header" >&5
4354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4361 # Is the header compilable?
4362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4371 #include <$ac_header>
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 ac_header_compiler=yes
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_header_compiler=no
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4404 echo "${ECHO_T}$ac_header_compiler" >&6
4406 # Is the header present?
4407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <$ac_header>
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } >/dev/null; then
4425 if test -s conftest.err; then
4426 ac_cpp_err=$ac_c_preproc_warn_flag
4427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4434 if test -z "$ac_cpp_err"; then
4435 ac_header_preproc=yes
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 ac_header_preproc=no
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444 echo "${ECHO_T}$ac_header_preproc" >&6
4446 # So? What about this header?
4447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4453 ac_header_preproc=yes
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4470 ## ------------------------------------------ ##
4471 ## Report this to the AC_PACKAGE_NAME lists. ##
4472 ## ------------------------------------------ ##
4475 sed "s/^/$as_me: WARNING: /" >&2
4478 echo "$as_me:$LINENO: checking for $ac_header" >&5
4479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 eval "$as_ac_Header=\$ac_header_preproc"
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4490 cat >>confdefs.h <<_ACEOF
4491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4499 ac_cpp='$CXXCPP $CPPFLAGS'
4500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503 if test -n "$ac_tool_prefix"; then
4504 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_CXX+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$CXX"; then
4514 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 if test -n "$CXX"; then
4534 echo "$as_me:$LINENO: result: $CXX" >&5
4535 echo "${ECHO_T}$CXX" >&6
4537 echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4541 test -n "$CXX" && break
4544 if test -z "$CXX"; then
4546 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test -n "$ac_ct_CXX"; then
4556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_ac_ct_CXX="$ac_prog"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4575 if test -n "$ac_ct_CXX"; then
4576 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4577 echo "${ECHO_T}$ac_ct_CXX" >&6
4579 echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4583 test -n "$ac_ct_CXX" && break
4585 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4591 # Provide some information about the compiler.
4592 echo "$as_me:$LINENO:" \
4593 "checking for C++ compiler version" >&5
4594 ac_compiler=`set X $ac_compile; echo $2`
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4596 (eval $ac_compiler --version </dev/null >&5) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4601 (eval $ac_compiler -v </dev/null >&5) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }
4605 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4606 (eval $ac_compiler -V </dev/null >&5) 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }
4611 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4613 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -z "$ac_cxx_werror_flag"
4644 || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4667 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4668 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4669 GXX=`test $ac_compiler_gnu = yes && echo yes`
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4673 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4674 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4675 if test "${ac_cv_prog_cxx_g+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 cat >conftest.$ac_ext <<_ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_cxx_werror_flag"
4703 || test ! -s conftest.err'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest.$ac_objext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4715 ac_cv_prog_cxx_g=yes
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4725 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4726 if test "$ac_test_CXXFLAGS" = set; then
4727 CXXFLAGS=$ac_save_CXXFLAGS
4728 elif test $ac_cv_prog_cxx_g = yes; then
4729 if test "$GXX" = yes; then
4735 if test "$GXX" = yes; then
4741 for ac_declaration in \
4743 'extern "C" void std::exit (int) throw (); using std::exit;' \
4744 'extern "C" void std::exit (int); using std::exit;' \
4745 'extern "C" void exit (int) throw ();' \
4746 'extern "C" void exit (int);' \
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_cxx_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_cxx_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 if test -n "$ac_declaration"; then
4842 echo '#ifdef __cplusplus' >>confdefs.h
4843 echo $ac_declaration >>confdefs.h
4844 echo '#endif' >>confdefs.h
4848 ac_cpp='$CXXCPP $CPPFLAGS'
4849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4853 depcc="$CXX" am_compiler_list=
4855 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4857 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861 # We make a subdir and do the tests there. Otherwise we can end up
4862 # making bogus files that we don't know about and never remove. For
4863 # instance it was reported that on HP-UX the gcc test will end up
4864 # making a dummy file named `D' -- because `-MD' means `put the output
4867 # Copy depcomp to subdir because otherwise we won't find it if we're
4868 # using a relative directory.
4869 cp "$am_depcomp" conftest.dir
4871 # We will build objects and dependencies in a subdirectory because
4872 # it helps to detect inapplicable dependency modes. For instance
4873 # both Tru64's cc and ICC support -MD to output dependencies as a
4874 # side effect of compilation, but ICC will put the dependencies in
4875 # the current directory while Tru64 will put them in the object
4879 am_cv_CXX_dependencies_compiler_type=none
4880 if test "$am_compiler_list" = ""; then
4881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4883 for depmode in $am_compiler_list; do
4884 # Setup a source with many dependencies, because some compilers
4885 # like to wrap large dependency lists on column 80 (with \), and
4886 # we should not choose a depcomp mode which is confused by this.
4888 # We need to recreate these files for each test, as the compiler may
4889 # overwrite some of them when testing with obscure command lines.
4890 # This happens at least with the AIX C compiler.
4892 for i in 1 2 3 4 5 6; do
4893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4895 # Solaris 8's {/usr,}/bin/sh.
4896 touch sub/conftst$i.h
4898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4902 # after this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested
4904 if test "x$enable_dependency_tracking" = xyes; then
4912 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4913 # mode. It turns out that the SunPro C++ compiler does not properly
4914 # handle `-M -o', and we need to detect this.
4915 if depmode=$depmode \
4916 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4918 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4919 >/dev/null 2>conftest.err &&
4920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923 # icc doesn't choke on unknown options, it will just issue warnings
4924 # or remarks (even with -Werror). So we grep stderr for any message
4925 # that says an option was ignored or not supported.
4926 # When given -MP, icc 7.0 and 7.1 complain thusly:
4927 # icc: Command line warning: ignoring option '-M'; no argument required
4928 # The diagnosis changed in icc 8.0:
4929 # icc: Command line remark: option '-MP' not supported
4930 if (grep 'ignoring option' conftest.err ||
4931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4932 am_cv_CXX_dependencies_compiler_type=$depmode
4941 am_cv_CXX_dependencies_compiler_type=none
4945 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4946 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4947 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4952 test "x$enable_dependency_tracking" != xno \
4953 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4954 am__fastdepCXX_TRUE=
4955 am__fastdepCXX_FALSE='#'
4957 am__fastdepCXX_TRUE='#'
4958 am__fastdepCXX_FALSE=
4963 ac_cpp='$CXXCPP $CPPFLAGS'
4964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4967 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4968 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4969 if test -z "$CXXCPP"; then
4970 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 # Double quotes because CXXCPP needs to be expanded
4974 for CXXCPP in "$CXX -E" "/lib/cpp"
4977 for ac_cxx_preproc_warn_flag in '' yes
4979 # Use a header file that comes with gcc, so configuring glibc
4980 # with a fresh cross-compiler works.
4981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4982 # <limits.h> exists even on freestanding compilers.
4983 # On the NeXT, cc -E runs the code through the compiler's parser,
4984 # not just through cpp. "Syntax error" is here to catch this case.
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4992 # include <limits.h>
4994 # include <assert.h>
4998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } >/dev/null; then
5006 if test -s conftest.err; then
5007 ac_cpp_err=$ac_cxx_preproc_warn_flag
5008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5015 if test -z "$ac_cpp_err"; then
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 # Broken: fails on valid input.
5024 rm -f conftest.err conftest.$ac_ext
5026 # OK, works on sane cases. Now check whether non-existent headers
5027 # can be detected and how.
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #include <ac_nonexistent.h>
5036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5039 grep -v '^ *+' conftest.er1 >conftest.err
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } >/dev/null; then
5044 if test -s conftest.err; then
5045 ac_cpp_err=$ac_cxx_preproc_warn_flag
5046 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5053 if test -z "$ac_cpp_err"; then
5054 # Broken: success on invalid input.
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 # Passes both tests.
5064 rm -f conftest.err conftest.$ac_ext
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then
5074 ac_cv_prog_CXXCPP=$CXXCPP
5077 CXXCPP=$ac_cv_prog_CXXCPP
5079 ac_cv_prog_CXXCPP=$CXXCPP
5081 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5082 echo "${ECHO_T}$CXXCPP" >&6
5084 for ac_cxx_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 # include <limits.h>
5101 # include <assert.h>
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5122 if test -z "$ac_cpp_err"; then
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 # Broken: fails on valid input.
5131 rm -f conftest.err conftest.$ac_ext
5133 # OK, works on sane cases. Now check whether non-existent headers
5134 # can be detected and how.
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5146 grep -v '^ *+' conftest.er1 >conftest.err
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } >/dev/null; then
5151 if test -s conftest.err; then
5152 ac_cpp_err=$ac_cxx_preproc_warn_flag
5153 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5160 if test -z "$ac_cpp_err"; then
5161 # Broken: success on invalid input.
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 # Passes both tests.
5171 rm -f conftest.err conftest.$ac_ext
5174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175 rm -f conftest.err conftest.$ac_ext
5176 if $ac_preproc_ok; then
5179 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5180 See \`config.log' for more details." >&5
5181 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5182 See \`config.log' for more details." >&2;}
5183 { (exit 1); exit 1; }; }
5187 ac_cpp='$CXXCPP $CPPFLAGS'
5188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5194 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5195 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5197 if test -n "$ac_tool_prefix"; then
5198 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_F77+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 if test -n "$F77"; then
5208 ac_cv_prog_F77="$F77" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 if test -n "$F77"; then
5228 echo "$as_me:$LINENO: result: $F77" >&5
5229 echo "${ECHO_T}$F77" >&6
5231 echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5235 test -n "$F77" && break
5238 if test -z "$F77"; then
5240 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5242 # Extract the first word of "$ac_prog", so it can be a program name with args.
5243 set dummy $ac_prog; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test -n "$ac_ct_F77"; then
5250 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_F77="$ac_prog"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5269 if test -n "$ac_ct_F77"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5271 echo "${ECHO_T}$ac_ct_F77" >&6
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5277 test -n "$ac_ct_F77" && break
5284 # Provide some information about the compiler.
5285 echo "$as_me:5285:" \
5286 "checking for Fortran 77 compiler version" >&5
5287 ac_compiler=`set X $ac_compile; echo $2`
5288 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5289 (eval $ac_compiler --version </dev/null >&5) 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5294 (eval $ac_compiler -v </dev/null >&5) 2>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }
5298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5299 (eval $ac_compiler -V </dev/null >&5) 2>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5305 # If we don't use `.F' as extension, the preprocessor is not run on the
5306 # input file. (Note that this only needs to work for GNU compilers.)
5309 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5310 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5311 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 cat >conftest.$ac_ext <<_ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -z "$ac_f77_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5352 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5355 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5356 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5358 ac_test_FFLAGS=${FFLAGS+set}
5359 ac_save_FFLAGS=$FFLAGS
5361 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5362 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5363 if test "${ac_cv_prog_f77_g+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 cat >conftest.$ac_ext <<_ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5376 grep -v '^ *+' conftest.er1 >conftest.err
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_f77_werror_flag"
5382 || test ! -s conftest.err'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_cv_prog_f77_g=yes
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5404 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5405 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5406 if test "$ac_test_FFLAGS" = set; then
5407 FFLAGS=$ac_save_FFLAGS
5408 elif test $ac_cv_prog_f77_g = yes; then
5409 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5415 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5422 G77=`test $ac_compiler_gnu = yes && echo yes`
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5433 # find the maximum length of command line arguments
5434 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5435 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5436 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 # On DJGPP, this test can blow up pretty badly due to problems in libc
5445 # (any single argument exceeding 2000 bytes causes a buffer overrun
5446 # during glob expansion). Even if it were fixed, the result of this
5447 # check would be larger than it should be.
5448 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5452 # Under GNU Hurd, this test is not required because there is
5453 # no limit to the length of command line arguments.
5454 # Libtool will interpret -1 as no limit whatsoever
5455 lt_cv_sys_max_cmd_len=-1;
5459 # On Win9x/ME, this test blows up -- it succeeds, but takes
5460 # about 5 minutes as the teststring grows exponentially.
5461 # Worse, since 9x/ME are not pre-emptively multitasking,
5462 # you end up with a "frozen" computer, even though with patience
5463 # the test eventually succeeds (with a max line length of 256k).
5464 # Instead, let's just punt: use the minimum linelength reported by
5465 # all of the supported platforms: 8192 (on NT/2K/XP).
5466 lt_cv_sys_max_cmd_len=8192;
5470 # On AmigaOS with pdksh, this test takes hours, literally.
5471 # So we just punt and use a minimum line length of 8192.
5472 lt_cv_sys_max_cmd_len=8192;
5476 # If test is not a shell built-in, we'll probably end up computing a
5477 # maximum length that is only half of the actual maximum length, but
5479 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5480 = "XX$teststring") >/dev/null 2>&1 &&
5481 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5482 lt_cv_sys_max_cmd_len=$new_result &&
5483 test $i != 17 # 1/2 MB should be enough
5486 teststring=$teststring$teststring
5489 # Add a significant safety factor because C++ compilers can tack on massive
5490 # amounts of additional arguments before passing them to the linker.
5491 # It appears as though 1/2 is a usable value.
5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5498 if test -n $lt_cv_sys_max_cmd_len ; then
5499 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5500 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5502 echo "$as_me:$LINENO: result: none" >&5
5503 echo "${ECHO_T}none" >&6
5509 # Check for command to grab the raw symbol name followed by C symbol from nm.
5510 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5511 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5512 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 # These are sane defaults that work on at least a few old systems.
5517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5519 # Character class describing NM global symbol codes.
5520 symcode='[BCDEGRST]'
5522 # Regexp to match symbols that can be accessed directly from C.
5523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5525 # Transform the above into a raw symbol and a C symbol.
5526 symxfrm='\1 \2\3 \3'
5528 # Transform an extracted symbol line into a proper C declaration
5529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5531 # Transform an extracted symbol line into symbol name and symbol address
5532 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'"
5534 # Define system-specific variables.
5539 cygwin* | mingw* | pw32*)
5540 symcode='[ABCDGISTW]'
5542 hpux*) # Its linker distinguishes data from code symbols
5543 if test "$host_cpu" = ia64; then
5544 symcode='[ABCDEGRST]'
5546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5547 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'"
5550 symcode='[BCDEGRST]'
5553 symcode='[BCDEGQRST]'
5563 # Handle CRLF in mingw tool chain
5567 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5571 # If we're using GNU nm, then use its standard symbol codes.
5572 case `$NM -V 2>&1` in
5573 *GNU* | *'with BFD'*)
5574 symcode='[ABCDGIRSTW]' ;;
5577 # Try without a prefix undercore, then with it.
5578 for ac_symprfx in "" "_"; do
5580 # Write the raw and C identifiers.
5581 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5583 # Check to see that the pipe works correctly.
5587 cat > conftest.$ac_ext <<EOF
5592 void nm_test_func(){}
5596 int main(){nm_test_var='a';nm_test_func();return(0);}
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600 (eval $ac_compile) 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; then
5604 # Now try to grab the symbols.
5606 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5607 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && test -s "$nlist"; then
5611 # Try sorting and uniquifying the output.
5612 if sort "$nlist" | uniq > "$nlist"T; then
5613 mv -f "$nlist"T "$nlist"
5618 # Make sure that we snagged all the symbols we need.
5619 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5620 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5621 cat <<EOF > conftest.$ac_ext
5627 # Now generate the symbol file.
5628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5630 cat <<EOF >> conftest.$ac_ext
5631 #if defined (__STDC__) && __STDC__
5632 # define lt_ptr_t void *
5634 # define lt_ptr_t char *
5638 /* The mapping between symbol names and symbols. */
5643 lt_preloaded_symbols[] =
5646 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5647 cat <<\EOF >> conftest.$ac_ext
5655 # Now try linking the two files.
5656 mv conftest.$ac_objext conftstm.$ac_objext
5657 lt_save_LIBS="$LIBS"
5658 lt_save_CFLAGS="$CFLAGS"
5659 LIBS="conftstm.$ac_objext"
5660 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662 (eval $ac_link) 2>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5668 LIBS="$lt_save_LIBS"
5669 CFLAGS="$lt_save_CFLAGS"
5671 echo "cannot find nm_test_func in $nlist" >&5
5674 echo "cannot find nm_test_var in $nlist" >&5
5677 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5680 echo "$progname: failed program was:" >&5
5681 cat conftest.$ac_ext >&5
5683 rm -f conftest* conftst*
5685 # Do not use the global_symbol_pipe unless it works.
5686 if test "$pipe_works" = yes; then
5689 lt_cv_sys_global_symbol_pipe=
5695 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5696 lt_cv_sys_global_symbol_to_cdecl=
5698 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5699 echo "$as_me:$LINENO: result: failed" >&5
5700 echo "${ECHO_T}failed" >&6
5702 echo "$as_me:$LINENO: result: ok" >&5
5703 echo "${ECHO_T}ok" >&6
5706 echo "$as_me:$LINENO: checking for objdir" >&5
5707 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5708 if test "${lt_cv_objdir+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 rm -f .libs 2>/dev/null
5712 mkdir .libs 2>/dev/null
5713 if test -d .libs; then
5716 # MS-DOS does not allow filenames that begin with a dot.
5719 rmdir .libs 2>/dev/null
5721 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5722 echo "${ECHO_T}$lt_cv_objdir" >&6
5723 objdir=$lt_cv_objdir
5731 # AIX sometimes has problems with the GCC collect2 program. For some
5732 # reason, if we set the COLLECT_NAMES environment variable, the problems
5733 # vanish in a puff of smoke.
5734 if test "X${COLLECT_NAMES+set}" != Xset; then
5736 export COLLECT_NAMES
5741 # Sed substitution that helps us do robust quoting. It backslashifies
5742 # metacharacters that are still active within double-quoted strings.
5743 Xsed='sed -e s/^X//'
5744 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5746 # Same as above, but do not quote variable references.
5747 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5749 # Sed substitution to delay expansion of an escaped shell variable in a
5750 # double_quote_subst'ed string.
5751 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5753 # Sed substitution to avoid accidental globbing in evaled expressions
5754 no_glob_subst='s/\*/\\\*/g'
5760 default_ofile=libtool
5761 can_build_shared=yes
5763 # All known linkers require a `.a' archive for static linking (except M$VC,
5764 # which needs '.lib').
5766 ltmain="$ac_aux_dir/ltmain.sh"
5767 ofile="$default_ofile"
5768 with_gnu_ld="$lt_cv_prog_gnu_ld"
5770 if test -n "$ac_tool_prefix"; then
5771 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5772 set dummy ${ac_tool_prefix}ar; ac_word=$2
5773 echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5775 if test "${ac_cv_prog_AR+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 if test -n "$AR"; then
5779 ac_cv_prog_AR="$AR" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5788 ac_cv_prog_AR="${ac_tool_prefix}ar"
5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 if test -n "$AR"; then
5799 echo "$as_me:$LINENO: result: $AR" >&5
5800 echo "${ECHO_T}$AR" >&6
5802 echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5807 if test -z "$ac_cv_prog_AR"; then
5809 # Extract the first word of "ar", so it can be a program name with args.
5810 set dummy ar; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test -n "$ac_ct_AR"; then
5817 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_ac_ct_AR="ar"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5836 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5837 if test -n "$ac_ct_AR"; then
5838 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5839 echo "${ECHO_T}$ac_ct_AR" >&6
5841 echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5850 if test -n "$ac_tool_prefix"; then
5851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5853 echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855 if test "${ac_cv_prog_RANLIB+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 if test -n "$RANLIB"; then
5859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 RANLIB=$ac_cv_prog_RANLIB
5878 if test -n "$RANLIB"; then
5879 echo "$as_me:$LINENO: result: $RANLIB" >&5
5880 echo "${ECHO_T}$RANLIB" >&6
5882 echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6
5887 if test -z "$ac_cv_prog_RANLIB"; then
5888 ac_ct_RANLIB=$RANLIB
5889 # Extract the first word of "ranlib", so it can be a program name with args.
5890 set dummy ranlib; ac_word=$2
5891 echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 if test -n "$ac_ct_RANLIB"; then
5897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_RANLIB="ranlib"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5917 if test -n "$ac_ct_RANLIB"; then
5918 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5919 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5921 echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5925 RANLIB=$ac_ct_RANLIB
5927 RANLIB="$ac_cv_prog_RANLIB"
5930 if test -n "$ac_tool_prefix"; then
5931 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5932 set dummy ${ac_tool_prefix}strip; ac_word=$2
5933 echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935 if test "${ac_cv_prog_STRIP+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test -n "$STRIP"; then
5939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 STRIP=$ac_cv_prog_STRIP
5958 if test -n "$STRIP"; then
5959 echo "$as_me:$LINENO: result: $STRIP" >&5
5960 echo "${ECHO_T}$STRIP" >&6
5962 echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5967 if test -z "$ac_cv_prog_STRIP"; then
5969 # Extract the first word of "strip", so it can be a program name with args.
5970 set dummy strip; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 if test -n "$ac_ct_STRIP"; then
5977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_ac_ct_STRIP="strip"
5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5996 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5997 if test -n "$ac_ct_STRIP"; then
5998 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5999 echo "${ECHO_T}$ac_ct_STRIP" >&6
6001 echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6007 STRIP="$ac_cv_prog_STRIP"
6012 old_CFLAGS="$CFLAGS"
6014 # Set sane defaults for various variables
6015 test -z "$AR" && AR=ar
6016 test -z "$AR_FLAGS" && AR_FLAGS=cru
6017 test -z "$AS" && AS=as
6018 test -z "$CC" && CC=cc
6019 test -z "$LTCC" && LTCC=$CC
6020 test -z "$DLLTOOL" && DLLTOOL=dlltool
6021 test -z "$LD" && LD=ld
6022 test -z "$LN_S" && LN_S="ln -s"
6023 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6024 test -z "$NM" && NM=nm
6025 test -z "$SED" && SED=sed
6026 test -z "$OBJDUMP" && OBJDUMP=objdump
6027 test -z "$RANLIB" && RANLIB=:
6028 test -z "$STRIP" && STRIP=:
6029 test -z "$ac_objext" && ac_objext=o
6031 # Determine commands to create old-style static archives.
6032 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6033 old_postinstall_cmds='chmod 644 $oldlib'
6034 old_postuninstall_cmds=
6036 if test -n "$RANLIB"; then
6039 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6042 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6045 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6048 # Only perform the check for file, if the check method requires it
6049 case $deplibs_check_method in
6051 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6052 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6053 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6054 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6062 lt_save_MAGIC_CMD="$MAGIC_CMD"
6063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6065 for ac_dir in $ac_dummy; do
6067 test -z "$ac_dir" && ac_dir=.
6068 if test -f $ac_dir/${ac_tool_prefix}file; then
6069 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6070 if test -n "$file_magic_test_file"; then
6071 case $deplibs_check_method in
6073 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6076 $EGREP "$file_magic_regex" > /dev/null; then
6081 *** Warning: the command libtool uses to detect shared libraries,
6082 *** $file_magic_cmd, produces output that libtool cannot recognize.
6083 *** The result is that libtool may fail to recognize shared libraries
6084 *** as such. This will affect the creation of libtool libraries that
6085 *** depend on shared libraries, but programs linked with such libtool
6086 *** libraries will work regardless of this problem. Nevertheless, you
6087 *** may want to report the problem to your system manager and/or to
6088 *** bug-libtool@gnu.org
6098 MAGIC_CMD="$lt_save_MAGIC_CMD"
6103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6104 if test -n "$MAGIC_CMD"; then
6105 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6106 echo "${ECHO_T}$MAGIC_CMD" >&6
6108 echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6
6112 if test -z "$lt_cv_path_MAGIC_CMD"; then
6113 if test -n "$ac_tool_prefix"; then
6114 echo "$as_me:$LINENO: checking for file" >&5
6115 echo $ECHO_N "checking for file... $ECHO_C" >&6
6116 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6124 lt_save_MAGIC_CMD="$MAGIC_CMD"
6125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6127 for ac_dir in $ac_dummy; do
6129 test -z "$ac_dir" && ac_dir=.
6130 if test -f $ac_dir/file; then
6131 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6132 if test -n "$file_magic_test_file"; then
6133 case $deplibs_check_method in
6135 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6138 $EGREP "$file_magic_regex" > /dev/null; then
6143 *** Warning: the command libtool uses to detect shared libraries,
6144 *** $file_magic_cmd, produces output that libtool cannot recognize.
6145 *** The result is that libtool may fail to recognize shared libraries
6146 *** as such. This will affect the creation of libtool libraries that
6147 *** depend on shared libraries, but programs linked with such libtool
6148 *** libraries will work regardless of this problem. Nevertheless, you
6149 *** may want to report the problem to your system manager and/or to
6150 *** bug-libtool@gnu.org
6160 MAGIC_CMD="$lt_save_MAGIC_CMD"
6165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6166 if test -n "$MAGIC_CMD"; then
6167 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6168 echo "${ECHO_T}$MAGIC_CMD" >&6
6170 echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6
6186 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6187 if test "${enable_libtool_lock+set}" = set; then
6188 enableval="$enable_libtool_lock"
6191 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6194 # Check whether --with-pic or --without-pic was given.
6195 if test "${with_pic+set}" = set; then
6201 test -z "$pic_mode" && pic_mode=default
6203 # Use C for the default configuration in the libtool script
6207 ac_cpp='$CPP $CPPFLAGS'
6208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213 # Source file extension for C test sources.
6216 # Object file extension for compiled C test sources.
6220 # Code to be used in simple compile tests
6221 lt_simple_compile_test_code="int some_variable = 0;\n"
6223 # Code to be used in simple link tests
6224 lt_simple_link_test_code='int main(){return(0);}\n'
6227 # If no C compiler was specified, use CC.
6230 # Allow CC to be a program name with arguments.
6235 # Check for any special shared library compilation flags.
6238 if test "$GCC" = no; then
6241 lt_prog_cc_shlib='-belf'
6245 if test -n "$lt_prog_cc_shlib"; then
6246 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6247 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6248 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6250 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6251 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6252 lt_cv_prog_cc_can_build_shared=no
6258 # Check to make sure the static flag actually works.
6260 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6261 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6262 if test "${lt_prog_compiler_static_works+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 lt_prog_compiler_static_works=no
6266 save_LDFLAGS="$LDFLAGS"
6267 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6268 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6270 # The compiler can only warn and ignore the option if not recognized
6271 # So say no if there are warnings
6272 if test -s conftest.err; then
6273 # Append any errors to the config.log.
6274 cat conftest.err 1>&5
6276 lt_prog_compiler_static_works=yes
6280 LDFLAGS="$save_LDFLAGS"
6283 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6284 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6286 if test x"$lt_prog_compiler_static_works" = xyes; then
6289 lt_prog_compiler_static=
6295 lt_prog_compiler_no_builtin_flag=
6297 if test "$GCC" = yes; then
6298 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6301 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6302 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6303 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 lt_cv_prog_compiler_rtti_exceptions=no
6307 ac_outfile=conftest.$ac_objext
6308 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6309 lt_compiler_flag="-fno-rtti -fno-exceptions"
6310 # Insert the option either (1) after the last *FLAGS variable, or
6311 # (2) before a word containing "conftest.", or (3) at the end.
6312 # Note that $ac_compile itself does not contain backslashes and begins
6313 # with a dollar sign (not a hyphen), so the echo should work correctly.
6314 # The option is referenced via a variable to avoid confusing sed.
6315 lt_compile=`echo "$ac_compile" | $SED \
6316 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6318 -e 's:$: $lt_compiler_flag:'`
6319 (eval echo "\"\$as_me:6319: $lt_compile\"" >&5)
6320 (eval "$lt_compile" 2>conftest.err)
6322 cat conftest.err >&5
6323 echo "$as_me:6323: \$? = $ac_status" >&5
6324 if (exit $ac_status) && test -s "$ac_outfile"; then
6325 # The compiler can only warn and ignore the option if not recognized
6326 # So say no if there are warnings
6327 if test ! -s conftest.err; then
6328 lt_cv_prog_compiler_rtti_exceptions=yes
6334 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6335 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6337 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6338 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6345 lt_prog_compiler_wl=
6346 lt_prog_compiler_pic=
6347 lt_prog_compiler_static=
6349 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6350 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6352 if test "$GCC" = yes; then
6353 lt_prog_compiler_wl='-Wl,'
6354 lt_prog_compiler_static='-static'
6358 # All AIX code is PIC.
6359 if test "$host_cpu" = ia64; then
6360 # AIX 5 now supports IA64 processor
6361 lt_prog_compiler_static='-Bstatic'
6366 # FIXME: we need at least 68020 code to build shared libraries, but
6367 # adding the `-m68020' flag to GCC prevents building anything better,
6369 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6372 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6373 # PIC is the default for these OSes.
6376 mingw* | pw32* | os2*)
6377 # This hack is so that the source file can tell whether it is being
6378 # built for inclusion in a dll (and should export symbols for example).
6379 lt_prog_compiler_pic='-DDLL_EXPORT'
6382 darwin* | rhapsody*)
6383 # PIC is the default on this platform
6384 # Common symbols not allowed in MH_DYLIB files
6385 lt_prog_compiler_pic='-fno-common'
6389 # Just because we use GCC doesn't mean we suddenly get shared libraries
6390 # on systems that don't support them.
6391 lt_prog_compiler_can_build_shared=no
6396 if test -d /usr/nec; then
6397 lt_prog_compiler_pic=-Kconform_pic
6402 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6409 lt_prog_compiler_pic='-fPIC'
6415 lt_prog_compiler_pic='-fPIC'
6419 # PORTME Check for flag to pass linker flags through the system compiler.
6422 lt_prog_compiler_wl='-Wl,'
6423 if test "$host_cpu" = ia64; then
6424 # AIX 5 now supports IA64 processor
6425 lt_prog_compiler_static='-Bstatic'
6427 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6431 mingw* | pw32* | os2*)
6432 # This hack is so that the source file can tell whether it is being
6433 # built for inclusion in a dll (and should export symbols for example).
6434 lt_prog_compiler_pic='-DDLL_EXPORT'
6437 hpux9* | hpux10* | hpux11*)
6438 lt_prog_compiler_wl='-Wl,'
6439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6446 lt_prog_compiler_pic='+Z'
6449 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6450 lt_prog_compiler_static='${wl}-a ${wl}archive'
6453 irix5* | irix6* | nonstopux*)
6454 lt_prog_compiler_wl='-Wl,'
6455 # PIC (with -KPIC) is the default.
6456 lt_prog_compiler_static='-non_shared'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
6467 lt_prog_compiler_wl='-Wl,'
6468 lt_prog_compiler_pic='-KPIC'
6469 lt_prog_compiler_static='-static'
6472 lt_prog_compiler_wl='-Wl,'
6473 # All Alpha code is PIC.
6474 lt_prog_compiler_static='-non_shared'
6479 osf3* | osf4* | osf5*)
6480 lt_prog_compiler_wl='-Wl,'
6481 # All OSF/1 code is PIC.
6482 lt_prog_compiler_static='-non_shared'
6486 lt_prog_compiler_pic='-Kpic'
6487 lt_prog_compiler_static='-dn'
6491 lt_prog_compiler_wl='-Wl,'
6492 lt_prog_compiler_pic='-KPIC'
6493 lt_prog_compiler_static='-Bstatic'
6497 lt_prog_compiler_wl='-Qoption ld '
6498 lt_prog_compiler_pic='-PIC'
6499 lt_prog_compiler_static='-Bstatic'
6502 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6503 lt_prog_compiler_wl='-Wl,'
6504 lt_prog_compiler_pic='-KPIC'
6505 lt_prog_compiler_static='-Bstatic'
6509 if test -d /usr/nec ;then
6510 lt_prog_compiler_pic='-Kconform_pic'
6511 lt_prog_compiler_static='-Bstatic'
6516 lt_prog_compiler_pic='-pic'
6517 lt_prog_compiler_static='-Bstatic'
6521 lt_prog_compiler_can_build_shared=no
6526 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6527 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6530 # Check to make sure the PIC flag actually works.
6532 if test -n "$lt_prog_compiler_pic"; then
6534 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6535 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6536 if test "${lt_prog_compiler_pic_works+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 lt_prog_compiler_pic_works=no
6540 ac_outfile=conftest.$ac_objext
6541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6542 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6543 # Insert the option either (1) after the last *FLAGS variable, or
6544 # (2) before a word containing "conftest.", or (3) at the end.
6545 # Note that $ac_compile itself does not contain backslashes and begins
6546 # with a dollar sign (not a hyphen), so the echo should work correctly.
6547 # The option is referenced via a variable to avoid confusing sed.
6548 lt_compile=`echo "$ac_compile" | $SED \
6549 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6551 -e 's:$: $lt_compiler_flag:'`
6552 (eval echo "\"\$as_me:6552: $lt_compile\"" >&5)
6553 (eval "$lt_compile" 2>conftest.err)
6555 cat conftest.err >&5
6556 echo "$as_me:6556: \$? = $ac_status" >&5
6557 if (exit $ac_status) && test -s "$ac_outfile"; then
6558 # The compiler can only warn and ignore the option if not recognized
6559 # So say no if there are warnings
6560 if test ! -s conftest.err; then
6561 lt_prog_compiler_pic_works=yes
6567 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6568 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6570 if test x"$lt_prog_compiler_pic_works" = xyes; then
6571 case $lt_prog_compiler_pic in
6573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6576 lt_prog_compiler_pic=
6577 lt_prog_compiler_can_build_shared=no
6582 # For platforms which do not support PIC, -DPIC is meaningless:
6584 lt_prog_compiler_pic=
6587 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6591 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6592 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6593 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 lt_cv_prog_compiler_c_o=no
6597 $rm -r conftest 2>/dev/null
6601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6603 lt_compiler_flag="-o out/conftest2.$ac_objext"
6604 # Insert the option either (1) after the last *FLAGS variable, or
6605 # (2) before a word containing "conftest.", or (3) at the end.
6606 # Note that $ac_compile itself does not contain backslashes and begins
6607 # with a dollar sign (not a hyphen), so the echo should work correctly.
6608 lt_compile=`echo "$ac_compile" | $SED \
6609 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6611 -e 's:$: $lt_compiler_flag:'`
6612 (eval echo "\"\$as_me:6612: $lt_compile\"" >&5)
6613 (eval "$lt_compile" 2>out/conftest.err)
6615 cat out/conftest.err >&5
6616 echo "$as_me:6616: \$? = $ac_status" >&5
6617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6619 # The compiler can only warn and ignore the option if not recognized
6620 # So say no if there are warnings
6621 if test ! -s out/conftest.err; then
6622 lt_cv_prog_compiler_c_o=yes
6627 # SGI C++ compiler will create directory out/ii_files/ for
6628 # template instantiation
6629 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6630 $rm out/* && rmdir out
6636 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6637 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6640 hard_links="nottested"
6641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6642 # do not overwrite the value of need_locks provided by the user
6643 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6644 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6649 ln conftest.a conftest.b 2>&5 || hard_links=no
6650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6651 echo "$as_me:$LINENO: result: $hard_links" >&5
6652 echo "${ECHO_T}$hard_links" >&6
6653 if test "$hard_links" = no; then
6654 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6655 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6662 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6663 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6666 allow_undefined_flag=
6667 enable_shared_with_static_runtimes=no
6669 archive_expsym_cmds=
6670 old_archive_From_new_cmds=
6671 old_archive_from_expsyms_cmds=
6672 export_dynamic_flag_spec=
6673 whole_archive_flag_spec=
6674 thread_safe_flag_spec=
6675 hardcode_libdir_flag_spec=
6676 hardcode_libdir_flag_spec_ld=
6677 hardcode_libdir_separator=
6680 hardcode_shlibpath_var=unsupported
6681 link_all_deplibs=unknown
6682 hardcode_automatic=no
6685 always_export_symbols=no
6686 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6687 # include_expsyms should be a list of space-separated symbols to be *always*
6688 # included in the symbol list
6690 # exclude_expsyms can be an extended regexp of symbols to exclude
6691 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6692 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6693 # as well as any symbol that contains `d'.
6694 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6695 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6696 # platforms (ab)use it in PIC code, but their linkers get confused if
6697 # the symbol is explicitly referenced. Since portable code cannot
6698 # rely on this symbol name, it's probably fine to never include it in
6699 # preloaded symbol tables.
6700 extract_expsyms_cmds=
6703 cygwin* | mingw* | pw32*)
6704 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6705 # When not using gcc, we currently assume that we are using
6706 # Microsoft Visual C++.
6707 if test "$GCC" != yes; then
6717 if test "$with_gnu_ld" = yes; then
6718 # If archive_cmds runs LD, not CC, wlarc should be empty
6721 # See if GNU ld supports shared libraries.
6723 aix3* | aix4* | aix5*)
6724 # On AIX/PPC, the GNU linker is very broken
6725 if test "$host_cpu" != ia64; then
6729 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6730 *** to be unable to reliably create shared libraries on AIX.
6731 *** Therefore, libtool is disabling shared libraries support. If you
6732 *** really care for shared libraries, you may want to modify your PATH
6733 *** so that a non-GNU linker is found, and then restart.
6740 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)'
6741 hardcode_libdir_flag_spec='-L$libdir'
6742 hardcode_minus_L=yes
6744 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6745 # that the semantics of dynamic libraries on AmigaOS, at least up
6746 # to version 4, is to share data among multiple programs linked
6747 # with the same dynamic library. Since this doesn't match the
6748 # behavior of shared libraries on other platforms, we can't use
6754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6755 allow_undefined_flag=unsupported
6756 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6757 # support --undefined. This deserves some investigation. FIXME
6758 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6764 cygwin* | mingw* | pw32*)
6765 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6766 # as there is no search path for DLLs.
6767 hardcode_libdir_flag_spec='-L$libdir'
6768 allow_undefined_flag=unsupported
6769 always_export_symbols=no
6770 enable_shared_with_static_runtimes=yes
6771 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6773 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6775 # If the export-symbols file already is a .def file (1st line
6776 # is EXPORTS), use it as is; otherwise, prepend...
6777 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6778 cp $export_symbols $output_objdir/$soname.def;
6780 echo EXPORTS > $output_objdir/$soname.def;
6781 cat $export_symbols >> $output_objdir/$soname.def;
6783 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6791 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6800 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6804 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6805 *** create shared libraries on Solaris systems. Therefore, libtool
6806 *** is disabling shared libraries support. We urge you to upgrade GNU
6807 *** binutils to release 2.9.1 or newer. Another option is to modify
6808 *** your PATH or compiler configuration so that the native linker is
6809 *** used, and then restart.
6812 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6821 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6824 hardcode_shlibpath_var=no
6828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6829 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6830 archive_cmds="$tmp_archive_cmds"
6831 supports_anon_versioning=no
6832 case `$LD -v 2>/dev/null` in
6833 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6836 *\ 2.11.*) ;; # other 2.11 versions
6837 *) supports_anon_versioning=yes ;;
6839 if test $supports_anon_versioning = yes; then
6840 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6842 $echo "local: *; };" >> $output_objdir/$libname.ver~
6843 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6845 archive_expsym_cmds="$tmp_archive_cmds"
6853 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6862 if test "$ld_shlibs" = yes; then
6863 runpath_var=LD_RUN_PATH
6864 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6865 export_dynamic_flag_spec='${wl}--export-dynamic'
6866 # ancient GNU ld didn't support --whole-archive et. al.
6867 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6868 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6870 whole_archive_flag_spec=
6874 # PORTME fill in a description of your system's linker (not GNU ld)
6877 allow_undefined_flag=unsupported
6878 always_export_symbols=yes
6879 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'
6880 # Note: this linker hardcodes the directories in LIBPATH if there
6881 # are no directories specified by -L.
6882 hardcode_minus_L=yes
6883 if test "$GCC" = yes && test -z "$link_static_flag"; then
6884 # Neither direct hardcoding nor static linking is supported with a
6886 hardcode_direct=unsupported
6891 if test "$host_cpu" = ia64; then
6892 # On IA64, the linker does run time linking by default, so we don't
6893 # have to do anything special.
6894 aix_use_runtimelinking=no
6895 exp_sym_flag='-Bexport'
6898 # If we're using GNU nm, then we don't want the "-C" option.
6899 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6900 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6901 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'
6903 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'
6905 aix_use_runtimelinking=no
6907 # Test if we are trying to use run time linking or normal
6908 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6909 # need to do runtime linking.
6910 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6911 for ld_flag in $LDFLAGS; do
6912 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6913 aix_use_runtimelinking=yes
6919 exp_sym_flag='-bexport'
6920 no_entry_flag='-bnoentry'
6923 # When large executables or shared objects are built, AIX ld can
6924 # have problems creating the table of contents. If linking a library
6925 # or program results in "error TOC overflow" add -mminimal-toc to
6926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6931 hardcode_libdir_separator=':'
6932 link_all_deplibs=yes
6934 if test "$GCC" = yes; then
6935 case $host_os in aix4.012|aix4.012.*)
6936 # We only want to do this on AIX 4.2 and lower, the check
6937 # below for broken collect2 doesn't work under 4.3+
6938 collect2name=`${CC} -print-prog-name=collect2`
6939 if test -f "$collect2name" && \
6940 strings "$collect2name" | grep resolve_lib_name >/dev/null
6942 # We have reworked collect2
6945 # We have old collect2
6946 hardcode_direct=unsupported
6947 # It fails to find uninstalled libraries when the uninstalled
6948 # path is not listed in the libpath. Setting hardcode_minus_L
6949 # to unsupported forces relinking
6950 hardcode_minus_L=yes
6951 hardcode_libdir_flag_spec='-L$libdir'
6952 hardcode_libdir_separator=
6955 shared_flag='-shared'
6958 if test "$host_cpu" = ia64; then
6959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6960 # chokes on -Wl,-G. The following line is correct:
6963 if test "$aix_use_runtimelinking" = yes; then
6964 shared_flag='${wl}-G'
6966 shared_flag='${wl}-bM:SRE'
6971 # It seems that -bexpall does not export symbols beginning with
6972 # underscore (_), so it is better to generate a list of symbols to export.
6973 always_export_symbols=yes
6974 if test "$aix_use_runtimelinking" = yes; then
6975 # Warning - without using the other runtime loading flags (-brtl),
6976 # -berok will link without error, but may produce a broken library.
6977 allow_undefined_flag='-berok'
6978 # Determine the default libpath from the value encoded in an empty executable.
6979 cat >conftest.$ac_ext <<_ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996 (eval $ac_link) 2>conftest.er1
6998 grep -v '^ *+' conftest.er1 >conftest.err
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try='test -s conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7019 # Check for a 64-bit object if we didn't find anything.
7020 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; }
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7027 rm -f conftest.err conftest.$ac_objext \
7028 conftest$ac_exeext conftest.$ac_ext
7029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7032 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"
7034 if test "$host_cpu" = ia64; then
7035 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7036 allow_undefined_flag="-z nodefs"
7037 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"
7039 # Determine the default libpath from the value encoded in an empty executable.
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7055 rm -f conftest.$ac_objext conftest$ac_exeext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7057 (eval $ac_link) 2>conftest.er1
7059 grep -v '^ *+' conftest.er1 >conftest.err
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try='test -z "$ac_c_werror_flag"
7065 || test ! -s conftest.err'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; } &&
7071 { ac_try='test -s conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7080 # Check for a 64-bit object if we didn't find anything.
7081 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; }
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7088 rm -f conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7092 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7093 # Warning - without using the other run time loading flags,
7094 # -berok will link without error, but may produce a broken library.
7095 no_undefined_flag=' ${wl}-bernotok'
7096 allow_undefined_flag=' ${wl}-berok'
7097 # -bexpall does not export symbols beginning with underscore (_)
7098 always_export_symbols=yes
7099 # Exported symbols can be pulled into shared objects from archives
7100 whole_archive_flag_spec=' '
7101 archive_cmds_need_lc=yes
7102 # This is similar to how AIX traditionally builds it's shared libraries.
7103 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'
7109 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)'
7110 hardcode_libdir_flag_spec='-L$libdir'
7111 hardcode_minus_L=yes
7112 # see comment about different semantics on the GNU ld section
7117 export_dynamic_flag_spec=-rdynamic
7120 cygwin* | mingw* | pw32*)
7121 # When not using gcc, we currently assume that we are using
7122 # Microsoft Visual C++.
7123 # hardcode_libdir_flag_spec is actually meaningless, as there is
7124 # no search path for DLLs.
7125 hardcode_libdir_flag_spec=' '
7126 allow_undefined_flag=unsupported
7127 # Tell ltmain to make .lib files, not .a files.
7129 # Tell ltmain to make .dll files, not .so files.
7131 # FIXME: Setting linknames here is a bad hack.
7132 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7133 # The linker will automatically build a .lib file if we build a DLL.
7134 old_archive_From_new_cmds='true'
7135 # FIXME: Should let the user specify the lib program.
7136 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7137 fix_srcfile_path='`cygpath -w "$srcfile"`'
7138 enable_shared_with_static_runtimes=yes
7141 darwin* | rhapsody*)
7142 if test "$GXX" = yes ; then
7143 archive_cmds_need_lc=no
7145 rhapsody* | darwin1.[012])
7146 allow_undefined_flag='-undefined suppress'
7149 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7150 allow_undefined_flag='-flat_namespace -undefined suppress'
7152 case ${MACOSX_DEPLOYMENT_TARGET} in
7154 allow_undefined_flag='-flat_namespace -undefined suppress'
7157 allow_undefined_flag='-undefined dynamic_lookup'
7163 lt_int_apple_cc_single_mod=no
7164 output_verbose_link_cmd='echo'
7165 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7166 lt_int_apple_cc_single_mod=yes
7168 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7169 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7171 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'
7173 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7175 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7176 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}'
7178 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}'
7180 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}'
7182 hardcode_automatic=yes
7183 hardcode_shlibpath_var=unsupported
7184 whole_archive_flag_spec='-all_load $convenience'
7185 link_all_deplibs=yes
7192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7193 hardcode_libdir_flag_spec='-L$libdir'
7194 hardcode_shlibpath_var=no
7201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7202 # support. Future versions do this automatically, but an explicit c++rt0.o
7203 # does not break anything, and helps significantly (at the cost of a little
7206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7207 hardcode_libdir_flag_spec='-R$libdir'
7209 hardcode_shlibpath_var=no
7212 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7216 hardcode_minus_L=yes
7217 hardcode_shlibpath_var=no
7220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7221 freebsd* | kfreebsd*-gnu)
7222 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7223 hardcode_libdir_flag_spec='-R$libdir'
7225 hardcode_shlibpath_var=no
7229 if test "$GCC" = yes; then
7230 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'
7232 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'
7234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7235 hardcode_libdir_separator=:
7238 # hardcode_minus_L: Not really in the search PATH,
7239 # but as the default location of the library.
7240 hardcode_minus_L=yes
7241 export_dynamic_flag_spec='${wl}-E'
7245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7248 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7251 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7257 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7264 if test "$with_gnu_ld" = no; then
7267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7268 hardcode_libdir_flag_spec_ld='+b $libdir'
7269 hardcode_libdir_separator=:
7271 hardcode_shlibpath_var=no
7274 hardcode_libdir_flag_spec='-L$libdir'
7276 hardcode_shlibpath_var=no
7278 # hardcode_minus_L: Not really in the search PATH,
7279 # but as the default location of the library.
7280 hardcode_minus_L=yes
7283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7284 hardcode_libdir_separator=:
7286 export_dynamic_flag_spec='${wl}-E'
7288 # hardcode_minus_L: Not really in the search PATH,
7289 # but as the default location of the library.
7290 hardcode_minus_L=yes
7296 irix5* | irix6* | nonstopux*)
7297 if test "$GCC" = yes; then
7298 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'
7300 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'
7301 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7304 hardcode_libdir_separator=:
7305 link_all_deplibs=yes
7309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7312 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7314 hardcode_libdir_flag_spec='-R$libdir'
7316 hardcode_shlibpath_var=no
7320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7323 hardcode_libdir_separator=:
7324 hardcode_shlibpath_var=no
7329 hardcode_shlibpath_var=no
7330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7333 export_dynamic_flag_spec='${wl}-E'
7336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7338 hardcode_libdir_flag_spec='-R$libdir'
7341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7349 hardcode_libdir_flag_spec='-L$libdir'
7350 hardcode_minus_L=yes
7351 allow_undefined_flag=unsupported
7352 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'
7353 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7357 if test "$GCC" = yes; then
7358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7359 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'
7361 allow_undefined_flag=' -expect_unresolved \*'
7362 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'
7364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7365 hardcode_libdir_separator=:
7368 osf4* | osf5*) # as osf3* with the addition of -msym flag
7369 if test "$GCC" = yes; then
7370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7371 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'
7372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7374 allow_undefined_flag=' -expect_unresolved \*'
7375 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'
7376 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7377 $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'
7379 # Both c and cxx compiler support -rpath directly
7380 hardcode_libdir_flag_spec='-rpath $libdir'
7382 hardcode_libdir_separator=:
7386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387 hardcode_shlibpath_var=no
7388 export_dynamic_flag_spec='${wl}-Bexport'
7389 runpath_var=LD_RUN_PATH
7390 hardcode_runpath_var=yes
7394 no_undefined_flag=' -z text'
7395 if test "$GCC" = yes; then
7396 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7397 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7398 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7400 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7401 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7404 hardcode_libdir_flag_spec='-R$libdir'
7405 hardcode_shlibpath_var=no
7407 solaris2.[0-5] | solaris2.[0-5].*) ;;
7408 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7409 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7411 link_all_deplibs=yes
7415 if test "x$host_vendor" = xsequent; then
7416 # Use $CC to link under sequent, because it throws in some extra .o
7417 # files that make .init and .fini sections work.
7418 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7420 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7422 hardcode_libdir_flag_spec='-L$libdir'
7424 hardcode_minus_L=yes
7425 hardcode_shlibpath_var=no
7429 case $host_vendor in
7431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432 hardcode_direct=yes # is this really true???
7435 ## LD is ld it makes a PLAMLIB
7436 ## CC just makes a GrossModule.
7437 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7438 reload_cmds='$CC -r -o $output$reload_objs'
7442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7443 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7446 runpath_var='LD_RUN_PATH'
7447 hardcode_shlibpath_var=no
7451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7452 hardcode_shlibpath_var=no
7453 export_dynamic_flag_spec='-Bexport'
7457 if test -d /usr/nec; then
7458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_shlibpath_var=no
7460 runpath_var=LD_RUN_PATH
7461 hardcode_runpath_var=yes
7467 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7470 hardcode_shlibpath_var=no
7471 hardcode_runpath_var=yes
7472 runpath_var=LD_RUN_PATH
7475 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7476 no_undefined_flag='${wl}-z ${wl}text'
7477 if test "$GCC" = yes; then
7478 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7480 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7482 runpath_var='LD_RUN_PATH'
7483 hardcode_shlibpath_var=no
7487 no_undefined_flag=' -z text'
7488 # $CC -shared without GNU ld will not create a library from C++
7489 # object files and a static libstdc++, better avoid it by now
7490 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7491 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7492 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7493 hardcode_libdir_flag_spec=
7494 hardcode_shlibpath_var=no
7495 runpath_var='LD_RUN_PATH'
7499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7500 hardcode_libdir_flag_spec='-L$libdir'
7501 hardcode_shlibpath_var=no
7510 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7511 echo "${ECHO_T}$ld_shlibs" >&6
7512 test "$ld_shlibs" = no && can_build_shared=no
7514 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7515 if test "$GCC" = yes; then
7516 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7520 # Do we need to explicitly link libc?
7522 case "x$archive_cmds_need_lc" in
7524 # Assume -lc should be added
7525 archive_cmds_need_lc=yes
7527 if test "$enable_shared" = yes && test "$GCC" = yes; then
7528 case $archive_cmds in
7530 # FIXME: we may have to deal with multi-command sequences.
7533 # Test whether the compiler implicitly links with -lc since on some
7534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7535 # to ld, don't add -lc before -lgcc.
7536 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7537 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } 2>conftest.err; then
7548 libobjs=conftest.$ac_objext
7550 wl=$lt_prog_compiler_wl
7556 lt_save_allow_undefined_flag=$allow_undefined_flag
7557 allow_undefined_flag=
7558 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7559 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }
7564 archive_cmds_need_lc=no
7566 archive_cmds_need_lc=yes
7568 allow_undefined_flag=$lt_save_allow_undefined_flag
7570 cat conftest.err 1>&5
7573 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7574 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7581 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7582 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7584 libname_spec='lib$name'
7592 shlibpath_overrides_runpath=unknown
7594 dynamic_linker="$host_os ld.so"
7595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7596 if test "$GCC" = yes; then
7597 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7598 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7599 # if the path contains ";" then we assume it to be the separator
7600 # otherwise default to the standard path separator (i.e. ":") - it is
7601 # assumed that no part of a normal pathname contains ";" but that should
7602 # okay in the real world where ";" in dirpaths is itself problematic.
7603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7608 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7610 need_lib_prefix=unknown
7611 hardcode_into_libs=no
7613 # when you set need_version to no, make sure it does not cause -set_version
7614 # flags to be left without arguments
7615 need_version=unknown
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7621 shlibpath_var=LIBPATH
7623 # AIX 3 has no versioning support, so we append a major version to the name.
7624 soname_spec='${libname}${release}${shared_ext}$major'
7631 hardcode_into_libs=yes
7632 if test "$host_cpu" = ia64; then
7633 # AIX 5 supports IA64
7634 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7635 shlibpath_var=LD_LIBRARY_PATH
7637 # With GCC up to 2.95.x, collect2 would create an import file
7638 # for dependence libraries. The import file would start with
7639 # the line `#! .'. This would cause the generated library to
7640 # depend on `.', always an invalid library. This was fixed in
7641 # development snapshots of GCC prior to 3.0.
7643 aix4 | aix4.[01] | aix4.[01].*)
7644 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7646 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7653 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7654 # soname into executable. Probably we can add versioning support to
7655 # collect2, so additional links can be useful in future.
7656 if test "$aix_use_runtimelinking" = yes; then
7657 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7658 # instead of lib<name>.a to let people know that these are not
7659 # typical AIX shared libraries.
7660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662 # We preserve .a as extension for shared libraries through AIX4.2
7663 # and later when we are not doing run time linking.
7664 library_names_spec='${libname}${release}.a $libname.a'
7665 soname_spec='${libname}${release}${shared_ext}$major'
7667 shlibpath_var=LIBPATH
7672 library_names_spec='$libname.ixlibrary $libname.a'
7673 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7674 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'
7678 library_names_spec='${libname}${shared_ext}'
7679 dynamic_linker="$host_os ld.so"
7680 shlibpath_var=LIBRARY_PATH
7686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687 soname_spec='${libname}${release}${shared_ext}$major'
7688 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7689 shlibpath_var=LD_LIBRARY_PATH
7690 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7691 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7692 # the default ld.so.conf also contains /usr/contrib/lib and
7693 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7694 # libtool to hard-code these into programs
7697 cygwin* | mingw* | pw32*)
7698 version_type=windows
7703 case $GCC,$host_os in
7704 yes,cygwin* | yes,mingw* | yes,pw32*)
7705 library_names_spec='$libname.dll.a'
7706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7707 postinstall_cmds='base_file=`basename \${file}`~
7708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7709 dldir=$destdir/`dirname \$dlpath`~
7710 test -d \$dldir || mkdir -p \$dldir~
7711 $install_prog $dir/$dlname \$dldir/$dlname'
7712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7713 dlpath=$dir/\$dldll~
7715 shlibpath_overrides_runpath=yes
7719 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7720 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7721 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7724 # MinGW DLLs use traditional 'lib' prefix
7725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7727 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7728 # It is most probably a Windows format PATH printed by
7729 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7730 # path with ; separators, and with drive letters. We can handle the
7731 # drive letters (cygwin fileutils understands them), so leave them,
7732 # especially as we might pass files found there to a mingw objdump,
7733 # which wouldn't understand a cygwinified path. Ahh.
7734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7740 # pw32 DLLs use 'pw' prefix rather than 'lib'
7741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7750 dynamic_linker='Win32 ld.exe'
7751 # FIXME: first we should search . and the directory the executable is in
7755 darwin* | rhapsody*)
7756 dynamic_linker="$host_os dyld"
7760 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7761 soname_spec='${libname}${release}${major}$shared_ext'
7762 shlibpath_overrides_runpath=yes
7763 shlibpath_var=DYLD_LIBRARY_PATH
7764 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7765 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7766 if test "$GCC" = yes; then
7767 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"`
7769 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7779 soname_spec='${libname}${release}${shared_ext}$major'
7780 shlibpath_var=LD_LIBRARY_PATH
7791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7792 soname_spec='${libname}${release}${shared_ext}$major'
7793 shlibpath_var=LD_LIBRARY_PATH
7794 shlibpath_overrides_runpath=no
7795 hardcode_into_libs=yes
7796 dynamic_linker='GNU ld.so'
7800 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7801 version_type=freebsd-$objformat
7802 case $version_type in
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7813 shlibpath_var=LD_LIBRARY_PATH
7816 shlibpath_overrides_runpath=yes
7818 freebsd3.01* | freebsdelf3.01*)
7819 shlibpath_overrides_runpath=yes
7820 hardcode_into_libs=yes
7823 shlibpath_overrides_runpath=no
7824 hardcode_into_libs=yes
7833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7834 soname_spec='${libname}${release}${shared_ext}$major'
7835 shlibpath_var=LD_LIBRARY_PATH
7836 hardcode_into_libs=yes
7839 hpux9* | hpux10* | hpux11*)
7840 # Give a soname corresponding to the major version so that dld.sl refuses to
7841 # link against other versions.
7848 hardcode_into_libs=yes
7849 dynamic_linker="$host_os dld.so"
7850 shlibpath_var=LD_LIBRARY_PATH
7851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7853 soname_spec='${libname}${release}${shared_ext}$major'
7854 if test "X$HPUX_IA64_MODE" = X32; then
7855 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7857 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7863 hardcode_into_libs=yes
7864 dynamic_linker="$host_os dld.sl"
7865 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7868 soname_spec='${libname}${release}${shared_ext}$major'
7869 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7874 dynamic_linker="$host_os dld.sl"
7875 shlibpath_var=SHLIB_PATH
7876 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878 soname_spec='${libname}${release}${shared_ext}$major'
7881 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7882 postinstall_cmds='chmod 555 $lib'
7885 irix5* | irix6* | nonstopux*)
7887 nonstopux*) version_type=nonstopux ;;
7889 if test "$lt_cv_prog_gnu_ld" = yes; then
7897 soname_spec='${libname}${release}${shared_ext}$major'
7898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7900 irix5* | nonstopux*)
7904 case $LD in # libtool.m4 will add one of these switches to LD
7905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7906 libsuff= shlibsuff= libmagic=32-bit;;
7907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7908 libsuff=32 shlibsuff=N32 libmagic=N32;;
7909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7911 *) libsuff= shlibsuff= libmagic=never-match;;
7915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7916 shlibpath_overrides_runpath=no
7917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7919 hardcode_into_libs=yes
7922 # No shared lib support for Linux oldld, aout, or coff.
7923 linux*oldld* | linux*aout* | linux*coff*)
7927 # This must be Linux ELF.
7932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7933 soname_spec='${libname}${release}${shared_ext}$major'
7934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7935 shlibpath_var=LD_LIBRARY_PATH
7936 shlibpath_overrides_runpath=no
7937 # This implies no fast_install, which is unacceptable.
7938 # Some rework will be needed to allow for fast_install
7939 # before this can be enabled.
7940 hardcode_into_libs=yes
7942 # find out which ABI we are using
7945 x86_64*|s390x*|powerpc64*)
7946 echo '#line 7946 "configure"' > conftest.$ac_ext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; then
7952 case `/usr/bin/file conftest.$ac_objext` in
7955 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7963 # Append ld.so.conf contents to the search path
7964 if test -f /etc/ld.so.conf; then
7965 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7966 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7969 # We used to test for /lib/ld.so.1 and disable shared libraries on
7970 # powerpc, because MkLinux only supported shared libraries with the
7971 # GNU dynamic linker. Since this was broken with cross compilers,
7972 # most powerpc-linux boxes support dynamic linking these days and
7973 # people can always --disable-shared, the test was removed, and we
7974 # assume the GNU/Linux dynamic linker is in use.
7975 dynamic_linker='GNU/Linux ld.so'
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7983 soname_spec='${libname}${release}${shared_ext}$major'
7984 shlibpath_var=LD_LIBRARY_PATH
7985 shlibpath_overrides_runpath=no
7986 hardcode_into_libs=yes
7987 dynamic_linker='GNU ld.so'
7994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7997 dynamic_linker='NetBSD (a.out) ld.so'
7999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8000 soname_spec='${libname}${release}${shared_ext}$major'
8001 dynamic_linker='NetBSD ld.elf_so'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 shlibpath_overrides_runpath=yes
8005 hardcode_into_libs=yes
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011 shlibpath_var=LD_LIBRARY_PATH
8012 shlibpath_overrides_runpath=yes
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 soname_spec='${libname}${release}${shared_ext}$major'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 shlibpath_overrides_runpath=yes
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8031 shlibpath_var=LD_LIBRARY_PATH
8032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8034 openbsd2.[89] | openbsd2.[89].*)
8035 shlibpath_overrides_runpath=no
8038 shlibpath_overrides_runpath=yes
8042 shlibpath_overrides_runpath=yes
8047 libname_spec='$name'
8050 library_names_spec='$libname${shared_ext} $libname.a'
8051 dynamic_linker='OS/2 ld.exe'
8052 shlibpath_var=LIBPATH
8055 osf3* | osf4* | osf5*)
8059 soname_spec='${libname}${release}${shared_ext}$major'
8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8061 shlibpath_var=LD_LIBRARY_PATH
8062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8068 soname_spec='${libname}${release}${shared_ext}$major'
8069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8070 shlibpath_var=LD_LIBRARY_PATH
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078 soname_spec='${libname}${release}${shared_ext}$major'
8079 shlibpath_var=LD_LIBRARY_PATH
8080 shlibpath_overrides_runpath=yes
8081 hardcode_into_libs=yes
8082 # ldd complains unless libraries are executable
8083 postinstall_cmds='chmod +x $lib'
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8089 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8090 shlibpath_var=LD_LIBRARY_PATH
8091 shlibpath_overrides_runpath=yes
8092 if test "$with_gnu_ld" = yes; then
8098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8101 soname_spec='${libname}${release}${shared_ext}$major'
8102 shlibpath_var=LD_LIBRARY_PATH
8103 case $host_vendor in
8105 shlibpath_overrides_runpath=no
8107 export_dynamic_flag_spec='${wl}-Blargedynsym'
8108 runpath_var=LD_RUN_PATH
8116 shlibpath_overrides_runpath=no
8117 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8123 if test -d /usr/nec ;then
8125 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8126 soname_spec='$libname${shared_ext}.$major'
8127 shlibpath_var=LD_LIBRARY_PATH
8133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8134 soname_spec='${libname}${release}${shared_ext}$major'
8135 shlibpath_var=LD_LIBRARY_PATH
8142 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8143 echo "${ECHO_T}$dynamic_linker" >&6
8144 test "$dynamic_linker" = no && can_build_shared=no
8146 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8149 if test -n "$hardcode_libdir_flag_spec" || \
8150 test -n "$runpath_var " || \
8151 test "X$hardcode_automatic"="Xyes" ; then
8153 # We can hardcode non-existant directories.
8154 if test "$hardcode_direct" != no &&
8155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8156 # have to relink, otherwise we might link with an installed library
8157 # when we should be linking with a yet-to-be-installed one
8158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8159 test "$hardcode_minus_L" != no; then
8160 # Linking always hardcodes the temporary library directory.
8161 hardcode_action=relink
8163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8164 hardcode_action=immediate
8167 # We cannot hardcode anything, or else we can only hardcode existing
8169 hardcode_action=unsupported
8171 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8172 echo "${ECHO_T}$hardcode_action" >&6
8174 if test "$hardcode_action" = relink; then
8175 # Fast installation is not supported
8176 enable_fast_install=no
8177 elif test "$shlibpath_overrides_runpath" = yes ||
8178 test "$enable_shared" = no; then
8179 # Fast installation is not necessary
8180 enable_fast_install=needless
8185 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8186 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8187 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8188 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8189 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8190 echo "$as_me:$LINENO: result: yes" >&5
8191 echo "${ECHO_T}yes" >&6
8193 # FIXME - insert some real tests, host_os isn't really good enough
8196 if test -n "$STRIP" ; then
8197 striplib="$STRIP -x"
8198 echo "$as_me:$LINENO: result: yes" >&5
8199 echo "${ECHO_T}yes" >&6
8201 echo "$as_me:$LINENO: result: no" >&5
8202 echo "${ECHO_T}no" >&6
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8212 if test "x$enable_dlopen" != xyes; then
8213 enable_dlopen=unknown
8214 enable_dlopen_self=unknown
8215 enable_dlopen_self_static=unknown
8222 lt_cv_dlopen="load_add_on"
8224 lt_cv_dlopen_self=yes
8228 lt_cv_dlopen="LoadLibrary"
8233 lt_cv_dlopen="dlopen"
8238 # if libdl is installed we need to link against it
8239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 ac_check_lib_save_LIBS=$LIBS
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8253 /* Override any gcc2 internal prototype to avoid an error. */
8257 /* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270 (eval $ac_link) 2>conftest.er1
8272 grep -v '^ *+' conftest.er1 >conftest.err
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_lib_dl_dlopen=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 ac_cv_lib_dl_dlopen=no
8297 rm -f conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299 LIBS=$ac_check_lib_save_LIBS
8301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8303 if test $ac_cv_lib_dl_dlopen = yes; then
8304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8309 lt_cv_dlopen_self=yes
8316 echo "$as_me:$LINENO: checking for shl_load" >&5
8317 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8318 if test "${ac_cv_func_shl_load+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 cat >conftest.$ac_ext <<_ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8329 #define shl_load innocuous_shl_load
8331 /* System header to define __stub macros and hopefully few prototypes,
8332 which can conflict with char shl_load (); below.
8333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8334 <limits.h> exists even on freestanding compilers. */
8337 # include <limits.h>
8339 # include <assert.h>
8344 /* Override any gcc2 internal prototype to avoid an error. */
8349 /* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8352 /* The GNU C library defines this for functions which it implements
8353 to always fail with ENOSYS. Some functions are actually named
8354 something starting with __ and the normal name is an alias. */
8355 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8358 char (*f) () = shl_load;
8367 return f != shl_load;
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374 (eval $ac_link) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest$ac_exeext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_func_shl_load=yes
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 ac_cv_func_shl_load=no
8401 rm -f conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8405 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8406 if test $ac_cv_func_shl_load = yes; then
8407 lt_cv_dlopen="shl_load"
8409 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8410 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 ac_check_lib_save_LIBS=$LIBS
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8423 /* Override any gcc2 internal prototype to avoid an error. */
8427 /* We use char because int might match the return type of a gcc2
8428 builtin and then its argument prototype would still apply. */
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag"
8448 || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_lib_dld_shl_load=yes
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_cv_lib_dld_shl_load=no
8467 rm -f conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8471 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8472 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8473 if test $ac_cv_lib_dld_shl_load = yes; then
8474 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8476 echo "$as_me:$LINENO: checking for dlopen" >&5
8477 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8478 if test "${ac_cv_func_dlopen+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8489 #define dlopen innocuous_dlopen
8491 /* System header to define __stub macros and hopefully few prototypes,
8492 which can conflict with char dlopen (); below.
8493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8494 <limits.h> exists even on freestanding compilers. */
8497 # include <limits.h>
8499 # include <assert.h>
8504 /* Override any gcc2 internal prototype to avoid an error. */
8509 /* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8512 /* The GNU C library defines this for functions which it implements
8513 to always fail with ENOSYS. Some functions are actually named
8514 something starting with __ and the normal name is an alias. */
8515 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8518 char (*f) () = dlopen;
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_cv_func_dlopen=yes
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ac_cv_func_dlopen=no
8561 rm -f conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8564 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8565 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8566 if test $ac_cv_func_dlopen = yes; then
8567 lt_cv_dlopen="dlopen"
8569 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8570 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 ac_check_lib_save_LIBS=$LIBS
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 /* Override any gcc2 internal prototype to avoid an error. */
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600 (eval $ac_link) 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest$ac_exeext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_cv_lib_dl_dlopen=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_cv_lib_dl_dlopen=no
8627 rm -f conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_lib_save_LIBS
8631 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8632 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8633 if test $ac_cv_lib_dl_dlopen = yes; then
8634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8636 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8637 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8638 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 ac_check_lib_save_LIBS=$LIBS
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 /* Override any gcc2 internal prototype to avoid an error. */
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -z "$ac_c_werror_flag"
8675 || test ! -s conftest.err'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; } &&
8681 { ac_try='test -s conftest$ac_exeext'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 ac_cv_lib_svld_dlopen=yes
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 ac_cv_lib_svld_dlopen=no
8694 rm -f conftest.err conftest.$ac_objext \
8695 conftest$ac_exeext conftest.$ac_ext
8696 LIBS=$ac_check_lib_save_LIBS
8698 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8699 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8700 if test $ac_cv_lib_svld_dlopen = yes; then
8701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8703 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8704 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8705 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 ac_check_lib_save_LIBS=$LIBS
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8717 /* Override any gcc2 internal prototype to avoid an error. */
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>conftest.er1
8736 grep -v '^ *+' conftest.er1 >conftest.err
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try='test -z "$ac_c_werror_flag"
8742 || test ! -s conftest.err'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; } &&
8748 { ac_try='test -s conftest$ac_exeext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 ac_cv_lib_dld_dld_link=yes
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 ac_cv_lib_dld_dld_link=no
8761 rm -f conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS
8765 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8766 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8767 if test $ac_cv_lib_dld_dld_link = yes; then
8768 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8789 if test "x$lt_cv_dlopen" != xno; then
8795 case $lt_cv_dlopen in
8797 save_CPPFLAGS="$CPPFLAGS"
8798 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8800 save_LDFLAGS="$LDFLAGS"
8801 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8804 LIBS="$lt_cv_dlopen_libs $LIBS"
8806 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8807 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8808 if test "${lt_cv_dlopen_self+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 if test "$cross_compiling" = yes; then :
8812 lt_cv_dlopen_self=cross
8814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8815 lt_status=$lt_dlunknown
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8817 "configure"
8818 #include "confdefs.h"
8827 # define LT_DLGLOBAL RTLD_GLOBAL
8830 # define LT_DLGLOBAL DL_GLOBAL
8832 # define LT_DLGLOBAL 0
8836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8837 find out it does not work in some platform. */
8838 #ifndef LT_DLLAZY_OR_NOW
8840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8843 # define LT_DLLAZY_OR_NOW DL_LAZY
8846 # define LT_DLLAZY_OR_NOW RTLD_NOW
8849 # define LT_DLLAZY_OR_NOW DL_NOW
8851 # define LT_DLLAZY_OR_NOW 0
8859 extern "C" void exit (int);
8862 void fnord() { int i=42;}
8865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8866 int status = $lt_dlunknown;
8870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8871 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8872 /* dlclose (self); */
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8883 (./conftest; exit; ) 2>/dev/null
8886 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8887 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8888 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8891 # compilation failed
8892 lt_cv_dlopen_self=no
8899 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8900 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8902 if test "x$lt_cv_dlopen_self" = xyes; then
8903 LDFLAGS="$LDFLAGS $link_static_flag"
8904 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8905 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8906 if test "${lt_cv_dlopen_self_static+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 if test "$cross_compiling" = yes; then :
8910 lt_cv_dlopen_self_static=cross
8912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8913 lt_status=$lt_dlunknown
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8915 "configure"
8916 #include "confdefs.h"
8925 # define LT_DLGLOBAL RTLD_GLOBAL
8928 # define LT_DLGLOBAL DL_GLOBAL
8930 # define LT_DLGLOBAL 0
8934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8935 find out it does not work in some platform. */
8936 #ifndef LT_DLLAZY_OR_NOW
8938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8941 # define LT_DLLAZY_OR_NOW DL_LAZY
8944 # define LT_DLLAZY_OR_NOW RTLD_NOW
8947 # define LT_DLLAZY_OR_NOW DL_NOW
8949 # define LT_DLLAZY_OR_NOW 0
8957 extern "C" void exit (int);
8960 void fnord() { int i=42;}
8963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8964 int status = $lt_dlunknown;
8968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8969 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8970 /* dlclose (self); */
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977 (eval $ac_link) 2>&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8981 (./conftest; exit; ) 2>/dev/null
8984 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8985 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8986 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8989 # compilation failed
8990 lt_cv_dlopen_self_static=no
8997 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8998 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9001 CPPFLAGS="$save_CPPFLAGS"
9002 LDFLAGS="$save_LDFLAGS"
9007 case $lt_cv_dlopen_self in
9008 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9009 *) enable_dlopen_self=unknown ;;
9012 case $lt_cv_dlopen_self_static in
9013 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9014 *) enable_dlopen_self_static=unknown ;;
9019 # Report which librarie types wil actually be built
9020 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9021 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9022 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9023 echo "${ECHO_T}$can_build_shared" >&6
9025 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9026 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9027 test "$can_build_shared" = "no" && enable_shared=no
9029 # On AIX, shared libraries and static libraries use the same namespace, and
9030 # are all built from PIC.
9033 test "$enable_shared" = yes && enable_static=no
9034 if test -n "$RANLIB"; then
9035 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9036 postinstall_cmds='$RANLIB $lib'
9041 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9042 test "$enable_shared" = yes && enable_static=no
9045 darwin* | rhapsody*)
9046 if test "$GCC" = yes; then
9047 archive_cmds_need_lc=no
9049 rhapsody* | darwin1.[012])
9050 allow_undefined_flag='-undefined suppress'
9053 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9054 allow_undefined_flag='-flat_namespace -undefined suppress'
9056 case ${MACOSX_DEPLOYMENT_TARGET} in
9058 allow_undefined_flag='-flat_namespace -undefined suppress'
9061 allow_undefined_flag='-undefined dynamic_lookup'
9067 output_verbose_link_cmd='echo'
9068 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9069 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9071 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}'
9072 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}'
9074 hardcode_automatic=yes
9075 hardcode_shlibpath_var=unsupported
9076 whole_archive_flag_spec='-all_load $convenience'
9077 link_all_deplibs=yes
9083 echo "$as_me:$LINENO: result: $enable_shared" >&5
9084 echo "${ECHO_T}$enable_shared" >&6
9086 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9087 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9088 # Make sure either enable_shared or enable_static is yes.
9089 test "$enable_shared" = yes || enable_static=yes
9090 echo "$as_me:$LINENO: result: $enable_static" >&5
9091 echo "${ECHO_T}$enable_static" >&6
9093 # The else clause should only fire when bootstrapping the
9094 # libtool distribution, otherwise you forgot to ship ltmain.sh
9095 # with your package, and you will get complaints that there are
9096 # no rules to generate ltmain.sh.
9097 if test -f "$ltmain"; then
9098 # See if we are running on zsh, and set the options which allow our commands through
9099 # without removal of \ escapes.
9100 if test -n "${ZSH_VERSION+set}" ; then
9101 setopt NO_GLOB_SUBST
9103 # Now quote all the things that may contain metacharacters while being
9104 # careful not to overquote the AC_SUBSTed values. We take copies of the
9105 # variables and quote the copies for generation of the libtool script.
9106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9110 deplibs_check_method reload_flag reload_cmds need_locks \
9111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9112 lt_cv_sys_global_symbol_to_c_name_address \
9113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9114 old_postinstall_cmds old_postuninstall_cmds \
9118 lt_prog_compiler_wl \
9119 lt_prog_compiler_pic \
9120 lt_prog_compiler_static \
9121 lt_prog_compiler_no_builtin_flag \
9122 export_dynamic_flag_spec \
9123 thread_safe_flag_spec \
9124 whole_archive_flag_spec \
9125 enable_shared_with_static_runtimes \
9127 old_archive_from_new_cmds \
9132 compiler_lib_search_path \
9134 archive_expsym_cmds \
9136 postuninstall_cmds \
9137 old_archive_from_expsyms_cmds \
9138 allow_undefined_flag \
9140 export_symbols_cmds \
9141 hardcode_libdir_flag_spec \
9142 hardcode_libdir_flag_spec_ld \
9143 hardcode_libdir_separator \
9144 hardcode_automatic \
9146 module_expsym_cmds \
9147 lt_cv_prog_compiler_c_o \
9152 old_archive_cmds | \
9153 old_archive_from_new_cmds | \
9155 archive_expsym_cmds | \
9157 module_expsym_cmds | \
9158 old_archive_from_expsyms_cmds | \
9159 export_symbols_cmds | \
9160 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9161 postinstall_cmds | postuninstall_cmds | \
9162 old_postinstall_cmds | old_postuninstall_cmds | \
9163 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9164 # Double-quote double-evaled strings.
9165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9174 *'\$0 --fallback-echo"')
9175 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9180 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9182 { echo "$as_me:$LINENO: creating $ofile" >&5
9183 echo "$as_me: creating $ofile" >&6;}
9185 cat <<__EOF__ >> "$cfgfile"
9188 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9189 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9190 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9192 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9193 # Free Software Foundation, Inc.
9195 # This file is part of GNU Libtool:
9196 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9198 # This program is free software; you can redistribute it and/or modify
9199 # it under the terms of the GNU General Public License as published by
9200 # the Free Software Foundation; either version 2 of the License, or
9201 # (at your option) any later version.
9203 # This program is distributed in the hope that it will be useful, but
9204 # WITHOUT ANY WARRANTY; without even the implied warranty of
9205 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9206 # General Public License for more details.
9208 # You should have received a copy of the GNU General Public License
9209 # along with this program; if not, write to the Free Software
9210 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9212 # As a special exception to the GNU General Public License, if you
9213 # distribute this file as part of a program that contains a
9214 # configuration script generated by Autoconf, you may include it under
9215 # the same distribution terms that you use for the rest of that program.
9217 # A sed program that does not truncate output.
9220 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9221 Xsed="$SED -e s/^X//"
9223 # The HP-UX ksh and POSIX shell print the target directory to stdout
9225 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9227 # The names of the tagged configurations supported by this script.
9230 # ### BEGIN LIBTOOL CONFIG
9232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9234 # Shell to use when invoking shell scripts.
9237 # Whether or not to build shared libraries.
9238 build_libtool_libs=$enable_shared
9240 # Whether or not to build static libraries.
9241 build_old_libs=$enable_static
9243 # Whether or not to add -lc for building shared libraries.
9244 build_libtool_need_lc=$archive_cmds_need_lc
9246 # Whether or not to disallow shared libs when runtime libs are static
9247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9249 # Whether or not to optimize for fast installation.
9250 fast_install=$enable_fast_install
9253 host_alias=$host_alias
9256 # An echo program that does not interpret backslashes.
9261 AR_FLAGS=$lt_AR_FLAGS
9266 # A language-specific compiler.
9269 # Is the compiler the GNU C compiler?
9275 # The linker used to build libraries.
9278 # Whether we need hard or soft links.
9281 # A BSD-compatible nm program.
9284 # A symbol stripping program
9287 # Used to examine libraries when file_magic_cmd begins "file"
9288 MAGIC_CMD=$MAGIC_CMD
9290 # Used on cygwin: DLL creation program.
9293 # Used on cygwin: object dumper.
9296 # Used on cygwin: assembler.
9299 # The name of the directory that contains temporary libtool files.
9302 # How to create reloadable object files.
9303 reload_flag=$lt_reload_flag
9304 reload_cmds=$lt_reload_cmds
9306 # How to pass a linker flag through the compiler.
9307 wl=$lt_lt_prog_compiler_wl
9309 # Object file suffix (normally "o").
9312 # Old archive suffix (normally "a").
9315 # Shared library suffix (normally ".so").
9316 shrext_cmds='$shrext_cmds'
9318 # Executable file suffix (normally "").
9321 # Additional compiler flags for building library objects.
9322 pic_flag=$lt_lt_prog_compiler_pic
9325 # What is the maximum length of a command?
9326 max_cmd_len=$lt_cv_sys_max_cmd_len
9328 # Does compiler simultaneously support -c and -o options?
9329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9331 # Must we lock files when doing compilation ?
9332 need_locks=$lt_need_locks
9334 # Do we need the lib prefix for modules?
9335 need_lib_prefix=$need_lib_prefix
9337 # Do we need a version for libraries?
9338 need_version=$need_version
9340 # Whether dlopen is supported.
9341 dlopen_support=$enable_dlopen
9343 # Whether dlopen of programs is supported.
9344 dlopen_self=$enable_dlopen_self
9346 # Whether dlopen of statically linked programs is supported.
9347 dlopen_self_static=$enable_dlopen_self_static
9349 # Compiler flag to prevent dynamic linking.
9350 link_static_flag=$lt_lt_prog_compiler_static
9352 # Compiler flag to turn off builtin functions.
9353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9355 # Compiler flag to allow reflexive dlopens.
9356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9358 # Compiler flag to generate shared objects directly from archives.
9359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9361 # Compiler flag to generate thread-safe objects.
9362 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9364 # Library versioning type.
9365 version_type=$version_type
9367 # Format of library name prefix.
9368 libname_spec=$lt_libname_spec
9370 # List of archive names. First name is the real one, the rest are links.
9371 # The last name is the one that the linker finds with -lNAME.
9372 library_names_spec=$lt_library_names_spec
9374 # The coded name of the library, if different from the real name.
9375 soname_spec=$lt_soname_spec
9377 # Commands used to build and install an old-style archive.
9379 old_archive_cmds=$lt_old_archive_cmds
9380 old_postinstall_cmds=$lt_old_postinstall_cmds
9381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9383 # Create an old-style archive from a shared archive.
9384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9386 # Create a temporary old-style archive to link instead of a shared archive.
9387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9389 # Commands used to build and install a shared archive.
9390 archive_cmds=$lt_archive_cmds
9391 archive_expsym_cmds=$lt_archive_expsym_cmds
9392 postinstall_cmds=$lt_postinstall_cmds
9393 postuninstall_cmds=$lt_postuninstall_cmds
9395 # Commands used to build a loadable module (assumed same as above if empty)
9396 module_cmds=$lt_module_cmds
9397 module_expsym_cmds=$lt_module_expsym_cmds
9399 # Commands to strip libraries.
9400 old_striplib=$lt_old_striplib
9401 striplib=$lt_striplib
9403 # Dependencies to place before the objects being linked to create a
9405 predep_objects=$lt_predep_objects
9407 # Dependencies to place after the objects being linked to create a
9409 postdep_objects=$lt_postdep_objects
9411 # Dependencies to place before the objects being linked to create a
9415 # Dependencies to place after the objects being linked to create a
9417 postdeps=$lt_postdeps
9419 # The library search path used internally by the compiler when linking
9421 compiler_lib_search_path=$lt_compiler_lib_search_path
9423 # Method to check whether dependent libraries are shared objects.
9424 deplibs_check_method=$lt_deplibs_check_method
9426 # Command to use when deplibs_check_method == file_magic.
9427 file_magic_cmd=$lt_file_magic_cmd
9429 # Flag that allows shared libraries with undefined symbols to be built.
9430 allow_undefined_flag=$lt_allow_undefined_flag
9432 # Flag that forces no undefined symbols.
9433 no_undefined_flag=$lt_no_undefined_flag
9435 # Commands used to finish a libtool library installation in a directory.
9436 finish_cmds=$lt_finish_cmds
9438 # Same as above, but a single script fragment to be evaled but not shown.
9439 finish_eval=$lt_finish_eval
9441 # Take the output of nm and produce a listing of raw symbols and C names.
9442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9444 # Transform the output of nm in a proper C declaration
9445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9447 # Transform the output of nm in a C name address pair
9448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9450 # This is the shared library runtime path variable.
9451 runpath_var=$runpath_var
9453 # This is the shared library path variable.
9454 shlibpath_var=$shlibpath_var
9456 # Is shlibpath searched before the hard-coded library search path?
9457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9459 # How to hardcode a shared library path into an executable.
9460 hardcode_action=$hardcode_action
9462 # Whether we should hardcode library paths into libraries.
9463 hardcode_into_libs=$hardcode_into_libs
9465 # Flag to hardcode \$libdir into a binary during linking.
9466 # This must work even if \$libdir does not exist.
9467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9469 # If ld is used when linking, flag to hardcode \$libdir into
9470 # a binary during linking. This must work even if \$libdir does
9472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9474 # Whether we need a single -rpath flag with a separated argument.
9475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9479 hardcode_direct=$hardcode_direct
9481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9483 hardcode_minus_L=$hardcode_minus_L
9485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9486 # the resulting binary.
9487 hardcode_shlibpath_var=$hardcode_shlibpath_var
9489 # Set to yes if building a shared library automatically hardcodes DIR into the library
9490 # and all subsequent libraries and executables linked against it.
9491 hardcode_automatic=$hardcode_automatic
9493 # Variables whose values should be saved in libtool wrapper scripts and
9494 # restored at relink time.
9495 variables_saved_for_relink="$variables_saved_for_relink"
9497 # Whether libtool must link a program against all its dependency libraries.
9498 link_all_deplibs=$link_all_deplibs
9500 # Compile-time system search path for libraries
9501 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9503 # Run-time system search path for libraries
9504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9506 # Fix the shell variable \$srcfile for the compiler.
9507 fix_srcfile_path="$fix_srcfile_path"
9509 # Set to yes if exported symbols are required.
9510 always_export_symbols=$always_export_symbols
9512 # The commands to list exported symbols.
9513 export_symbols_cmds=$lt_export_symbols_cmds
9515 # The commands to extract the exported symbol list from a shared archive.
9516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9518 # Symbols that should not be listed in the preloaded symbols.
9519 exclude_expsyms=$lt_exclude_expsyms
9521 # Symbols that must always be exported.
9522 include_expsyms=$lt_include_expsyms
9524 # ### END LIBTOOL CONFIG
9531 cat <<\EOF >> "$cfgfile"
9533 # AIX sometimes has problems with the GCC collect2 program. For some
9534 # reason, if we set the COLLECT_NAMES environment variable, the problems
9535 # vanish in a puff of smoke.
9536 if test "X${COLLECT_NAMES+set}" != Xset; then
9538 export COLLECT_NAMES
9544 # We use sed instead of cat because bash on DJGPP gets confused if
9545 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9546 # text mode, it properly converts lines to CR/LF. This bash problem
9547 # is reportedly fixed, but why not run on old versions too?
9548 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9550 mv -f "$cfgfile" "$ofile" || \
9551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9555 # If there is no Makefile yet, we rely on a make rule to execute
9556 # `config.status --recheck' to rerun these tests and create the
9557 # libtool script then.
9558 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9559 if test -f "$ltmain_in"; then
9560 test -f Makefile && make "$ltmain"
9566 ac_cpp='$CPP $CPPFLAGS'
9567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9574 # Check whether --with-tags or --without-tags was given.
9575 if test "${with_tags+set}" = set; then
9576 withval="$with_tags"
9580 if test -f "$ltmain" && test -n "$tagnames"; then
9581 if test ! -f "${ofile}"; then
9582 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9583 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9586 if test -z "$LTCC"; then
9587 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9588 if test -z "$LTCC"; then
9589 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9590 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9593 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9597 # Extract list of available tagged configurations in $ofile.
9598 # Note that this assumes the entire list is on one line.
9599 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9602 for tagname in $tagnames; do
9604 # Check whether tagname contains only valid characters
9605 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9607 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9608 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9609 { (exit 1); exit 1; }; }
9613 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9615 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9616 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9617 { (exit 1); exit 1; }; }
9620 # Update the list of available tags.
9621 if test -n "$tagname"; then
9622 echo appending configuration tag \"$tagname\" to $ofile
9626 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9628 ac_cpp='$CXXCPP $CPPFLAGS'
9629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9636 archive_cmds_need_lc_CXX=no
9637 allow_undefined_flag_CXX=
9638 always_export_symbols_CXX=no
9639 archive_expsym_cmds_CXX=
9640 export_dynamic_flag_spec_CXX=
9641 hardcode_direct_CXX=no
9642 hardcode_libdir_flag_spec_CXX=
9643 hardcode_libdir_flag_spec_ld_CXX=
9644 hardcode_libdir_separator_CXX=
9645 hardcode_minus_L_CXX=no
9646 hardcode_automatic_CXX=no
9648 module_expsym_cmds_CXX=
9649 link_all_deplibs_CXX=unknown
9650 old_archive_cmds_CXX=$old_archive_cmds
9651 no_undefined_flag_CXX=
9652 whole_archive_flag_spec_CXX=
9653 enable_shared_with_static_runtimes_CXX=no
9655 # Dependencies to place before and after the object being linked:
9657 postdep_objects_CXX=
9660 compiler_lib_search_path_CXX=
9662 # Source file extension for C++ test sources.
9665 # Object file extension for compiled C++ test sources.
9669 # Code to be used in simple compile tests
9670 lt_simple_compile_test_code="int some_variable = 0;\n"
9672 # Code to be used in simple link tests
9673 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9675 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9677 # If no C compiler was specified, use CC.
9680 # Allow CC to be a program name with arguments.
9684 # Allow CC to be a program name with arguments.
9689 lt_save_with_gnu_ld=$with_gnu_ld
9690 lt_save_path_LD=$lt_cv_path_LD
9691 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9692 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9694 unset lt_cv_prog_gnu_ld
9696 if test -n "${lt_cv_path_LDCXX+set}"; then
9697 lt_cv_path_LD=$lt_cv_path_LDCXX
9701 test -z "${LDCXX+set}" || LD=$LDCXX
9705 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9707 # We don't want -fno-exception wen compiling C++ code, so set the
9708 # no_builtin_flag separately
9709 if test "$GXX" = yes; then
9710 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9712 lt_prog_compiler_no_builtin_flag_CXX=
9715 if test "$GXX" = yes; then
9716 # Set up default GNU C++ configuration
9719 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9720 if test "${with_gnu_ld+set}" = set; then
9721 withval="$with_gnu_ld"
9722 test "$withval" = no || with_gnu_ld=yes
9727 if test "$GCC" = yes; then
9728 # Check if gcc -print-prog-name=ld gives a path.
9729 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9730 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9733 # gcc leaves a trailing carriage return which upsets mingw
9734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9739 # Accept absolute paths.
9741 re_direlt='/[^/][^/]*/\.\./'
9742 # Canonicalize the pathname of ld
9743 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9745 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9747 test -z "$LD" && LD="$ac_prog"
9750 # If it fails, then pretend we aren't using GCC.
9754 # If it is relative, then search for the first ld in PATH.
9758 elif test "$with_gnu_ld" = yes; then
9759 echo "$as_me:$LINENO: checking for GNU ld" >&5
9760 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9762 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9763 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9765 if test "${lt_cv_path_LD+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 if test -z "$LD"; then
9769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9770 for ac_dir in $PATH; do
9772 test -z "$ac_dir" && ac_dir=.
9773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9774 lt_cv_path_LD="$ac_dir/$ac_prog"
9775 # Check to see if the program is GNU ld. I'd rather use --version,
9776 # but apparently some GNU ld's only accept -v.
9777 # Break only if it was the GNU/non-GNU ld that we prefer.
9778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9779 *GNU* | *'with BFD'*)
9780 test "$with_gnu_ld" != no && break
9783 test "$with_gnu_ld" != yes && break
9790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9795 if test -n "$LD"; then
9796 echo "$as_me:$LINENO: result: $LD" >&5
9797 echo "${ECHO_T}$LD" >&6
9799 echo "$as_me:$LINENO: result: no" >&5
9800 echo "${ECHO_T}no" >&6
9802 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9803 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9804 { (exit 1); exit 1; }; }
9805 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9806 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9807 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9811 case `$LD -v 2>&1 </dev/null` in
9812 *GNU* | *'with BFD'*)
9813 lt_cv_prog_gnu_ld=yes
9816 lt_cv_prog_gnu_ld=no
9820 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9821 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9822 with_gnu_ld=$lt_cv_prog_gnu_ld
9826 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9827 # archiving commands below assume that GNU ld is being used.
9828 if test "$with_gnu_ld" = yes; then
9829 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9830 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'
9832 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9835 # If archive_cmds runs LD, not CC, wlarc should be empty
9836 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9837 # investigate it a little bit more. (MM)
9840 # ancient GNU ld didn't support --whole-archive et. al.
9841 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9842 grep 'no-whole-archive' > /dev/null; then
9843 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9845 whole_archive_flag_spec_CXX=
9851 # A generic and very simple default shared library creation
9852 # command for GNU C++ for the case where it uses the native
9853 # linker, instead of GNU ld. If possible, this setting should
9854 # overridden to take advantage of the native linker features on
9855 # the platform it is being used on.
9856 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9859 # Commands to make compiler produce verbose output that lists
9860 # what "hidden" libraries, object files and flags are used when
9861 # linking a shared library.
9862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9870 # PORTME: fill in a description of your system's C++ link characteristics
9871 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9872 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9876 # FIXME: insert proper C++ library support
9880 if test "$host_cpu" = ia64; then
9881 # On IA64, the linker does run time linking by default, so we don't
9882 # have to do anything special.
9883 aix_use_runtimelinking=no
9884 exp_sym_flag='-Bexport'
9887 aix_use_runtimelinking=no
9889 # Test if we are trying to use run time linking or normal
9890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9891 # need to do runtime linking.
9892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9893 for ld_flag in $LDFLAGS; do
9896 aix_use_runtimelinking=yes
9903 exp_sym_flag='-bexport'
9904 no_entry_flag='-bnoentry'
9907 # When large executables or shared objects are built, AIX ld can
9908 # have problems creating the table of contents. If linking a library
9909 # or program results in "error TOC overflow" add -mminimal-toc to
9910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9914 hardcode_direct_CXX=yes
9915 hardcode_libdir_separator_CXX=':'
9916 link_all_deplibs_CXX=yes
9918 if test "$GXX" = yes; then
9919 case $host_os in aix4.012|aix4.012.*)
9920 # We only want to do this on AIX 4.2 and lower, the check
9921 # below for broken collect2 doesn't work under 4.3+
9922 collect2name=`${CC} -print-prog-name=collect2`
9923 if test -f "$collect2name" && \
9924 strings "$collect2name" | grep resolve_lib_name >/dev/null
9926 # We have reworked collect2
9927 hardcode_direct_CXX=yes
9929 # We have old collect2
9930 hardcode_direct_CXX=unsupported
9931 # It fails to find uninstalled libraries when the uninstalled
9932 # path is not listed in the libpath. Setting hardcode_minus_L
9933 # to unsupported forces relinking
9934 hardcode_minus_L_CXX=yes
9935 hardcode_libdir_flag_spec_CXX='-L$libdir'
9936 hardcode_libdir_separator_CXX=
9939 shared_flag='-shared'
9942 if test "$host_cpu" = ia64; then
9943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9944 # chokes on -Wl,-G. The following line is correct:
9947 if test "$aix_use_runtimelinking" = yes; then
9948 shared_flag='${wl}-G'
9950 shared_flag='${wl}-bM:SRE'
9955 # It seems that -bexpall does not export symbols beginning with
9956 # underscore (_), so it is better to generate a list of symbols to export.
9957 always_export_symbols_CXX=yes
9958 if test "$aix_use_runtimelinking" = yes; then
9959 # Warning - without using the other runtime loading flags (-brtl),
9960 # -berok will link without error, but may produce a broken library.
9961 allow_undefined_flag_CXX='-berok'
9962 # Determine the default libpath from the value encoded in an empty executable.
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_cxx_werror_flag"
9988 || test ! -s conftest.err'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10003 # Check for a 64-bit object if we didn't find anything.
10004 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; }
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10011 rm -f conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10015 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10017 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"
10019 if test "$host_cpu" = ia64; then
10020 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10021 allow_undefined_flag_CXX="-z nodefs"
10022 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"
10024 # Determine the default libpath from the value encoded in an empty executable.
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042 (eval $ac_link) 2>conftest.er1
10044 grep -v '^ *+' conftest.er1 >conftest.err
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -z "$ac_cxx_werror_flag"
10050 || test ! -s conftest.err'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10065 # Check for a 64-bit object if we didn't find anything.
10066 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; }
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10073 rm -f conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10077 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10078 # Warning - without using the other run time loading flags,
10079 # -berok will link without error, but may produce a broken library.
10080 no_undefined_flag_CXX=' ${wl}-bernotok'
10081 allow_undefined_flag_CXX=' ${wl}-berok'
10082 # -bexpall does not export symbols beginning with underscore (_)
10083 always_export_symbols_CXX=yes
10084 # Exported symbols can be pulled into shared objects from archives
10085 whole_archive_flag_spec_CXX=' '
10086 archive_cmds_need_lc_CXX=yes
10087 # This is similar to how AIX traditionally builds it's shared libraries.
10088 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'
10093 case $cc_basename in
10095 # FIXME: insert proper C++ library support
10101 cygwin* | mingw* | pw32*)
10102 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10103 # as there is no search path for DLLs.
10104 hardcode_libdir_flag_spec_CXX='-L$libdir'
10105 allow_undefined_flag_CXX=unsupported
10106 always_export_symbols_CXX=no
10107 enable_shared_with_static_runtimes_CXX=yes
10109 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10110 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'
10111 # If the export-symbols file already is a .def file (1st line
10112 # is EXPORTS), use it as is; otherwise, prepend...
10113 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10114 cp $export_symbols $output_objdir/$soname.def;
10116 echo EXPORTS > $output_objdir/$soname.def;
10117 cat $export_symbols >> $output_objdir/$soname.def;
10119 $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'
10125 darwin* | rhapsody*)
10126 if test "$GXX" = yes; then
10127 archive_cmds_need_lc_CXX=no
10129 rhapsody* | darwin1.[012])
10130 allow_undefined_flag_CXX='-undefined suppress'
10133 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10134 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10136 case ${MACOSX_DEPLOYMENT_TARGET} in
10138 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10141 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10147 lt_int_apple_cc_single_mod=no
10148 output_verbose_link_cmd='echo'
10149 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10150 lt_int_apple_cc_single_mod=yes
10152 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10153 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10155 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'
10157 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10159 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10160 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10161 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}'
10163 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}'
10165 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}'
10166 hardcode_direct_CXX=no
10167 hardcode_automatic_CXX=yes
10168 hardcode_shlibpath_var_CXX=unsupported
10169 whole_archive_flag_spec_CXX='-all_load $convenience'
10170 link_all_deplibs_CXX=yes
10177 case $cc_basename in
10179 # FIXME: insert proper C++ library support
10183 # Green Hills C++ Compiler
10184 # FIXME: insert proper C++ library support
10188 # FIXME: insert proper C++ library support
10194 # C++ shared libraries reported to be fairly broken before switch to ELF
10198 archive_cmds_need_lc_CXX=no
10200 freebsd* | kfreebsd*-gnu)
10201 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10208 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10209 hardcode_libdir_separator_CXX=:
10210 export_dynamic_flag_spec_CXX='${wl}-E'
10211 hardcode_direct_CXX=yes
10212 hardcode_minus_L_CXX=yes # Not in the search PATH,
10213 # but as the default
10214 # location of the library.
10216 case $cc_basename in
10218 # FIXME: insert proper C++ library support
10222 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'
10223 # Commands to make compiler produce verbose output that lists
10224 # what "hidden" libraries, object files and flags are used when
10225 # linking a shared library.
10227 # There doesn't appear to be a way to prevent this compiler from
10228 # explicitly linking system object files so we need to strip them
10229 # from the output so that they don't get included in the library
10231 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'
10234 if test "$GXX" = yes; then
10235 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'
10237 # FIXME: insert proper C++ library support
10244 if test $with_gnu_ld = no; then
10245 case "$host_cpu" in
10247 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10248 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10249 hardcode_libdir_separator_CXX=:
10252 hardcode_libdir_flag_spec_CXX='-L$libdir'
10255 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10256 hardcode_libdir_separator_CXX=:
10257 export_dynamic_flag_spec_CXX='${wl}-E'
10261 case "$host_cpu" in
10263 hardcode_direct_CXX=no
10264 hardcode_shlibpath_var_CXX=no
10267 hardcode_direct_CXX=no
10268 hardcode_shlibpath_var_CXX=no
10269 hardcode_minus_L_CXX=yes # Not in the search PATH,
10270 # but as the default
10271 # location of the library.
10274 hardcode_direct_CXX=yes
10275 hardcode_minus_L_CXX=yes # Not in the search PATH,
10276 # but as the default
10277 # location of the library.
10281 case $cc_basename in
10283 # FIXME: insert proper C++ library support
10287 case "$host_cpu" in
10289 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10292 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10295 # Commands to make compiler produce verbose output that lists
10296 # what "hidden" libraries, object files and flags are used when
10297 # linking a shared library.
10299 # There doesn't appear to be a way to prevent this compiler from
10300 # explicitly linking system object files so we need to strip them
10301 # from the output so that they don't get included in the library
10303 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'
10306 if test "$GXX" = yes; then
10307 if test $with_gnu_ld = no; then
10308 case "$host_cpu" in
10310 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10313 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'
10318 # FIXME: insert proper C++ library support
10325 case $cc_basename in
10328 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'
10330 # Archives containing C++ object files must be created using
10331 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10332 # necessary to make sure instantiated templates are included
10334 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10337 if test "$GXX" = yes; then
10338 if test "$with_gnu_ld" = no; then
10339 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'
10341 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'
10344 link_all_deplibs_CXX=yes
10347 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10348 hardcode_libdir_separator_CXX=:
10351 case $cc_basename in
10353 # Kuck and Associates, Inc. (KAI) C++ Compiler
10355 # KCC will only create a shared library if the output file
10356 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10357 # to its proper name (with version) after linking.
10358 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'
10359 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'
10360 # Commands to make compiler produce verbose output that lists
10361 # what "hidden" libraries, object files and flags are used when
10362 # linking a shared library.
10364 # There doesn't appear to be a way to prevent this compiler from
10365 # explicitly linking system object files so we need to strip them
10366 # from the output so that they don't get included in the library
10368 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'
10370 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10373 # Archives containing C++ object files must be created using
10374 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10375 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10380 archive_cmds_need_lc_CXX=no
10381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10382 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'
10383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10385 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10389 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390 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'
10392 runpath_var=LD_RUN_PATH
10393 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10394 hardcode_libdir_separator_CXX=:
10396 # Commands to make compiler produce verbose output that lists
10397 # what "hidden" libraries, object files and flags are used when
10398 # linking a shared library.
10400 # There doesn't appear to be a way to prevent this compiler from
10401 # explicitly linking system object files so we need to strip them
10402 # from the output so that they don't get included in the library
10404 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'
10409 # FIXME: insert proper C++ library support
10413 # FIXME: insert proper C++ library support
10417 case $cc_basename in
10419 # FIXME: insert proper C++ library support
10423 # FIXME: insert proper C++ library support
10429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10430 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10432 hardcode_libdir_flag_spec_CXX='-R$libdir'
10433 hardcode_direct_CXX=yes
10434 hardcode_shlibpath_var_CXX=no
10436 # Workaround some broken pre-1.5 toolchains
10437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10440 case $cc_basename in
10442 # Kuck and Associates, Inc. (KAI) C++ Compiler
10444 # KCC will only create a shared library if the output file
10445 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10446 # to its proper name (with version) after linking.
10447 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'
10449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10450 hardcode_libdir_separator_CXX=:
10452 # Archives containing C++ object files must be created using
10453 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10454 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10458 # Rational C++ 2.4.1
10459 # FIXME: insert proper C++ library support
10463 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10464 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'
10466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10467 hardcode_libdir_separator_CXX=:
10469 # Commands to make compiler produce verbose output that lists
10470 # what "hidden" libraries, object files and flags are used when
10471 # linking a shared library.
10473 # There doesn't appear to be a way to prevent this compiler from
10474 # explicitly linking system object files so we need to strip them
10475 # from the output so that they don't get included in the library
10477 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'
10480 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10481 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10482 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'
10484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10485 hardcode_libdir_separator_CXX=:
10487 # Commands to make compiler produce verbose output that lists
10488 # what "hidden" libraries, object files and flags are used when
10489 # linking a shared library.
10490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10493 # FIXME: insert proper C++ library support
10500 case $cc_basename in
10502 # Kuck and Associates, Inc. (KAI) C++ Compiler
10504 # KCC will only create a shared library if the output file
10505 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10506 # to its proper name (with version) after linking.
10507 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'
10509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10510 hardcode_libdir_separator_CXX=:
10512 # Archives containing C++ object files must be created using
10513 # the KAI C++ compiler.
10514 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10517 # Rational C++ 2.4.1
10518 # FIXME: insert proper C++ library support
10522 allow_undefined_flag_CXX=' -expect_unresolved \*'
10523 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'
10524 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10525 echo "-hidden">> $lib.exp~
10526 $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~
10529 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10530 hardcode_libdir_separator_CXX=:
10532 # Commands to make compiler produce verbose output that lists
10533 # what "hidden" libraries, object files and flags are used when
10534 # linking a shared library.
10536 # There doesn't appear to be a way to prevent this compiler from
10537 # explicitly linking system object files so we need to strip them
10538 # from the output so that they don't get included in the library
10540 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'
10543 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10544 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10545 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'
10547 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10548 hardcode_libdir_separator_CXX=:
10550 # Commands to make compiler produce verbose output that lists
10551 # what "hidden" libraries, object files and flags are used when
10552 # linking a shared library.
10553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10556 # FIXME: insert proper C++ library support
10563 # FIXME: insert proper C++ library support
10567 archive_cmds_need_lc_CXX=no
10568 case $cc_basename in
10570 # FIXME: insert proper C++ library support
10574 # FIXME: insert proper C++ library support
10580 case $cc_basename in
10583 # FIXME: insert proper C++ library support
10588 # FIXME: insert proper C++ library support
10592 # FIXME: insert proper C++ library support
10598 case $cc_basename in
10600 # Sun C++ 4.2, 5.x and Centerline C++
10601 no_undefined_flag_CXX=' -zdefs'
10602 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10604 $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'
10606 hardcode_libdir_flag_spec_CXX='-R$libdir'
10607 hardcode_shlibpath_var_CXX=no
10609 solaris2.0-5 | solaris2.0-5.*) ;;
10611 # The C++ compiler is used as linker so we must use $wl
10612 # flag to pass the commands to the underlying system
10614 # Supported since Solaris 2.6 (maybe 2.5.1?)
10615 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10618 link_all_deplibs_CXX=yes
10620 # Commands to make compiler produce verbose output that lists
10621 # what "hidden" libraries, object files and flags are used when
10622 # linking a shared library.
10624 # There doesn't appear to be a way to prevent this compiler from
10625 # explicitly linking system object files so we need to strip them
10626 # from the output so that they don't get included in the library
10628 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'
10630 # Archives containing C++ object files must be created using
10631 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10632 # necessary to make sure instantiated templates are included
10634 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10637 # Green Hills C++ Compiler
10638 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10640 # The C++ compiler must be used to create the archive.
10641 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10644 # GNU C++ compiler with Solaris linker
10645 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10646 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10647 if $CC --version | grep -v '^2\.7' > /dev/null; then
10648 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10649 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10650 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10652 # Commands to make compiler produce verbose output that lists
10653 # what "hidden" libraries, object files and flags are used when
10654 # linking a shared library.
10655 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10657 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10659 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10660 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10661 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10663 # Commands to make compiler produce verbose output that lists
10664 # what "hidden" libraries, object files and flags are used when
10665 # linking a shared library.
10666 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10669 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10674 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10675 archive_cmds_need_lc_CXX=no
10678 case $cc_basename in
10680 # NonStop-UX NCC 3.20
10681 # FIXME: insert proper C++ library support
10685 # FIXME: insert proper C++ library support
10691 # FIXME: insert proper C++ library support
10695 # FIXME: insert proper C++ library support
10699 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10700 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10701 test "$ld_shlibs_CXX" = no && can_build_shared=no
10707 cat > conftest.$ac_ext <<EOF
10711 Foo (void) { a = 0; }
10717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718 (eval $ac_compile) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; then
10722 # Parse the compiler output and extract the necessary
10723 # objects, libraries and library flags.
10725 # Sentinel used to keep track of whether or not we are before
10726 # the conftest object file.
10727 pre_test_object_deps_done=no
10729 # The `*' in the case matches for architectures that use `case' in
10730 # $output_verbose_cmd can trigger glob expansion during the loop
10731 # eval without this substitution.
10732 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10734 for p in `eval $output_verbose_link_cmd`; do
10738 # Some compilers place space between "-{L,R}" and the path.
10739 # Remove the space.
10740 if test $p = "-L" \
10741 || test $p = "-R"; then
10748 if test "$pre_test_object_deps_done" = no; then
10751 # Internal compiler library paths should come after those
10752 # provided the user. The postdeps already come after the
10753 # user supplied libs so there is no need to process them.
10754 if test -z "$compiler_lib_search_path_CXX"; then
10755 compiler_lib_search_path_CXX="${prev}${p}"
10757 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10760 # The "-l" case would never come before the object being
10761 # linked, so don't bother handling this case.
10764 if test -z "$postdeps_CXX"; then
10765 postdeps_CXX="${prev}${p}"
10767 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10773 # This assumes that the test object file only shows up
10774 # once in the compiler output.
10775 if test "$p" = "conftest.$objext"; then
10776 pre_test_object_deps_done=yes
10780 if test "$pre_test_object_deps_done" = no; then
10781 if test -z "$predep_objects_CXX"; then
10782 predep_objects_CXX="$p"
10784 predep_objects_CXX="$predep_objects_CXX $p"
10787 if test -z "$postdep_objects_CXX"; then
10788 postdep_objects_CXX="$p"
10790 postdep_objects_CXX="$postdep_objects_CXX $p"
10795 *) ;; # Ignore the rest.
10803 echo "libtool.m4: error: problem compiling CXX test program"
10806 $rm -f confest.$objext
10808 case " $postdeps_CXX " in
10809 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10812 lt_prog_compiler_wl_CXX=
10813 lt_prog_compiler_pic_CXX=
10814 lt_prog_compiler_static_CXX=
10816 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10817 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10819 # C++ specific cases for pic, static, wl, etc.
10820 if test "$GXX" = yes; then
10821 lt_prog_compiler_wl_CXX='-Wl,'
10822 lt_prog_compiler_static_CXX='-static'
10826 # All AIX code is PIC.
10827 if test "$host_cpu" = ia64; then
10828 # AIX 5 now supports IA64 processor
10829 lt_prog_compiler_static_CXX='-Bstatic'
10833 # FIXME: we need at least 68020 code to build shared libraries, but
10834 # adding the `-m68020' flag to GCC prevents building anything better,
10836 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10838 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10839 # PIC is the default for these OSes.
10841 mingw* | os2* | pw32*)
10842 # This hack is so that the source file can tell whether it is being
10843 # built for inclusion in a dll (and should export symbols for example).
10844 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10846 darwin* | rhapsody*)
10847 # PIC is the default on this platform
10848 # Common symbols not allowed in MH_DYLIB files
10849 lt_prog_compiler_pic_CXX='-fno-common'
10852 # DJGPP does not support shared libraries at all
10853 lt_prog_compiler_pic_CXX=
10856 if test -d /usr/nec; then
10857 lt_prog_compiler_pic_CXX=-Kconform_pic
10861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10862 # not for PA HP-UX.
10863 case "$host_cpu" in
10867 lt_prog_compiler_pic_CXX='-fPIC'
10872 lt_prog_compiler_pic_CXX='-fPIC'
10878 # All AIX code is PIC.
10879 if test "$host_cpu" = ia64; then
10880 # AIX 5 now supports IA64 processor
10881 lt_prog_compiler_static_CXX='-Bstatic'
10883 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10887 case $cc_basename in
10889 # Green Hills C++ Compiler
10890 # _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"
10895 case $cc_basename in
10897 lt_prog_compiler_pic_CXX='-KPIC'
10900 # Green Hills C++ Compiler
10901 lt_prog_compiler_pic_CXX='-pic'
10907 freebsd* | kfreebsd*-gnu)
10908 # FreeBSD uses GNU C++
10910 hpux9* | hpux10* | hpux11*)
10911 case $cc_basename in
10913 lt_prog_compiler_wl_CXX='-Wl,'
10914 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10915 if test "$host_cpu" != ia64; then
10916 lt_prog_compiler_pic_CXX='+Z'
10920 lt_prog_compiler_wl_CXX='-Wl,'
10921 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10922 case "$host_cpu" in
10927 lt_prog_compiler_pic_CXX='+Z'
10935 irix5* | irix6* | nonstopux*)
10936 case $cc_basename in
10938 lt_prog_compiler_wl_CXX='-Wl,'
10939 lt_prog_compiler_static_CXX='-non_shared'
10940 # CC pic flag -KPIC is the default.
10947 case $cc_basename in
10950 lt_prog_compiler_wl_CXX='--backend -Wl,'
10951 lt_prog_compiler_pic_CXX='-fPIC'
10955 lt_prog_compiler_wl_CXX='-Wl,'
10956 lt_prog_compiler_pic_CXX='-KPIC'
10957 lt_prog_compiler_static_CXX='-static'
10961 # Make sure the PIC flag is empty. It appears that all Alpha
10962 # Linux and Compaq Tru64 Unix objects are PIC.
10963 lt_prog_compiler_pic_CXX=
10964 lt_prog_compiler_static_CXX='-non_shared'
10975 case $cc_basename in
10977 lt_prog_compiler_pic_CXX='-W c,exportall'
10985 osf3* | osf4* | osf5*)
10986 case $cc_basename in
10988 lt_prog_compiler_wl_CXX='--backend -Wl,'
10991 # Rational C++ 2.4.1
10992 lt_prog_compiler_pic_CXX='-pic'
10995 # Digital/Compaq C++
10996 lt_prog_compiler_wl_CXX='-Wl,'
10997 # Make sure the PIC flag is empty. It appears that all Alpha
10998 # Linux and Compaq Tru64 Unix objects are PIC.
10999 lt_prog_compiler_pic_CXX=
11000 lt_prog_compiler_static_CXX='-non_shared'
11009 case $cc_basename in
11011 lt_prog_compiler_pic_CXX='-fPIC'
11018 case $cc_basename in
11020 # Sun C++ 4.2, 5.x and Centerline C++
11021 lt_prog_compiler_pic_CXX='-KPIC'
11022 lt_prog_compiler_static_CXX='-Bstatic'
11023 lt_prog_compiler_wl_CXX='-Qoption ld '
11026 # Green Hills C++ Compiler
11027 lt_prog_compiler_pic_CXX='-PIC'
11034 case $cc_basename in
11037 lt_prog_compiler_pic_CXX='-pic'
11038 lt_prog_compiler_static_CXX='-Bstatic'
11042 lt_prog_compiler_pic_CXX='-pic'
11049 case $cc_basename in
11051 # NonStop-UX NCC 3.20
11052 lt_prog_compiler_pic_CXX='-KPIC'
11063 lt_prog_compiler_can_build_shared_CXX=no
11068 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11069 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11072 # Check to make sure the PIC flag actually works.
11074 if test -n "$lt_prog_compiler_pic_CXX"; then
11076 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11077 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11078 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 lt_prog_compiler_pic_works_CXX=no
11082 ac_outfile=conftest.$ac_objext
11083 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11084 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11085 # Insert the option either (1) after the last *FLAGS variable, or
11086 # (2) before a word containing "conftest.", or (3) at the end.
11087 # Note that $ac_compile itself does not contain backslashes and begins
11088 # with a dollar sign (not a hyphen), so the echo should work correctly.
11089 # The option is referenced via a variable to avoid confusing sed.
11090 lt_compile=`echo "$ac_compile" | $SED \
11091 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11093 -e 's:$: $lt_compiler_flag:'`
11094 (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
11095 (eval "$lt_compile" 2>conftest.err)
11097 cat conftest.err >&5
11098 echo "$as_me:11098: \$? = $ac_status" >&5
11099 if (exit $ac_status) && test -s "$ac_outfile"; then
11100 # The compiler can only warn and ignore the option if not recognized
11101 # So say no if there are warnings
11102 if test ! -s conftest.err; then
11103 lt_prog_compiler_pic_works_CXX=yes
11109 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11110 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11112 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11113 case $lt_prog_compiler_pic_CXX in
11115 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11118 lt_prog_compiler_pic_CXX=
11119 lt_prog_compiler_can_build_shared_CXX=no
11124 # For platforms which do not support PIC, -DPIC is meaningless:
11126 lt_prog_compiler_pic_CXX=
11129 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11133 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11134 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11135 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 lt_cv_prog_compiler_c_o_CXX=no
11139 $rm -r conftest 2>/dev/null
11143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11145 lt_compiler_flag="-o out/conftest2.$ac_objext"
11146 # Insert the option either (1) after the last *FLAGS variable, or
11147 # (2) before a word containing "conftest.", or (3) at the end.
11148 # Note that $ac_compile itself does not contain backslashes and begins
11149 # with a dollar sign (not a hyphen), so the echo should work correctly.
11150 lt_compile=`echo "$ac_compile" | $SED \
11151 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11153 -e 's:$: $lt_compiler_flag:'`
11154 (eval echo "\"\$as_me:11154: $lt_compile\"" >&5)
11155 (eval "$lt_compile" 2>out/conftest.err)
11157 cat out/conftest.err >&5
11158 echo "$as_me:11158: \$? = $ac_status" >&5
11159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11161 # The compiler can only warn and ignore the option if not recognized
11162 # So say no if there are warnings
11163 if test ! -s out/conftest.err; then
11164 lt_cv_prog_compiler_c_o_CXX=yes
11169 # SGI C++ compiler will create directory out/ii_files/ for
11170 # template instantiation
11171 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11172 $rm out/* && rmdir out
11178 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11179 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11182 hard_links="nottested"
11183 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11184 # do not overwrite the value of need_locks provided by the user
11185 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11186 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11191 ln conftest.a conftest.b 2>&5 || hard_links=no
11192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11193 echo "$as_me:$LINENO: result: $hard_links" >&5
11194 echo "${ECHO_T}$hard_links" >&6
11195 if test "$hard_links" = no; then
11196 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11197 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11204 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11205 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11207 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11210 # If we're using GNU nm, then we don't want the "-C" option.
11211 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11212 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11213 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'
11215 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'
11219 export_symbols_cmds_CXX="$ltdll_cmds"
11222 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11225 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11229 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11230 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11231 test "$ld_shlibs_CXX" = no && can_build_shared=no
11233 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11234 if test "$GCC" = yes; then
11235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11239 # Do we need to explicitly link libc?
11241 case "x$archive_cmds_need_lc_CXX" in
11243 # Assume -lc should be added
11244 archive_cmds_need_lc_CXX=yes
11246 if test "$enable_shared" = yes && test "$GCC" = yes; then
11247 case $archive_cmds_CXX in
11249 # FIXME: we may have to deal with multi-command sequences.
11252 # Test whether the compiler implicitly links with -lc since on some
11253 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11254 # to ld, don't add -lc before -lgcc.
11255 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11256 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } 2>conftest.err; then
11267 libobjs=conftest.$ac_objext
11269 wl=$lt_prog_compiler_wl_CXX
11275 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11276 allow_undefined_flag_CXX=
11277 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11278 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }
11283 archive_cmds_need_lc_CXX=no
11285 archive_cmds_need_lc_CXX=yes
11287 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11289 cat conftest.err 1>&5
11292 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11293 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11300 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11301 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11302 library_names_spec=
11303 libname_spec='lib$name'
11307 postuninstall_cmds=
11311 shlibpath_overrides_runpath=unknown
11313 dynamic_linker="$host_os ld.so"
11314 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11315 if test "$GCC" = yes; then
11316 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11317 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11318 # if the path contains ";" then we assume it to be the separator
11319 # otherwise default to the standard path separator (i.e. ":") - it is
11320 # assumed that no part of a normal pathname contains ";" but that should
11321 # okay in the real world where ";" in dirpaths is itself problematic.
11322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11329 need_lib_prefix=unknown
11330 hardcode_into_libs=no
11332 # when you set need_version to no, make sure it does not cause -set_version
11333 # flags to be left without arguments
11334 need_version=unknown
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11340 shlibpath_var=LIBPATH
11342 # AIX 3 has no versioning support, so we append a major version to the name.
11343 soname_spec='${libname}${release}${shared_ext}$major'
11350 hardcode_into_libs=yes
11351 if test "$host_cpu" = ia64; then
11352 # AIX 5 supports IA64
11353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11354 shlibpath_var=LD_LIBRARY_PATH
11356 # With GCC up to 2.95.x, collect2 would create an import file
11357 # for dependence libraries. The import file would start with
11358 # the line `#! .'. This would cause the generated library to
11359 # depend on `.', always an invalid library. This was fixed in
11360 # development snapshots of GCC prior to 3.0.
11362 aix4 | aix4.[01] | aix4.[01].*)
11363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11365 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11368 can_build_shared=no
11372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11373 # soname into executable. Probably we can add versioning support to
11374 # collect2, so additional links can be useful in future.
11375 if test "$aix_use_runtimelinking" = yes; then
11376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11377 # instead of lib<name>.a to let people know that these are not
11378 # typical AIX shared libraries.
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 # We preserve .a as extension for shared libraries through AIX4.2
11382 # and later when we are not doing run time linking.
11383 library_names_spec='${libname}${release}.a $libname.a'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11386 shlibpath_var=LIBPATH
11391 library_names_spec='$libname.ixlibrary $libname.a'
11392 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11393 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'
11397 library_names_spec='${libname}${shared_ext}'
11398 dynamic_linker="$host_os ld.so"
11399 shlibpath_var=LIBRARY_PATH
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 soname_spec='${libname}${release}${shared_ext}$major'
11407 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11410 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11411 # the default ld.so.conf also contains /usr/contrib/lib and
11412 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11413 # libtool to hard-code these into programs
11416 cygwin* | mingw* | pw32*)
11417 version_type=windows
11422 case $GCC,$host_os in
11423 yes,cygwin* | yes,mingw* | yes,pw32*)
11424 library_names_spec='$libname.dll.a'
11425 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11426 postinstall_cmds='base_file=`basename \${file}`~
11427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11428 dldir=$destdir/`dirname \$dlpath`~
11429 test -d \$dldir || mkdir -p \$dldir~
11430 $install_prog $dir/$dlname \$dldir/$dlname'
11431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11432 dlpath=$dir/\$dldll~
11434 shlibpath_overrides_runpath=yes
11438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11440 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11443 # MinGW DLLs use traditional 'lib' prefix
11444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11445 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11446 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11447 # It is most probably a Windows format PATH printed by
11448 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11449 # path with ; separators, and with drive letters. We can handle the
11450 # drive letters (cygwin fileutils understands them), so leave them,
11451 # especially as we might pass files found there to a mingw objdump,
11452 # which wouldn't understand a cygwinified path. Ahh.
11453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11459 # pw32 DLLs use 'pw' prefix rather than 'lib'
11460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11469 dynamic_linker='Win32 ld.exe'
11470 # FIXME: first we should search . and the directory the executable is in
11474 darwin* | rhapsody*)
11475 dynamic_linker="$host_os dyld"
11476 version_type=darwin
11479 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11480 soname_spec='${libname}${release}${major}$shared_ext'
11481 shlibpath_overrides_runpath=yes
11482 shlibpath_var=DYLD_LIBRARY_PATH
11483 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11484 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11485 if test "$GCC" = yes; then
11486 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"`
11488 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11490 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 shlibpath_var=LD_LIBRARY_PATH
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=no
11514 hardcode_into_libs=yes
11515 dynamic_linker='GNU ld.so'
11519 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11520 version_type=freebsd-$objformat
11521 case $version_type in
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11532 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11537 freebsd3.01* | freebsdelf3.01*)
11538 shlibpath_overrides_runpath=yes
11539 hardcode_into_libs=yes
11542 shlibpath_overrides_runpath=no
11543 hardcode_into_libs=yes
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 hardcode_into_libs=yes
11558 hpux9* | hpux10* | hpux11*)
11559 # Give a soname corresponding to the major version so that dld.sl refuses to
11560 # link against other versions.
11564 case "$host_cpu" in
11567 hardcode_into_libs=yes
11568 dynamic_linker="$host_os dld.so"
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 soname_spec='${libname}${release}${shared_ext}$major'
11573 if test "X$HPUX_IA64_MODE" = X32; then
11574 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11582 hardcode_into_libs=yes
11583 dynamic_linker="$host_os dld.sl"
11584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11593 dynamic_linker="$host_os dld.sl"
11594 shlibpath_var=SHLIB_PATH
11595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11600 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11601 postinstall_cmds='chmod 555 $lib'
11604 irix5* | irix6* | nonstopux*)
11606 nonstopux*) version_type=nonstopux ;;
11608 if test "$lt_cv_prog_gnu_ld" = yes; then
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11619 irix5* | nonstopux*)
11620 libsuff= shlibsuff=
11623 case $LD in # libtool.m4 will add one of these switches to LD
11624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11625 libsuff= shlibsuff= libmagic=32-bit;;
11626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11627 libsuff=32 shlibsuff=N32 libmagic=N32;;
11628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11630 *) libsuff= shlibsuff= libmagic=never-match;;
11634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11635 shlibpath_overrides_runpath=no
11636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11638 hardcode_into_libs=yes
11641 # No shared lib support for Linux oldld, aout, or coff.
11642 linux*oldld* | linux*aout* | linux*coff*)
11646 # This must be Linux ELF.
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=no
11656 # This implies no fast_install, which is unacceptable.
11657 # Some rework will be needed to allow for fast_install
11658 # before this can be enabled.
11659 hardcode_into_libs=yes
11661 # find out which ABI we are using
11663 case "$host_cpu" in
11664 x86_64*|s390x*|powerpc64*)
11665 echo '#line 11665 "configure"' > conftest.$ac_ext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11667 (eval $ac_compile) 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; then
11671 case `/usr/bin/file conftest.$ac_objext` in
11674 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11682 # Append ld.so.conf contents to the search path
11683 if test -f /etc/ld.so.conf; then
11684 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11685 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11688 # We used to test for /lib/ld.so.1 and disable shared libraries on
11689 # powerpc, because MkLinux only supported shared libraries with the
11690 # GNU dynamic linker. Since this was broken with cross compilers,
11691 # most powerpc-linux boxes support dynamic linking these days and
11692 # people can always --disable-shared, the test was removed, and we
11693 # assume the GNU/Linux dynamic linker is in use.
11694 dynamic_linker='GNU/Linux ld.so'
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
11705 hardcode_into_libs=yes
11706 dynamic_linker='GNU ld.so'
11713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11716 dynamic_linker='NetBSD (a.out) ld.so'
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11719 soname_spec='${libname}${release}${shared_ext}$major'
11720 dynamic_linker='NetBSD ld.elf_so'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 shlibpath_overrides_runpath=yes
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11753 openbsd2.[89] | openbsd2.[89].*)
11754 shlibpath_overrides_runpath=no
11757 shlibpath_overrides_runpath=yes
11761 shlibpath_overrides_runpath=yes
11766 libname_spec='$name'
11769 library_names_spec='$libname${shared_ext} $libname.a'
11770 dynamic_linker='OS/2 ld.exe'
11771 shlibpath_var=LIBPATH
11774 osf3* | osf4* | osf5*)
11778 soname_spec='${libname}${release}${shared_ext}$major'
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11782 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11787 soname_spec='${libname}${release}${shared_ext}$major'
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 shlibpath_var=LD_LIBRARY_PATH
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes
11800 hardcode_into_libs=yes
11801 # ldd complains unless libraries are executable
11802 postinstall_cmds='chmod +x $lib'
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11808 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=yes
11811 if test "$with_gnu_ld" = yes; then
11817 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 case $host_vendor in
11824 shlibpath_overrides_runpath=no
11826 export_dynamic_flag_spec='${wl}-Blargedynsym'
11827 runpath_var=LD_RUN_PATH
11835 shlibpath_overrides_runpath=no
11836 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11842 if test -d /usr/nec ;then
11844 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11845 soname_spec='$libname${shared_ext}.$major'
11846 shlibpath_var=LD_LIBRARY_PATH
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 shlibpath_var=LD_LIBRARY_PATH
11861 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11862 echo "${ECHO_T}$dynamic_linker" >&6
11863 test "$dynamic_linker" = no && can_build_shared=no
11865 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11866 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11867 hardcode_action_CXX=
11868 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11869 test -n "$runpath_var CXX" || \
11870 test "X$hardcode_automatic_CXX"="Xyes" ; then
11872 # We can hardcode non-existant directories.
11873 if test "$hardcode_direct_CXX" != no &&
11874 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11875 # have to relink, otherwise we might link with an installed library
11876 # when we should be linking with a yet-to-be-installed one
11877 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11878 test "$hardcode_minus_L_CXX" != no; then
11879 # Linking always hardcodes the temporary library directory.
11880 hardcode_action_CXX=relink
11882 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11883 hardcode_action_CXX=immediate
11886 # We cannot hardcode anything, or else we can only hardcode existing
11888 hardcode_action_CXX=unsupported
11890 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11891 echo "${ECHO_T}$hardcode_action_CXX" >&6
11893 if test "$hardcode_action_CXX" = relink; then
11894 # Fast installation is not supported
11895 enable_fast_install=no
11896 elif test "$shlibpath_overrides_runpath" = yes ||
11897 test "$enable_shared" = no; then
11898 # Fast installation is not necessary
11899 enable_fast_install=needless
11904 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11905 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11906 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11909 echo "$as_me:$LINENO: result: yes" >&5
11910 echo "${ECHO_T}yes" >&6
11912 # FIXME - insert some real tests, host_os isn't really good enough
11915 if test -n "$STRIP" ; then
11916 striplib="$STRIP -x"
11917 echo "$as_me:$LINENO: result: yes" >&5
11918 echo "${ECHO_T}yes" >&6
11920 echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6
11925 echo "$as_me:$LINENO: result: no" >&5
11926 echo "${ECHO_T}no" >&6
11931 if test "x$enable_dlopen" != xyes; then
11932 enable_dlopen=unknown
11933 enable_dlopen_self=unknown
11934 enable_dlopen_self_static=unknown
11941 lt_cv_dlopen="load_add_on"
11943 lt_cv_dlopen_self=yes
11947 lt_cv_dlopen="LoadLibrary"
11952 lt_cv_dlopen="dlopen"
11957 # if libdl is installed we need to link against it
11958 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11959 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 ac_check_lib_save_LIBS=$LIBS
11965 cat >conftest.$ac_ext <<_ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 /* Override any gcc2 internal prototype to avoid an error. */
11976 /* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -z "$ac_cxx_werror_flag"
11997 || test ! -s conftest.err'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } &&
12003 { ac_try='test -s conftest$ac_exeext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_lib_dl_dlopen=yes
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12014 ac_cv_lib_dl_dlopen=no
12016 rm -f conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12020 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12022 if test $ac_cv_lib_dl_dlopen = yes; then
12023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12026 lt_cv_dlopen="dyld"
12028 lt_cv_dlopen_self=yes
12035 echo "$as_me:$LINENO: checking for shl_load" >&5
12036 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12037 if test "${ac_cv_func_shl_load+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12048 #define shl_load innocuous_shl_load
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char shl_load (); below.
12052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053 <limits.h> exists even on freestanding compilers. */
12056 # include <limits.h>
12058 # include <assert.h>
12063 /* Override any gcc2 internal prototype to avoid an error. */
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12071 /* The GNU C library defines this for functions which it implements
12072 to always fail with ENOSYS. Some functions are actually named
12073 something starting with __ and the normal name is an alias. */
12074 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12077 char (*f) () = shl_load;
12086 return f != shl_load;
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>conftest.er1
12095 grep -v '^ *+' conftest.er1 >conftest.err
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -z "$ac_cxx_werror_flag"
12101 || test ! -s conftest.err'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; } &&
12107 { ac_try='test -s conftest$ac_exeext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 ac_cv_func_shl_load=yes
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 ac_cv_func_shl_load=no
12120 rm -f conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12123 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12124 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12125 if test $ac_cv_func_shl_load = yes; then
12126 lt_cv_dlopen="shl_load"
12128 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12129 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12130 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 ac_check_lib_save_LIBS=$LIBS
12135 cat >conftest.$ac_ext <<_ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12142 /* Override any gcc2 internal prototype to avoid an error. */
12146 /* We use char because int might match the return type of a gcc2
12147 builtin and then its argument prototype would still apply. */
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159 (eval $ac_link) 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_cxx_werror_flag"
12167 || test ! -s conftest.err'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 ac_cv_lib_dld_shl_load=yes
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_cv_lib_dld_shl_load=no
12186 rm -f conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12190 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12191 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12192 if test $ac_cv_lib_dld_shl_load = yes; then
12193 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12195 echo "$as_me:$LINENO: checking for dlopen" >&5
12196 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12197 if test "${ac_cv_func_dlopen+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 cat >conftest.$ac_ext <<_ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12208 #define dlopen innocuous_dlopen
12210 /* System header to define __stub macros and hopefully few prototypes,
12211 which can conflict with char dlopen (); below.
12212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12213 <limits.h> exists even on freestanding compilers. */
12216 # include <limits.h>
12218 # include <assert.h>
12223 /* Override any gcc2 internal prototype to avoid an error. */
12228 /* We use char because int might match the return type of a gcc2
12229 builtin and then its argument prototype would still apply. */
12231 /* The GNU C library defines this for functions which it implements
12232 to always fail with ENOSYS. Some functions are actually named
12233 something starting with __ and the normal name is an alias. */
12234 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12237 char (*f) () = dlopen;
12246 return f != dlopen;
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253 (eval $ac_link) 2>conftest.er1
12255 grep -v '^ *+' conftest.er1 >conftest.err
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_cxx_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_func_dlopen=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ac_cv_func_dlopen=no
12280 rm -f conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12283 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12284 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12285 if test $ac_cv_func_dlopen = yes; then
12286 lt_cv_dlopen="dlopen"
12288 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12289 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 ac_check_lib_save_LIBS=$LIBS
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12302 /* Override any gcc2 internal prototype to avoid an error. */
12306 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_cxx_werror_flag"
12327 || test ! -s conftest.err'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest$ac_exeext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_lib_dl_dlopen=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_cv_lib_dl_dlopen=no
12346 rm -f conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12350 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12351 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12352 if test $ac_cv_lib_dl_dlopen = yes; then
12353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12355 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12356 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12357 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-lsvld $LIBS"
12362 cat >conftest.$ac_ext <<_ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12369 /* Override any gcc2 internal prototype to avoid an error. */
12373 /* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12384 rm -f conftest.$ac_objext conftest$ac_exeext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386 (eval $ac_link) 2>conftest.er1
12388 grep -v '^ *+' conftest.er1 >conftest.err
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_cxx_werror_flag"
12394 || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_lib_svld_dlopen=yes
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_cv_lib_svld_dlopen=no
12413 rm -f conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12417 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12418 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12419 if test $ac_cv_lib_svld_dlopen = yes; then
12420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12422 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12423 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12424 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 ac_check_lib_save_LIBS=$LIBS
12429 cat >conftest.$ac_ext <<_ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12436 /* Override any gcc2 internal prototype to avoid an error. */
12440 /* We use char because int might match the return type of a gcc2
12441 builtin and then its argument prototype would still apply. */
12451 rm -f conftest.$ac_objext conftest$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_cxx_werror_flag"
12461 || test ! -s conftest.err'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest$ac_exeext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_lib_dld_dld_link=yes
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 ac_cv_lib_dld_dld_link=no
12480 rm -f conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12484 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12485 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12486 if test $ac_cv_lib_dld_dld_link = yes; then
12487 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12508 if test "x$lt_cv_dlopen" != xno; then
12514 case $lt_cv_dlopen in
12516 save_CPPFLAGS="$CPPFLAGS"
12517 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12519 save_LDFLAGS="$LDFLAGS"
12520 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12523 LIBS="$lt_cv_dlopen_libs $LIBS"
12525 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12526 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12527 if test "${lt_cv_dlopen_self+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 if test "$cross_compiling" = yes; then :
12531 lt_cv_dlopen_self=cross
12533 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12534 lt_status=$lt_dlunknown
12535 cat > conftest.$ac_ext <<EOF
12536 #line 12536 "configure"
12537 #include "confdefs.h"
12546 # define LT_DLGLOBAL RTLD_GLOBAL
12549 # define LT_DLGLOBAL DL_GLOBAL
12551 # define LT_DLGLOBAL 0
12555 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12556 find out it does not work in some platform. */
12557 #ifndef LT_DLLAZY_OR_NOW
12559 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12562 # define LT_DLLAZY_OR_NOW DL_LAZY
12565 # define LT_DLLAZY_OR_NOW RTLD_NOW
12568 # define LT_DLLAZY_OR_NOW DL_NOW
12570 # define LT_DLLAZY_OR_NOW 0
12578 extern "C" void exit (int);
12581 void fnord() { int i=42;}
12584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12585 int status = $lt_dlunknown;
12589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12590 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12591 /* dlclose (self); */
12597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12598 (eval $ac_link) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12602 (./conftest; exit; ) 2>/dev/null
12604 case x$lt_status in
12605 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12606 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12607 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12610 # compilation failed
12611 lt_cv_dlopen_self=no
12618 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12619 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12621 if test "x$lt_cv_dlopen_self" = xyes; then
12622 LDFLAGS="$LDFLAGS $link_static_flag"
12623 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12624 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12625 if test "${lt_cv_dlopen_self_static+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 if test "$cross_compiling" = yes; then :
12629 lt_cv_dlopen_self_static=cross
12631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12632 lt_status=$lt_dlunknown
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12634 "configure"
12635 #include "confdefs.h"
12644 # define LT_DLGLOBAL RTLD_GLOBAL
12647 # define LT_DLGLOBAL DL_GLOBAL
12649 # define LT_DLGLOBAL 0
12653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12654 find out it does not work in some platform. */
12655 #ifndef LT_DLLAZY_OR_NOW
12657 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12660 # define LT_DLLAZY_OR_NOW DL_LAZY
12663 # define LT_DLLAZY_OR_NOW RTLD_NOW
12666 # define LT_DLLAZY_OR_NOW DL_NOW
12668 # define LT_DLLAZY_OR_NOW 0
12676 extern "C" void exit (int);
12679 void fnord() { int i=42;}
12682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12683 int status = $lt_dlunknown;
12687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12689 /* dlclose (self); */
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12700 (./conftest; exit; ) 2>/dev/null
12702 case x$lt_status in
12703 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12704 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12705 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12708 # compilation failed
12709 lt_cv_dlopen_self_static=no
12716 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12717 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12720 CPPFLAGS="$save_CPPFLAGS"
12721 LDFLAGS="$save_LDFLAGS"
12726 case $lt_cv_dlopen_self in
12727 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12728 *) enable_dlopen_self=unknown ;;
12731 case $lt_cv_dlopen_self_static in
12732 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12733 *) enable_dlopen_self_static=unknown ;;
12738 # The else clause should only fire when bootstrapping the
12739 # libtool distribution, otherwise you forgot to ship ltmain.sh
12740 # with your package, and you will get complaints that there are
12741 # no rules to generate ltmain.sh.
12742 if test -f "$ltmain"; then
12743 # See if we are running on zsh, and set the options which allow our commands through
12744 # without removal of \ escapes.
12745 if test -n "${ZSH_VERSION+set}" ; then
12746 setopt NO_GLOB_SUBST
12748 # Now quote all the things that may contain metacharacters while being
12749 # careful not to overquote the AC_SUBSTed values. We take copies of the
12750 # variables and quote the copies for generation of the libtool script.
12751 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12753 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12754 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12755 deplibs_check_method reload_flag reload_cmds need_locks \
12756 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12757 lt_cv_sys_global_symbol_to_c_name_address \
12758 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12759 old_postinstall_cmds old_postuninstall_cmds \
12763 lt_prog_compiler_wl_CXX \
12764 lt_prog_compiler_pic_CXX \
12765 lt_prog_compiler_static_CXX \
12766 lt_prog_compiler_no_builtin_flag_CXX \
12767 export_dynamic_flag_spec_CXX \
12768 thread_safe_flag_spec_CXX \
12769 whole_archive_flag_spec_CXX \
12770 enable_shared_with_static_runtimes_CXX \
12771 old_archive_cmds_CXX \
12772 old_archive_from_new_cmds_CXX \
12773 predep_objects_CXX \
12774 postdep_objects_CXX \
12777 compiler_lib_search_path_CXX \
12779 archive_expsym_cmds_CXX \
12780 postinstall_cmds_CXX \
12781 postuninstall_cmds_CXX \
12782 old_archive_from_expsyms_cmds_CXX \
12783 allow_undefined_flag_CXX \
12784 no_undefined_flag_CXX \
12785 export_symbols_cmds_CXX \
12786 hardcode_libdir_flag_spec_CXX \
12787 hardcode_libdir_flag_spec_ld_CXX \
12788 hardcode_libdir_separator_CXX \
12789 hardcode_automatic_CXX \
12791 module_expsym_cmds_CXX \
12792 lt_cv_prog_compiler_c_o_CXX \
12793 exclude_expsyms_CXX \
12794 include_expsyms_CXX; do
12797 old_archive_cmds_CXX | \
12798 old_archive_from_new_cmds_CXX | \
12799 archive_cmds_CXX | \
12800 archive_expsym_cmds_CXX | \
12801 module_cmds_CXX | \
12802 module_expsym_cmds_CXX | \
12803 old_archive_from_expsyms_cmds_CXX | \
12804 export_symbols_cmds_CXX | \
12805 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12806 postinstall_cmds | postuninstall_cmds | \
12807 old_postinstall_cmds | old_postuninstall_cmds | \
12808 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12809 # Double-quote double-evaled strings.
12810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12819 *'\$0 --fallback-echo"')
12820 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12826 cat <<__EOF__ >> "$cfgfile"
12827 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12831 # Shell to use when invoking shell scripts.
12834 # Whether or not to build shared libraries.
12835 build_libtool_libs=$enable_shared
12837 # Whether or not to build static libraries.
12838 build_old_libs=$enable_static
12840 # Whether or not to add -lc for building shared libraries.
12841 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12843 # Whether or not to disallow shared libs when runtime libs are static
12844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12846 # Whether or not to optimize for fast installation.
12847 fast_install=$enable_fast_install
12850 host_alias=$host_alias
12853 # An echo program that does not interpret backslashes.
12858 AR_FLAGS=$lt_AR_FLAGS
12863 # A language-specific compiler.
12864 CC=$lt_compiler_CXX
12866 # Is the compiler the GNU C compiler?
12872 # The linker used to build libraries.
12875 # Whether we need hard or soft links.
12878 # A BSD-compatible nm program.
12881 # A symbol stripping program
12884 # Used to examine libraries when file_magic_cmd begins "file"
12885 MAGIC_CMD=$MAGIC_CMD
12887 # Used on cygwin: DLL creation program.
12890 # Used on cygwin: object dumper.
12893 # Used on cygwin: assembler.
12896 # The name of the directory that contains temporary libtool files.
12899 # How to create reloadable object files.
12900 reload_flag=$lt_reload_flag
12901 reload_cmds=$lt_reload_cmds
12903 # How to pass a linker flag through the compiler.
12904 wl=$lt_lt_prog_compiler_wl_CXX
12906 # Object file suffix (normally "o").
12907 objext="$ac_objext"
12909 # Old archive suffix (normally "a").
12912 # Shared library suffix (normally ".so").
12913 shrext_cmds='$shrext_cmds'
12915 # Executable file suffix (normally "").
12918 # Additional compiler flags for building library objects.
12919 pic_flag=$lt_lt_prog_compiler_pic_CXX
12922 # What is the maximum length of a command?
12923 max_cmd_len=$lt_cv_sys_max_cmd_len
12925 # Does compiler simultaneously support -c and -o options?
12926 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12928 # Must we lock files when doing compilation ?
12929 need_locks=$lt_need_locks
12931 # Do we need the lib prefix for modules?
12932 need_lib_prefix=$need_lib_prefix
12934 # Do we need a version for libraries?
12935 need_version=$need_version
12937 # Whether dlopen is supported.
12938 dlopen_support=$enable_dlopen
12940 # Whether dlopen of programs is supported.
12941 dlopen_self=$enable_dlopen_self
12943 # Whether dlopen of statically linked programs is supported.
12944 dlopen_self_static=$enable_dlopen_self_static
12946 # Compiler flag to prevent dynamic linking.
12947 link_static_flag=$lt_lt_prog_compiler_static_CXX
12949 # Compiler flag to turn off builtin functions.
12950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12952 # Compiler flag to allow reflexive dlopens.
12953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12955 # Compiler flag to generate shared objects directly from archives.
12956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12958 # Compiler flag to generate thread-safe objects.
12959 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12961 # Library versioning type.
12962 version_type=$version_type
12964 # Format of library name prefix.
12965 libname_spec=$lt_libname_spec
12967 # List of archive names. First name is the real one, the rest are links.
12968 # The last name is the one that the linker finds with -lNAME.
12969 library_names_spec=$lt_library_names_spec
12971 # The coded name of the library, if different from the real name.
12972 soname_spec=$lt_soname_spec
12974 # Commands used to build and install an old-style archive.
12976 old_archive_cmds=$lt_old_archive_cmds_CXX
12977 old_postinstall_cmds=$lt_old_postinstall_cmds
12978 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12980 # Create an old-style archive from a shared archive.
12981 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12983 # Create a temporary old-style archive to link instead of a shared archive.
12984 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12986 # Commands used to build and install a shared archive.
12987 archive_cmds=$lt_archive_cmds_CXX
12988 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12989 postinstall_cmds=$lt_postinstall_cmds
12990 postuninstall_cmds=$lt_postuninstall_cmds
12992 # Commands used to build a loadable module (assumed same as above if empty)
12993 module_cmds=$lt_module_cmds_CXX
12994 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12996 # Commands to strip libraries.
12997 old_striplib=$lt_old_striplib
12998 striplib=$lt_striplib
13000 # Dependencies to place before the objects being linked to create a
13002 predep_objects=$lt_predep_objects_CXX
13004 # Dependencies to place after the objects being linked to create a
13006 postdep_objects=$lt_postdep_objects_CXX
13008 # Dependencies to place before the objects being linked to create a
13010 predeps=$lt_predeps_CXX
13012 # Dependencies to place after the objects being linked to create a
13014 postdeps=$lt_postdeps_CXX
13016 # The library search path used internally by the compiler when linking
13017 # a shared library.
13018 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13020 # Method to check whether dependent libraries are shared objects.
13021 deplibs_check_method=$lt_deplibs_check_method
13023 # Command to use when deplibs_check_method == file_magic.
13024 file_magic_cmd=$lt_file_magic_cmd
13026 # Flag that allows shared libraries with undefined symbols to be built.
13027 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13029 # Flag that forces no undefined symbols.
13030 no_undefined_flag=$lt_no_undefined_flag_CXX
13032 # Commands used to finish a libtool library installation in a directory.
13033 finish_cmds=$lt_finish_cmds
13035 # Same as above, but a single script fragment to be evaled but not shown.
13036 finish_eval=$lt_finish_eval
13038 # Take the output of nm and produce a listing of raw symbols and C names.
13039 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13041 # Transform the output of nm in a proper C declaration
13042 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13044 # Transform the output of nm in a C name address pair
13045 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13047 # This is the shared library runtime path variable.
13048 runpath_var=$runpath_var
13050 # This is the shared library path variable.
13051 shlibpath_var=$shlibpath_var
13053 # Is shlibpath searched before the hard-coded library search path?
13054 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13056 # How to hardcode a shared library path into an executable.
13057 hardcode_action=$hardcode_action_CXX
13059 # Whether we should hardcode library paths into libraries.
13060 hardcode_into_libs=$hardcode_into_libs
13062 # Flag to hardcode \$libdir into a binary during linking.
13063 # This must work even if \$libdir does not exist.
13064 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13066 # If ld is used when linking, flag to hardcode \$libdir into
13067 # a binary during linking. This must work even if \$libdir does
13069 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13071 # Whether we need a single -rpath flag with a separated argument.
13072 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13074 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13075 # resulting binary.
13076 hardcode_direct=$hardcode_direct_CXX
13078 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13079 # resulting binary.
13080 hardcode_minus_L=$hardcode_minus_L_CXX
13082 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13083 # the resulting binary.
13084 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13086 # Set to yes if building a shared library automatically hardcodes DIR into the library
13087 # and all subsequent libraries and executables linked against it.
13088 hardcode_automatic=$hardcode_automatic_CXX
13090 # Variables whose values should be saved in libtool wrapper scripts and
13091 # restored at relink time.
13092 variables_saved_for_relink="$variables_saved_for_relink"
13094 # Whether libtool must link a program against all its dependency libraries.
13095 link_all_deplibs=$link_all_deplibs_CXX
13097 # Compile-time system search path for libraries
13098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13100 # Run-time system search path for libraries
13101 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13103 # Fix the shell variable \$srcfile for the compiler.
13104 fix_srcfile_path="$fix_srcfile_path_CXX"
13106 # Set to yes if exported symbols are required.
13107 always_export_symbols=$always_export_symbols_CXX
13109 # The commands to list exported symbols.
13110 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13112 # The commands to extract the exported symbol list from a shared archive.
13113 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13115 # Symbols that should not be listed in the preloaded symbols.
13116 exclude_expsyms=$lt_exclude_expsyms_CXX
13118 # Symbols that must always be exported.
13119 include_expsyms=$lt_include_expsyms_CXX
13121 # ### END LIBTOOL TAG CONFIG: $tagname
13127 # If there is no Makefile yet, we rely on a make rule to execute
13128 # `config.status --recheck' to rerun these tests and create the
13129 # libtool script then.
13130 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13131 if test -f "$ltmain_in"; then
13132 test -f Makefile && make "$ltmain"
13138 ac_cpp='$CPP $CPPFLAGS'
13139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13147 with_gnu_ldcxx=$with_gnu_ld
13148 with_gnu_ld=$lt_save_with_gnu_ld
13149 lt_cv_path_LDCXX=$lt_cv_path_LD
13150 lt_cv_path_LD=$lt_save_path_LD
13151 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13152 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13160 if test -n "$F77" && test "X$F77" != "Xno"; then
13163 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13164 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13168 archive_cmds_need_lc_F77=no
13169 allow_undefined_flag_F77=
13170 always_export_symbols_F77=no
13171 archive_expsym_cmds_F77=
13172 export_dynamic_flag_spec_F77=
13173 hardcode_direct_F77=no
13174 hardcode_libdir_flag_spec_F77=
13175 hardcode_libdir_flag_spec_ld_F77=
13176 hardcode_libdir_separator_F77=
13177 hardcode_minus_L_F77=no
13178 hardcode_automatic_F77=no
13180 module_expsym_cmds_F77=
13181 link_all_deplibs_F77=unknown
13182 old_archive_cmds_F77=$old_archive_cmds
13183 no_undefined_flag_F77=
13184 whole_archive_flag_spec_F77=
13185 enable_shared_with_static_runtimes_F77=no
13187 # Source file extension for f77 test sources.
13190 # Object file extension for compiled f77 test sources.
13194 # Code to be used in simple compile tests
13195 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13197 # Code to be used in simple link tests
13198 lt_simple_link_test_code=" program t\n end\n"
13200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13202 # If no C compiler was specified, use CC.
13205 # Allow CC to be a program name with arguments.
13209 # Allow CC to be a program name with arguments.
13214 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13216 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13217 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13218 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13219 echo "${ECHO_T}$can_build_shared" >&6
13221 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13222 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13223 test "$can_build_shared" = "no" && enable_shared=no
13225 # On AIX, shared libraries and static libraries use the same namespace, and
13226 # are all built from PIC.
13229 test "$enable_shared" = yes && enable_static=no
13230 if test -n "$RANLIB"; then
13231 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13232 postinstall_cmds='$RANLIB $lib'
13236 test "$enable_shared" = yes && enable_static=no
13239 echo "$as_me:$LINENO: result: $enable_shared" >&5
13240 echo "${ECHO_T}$enable_shared" >&6
13242 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13243 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13244 # Make sure either enable_shared or enable_static is yes.
13245 test "$enable_shared" = yes || enable_static=yes
13246 echo "$as_me:$LINENO: result: $enable_static" >&5
13247 echo "${ECHO_T}$enable_static" >&6
13249 test "$ld_shlibs_F77" = no && can_build_shared=no
13254 lt_prog_compiler_wl_F77=
13255 lt_prog_compiler_pic_F77=
13256 lt_prog_compiler_static_F77=
13258 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13259 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13261 if test "$GCC" = yes; then
13262 lt_prog_compiler_wl_F77='-Wl,'
13263 lt_prog_compiler_static_F77='-static'
13267 # All AIX code is PIC.
13268 if test "$host_cpu" = ia64; then
13269 # AIX 5 now supports IA64 processor
13270 lt_prog_compiler_static_F77='-Bstatic'
13275 # FIXME: we need at least 68020 code to build shared libraries, but
13276 # adding the `-m68020' flag to GCC prevents building anything better,
13278 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13281 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13282 # PIC is the default for these OSes.
13285 mingw* | pw32* | os2*)
13286 # This hack is so that the source file can tell whether it is being
13287 # built for inclusion in a dll (and should export symbols for example).
13288 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13291 darwin* | rhapsody*)
13292 # PIC is the default on this platform
13293 # Common symbols not allowed in MH_DYLIB files
13294 lt_prog_compiler_pic_F77='-fno-common'
13298 # Just because we use GCC doesn't mean we suddenly get shared libraries
13299 # on systems that don't support them.
13300 lt_prog_compiler_can_build_shared_F77=no
13305 if test -d /usr/nec; then
13306 lt_prog_compiler_pic_F77=-Kconform_pic
13311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13312 # not for PA HP-UX.
13313 case "$host_cpu" in
13318 lt_prog_compiler_pic_F77='-fPIC'
13324 lt_prog_compiler_pic_F77='-fPIC'
13328 # PORTME Check for flag to pass linker flags through the system compiler.
13331 lt_prog_compiler_wl_F77='-Wl,'
13332 if test "$host_cpu" = ia64; then
13333 # AIX 5 now supports IA64 processor
13334 lt_prog_compiler_static_F77='-Bstatic'
13336 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13340 mingw* | pw32* | os2*)
13341 # This hack is so that the source file can tell whether it is being
13342 # built for inclusion in a dll (and should export symbols for example).
13343 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13346 hpux9* | hpux10* | hpux11*)
13347 lt_prog_compiler_wl_F77='-Wl,'
13348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13349 # not for PA HP-UX.
13350 case "$host_cpu" in
13355 lt_prog_compiler_pic_F77='+Z'
13358 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13359 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13362 irix5* | irix6* | nonstopux*)
13363 lt_prog_compiler_wl_F77='-Wl,'
13364 # PIC (with -KPIC) is the default.
13365 lt_prog_compiler_static_F77='-non_shared'
13369 lt_prog_compiler_pic_F77='-KPIC'
13370 lt_prog_compiler_static_F77='-Bstatic'
13376 lt_prog_compiler_wl_F77='-Wl,'
13377 lt_prog_compiler_pic_F77='-KPIC'
13378 lt_prog_compiler_static_F77='-static'
13381 lt_prog_compiler_wl_F77='-Wl,'
13382 # All Alpha code is PIC.
13383 lt_prog_compiler_static_F77='-non_shared'
13388 osf3* | osf4* | osf5*)
13389 lt_prog_compiler_wl_F77='-Wl,'
13390 # All OSF/1 code is PIC.
13391 lt_prog_compiler_static_F77='-non_shared'
13395 lt_prog_compiler_pic_F77='-Kpic'
13396 lt_prog_compiler_static_F77='-dn'
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 lt_prog_compiler_pic_F77='-KPIC'
13402 lt_prog_compiler_static_F77='-Bstatic'
13406 lt_prog_compiler_wl_F77='-Qoption ld '
13407 lt_prog_compiler_pic_F77='-PIC'
13408 lt_prog_compiler_static_F77='-Bstatic'
13411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13412 lt_prog_compiler_wl_F77='-Wl,'
13413 lt_prog_compiler_pic_F77='-KPIC'
13414 lt_prog_compiler_static_F77='-Bstatic'
13418 if test -d /usr/nec ;then
13419 lt_prog_compiler_pic_F77='-Kconform_pic'
13420 lt_prog_compiler_static_F77='-Bstatic'
13425 lt_prog_compiler_pic_F77='-pic'
13426 lt_prog_compiler_static_F77='-Bstatic'
13430 lt_prog_compiler_can_build_shared_F77=no
13435 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13436 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13439 # Check to make sure the PIC flag actually works.
13441 if test -n "$lt_prog_compiler_pic_F77"; then
13443 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13444 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13445 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 lt_prog_compiler_pic_works_F77=no
13449 ac_outfile=conftest.$ac_objext
13450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13451 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13452 # Insert the option either (1) after the last *FLAGS variable, or
13453 # (2) before a word containing "conftest.", or (3) at the end.
13454 # Note that $ac_compile itself does not contain backslashes and begins
13455 # with a dollar sign (not a hyphen), so the echo should work correctly.
13456 # The option is referenced via a variable to avoid confusing sed.
13457 lt_compile=`echo "$ac_compile" | $SED \
13458 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13460 -e 's:$: $lt_compiler_flag:'`
13461 (eval echo "\"\$as_me:13461: $lt_compile\"" >&5)
13462 (eval "$lt_compile" 2>conftest.err)
13464 cat conftest.err >&5
13465 echo "$as_me:13465: \$? = $ac_status" >&5
13466 if (exit $ac_status) && test -s "$ac_outfile"; then
13467 # The compiler can only warn and ignore the option if not recognized
13468 # So say no if there are warnings
13469 if test ! -s conftest.err; then
13470 lt_prog_compiler_pic_works_F77=yes
13476 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13477 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13479 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13480 case $lt_prog_compiler_pic_F77 in
13482 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13485 lt_prog_compiler_pic_F77=
13486 lt_prog_compiler_can_build_shared_F77=no
13491 # For platforms which do not support PIC, -DPIC is meaningless:
13493 lt_prog_compiler_pic_F77=
13496 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13500 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13501 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13502 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 lt_cv_prog_compiler_c_o_F77=no
13506 $rm -r conftest 2>/dev/null
13510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13512 lt_compiler_flag="-o out/conftest2.$ac_objext"
13513 # Insert the option either (1) after the last *FLAGS variable, or
13514 # (2) before a word containing "conftest.", or (3) at the end.
13515 # Note that $ac_compile itself does not contain backslashes and begins
13516 # with a dollar sign (not a hyphen), so the echo should work correctly.
13517 lt_compile=`echo "$ac_compile" | $SED \
13518 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13520 -e 's:$: $lt_compiler_flag:'`
13521 (eval echo "\"\$as_me:13521: $lt_compile\"" >&5)
13522 (eval "$lt_compile" 2>out/conftest.err)
13524 cat out/conftest.err >&5
13525 echo "$as_me:13525: \$? = $ac_status" >&5
13526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13528 # The compiler can only warn and ignore the option if not recognized
13529 # So say no if there are warnings
13530 if test ! -s out/conftest.err; then
13531 lt_cv_prog_compiler_c_o_F77=yes
13536 # SGI C++ compiler will create directory out/ii_files/ for
13537 # template instantiation
13538 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13539 $rm out/* && rmdir out
13545 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13546 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13549 hard_links="nottested"
13550 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13551 # do not overwrite the value of need_locks provided by the user
13552 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13553 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13558 ln conftest.a conftest.b 2>&5 || hard_links=no
13559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13560 echo "$as_me:$LINENO: result: $hard_links" >&5
13561 echo "${ECHO_T}$hard_links" >&6
13562 if test "$hard_links" = no; then
13563 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13564 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13571 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13572 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13575 allow_undefined_flag_F77=
13576 enable_shared_with_static_runtimes_F77=no
13578 archive_expsym_cmds_F77=
13579 old_archive_From_new_cmds_F77=
13580 old_archive_from_expsyms_cmds_F77=
13581 export_dynamic_flag_spec_F77=
13582 whole_archive_flag_spec_F77=
13583 thread_safe_flag_spec_F77=
13584 hardcode_libdir_flag_spec_F77=
13585 hardcode_libdir_flag_spec_ld_F77=
13586 hardcode_libdir_separator_F77=
13587 hardcode_direct_F77=no
13588 hardcode_minus_L_F77=no
13589 hardcode_shlibpath_var_F77=unsupported
13590 link_all_deplibs_F77=unknown
13591 hardcode_automatic_F77=no
13593 module_expsym_cmds_F77=
13594 always_export_symbols_F77=no
13595 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13596 # include_expsyms should be a list of space-separated symbols to be *always*
13597 # included in the symbol list
13598 include_expsyms_F77=
13599 # exclude_expsyms can be an extended regexp of symbols to exclude
13600 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13601 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13602 # as well as any symbol that contains `d'.
13603 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13604 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13605 # platforms (ab)use it in PIC code, but their linkers get confused if
13606 # the symbol is explicitly referenced. Since portable code cannot
13607 # rely on this symbol name, it's probably fine to never include it in
13608 # preloaded symbol tables.
13609 extract_expsyms_cmds=
13612 cygwin* | mingw* | pw32*)
13613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13614 # When not using gcc, we currently assume that we are using
13615 # Microsoft Visual C++.
13616 if test "$GCC" != yes; then
13626 if test "$with_gnu_ld" = yes; then
13627 # If archive_cmds runs LD, not CC, wlarc should be empty
13630 # See if GNU ld supports shared libraries.
13632 aix3* | aix4* | aix5*)
13633 # On AIX/PPC, the GNU linker is very broken
13634 if test "$host_cpu" != ia64; then
13638 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13639 *** to be unable to reliably create shared libraries on AIX.
13640 *** Therefore, libtool is disabling shared libraries support. If you
13641 *** really care for shared libraries, you may want to modify your PATH
13642 *** so that a non-GNU linker is found, and then restart.
13649 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)'
13650 hardcode_libdir_flag_spec_F77='-L$libdir'
13651 hardcode_minus_L_F77=yes
13653 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13654 # that the semantics of dynamic libraries on AmigaOS, at least up
13655 # to version 4, is to share data among multiple programs linked
13656 # with the same dynamic library. Since this doesn't match the
13657 # behavior of shared libraries on other platforms, we can't use
13663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13664 allow_undefined_flag_F77=unsupported
13665 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13666 # support --undefined. This deserves some investigation. FIXME
13667 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13673 cygwin* | mingw* | pw32*)
13674 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13675 # as there is no search path for DLLs.
13676 hardcode_libdir_flag_spec_F77='-L$libdir'
13677 allow_undefined_flag_F77=unsupported
13678 always_export_symbols_F77=no
13679 enable_shared_with_static_runtimes_F77=yes
13680 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13682 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13683 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13684 # If the export-symbols file already is a .def file (1st line
13685 # is EXPORTS), use it as is; otherwise, prepend...
13686 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13687 cp $export_symbols $output_objdir/$soname.def;
13689 echo EXPORTS > $output_objdir/$soname.def;
13690 cat $export_symbols >> $output_objdir/$soname.def;
13692 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13700 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13703 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13704 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13709 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13713 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13714 *** create shared libraries on Solaris systems. Therefore, libtool
13715 *** is disabling shared libraries support. We urge you to upgrade GNU
13716 *** binutils to release 2.9.1 or newer. Another option is to modify
13717 *** your PATH or compiler configuration so that the native linker is
13718 *** used, and then restart.
13721 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13722 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13723 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13730 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13732 hardcode_direct_F77=yes
13733 hardcode_shlibpath_var_F77=no
13737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13738 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13739 archive_cmds_F77="$tmp_archive_cmds"
13740 supports_anon_versioning=no
13741 case `$LD -v 2>/dev/null` in
13742 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13743 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13744 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13745 *\ 2.11.*) ;; # other 2.11 versions
13746 *) supports_anon_versioning=yes ;;
13748 if test $supports_anon_versioning = yes; then
13749 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13751 $echo "local: *; };" >> $output_objdir/$libname.ver~
13752 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13754 archive_expsym_cmds_F77="$tmp_archive_cmds"
13762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13763 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13764 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13771 if test "$ld_shlibs_F77" = yes; then
13772 runpath_var=LD_RUN_PATH
13773 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13774 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13775 # ancient GNU ld didn't support --whole-archive et. al.
13776 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13777 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13779 whole_archive_flag_spec_F77=
13783 # PORTME fill in a description of your system's linker (not GNU ld)
13786 allow_undefined_flag_F77=unsupported
13787 always_export_symbols_F77=yes
13788 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'
13789 # Note: this linker hardcodes the directories in LIBPATH if there
13790 # are no directories specified by -L.
13791 hardcode_minus_L_F77=yes
13792 if test "$GCC" = yes && test -z "$link_static_flag"; then
13793 # Neither direct hardcoding nor static linking is supported with a
13795 hardcode_direct_F77=unsupported
13800 if test "$host_cpu" = ia64; then
13801 # On IA64, the linker does run time linking by default, so we don't
13802 # have to do anything special.
13803 aix_use_runtimelinking=no
13804 exp_sym_flag='-Bexport'
13807 # If we're using GNU nm, then we don't want the "-C" option.
13808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13809 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13810 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'
13812 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'
13814 aix_use_runtimelinking=no
13816 # Test if we are trying to use run time linking or normal
13817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13818 # need to do runtime linking.
13819 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13820 for ld_flag in $LDFLAGS; do
13821 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13822 aix_use_runtimelinking=yes
13828 exp_sym_flag='-bexport'
13829 no_entry_flag='-bnoentry'
13832 # When large executables or shared objects are built, AIX ld can
13833 # have problems creating the table of contents. If linking a library
13834 # or program results in "error TOC overflow" add -mminimal-toc to
13835 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13836 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13838 archive_cmds_F77=''
13839 hardcode_direct_F77=yes
13840 hardcode_libdir_separator_F77=':'
13841 link_all_deplibs_F77=yes
13843 if test "$GCC" = yes; then
13844 case $host_os in aix4.012|aix4.012.*)
13845 # We only want to do this on AIX 4.2 and lower, the check
13846 # below for broken collect2 doesn't work under 4.3+
13847 collect2name=`${CC} -print-prog-name=collect2`
13848 if test -f "$collect2name" && \
13849 strings "$collect2name" | grep resolve_lib_name >/dev/null
13851 # We have reworked collect2
13852 hardcode_direct_F77=yes
13854 # We have old collect2
13855 hardcode_direct_F77=unsupported
13856 # It fails to find uninstalled libraries when the uninstalled
13857 # path is not listed in the libpath. Setting hardcode_minus_L
13858 # to unsupported forces relinking
13859 hardcode_minus_L_F77=yes
13860 hardcode_libdir_flag_spec_F77='-L$libdir'
13861 hardcode_libdir_separator_F77=
13864 shared_flag='-shared'
13867 if test "$host_cpu" = ia64; then
13868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13869 # chokes on -Wl,-G. The following line is correct:
13872 if test "$aix_use_runtimelinking" = yes; then
13873 shared_flag='${wl}-G'
13875 shared_flag='${wl}-bM:SRE'
13880 # It seems that -bexpall does not export symbols beginning with
13881 # underscore (_), so it is better to generate a list of symbols to export.
13882 always_export_symbols_F77=yes
13883 if test "$aix_use_runtimelinking" = yes; then
13884 # Warning - without using the other runtime loading flags (-brtl),
13885 # -berok will link without error, but may produce a broken library.
13886 allow_undefined_flag_F77='-berok'
13887 # Determine the default libpath from the value encoded in an empty executable.
13888 cat >conftest.$ac_ext <<_ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895 (eval $ac_link) 2>conftest.er1
13897 grep -v '^ *+' conftest.er1 >conftest.err
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_f77_werror_flag"
13903 || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13918 # Check for a 64-bit object if we didn't find anything.
13919 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; }
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13926 rm -f conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext conftest.$ac_ext
13928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13930 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13931 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"
13933 if test "$host_cpu" = ia64; then
13934 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13935 allow_undefined_flag_F77="-z nodefs"
13936 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"
13938 # Determine the default libpath from the value encoded in an empty executable.
13939 cat >conftest.$ac_ext <<_ACEOF
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946 (eval $ac_link) 2>conftest.er1
13948 grep -v '^ *+' conftest.er1 >conftest.err
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -z "$ac_f77_werror_flag"
13954 || test ! -s conftest.err'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest$ac_exeext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13969 # Check for a 64-bit object if we didn't find anything.
13970 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; }
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13977 rm -f conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13981 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13982 # Warning - without using the other run time loading flags,
13983 # -berok will link without error, but may produce a broken library.
13984 no_undefined_flag_F77=' ${wl}-bernotok'
13985 allow_undefined_flag_F77=' ${wl}-berok'
13986 # -bexpall does not export symbols beginning with underscore (_)
13987 always_export_symbols_F77=yes
13988 # Exported symbols can be pulled into shared objects from archives
13989 whole_archive_flag_spec_F77=' '
13990 archive_cmds_need_lc_F77=yes
13991 # This is similar to how AIX traditionally builds it's shared libraries.
13992 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'
13998 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)'
13999 hardcode_libdir_flag_spec_F77='-L$libdir'
14000 hardcode_minus_L_F77=yes
14001 # see comment about different semantics on the GNU ld section
14006 export_dynamic_flag_spec_F77=-rdynamic
14009 cygwin* | mingw* | pw32*)
14010 # When not using gcc, we currently assume that we are using
14011 # Microsoft Visual C++.
14012 # hardcode_libdir_flag_spec is actually meaningless, as there is
14013 # no search path for DLLs.
14014 hardcode_libdir_flag_spec_F77=' '
14015 allow_undefined_flag_F77=unsupported
14016 # Tell ltmain to make .lib files, not .a files.
14018 # Tell ltmain to make .dll files, not .so files.
14020 # FIXME: Setting linknames here is a bad hack.
14021 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14022 # The linker will automatically build a .lib file if we build a DLL.
14023 old_archive_From_new_cmds_F77='true'
14024 # FIXME: Should let the user specify the lib program.
14025 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14026 fix_srcfile_path='`cygpath -w "$srcfile"`'
14027 enable_shared_with_static_runtimes_F77=yes
14030 darwin* | rhapsody*)
14031 if test "$GXX" = yes ; then
14032 archive_cmds_need_lc_F77=no
14034 rhapsody* | darwin1.[012])
14035 allow_undefined_flag_F77='-undefined suppress'
14038 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14039 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14041 case ${MACOSX_DEPLOYMENT_TARGET} in
14043 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14046 allow_undefined_flag_F77='-undefined dynamic_lookup'
14052 lt_int_apple_cc_single_mod=no
14053 output_verbose_link_cmd='echo'
14054 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14055 lt_int_apple_cc_single_mod=yes
14057 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14058 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14060 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'
14062 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14063 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14064 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14065 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}'
14067 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}'
14069 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}'
14070 hardcode_direct_F77=no
14071 hardcode_automatic_F77=yes
14072 hardcode_shlibpath_var_F77=unsupported
14073 whole_archive_flag_spec_F77='-all_load $convenience'
14074 link_all_deplibs_F77=yes
14081 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14082 hardcode_libdir_flag_spec_F77='-L$libdir'
14083 hardcode_shlibpath_var_F77=no
14090 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14091 # support. Future versions do this automatically, but an explicit c++rt0.o
14092 # does not break anything, and helps significantly (at the cost of a little
14095 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14096 hardcode_libdir_flag_spec_F77='-R$libdir'
14097 hardcode_direct_F77=yes
14098 hardcode_shlibpath_var_F77=no
14101 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14103 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14104 hardcode_direct_F77=yes
14105 hardcode_minus_L_F77=yes
14106 hardcode_shlibpath_var_F77=no
14109 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14110 freebsd* | kfreebsd*-gnu)
14111 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14112 hardcode_libdir_flag_spec_F77='-R$libdir'
14113 hardcode_direct_F77=yes
14114 hardcode_shlibpath_var_F77=no
14118 if test "$GCC" = yes; then
14119 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'
14121 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'
14123 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14124 hardcode_libdir_separator_F77=:
14125 hardcode_direct_F77=yes
14127 # hardcode_minus_L: Not really in the search PATH,
14128 # but as the default location of the library.
14129 hardcode_minus_L_F77=yes
14130 export_dynamic_flag_spec_F77='${wl}-E'
14134 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14135 case "$host_cpu" in
14137 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14140 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14144 case "$host_cpu" in
14146 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14149 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14153 if test "$with_gnu_ld" = no; then
14154 case "$host_cpu" in
14156 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14157 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14158 hardcode_libdir_separator_F77=:
14159 hardcode_direct_F77=no
14160 hardcode_shlibpath_var_F77=no
14163 hardcode_libdir_flag_spec_F77='-L$libdir'
14164 hardcode_direct_F77=no
14165 hardcode_shlibpath_var_F77=no
14167 # hardcode_minus_L: Not really in the search PATH,
14168 # but as the default location of the library.
14169 hardcode_minus_L_F77=yes
14172 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14173 hardcode_libdir_separator_F77=:
14174 hardcode_direct_F77=yes
14175 export_dynamic_flag_spec_F77='${wl}-E'
14177 # hardcode_minus_L: Not really in the search PATH,
14178 # but as the default location of the library.
14179 hardcode_minus_L_F77=yes
14185 irix5* | irix6* | nonstopux*)
14186 if test "$GCC" = yes; then
14187 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'
14189 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'
14190 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14192 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14193 hardcode_libdir_separator_F77=:
14194 link_all_deplibs_F77=yes
14198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14199 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14201 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14203 hardcode_libdir_flag_spec_F77='-R$libdir'
14204 hardcode_direct_F77=yes
14205 hardcode_shlibpath_var_F77=no
14209 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14210 hardcode_direct_F77=yes
14211 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14212 hardcode_libdir_separator_F77=:
14213 hardcode_shlibpath_var_F77=no
14217 hardcode_direct_F77=yes
14218 hardcode_shlibpath_var_F77=no
14219 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14220 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14221 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14222 export_dynamic_flag_spec_F77='${wl}-E'
14225 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14226 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_libdir_flag_spec_F77='-R$libdir'
14230 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14231 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14238 hardcode_libdir_flag_spec_F77='-L$libdir'
14239 hardcode_minus_L_F77=yes
14240 allow_undefined_flag_F77=unsupported
14241 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'
14242 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14246 if test "$GCC" = yes; then
14247 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14248 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'
14250 allow_undefined_flag_F77=' -expect_unresolved \*'
14251 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'
14253 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14254 hardcode_libdir_separator_F77=:
14257 osf4* | osf5*) # as osf3* with the addition of -msym flag
14258 if test "$GCC" = yes; then
14259 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14260 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'
14261 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14263 allow_undefined_flag_F77=' -expect_unresolved \*'
14264 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'
14265 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~
14266 $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'
14268 # Both c and cxx compiler support -rpath directly
14269 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14271 hardcode_libdir_separator_F77=:
14275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276 hardcode_shlibpath_var_F77=no
14277 export_dynamic_flag_spec_F77='${wl}-Bexport'
14278 runpath_var=LD_RUN_PATH
14279 hardcode_runpath_var=yes
14283 no_undefined_flag_F77=' -z text'
14284 if test "$GCC" = yes; then
14285 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14286 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14287 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14289 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14293 hardcode_libdir_flag_spec_F77='-R$libdir'
14294 hardcode_shlibpath_var_F77=no
14296 solaris2.[0-5] | solaris2.[0-5].*) ;;
14297 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14298 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14300 link_all_deplibs_F77=yes
14304 if test "x$host_vendor" = xsequent; then
14305 # Use $CC to link under sequent, because it throws in some extra .o
14306 # files that make .init and .fini sections work.
14307 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14309 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_libdir_flag_spec_F77='-L$libdir'
14312 hardcode_direct_F77=yes
14313 hardcode_minus_L_F77=yes
14314 hardcode_shlibpath_var_F77=no
14318 case $host_vendor in
14320 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14321 hardcode_direct_F77=yes # is this really true???
14324 ## LD is ld it makes a PLAMLIB
14325 ## CC just makes a GrossModule.
14326 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14327 reload_cmds_F77='$CC -r -o $output$reload_objs'
14328 hardcode_direct_F77=no
14331 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14332 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14335 runpath_var='LD_RUN_PATH'
14336 hardcode_shlibpath_var_F77=no
14340 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14341 hardcode_shlibpath_var_F77=no
14342 export_dynamic_flag_spec_F77='-Bexport'
14346 if test -d /usr/nec; then
14347 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14348 hardcode_shlibpath_var_F77=no
14349 runpath_var=LD_RUN_PATH
14350 hardcode_runpath_var=yes
14356 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14357 hardcode_direct_F77=yes
14358 hardcode_minus_L_F77=no
14359 hardcode_shlibpath_var_F77=no
14360 hardcode_runpath_var=yes
14361 runpath_var=LD_RUN_PATH
14364 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14365 no_undefined_flag_F77='${wl}-z ${wl}text'
14366 if test "$GCC" = yes; then
14367 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14369 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14371 runpath_var='LD_RUN_PATH'
14372 hardcode_shlibpath_var_F77=no
14376 no_undefined_flag_F77=' -z text'
14377 # $CC -shared without GNU ld will not create a library from C++
14378 # object files and a static libstdc++, better avoid it by now
14379 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14380 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14381 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14382 hardcode_libdir_flag_spec_F77=
14383 hardcode_shlibpath_var_F77=no
14384 runpath_var='LD_RUN_PATH'
14388 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14389 hardcode_libdir_flag_spec_F77='-L$libdir'
14390 hardcode_shlibpath_var_F77=no
14399 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14400 echo "${ECHO_T}$ld_shlibs_F77" >&6
14401 test "$ld_shlibs_F77" = no && can_build_shared=no
14403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14404 if test "$GCC" = yes; then
14405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14409 # Do we need to explicitly link libc?
14411 case "x$archive_cmds_need_lc_F77" in
14413 # Assume -lc should be added
14414 archive_cmds_need_lc_F77=yes
14416 if test "$enable_shared" = yes && test "$GCC" = yes; then
14417 case $archive_cmds_F77 in
14419 # FIXME: we may have to deal with multi-command sequences.
14422 # Test whether the compiler implicitly links with -lc since on some
14423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14424 # to ld, don't add -lc before -lgcc.
14425 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14426 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431 (eval $ac_compile) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } 2>conftest.err; then
14437 libobjs=conftest.$ac_objext
14439 wl=$lt_prog_compiler_wl_F77
14445 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14446 allow_undefined_flag_F77=
14447 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14448 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }
14453 archive_cmds_need_lc_F77=no
14455 archive_cmds_need_lc_F77=yes
14457 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14459 cat conftest.err 1>&5
14462 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14463 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14470 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14471 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14472 library_names_spec=
14473 libname_spec='lib$name'
14477 postuninstall_cmds=
14481 shlibpath_overrides_runpath=unknown
14483 dynamic_linker="$host_os ld.so"
14484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14485 if test "$GCC" = yes; then
14486 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14487 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14488 # if the path contains ";" then we assume it to be the separator
14489 # otherwise default to the standard path separator (i.e. ":") - it is
14490 # assumed that no part of a normal pathname contains ";" but that should
14491 # okay in the real world where ";" in dirpaths is itself problematic.
14492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14499 need_lib_prefix=unknown
14500 hardcode_into_libs=no
14502 # when you set need_version to no, make sure it does not cause -set_version
14503 # flags to be left without arguments
14504 need_version=unknown
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14510 shlibpath_var=LIBPATH
14512 # AIX 3 has no versioning support, so we append a major version to the name.
14513 soname_spec='${libname}${release}${shared_ext}$major'
14520 hardcode_into_libs=yes
14521 if test "$host_cpu" = ia64; then
14522 # AIX 5 supports IA64
14523 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14524 shlibpath_var=LD_LIBRARY_PATH
14526 # With GCC up to 2.95.x, collect2 would create an import file
14527 # for dependence libraries. The import file would start with
14528 # the line `#! .'. This would cause the generated library to
14529 # depend on `.', always an invalid library. This was fixed in
14530 # development snapshots of GCC prior to 3.0.
14532 aix4 | aix4.[01] | aix4.[01].*)
14533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14535 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14538 can_build_shared=no
14542 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14543 # soname into executable. Probably we can add versioning support to
14544 # collect2, so additional links can be useful in future.
14545 if test "$aix_use_runtimelinking" = yes; then
14546 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14547 # instead of lib<name>.a to let people know that these are not
14548 # typical AIX shared libraries.
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551 # We preserve .a as extension for shared libraries through AIX4.2
14552 # and later when we are not doing run time linking.
14553 library_names_spec='${libname}${release}.a $libname.a'
14554 soname_spec='${libname}${release}${shared_ext}$major'
14556 shlibpath_var=LIBPATH
14561 library_names_spec='$libname.ixlibrary $libname.a'
14562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14563 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'
14567 library_names_spec='${libname}${shared_ext}'
14568 dynamic_linker="$host_os ld.so"
14569 shlibpath_var=LIBRARY_PATH
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14580 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14581 # the default ld.so.conf also contains /usr/contrib/lib and
14582 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14583 # libtool to hard-code these into programs
14586 cygwin* | mingw* | pw32*)
14587 version_type=windows
14592 case $GCC,$host_os in
14593 yes,cygwin* | yes,mingw* | yes,pw32*)
14594 library_names_spec='$libname.dll.a'
14595 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14596 postinstall_cmds='base_file=`basename \${file}`~
14597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14598 dldir=$destdir/`dirname \$dlpath`~
14599 test -d \$dldir || mkdir -p \$dldir~
14600 $install_prog $dir/$dlname \$dldir/$dlname'
14601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14602 dlpath=$dir/\$dldll~
14604 shlibpath_overrides_runpath=yes
14608 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14609 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14610 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14613 # MinGW DLLs use traditional 'lib' prefix
14614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14615 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14616 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14617 # It is most probably a Windows format PATH printed by
14618 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14619 # path with ; separators, and with drive letters. We can handle the
14620 # drive letters (cygwin fileutils understands them), so leave them,
14621 # especially as we might pass files found there to a mingw objdump,
14622 # which wouldn't understand a cygwinified path. Ahh.
14623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14629 # pw32 DLLs use 'pw' prefix rather than 'lib'
14630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14636 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14639 dynamic_linker='Win32 ld.exe'
14640 # FIXME: first we should search . and the directory the executable is in
14644 darwin* | rhapsody*)
14645 dynamic_linker="$host_os dyld"
14646 version_type=darwin
14649 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14650 soname_spec='${libname}${release}${major}$shared_ext'
14651 shlibpath_overrides_runpath=yes
14652 shlibpath_var=DYLD_LIBRARY_PATH
14653 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14654 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14655 if test "$GCC" = yes; then
14656 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"`
14658 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14660 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 shlibpath_overrides_runpath=no
14684 hardcode_into_libs=yes
14685 dynamic_linker='GNU ld.so'
14689 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14690 version_type=freebsd-$objformat
14691 case $version_type in
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14702 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=yes
14707 freebsd3.01* | freebsdelf3.01*)
14708 shlibpath_overrides_runpath=yes
14709 hardcode_into_libs=yes
14712 shlibpath_overrides_runpath=no
14713 hardcode_into_libs=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 hardcode_into_libs=yes
14728 hpux9* | hpux10* | hpux11*)
14729 # Give a soname corresponding to the major version so that dld.sl refuses to
14730 # link against other versions.
14734 case "$host_cpu" in
14737 hardcode_into_libs=yes
14738 dynamic_linker="$host_os dld.so"
14739 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742 soname_spec='${libname}${release}${shared_ext}$major'
14743 if test "X$HPUX_IA64_MODE" = X32; then
14744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14752 hardcode_into_libs=yes
14753 dynamic_linker="$host_os dld.sl"
14754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14763 dynamic_linker="$host_os dld.sl"
14764 shlibpath_var=SHLIB_PATH
14765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14770 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14771 postinstall_cmds='chmod 555 $lib'
14774 irix5* | irix6* | nonstopux*)
14776 nonstopux*) version_type=nonstopux ;;
14778 if test "$lt_cv_prog_gnu_ld" = yes; then
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14789 irix5* | nonstopux*)
14790 libsuff= shlibsuff=
14793 case $LD in # libtool.m4 will add one of these switches to LD
14794 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14795 libsuff= shlibsuff= libmagic=32-bit;;
14796 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14797 libsuff=32 shlibsuff=N32 libmagic=N32;;
14798 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14799 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14800 *) libsuff= shlibsuff= libmagic=never-match;;
14804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14805 shlibpath_overrides_runpath=no
14806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14808 hardcode_into_libs=yes
14811 # No shared lib support for Linux oldld, aout, or coff.
14812 linux*oldld* | linux*aout* | linux*coff*)
14816 # This must be Linux ELF.
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath=no
14826 # This implies no fast_install, which is unacceptable.
14827 # Some rework will be needed to allow for fast_install
14828 # before this can be enabled.
14829 hardcode_into_libs=yes
14831 # find out which ABI we are using
14833 case "$host_cpu" in
14834 x86_64*|s390x*|powerpc64*)
14835 echo '#line 14835 "configure"' > conftest.$ac_ext
14836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837 (eval $ac_compile) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; then
14841 case `/usr/bin/file conftest.$ac_objext` in
14844 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14852 # Append ld.so.conf contents to the search path
14853 if test -f /etc/ld.so.conf; then
14854 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14855 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14858 # We used to test for /lib/ld.so.1 and disable shared libraries on
14859 # powerpc, because MkLinux only supported shared libraries with the
14860 # GNU dynamic linker. Since this was broken with cross compilers,
14861 # most powerpc-linux boxes support dynamic linking these days and
14862 # people can always --disable-shared, the test was removed, and we
14863 # assume the GNU/Linux dynamic linker is in use.
14864 dynamic_linker='GNU/Linux ld.so'
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=no
14875 hardcode_into_libs=yes
14876 dynamic_linker='GNU ld.so'
14883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14886 dynamic_linker='NetBSD (a.out) ld.so'
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14889 soname_spec='${libname}${release}${shared_ext}$major'
14890 dynamic_linker='NetBSD ld.elf_so'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 shlibpath_overrides_runpath=yes
14894 hardcode_into_libs=yes
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 shlibpath_overrides_runpath=yes
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 soname_spec='${libname}${release}${shared_ext}$major'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14923 openbsd2.[89] | openbsd2.[89].*)
14924 shlibpath_overrides_runpath=no
14927 shlibpath_overrides_runpath=yes
14931 shlibpath_overrides_runpath=yes
14936 libname_spec='$name'
14939 library_names_spec='$libname${shared_ext} $libname.a'
14940 dynamic_linker='OS/2 ld.exe'
14941 shlibpath_var=LIBPATH
14944 osf3* | osf4* | osf5*)
14948 soname_spec='${libname}${release}${shared_ext}$major'
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14957 soname_spec='${libname}${release}${shared_ext}$major'
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 shlibpath_var=LD_LIBRARY_PATH
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14969 shlibpath_overrides_runpath=yes
14970 hardcode_into_libs=yes
14971 # ldd complains unless libraries are executable
14972 postinstall_cmds='chmod +x $lib'
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 shlibpath_overrides_runpath=yes
14981 if test "$with_gnu_ld" = yes; then
14987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 case $host_vendor in
14994 shlibpath_overrides_runpath=no
14996 export_dynamic_flag_spec='${wl}-Blargedynsym'
14997 runpath_var=LD_RUN_PATH
15005 shlibpath_overrides_runpath=no
15006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15012 if test -d /usr/nec ;then
15014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15015 soname_spec='$libname${shared_ext}.$major'
15016 shlibpath_var=LD_LIBRARY_PATH
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 shlibpath_var=LD_LIBRARY_PATH
15031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15032 echo "${ECHO_T}$dynamic_linker" >&6
15033 test "$dynamic_linker" = no && can_build_shared=no
15035 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15036 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15037 hardcode_action_F77=
15038 if test -n "$hardcode_libdir_flag_spec_F77" || \
15039 test -n "$runpath_var F77" || \
15040 test "X$hardcode_automatic_F77"="Xyes" ; then
15042 # We can hardcode non-existant directories.
15043 if test "$hardcode_direct_F77" != no &&
15044 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15045 # have to relink, otherwise we might link with an installed library
15046 # when we should be linking with a yet-to-be-installed one
15047 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15048 test "$hardcode_minus_L_F77" != no; then
15049 # Linking always hardcodes the temporary library directory.
15050 hardcode_action_F77=relink
15052 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15053 hardcode_action_F77=immediate
15056 # We cannot hardcode anything, or else we can only hardcode existing
15058 hardcode_action_F77=unsupported
15060 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15061 echo "${ECHO_T}$hardcode_action_F77" >&6
15063 if test "$hardcode_action_F77" = relink; then
15064 # Fast installation is not supported
15065 enable_fast_install=no
15066 elif test "$shlibpath_overrides_runpath" = yes ||
15067 test "$enable_shared" = no; then
15068 # Fast installation is not necessary
15069 enable_fast_install=needless
15074 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15075 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15076 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15077 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15078 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15079 echo "$as_me:$LINENO: result: yes" >&5
15080 echo "${ECHO_T}yes" >&6
15082 # FIXME - insert some real tests, host_os isn't really good enough
15085 if test -n "$STRIP" ; then
15086 striplib="$STRIP -x"
15087 echo "$as_me:$LINENO: result: yes" >&5
15088 echo "${ECHO_T}yes" >&6
15090 echo "$as_me:$LINENO: result: no" >&5
15091 echo "${ECHO_T}no" >&6
15095 echo "$as_me:$LINENO: result: no" >&5
15096 echo "${ECHO_T}no" >&6
15103 # The else clause should only fire when bootstrapping the
15104 # libtool distribution, otherwise you forgot to ship ltmain.sh
15105 # with your package, and you will get complaints that there are
15106 # no rules to generate ltmain.sh.
15107 if test -f "$ltmain"; then
15108 # See if we are running on zsh, and set the options which allow our commands through
15109 # without removal of \ escapes.
15110 if test -n "${ZSH_VERSION+set}" ; then
15111 setopt NO_GLOB_SUBST
15113 # Now quote all the things that may contain metacharacters while being
15114 # careful not to overquote the AC_SUBSTed values. We take copies of the
15115 # variables and quote the copies for generation of the libtool script.
15116 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15118 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15119 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15120 deplibs_check_method reload_flag reload_cmds need_locks \
15121 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15122 lt_cv_sys_global_symbol_to_c_name_address \
15123 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15124 old_postinstall_cmds old_postuninstall_cmds \
15128 lt_prog_compiler_wl_F77 \
15129 lt_prog_compiler_pic_F77 \
15130 lt_prog_compiler_static_F77 \
15131 lt_prog_compiler_no_builtin_flag_F77 \
15132 export_dynamic_flag_spec_F77 \
15133 thread_safe_flag_spec_F77 \
15134 whole_archive_flag_spec_F77 \
15135 enable_shared_with_static_runtimes_F77 \
15136 old_archive_cmds_F77 \
15137 old_archive_from_new_cmds_F77 \
15138 predep_objects_F77 \
15139 postdep_objects_F77 \
15142 compiler_lib_search_path_F77 \
15144 archive_expsym_cmds_F77 \
15145 postinstall_cmds_F77 \
15146 postuninstall_cmds_F77 \
15147 old_archive_from_expsyms_cmds_F77 \
15148 allow_undefined_flag_F77 \
15149 no_undefined_flag_F77 \
15150 export_symbols_cmds_F77 \
15151 hardcode_libdir_flag_spec_F77 \
15152 hardcode_libdir_flag_spec_ld_F77 \
15153 hardcode_libdir_separator_F77 \
15154 hardcode_automatic_F77 \
15156 module_expsym_cmds_F77 \
15157 lt_cv_prog_compiler_c_o_F77 \
15158 exclude_expsyms_F77 \
15159 include_expsyms_F77; do
15162 old_archive_cmds_F77 | \
15163 old_archive_from_new_cmds_F77 | \
15164 archive_cmds_F77 | \
15165 archive_expsym_cmds_F77 | \
15166 module_cmds_F77 | \
15167 module_expsym_cmds_F77 | \
15168 old_archive_from_expsyms_cmds_F77 | \
15169 export_symbols_cmds_F77 | \
15170 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15171 postinstall_cmds | postuninstall_cmds | \
15172 old_postinstall_cmds | old_postuninstall_cmds | \
15173 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15174 # Double-quote double-evaled strings.
15175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15184 *'\$0 --fallback-echo"')
15185 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15191 cat <<__EOF__ >> "$cfgfile"
15192 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15196 # Shell to use when invoking shell scripts.
15199 # Whether or not to build shared libraries.
15200 build_libtool_libs=$enable_shared
15202 # Whether or not to build static libraries.
15203 build_old_libs=$enable_static
15205 # Whether or not to add -lc for building shared libraries.
15206 build_libtool_need_lc=$archive_cmds_need_lc_F77
15208 # Whether or not to disallow shared libs when runtime libs are static
15209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15211 # Whether or not to optimize for fast installation.
15212 fast_install=$enable_fast_install
15215 host_alias=$host_alias
15218 # An echo program that does not interpret backslashes.
15223 AR_FLAGS=$lt_AR_FLAGS
15228 # A language-specific compiler.
15229 CC=$lt_compiler_F77
15231 # Is the compiler the GNU C compiler?
15237 # The linker used to build libraries.
15240 # Whether we need hard or soft links.
15243 # A BSD-compatible nm program.
15246 # A symbol stripping program
15249 # Used to examine libraries when file_magic_cmd begins "file"
15250 MAGIC_CMD=$MAGIC_CMD
15252 # Used on cygwin: DLL creation program.
15255 # Used on cygwin: object dumper.
15258 # Used on cygwin: assembler.
15261 # The name of the directory that contains temporary libtool files.
15264 # How to create reloadable object files.
15265 reload_flag=$lt_reload_flag
15266 reload_cmds=$lt_reload_cmds
15268 # How to pass a linker flag through the compiler.
15269 wl=$lt_lt_prog_compiler_wl_F77
15271 # Object file suffix (normally "o").
15272 objext="$ac_objext"
15274 # Old archive suffix (normally "a").
15277 # Shared library suffix (normally ".so").
15278 shrext_cmds='$shrext_cmds'
15280 # Executable file suffix (normally "").
15283 # Additional compiler flags for building library objects.
15284 pic_flag=$lt_lt_prog_compiler_pic_F77
15287 # What is the maximum length of a command?
15288 max_cmd_len=$lt_cv_sys_max_cmd_len
15290 # Does compiler simultaneously support -c and -o options?
15291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15293 # Must we lock files when doing compilation ?
15294 need_locks=$lt_need_locks
15296 # Do we need the lib prefix for modules?
15297 need_lib_prefix=$need_lib_prefix
15299 # Do we need a version for libraries?
15300 need_version=$need_version
15302 # Whether dlopen is supported.
15303 dlopen_support=$enable_dlopen
15305 # Whether dlopen of programs is supported.
15306 dlopen_self=$enable_dlopen_self
15308 # Whether dlopen of statically linked programs is supported.
15309 dlopen_self_static=$enable_dlopen_self_static
15311 # Compiler flag to prevent dynamic linking.
15312 link_static_flag=$lt_lt_prog_compiler_static_F77
15314 # Compiler flag to turn off builtin functions.
15315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15317 # Compiler flag to allow reflexive dlopens.
15318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15320 # Compiler flag to generate shared objects directly from archives.
15321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15323 # Compiler flag to generate thread-safe objects.
15324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15326 # Library versioning type.
15327 version_type=$version_type
15329 # Format of library name prefix.
15330 libname_spec=$lt_libname_spec
15332 # List of archive names. First name is the real one, the rest are links.
15333 # The last name is the one that the linker finds with -lNAME.
15334 library_names_spec=$lt_library_names_spec
15336 # The coded name of the library, if different from the real name.
15337 soname_spec=$lt_soname_spec
15339 # Commands used to build and install an old-style archive.
15341 old_archive_cmds=$lt_old_archive_cmds_F77
15342 old_postinstall_cmds=$lt_old_postinstall_cmds
15343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15345 # Create an old-style archive from a shared archive.
15346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15348 # Create a temporary old-style archive to link instead of a shared archive.
15349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15351 # Commands used to build and install a shared archive.
15352 archive_cmds=$lt_archive_cmds_F77
15353 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15354 postinstall_cmds=$lt_postinstall_cmds
15355 postuninstall_cmds=$lt_postuninstall_cmds
15357 # Commands used to build a loadable module (assumed same as above if empty)
15358 module_cmds=$lt_module_cmds_F77
15359 module_expsym_cmds=$lt_module_expsym_cmds_F77
15361 # Commands to strip libraries.
15362 old_striplib=$lt_old_striplib
15363 striplib=$lt_striplib
15365 # Dependencies to place before the objects being linked to create a
15367 predep_objects=$lt_predep_objects_F77
15369 # Dependencies to place after the objects being linked to create a
15371 postdep_objects=$lt_postdep_objects_F77
15373 # Dependencies to place before the objects being linked to create a
15375 predeps=$lt_predeps_F77
15377 # Dependencies to place after the objects being linked to create a
15379 postdeps=$lt_postdeps_F77
15381 # The library search path used internally by the compiler when linking
15382 # a shared library.
15383 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15385 # Method to check whether dependent libraries are shared objects.
15386 deplibs_check_method=$lt_deplibs_check_method
15388 # Command to use when deplibs_check_method == file_magic.
15389 file_magic_cmd=$lt_file_magic_cmd
15391 # Flag that allows shared libraries with undefined symbols to be built.
15392 allow_undefined_flag=$lt_allow_undefined_flag_F77
15394 # Flag that forces no undefined symbols.
15395 no_undefined_flag=$lt_no_undefined_flag_F77
15397 # Commands used to finish a libtool library installation in a directory.
15398 finish_cmds=$lt_finish_cmds
15400 # Same as above, but a single script fragment to be evaled but not shown.
15401 finish_eval=$lt_finish_eval
15403 # Take the output of nm and produce a listing of raw symbols and C names.
15404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15406 # Transform the output of nm in a proper C declaration
15407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15409 # Transform the output of nm in a C name address pair
15410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15412 # This is the shared library runtime path variable.
15413 runpath_var=$runpath_var
15415 # This is the shared library path variable.
15416 shlibpath_var=$shlibpath_var
15418 # Is shlibpath searched before the hard-coded library search path?
15419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15421 # How to hardcode a shared library path into an executable.
15422 hardcode_action=$hardcode_action_F77
15424 # Whether we should hardcode library paths into libraries.
15425 hardcode_into_libs=$hardcode_into_libs
15427 # Flag to hardcode \$libdir into a binary during linking.
15428 # This must work even if \$libdir does not exist.
15429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15431 # If ld is used when linking, flag to hardcode \$libdir into
15432 # a binary during linking. This must work even if \$libdir does
15434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15436 # Whether we need a single -rpath flag with a separated argument.
15437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15440 # resulting binary.
15441 hardcode_direct=$hardcode_direct_F77
15443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15444 # resulting binary.
15445 hardcode_minus_L=$hardcode_minus_L_F77
15447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15448 # the resulting binary.
15449 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15451 # Set to yes if building a shared library automatically hardcodes DIR into the library
15452 # and all subsequent libraries and executables linked against it.
15453 hardcode_automatic=$hardcode_automatic_F77
15455 # Variables whose values should be saved in libtool wrapper scripts and
15456 # restored at relink time.
15457 variables_saved_for_relink="$variables_saved_for_relink"
15459 # Whether libtool must link a program against all its dependency libraries.
15460 link_all_deplibs=$link_all_deplibs_F77
15462 # Compile-time system search path for libraries
15463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15465 # Run-time system search path for libraries
15466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15468 # Fix the shell variable \$srcfile for the compiler.
15469 fix_srcfile_path="$fix_srcfile_path_F77"
15471 # Set to yes if exported symbols are required.
15472 always_export_symbols=$always_export_symbols_F77
15474 # The commands to list exported symbols.
15475 export_symbols_cmds=$lt_export_symbols_cmds_F77
15477 # The commands to extract the exported symbol list from a shared archive.
15478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15480 # Symbols that should not be listed in the preloaded symbols.
15481 exclude_expsyms=$lt_exclude_expsyms_F77
15483 # Symbols that must always be exported.
15484 include_expsyms=$lt_include_expsyms_F77
15486 # ### END LIBTOOL TAG CONFIG: $tagname
15492 # If there is no Makefile yet, we rely on a make rule to execute
15493 # `config.status --recheck' to rerun these tests and create the
15494 # libtool script then.
15495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15496 if test -f "$ltmain_in"; then
15497 test -f Makefile && make "$ltmain"
15503 ac_cpp='$CPP $CPPFLAGS'
15504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15516 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15520 # Source file extension for Java test sources.
15523 # Object file extension for compiled Java test sources.
15527 # Code to be used in simple compile tests
15528 lt_simple_compile_test_code="class foo {}\n"
15530 # Code to be used in simple link tests
15531 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15533 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15535 # If no C compiler was specified, use CC.
15538 # Allow CC to be a program name with arguments.
15542 # Allow CC to be a program name with arguments.
15548 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15549 archive_cmds_need_lc_GCJ=no
15552 lt_prog_compiler_no_builtin_flag_GCJ=
15554 if test "$GCC" = yes; then
15555 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15558 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15559 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15560 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 lt_cv_prog_compiler_rtti_exceptions=no
15564 ac_outfile=conftest.$ac_objext
15565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15566 lt_compiler_flag="-fno-rtti -fno-exceptions"
15567 # Insert the option either (1) after the last *FLAGS variable, or
15568 # (2) before a word containing "conftest.", or (3) at the end.
15569 # Note that $ac_compile itself does not contain backslashes and begins
15570 # with a dollar sign (not a hyphen), so the echo should work correctly.
15571 # The option is referenced via a variable to avoid confusing sed.
15572 lt_compile=`echo "$ac_compile" | $SED \
15573 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15575 -e 's:$: $lt_compiler_flag:'`
15576 (eval echo "\"\$as_me:15576: $lt_compile\"" >&5)
15577 (eval "$lt_compile" 2>conftest.err)
15579 cat conftest.err >&5
15580 echo "$as_me:15580: \$? = $ac_status" >&5
15581 if (exit $ac_status) && test -s "$ac_outfile"; then
15582 # The compiler can only warn and ignore the option if not recognized
15583 # So say no if there are warnings
15584 if test ! -s conftest.err; then
15585 lt_cv_prog_compiler_rtti_exceptions=yes
15591 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15592 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15594 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15595 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15602 lt_prog_compiler_wl_GCJ=
15603 lt_prog_compiler_pic_GCJ=
15604 lt_prog_compiler_static_GCJ=
15606 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15607 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15609 if test "$GCC" = yes; then
15610 lt_prog_compiler_wl_GCJ='-Wl,'
15611 lt_prog_compiler_static_GCJ='-static'
15615 # All AIX code is PIC.
15616 if test "$host_cpu" = ia64; then
15617 # AIX 5 now supports IA64 processor
15618 lt_prog_compiler_static_GCJ='-Bstatic'
15623 # FIXME: we need at least 68020 code to build shared libraries, but
15624 # adding the `-m68020' flag to GCC prevents building anything better,
15626 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15629 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15630 # PIC is the default for these OSes.
15633 mingw* | pw32* | os2*)
15634 # This hack is so that the source file can tell whether it is being
15635 # built for inclusion in a dll (and should export symbols for example).
15636 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15639 darwin* | rhapsody*)
15640 # PIC is the default on this platform
15641 # Common symbols not allowed in MH_DYLIB files
15642 lt_prog_compiler_pic_GCJ='-fno-common'
15646 # Just because we use GCC doesn't mean we suddenly get shared libraries
15647 # on systems that don't support them.
15648 lt_prog_compiler_can_build_shared_GCJ=no
15653 if test -d /usr/nec; then
15654 lt_prog_compiler_pic_GCJ=-Kconform_pic
15659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15660 # not for PA HP-UX.
15661 case "$host_cpu" in
15666 lt_prog_compiler_pic_GCJ='-fPIC'
15672 lt_prog_compiler_pic_GCJ='-fPIC'
15676 # PORTME Check for flag to pass linker flags through the system compiler.
15679 lt_prog_compiler_wl_GCJ='-Wl,'
15680 if test "$host_cpu" = ia64; then
15681 # AIX 5 now supports IA64 processor
15682 lt_prog_compiler_static_GCJ='-Bstatic'
15684 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15688 mingw* | pw32* | os2*)
15689 # This hack is so that the source file can tell whether it is being
15690 # built for inclusion in a dll (and should export symbols for example).
15691 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15694 hpux9* | hpux10* | hpux11*)
15695 lt_prog_compiler_wl_GCJ='-Wl,'
15696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15697 # not for PA HP-UX.
15698 case "$host_cpu" in
15703 lt_prog_compiler_pic_GCJ='+Z'
15706 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15707 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15710 irix5* | irix6* | nonstopux*)
15711 lt_prog_compiler_wl_GCJ='-Wl,'
15712 # PIC (with -KPIC) is the default.
15713 lt_prog_compiler_static_GCJ='-non_shared'
15717 lt_prog_compiler_pic_GCJ='-KPIC'
15718 lt_prog_compiler_static_GCJ='-Bstatic'
15724 lt_prog_compiler_wl_GCJ='-Wl,'
15725 lt_prog_compiler_pic_GCJ='-KPIC'
15726 lt_prog_compiler_static_GCJ='-static'
15729 lt_prog_compiler_wl_GCJ='-Wl,'
15730 # All Alpha code is PIC.
15731 lt_prog_compiler_static_GCJ='-non_shared'
15736 osf3* | osf4* | osf5*)
15737 lt_prog_compiler_wl_GCJ='-Wl,'
15738 # All OSF/1 code is PIC.
15739 lt_prog_compiler_static_GCJ='-non_shared'
15743 lt_prog_compiler_pic_GCJ='-Kpic'
15744 lt_prog_compiler_static_GCJ='-dn'
15748 lt_prog_compiler_wl_GCJ='-Wl,'
15749 lt_prog_compiler_pic_GCJ='-KPIC'
15750 lt_prog_compiler_static_GCJ='-Bstatic'
15754 lt_prog_compiler_wl_GCJ='-Qoption ld '
15755 lt_prog_compiler_pic_GCJ='-PIC'
15756 lt_prog_compiler_static_GCJ='-Bstatic'
15759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15760 lt_prog_compiler_wl_GCJ='-Wl,'
15761 lt_prog_compiler_pic_GCJ='-KPIC'
15762 lt_prog_compiler_static_GCJ='-Bstatic'
15766 if test -d /usr/nec ;then
15767 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15768 lt_prog_compiler_static_GCJ='-Bstatic'
15773 lt_prog_compiler_pic_GCJ='-pic'
15774 lt_prog_compiler_static_GCJ='-Bstatic'
15778 lt_prog_compiler_can_build_shared_GCJ=no
15783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15784 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15787 # Check to make sure the PIC flag actually works.
15789 if test -n "$lt_prog_compiler_pic_GCJ"; then
15791 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15792 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15793 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 lt_prog_compiler_pic_works_GCJ=no
15797 ac_outfile=conftest.$ac_objext
15798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15800 # Insert the option either (1) after the last *FLAGS variable, or
15801 # (2) before a word containing "conftest.", or (3) at the end.
15802 # Note that $ac_compile itself does not contain backslashes and begins
15803 # with a dollar sign (not a hyphen), so the echo should work correctly.
15804 # The option is referenced via a variable to avoid confusing sed.
15805 lt_compile=`echo "$ac_compile" | $SED \
15806 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15808 -e 's:$: $lt_compiler_flag:'`
15809 (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
15810 (eval "$lt_compile" 2>conftest.err)
15812 cat conftest.err >&5
15813 echo "$as_me:15813: \$? = $ac_status" >&5
15814 if (exit $ac_status) && test -s "$ac_outfile"; then
15815 # The compiler can only warn and ignore the option if not recognized
15816 # So say no if there are warnings
15817 if test ! -s conftest.err; then
15818 lt_prog_compiler_pic_works_GCJ=yes
15824 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15825 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15827 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15828 case $lt_prog_compiler_pic_GCJ in
15830 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15833 lt_prog_compiler_pic_GCJ=
15834 lt_prog_compiler_can_build_shared_GCJ=no
15839 # For platforms which do not support PIC, -DPIC is meaningless:
15841 lt_prog_compiler_pic_GCJ=
15844 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15848 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15850 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15851 echo $ECHO_N "(cached) $ECHO_C" >&6
15853 lt_cv_prog_compiler_c_o_GCJ=no
15854 $rm -r conftest 2>/dev/null
15858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15860 lt_compiler_flag="-o out/conftest2.$ac_objext"
15861 # Insert the option either (1) after the last *FLAGS variable, or
15862 # (2) before a word containing "conftest.", or (3) at the end.
15863 # Note that $ac_compile itself does not contain backslashes and begins
15864 # with a dollar sign (not a hyphen), so the echo should work correctly.
15865 lt_compile=`echo "$ac_compile" | $SED \
15866 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15868 -e 's:$: $lt_compiler_flag:'`
15869 (eval echo "\"\$as_me:15869: $lt_compile\"" >&5)
15870 (eval "$lt_compile" 2>out/conftest.err)
15872 cat out/conftest.err >&5
15873 echo "$as_me:15873: \$? = $ac_status" >&5
15874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15876 # The compiler can only warn and ignore the option if not recognized
15877 # So say no if there are warnings
15878 if test ! -s out/conftest.err; then
15879 lt_cv_prog_compiler_c_o_GCJ=yes
15884 # SGI C++ compiler will create directory out/ii_files/ for
15885 # template instantiation
15886 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15887 $rm out/* && rmdir out
15893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15897 hard_links="nottested"
15898 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15899 # do not overwrite the value of need_locks provided by the user
15900 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15906 ln conftest.a conftest.b 2>&5 || hard_links=no
15907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15908 echo "$as_me:$LINENO: result: $hard_links" >&5
15909 echo "${ECHO_T}$hard_links" >&6
15910 if test "$hard_links" = no; then
15911 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15919 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15923 allow_undefined_flag_GCJ=
15924 enable_shared_with_static_runtimes_GCJ=no
15926 archive_expsym_cmds_GCJ=
15927 old_archive_From_new_cmds_GCJ=
15928 old_archive_from_expsyms_cmds_GCJ=
15929 export_dynamic_flag_spec_GCJ=
15930 whole_archive_flag_spec_GCJ=
15931 thread_safe_flag_spec_GCJ=
15932 hardcode_libdir_flag_spec_GCJ=
15933 hardcode_libdir_flag_spec_ld_GCJ=
15934 hardcode_libdir_separator_GCJ=
15935 hardcode_direct_GCJ=no
15936 hardcode_minus_L_GCJ=no
15937 hardcode_shlibpath_var_GCJ=unsupported
15938 link_all_deplibs_GCJ=unknown
15939 hardcode_automatic_GCJ=no
15941 module_expsym_cmds_GCJ=
15942 always_export_symbols_GCJ=no
15943 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15944 # include_expsyms should be a list of space-separated symbols to be *always*
15945 # included in the symbol list
15946 include_expsyms_GCJ=
15947 # exclude_expsyms can be an extended regexp of symbols to exclude
15948 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15949 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15950 # as well as any symbol that contains `d'.
15951 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15952 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15953 # platforms (ab)use it in PIC code, but their linkers get confused if
15954 # the symbol is explicitly referenced. Since portable code cannot
15955 # rely on this symbol name, it's probably fine to never include it in
15956 # preloaded symbol tables.
15957 extract_expsyms_cmds=
15960 cygwin* | mingw* | pw32*)
15961 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15962 # When not using gcc, we currently assume that we are using
15963 # Microsoft Visual C++.
15964 if test "$GCC" != yes; then
15974 if test "$with_gnu_ld" = yes; then
15975 # If archive_cmds runs LD, not CC, wlarc should be empty
15978 # See if GNU ld supports shared libraries.
15980 aix3* | aix4* | aix5*)
15981 # On AIX/PPC, the GNU linker is very broken
15982 if test "$host_cpu" != ia64; then
15986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15987 *** to be unable to reliably create shared libraries on AIX.
15988 *** Therefore, libtool is disabling shared libraries support. If you
15989 *** really care for shared libraries, you may want to modify your PATH
15990 *** so that a non-GNU linker is found, and then restart.
15997 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)'
15998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15999 hardcode_minus_L_GCJ=yes
16001 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16002 # that the semantics of dynamic libraries on AmigaOS, at least up
16003 # to version 4, is to share data among multiple programs linked
16004 # with the same dynamic library. Since this doesn't match the
16005 # behavior of shared libraries on other platforms, we can't use
16011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16012 allow_undefined_flag_GCJ=unsupported
16013 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16014 # support --undefined. This deserves some investigation. FIXME
16015 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16021 cygwin* | mingw* | pw32*)
16022 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16023 # as there is no search path for DLLs.
16024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16025 allow_undefined_flag_GCJ=unsupported
16026 always_export_symbols_GCJ=no
16027 enable_shared_with_static_runtimes_GCJ=yes
16028 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16030 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16031 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16032 # If the export-symbols file already is a .def file (1st line
16033 # is EXPORTS), use it as is; otherwise, prepend...
16034 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16035 cp $export_symbols $output_objdir/$soname.def;
16037 echo EXPORTS > $output_objdir/$soname.def;
16038 cat $export_symbols >> $output_objdir/$soname.def;
16040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16048 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16051 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16052 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16057 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16061 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16062 *** create shared libraries on Solaris systems. Therefore, libtool
16063 *** is disabling shared libraries support. We urge you to upgrade GNU
16064 *** binutils to release 2.9.1 or newer. Another option is to modify
16065 *** your PATH or compiler configuration so that the native linker is
16066 *** used, and then restart.
16069 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16070 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16071 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16078 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16080 hardcode_direct_GCJ=yes
16081 hardcode_shlibpath_var_GCJ=no
16085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16086 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16087 archive_cmds_GCJ="$tmp_archive_cmds"
16088 supports_anon_versioning=no
16089 case `$LD -v 2>/dev/null` in
16090 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16091 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16092 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16093 *\ 2.11.*) ;; # other 2.11 versions
16094 *) supports_anon_versioning=yes ;;
16096 if test $supports_anon_versioning = yes; then
16097 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16099 $echo "local: *; };" >> $output_objdir/$libname.ver~
16100 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16102 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16110 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16111 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16112 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16119 if test "$ld_shlibs_GCJ" = yes; then
16120 runpath_var=LD_RUN_PATH
16121 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16122 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16123 # ancient GNU ld didn't support --whole-archive et. al.
16124 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16125 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16127 whole_archive_flag_spec_GCJ=
16131 # PORTME fill in a description of your system's linker (not GNU ld)
16134 allow_undefined_flag_GCJ=unsupported
16135 always_export_symbols_GCJ=yes
16136 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'
16137 # Note: this linker hardcodes the directories in LIBPATH if there
16138 # are no directories specified by -L.
16139 hardcode_minus_L_GCJ=yes
16140 if test "$GCC" = yes && test -z "$link_static_flag"; then
16141 # Neither direct hardcoding nor static linking is supported with a
16143 hardcode_direct_GCJ=unsupported
16148 if test "$host_cpu" = ia64; then
16149 # On IA64, the linker does run time linking by default, so we don't
16150 # have to do anything special.
16151 aix_use_runtimelinking=no
16152 exp_sym_flag='-Bexport'
16155 # If we're using GNU nm, then we don't want the "-C" option.
16156 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16157 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16158 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'
16160 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'
16162 aix_use_runtimelinking=no
16164 # Test if we are trying to use run time linking or normal
16165 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16166 # need to do runtime linking.
16167 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16168 for ld_flag in $LDFLAGS; do
16169 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16170 aix_use_runtimelinking=yes
16176 exp_sym_flag='-bexport'
16177 no_entry_flag='-bnoentry'
16180 # When large executables or shared objects are built, AIX ld can
16181 # have problems creating the table of contents. If linking a library
16182 # or program results in "error TOC overflow" add -mminimal-toc to
16183 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16184 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16186 archive_cmds_GCJ=''
16187 hardcode_direct_GCJ=yes
16188 hardcode_libdir_separator_GCJ=':'
16189 link_all_deplibs_GCJ=yes
16191 if test "$GCC" = yes; then
16192 case $host_os in aix4.012|aix4.012.*)
16193 # We only want to do this on AIX 4.2 and lower, the check
16194 # below for broken collect2 doesn't work under 4.3+
16195 collect2name=`${CC} -print-prog-name=collect2`
16196 if test -f "$collect2name" && \
16197 strings "$collect2name" | grep resolve_lib_name >/dev/null
16199 # We have reworked collect2
16200 hardcode_direct_GCJ=yes
16202 # We have old collect2
16203 hardcode_direct_GCJ=unsupported
16204 # It fails to find uninstalled libraries when the uninstalled
16205 # path is not listed in the libpath. Setting hardcode_minus_L
16206 # to unsupported forces relinking
16207 hardcode_minus_L_GCJ=yes
16208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16209 hardcode_libdir_separator_GCJ=
16212 shared_flag='-shared'
16215 if test "$host_cpu" = ia64; then
16216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16217 # chokes on -Wl,-G. The following line is correct:
16220 if test "$aix_use_runtimelinking" = yes; then
16221 shared_flag='${wl}-G'
16223 shared_flag='${wl}-bM:SRE'
16228 # It seems that -bexpall does not export symbols beginning with
16229 # underscore (_), so it is better to generate a list of symbols to export.
16230 always_export_symbols_GCJ=yes
16231 if test "$aix_use_runtimelinking" = yes; then
16232 # Warning - without using the other runtime loading flags (-brtl),
16233 # -berok will link without error, but may produce a broken library.
16234 allow_undefined_flag_GCJ='-berok'
16235 # Determine the default libpath from the value encoded in an empty executable.
16236 cat >conftest.$ac_ext <<_ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253 (eval $ac_link) 2>conftest.er1
16255 grep -v '^ *+' conftest.er1 >conftest.err
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } &&
16260 { ac_try='test -z "$ac_c_werror_flag"
16261 || test ! -s conftest.err'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; } &&
16267 { ac_try='test -s conftest$ac_exeext'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16276 # Check for a 64-bit object if we didn't find anything.
16277 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; }
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16284 rm -f conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16288 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16289 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"
16291 if test "$host_cpu" = ia64; then
16292 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16293 allow_undefined_flag_GCJ="-z nodefs"
16294 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"
16296 # Determine the default libpath from the value encoded in an empty executable.
16297 cat >conftest.$ac_ext <<_ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16314 (eval $ac_link) 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest$ac_exeext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16337 # Check for a 64-bit object if we didn't find anything.
16338 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; }
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16345 rm -f conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16349 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16350 # Warning - without using the other run time loading flags,
16351 # -berok will link without error, but may produce a broken library.
16352 no_undefined_flag_GCJ=' ${wl}-bernotok'
16353 allow_undefined_flag_GCJ=' ${wl}-berok'
16354 # -bexpall does not export symbols beginning with underscore (_)
16355 always_export_symbols_GCJ=yes
16356 # Exported symbols can be pulled into shared objects from archives
16357 whole_archive_flag_spec_GCJ=' '
16358 archive_cmds_need_lc_GCJ=yes
16359 # This is similar to how AIX traditionally builds it's shared libraries.
16360 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'
16366 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)'
16367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368 hardcode_minus_L_GCJ=yes
16369 # see comment about different semantics on the GNU ld section
16374 export_dynamic_flag_spec_GCJ=-rdynamic
16377 cygwin* | mingw* | pw32*)
16378 # When not using gcc, we currently assume that we are using
16379 # Microsoft Visual C++.
16380 # hardcode_libdir_flag_spec is actually meaningless, as there is
16381 # no search path for DLLs.
16382 hardcode_libdir_flag_spec_GCJ=' '
16383 allow_undefined_flag_GCJ=unsupported
16384 # Tell ltmain to make .lib files, not .a files.
16386 # Tell ltmain to make .dll files, not .so files.
16388 # FIXME: Setting linknames here is a bad hack.
16389 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16390 # The linker will automatically build a .lib file if we build a DLL.
16391 old_archive_From_new_cmds_GCJ='true'
16392 # FIXME: Should let the user specify the lib program.
16393 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16394 fix_srcfile_path='`cygpath -w "$srcfile"`'
16395 enable_shared_with_static_runtimes_GCJ=yes
16398 darwin* | rhapsody*)
16399 if test "$GXX" = yes ; then
16400 archive_cmds_need_lc_GCJ=no
16402 rhapsody* | darwin1.[012])
16403 allow_undefined_flag_GCJ='-undefined suppress'
16406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16407 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16409 case ${MACOSX_DEPLOYMENT_TARGET} in
16411 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16414 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16420 lt_int_apple_cc_single_mod=no
16421 output_verbose_link_cmd='echo'
16422 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16423 lt_int_apple_cc_single_mod=yes
16425 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16426 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16428 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'
16430 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16432 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16433 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}'
16435 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}'
16437 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}'
16438 hardcode_direct_GCJ=no
16439 hardcode_automatic_GCJ=yes
16440 hardcode_shlibpath_var_GCJ=unsupported
16441 whole_archive_flag_spec_GCJ='-all_load $convenience'
16442 link_all_deplibs_GCJ=yes
16449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16451 hardcode_shlibpath_var_GCJ=no
16458 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16459 # support. Future versions do this automatically, but an explicit c++rt0.o
16460 # does not break anything, and helps significantly (at the cost of a little
16463 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16464 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16465 hardcode_direct_GCJ=yes
16466 hardcode_shlibpath_var_GCJ=no
16469 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16471 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_direct_GCJ=yes
16473 hardcode_minus_L_GCJ=yes
16474 hardcode_shlibpath_var_GCJ=no
16477 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16478 freebsd* | kfreebsd*-gnu)
16479 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16480 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16481 hardcode_direct_GCJ=yes
16482 hardcode_shlibpath_var_GCJ=no
16486 if test "$GCC" = yes; then
16487 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'
16489 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'
16491 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16492 hardcode_libdir_separator_GCJ=:
16493 hardcode_direct_GCJ=yes
16495 # hardcode_minus_L: Not really in the search PATH,
16496 # but as the default location of the library.
16497 hardcode_minus_L_GCJ=yes
16498 export_dynamic_flag_spec_GCJ='${wl}-E'
16502 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16503 case "$host_cpu" in
16505 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16512 case "$host_cpu" in
16514 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16521 if test "$with_gnu_ld" = no; then
16522 case "$host_cpu" in
16524 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16525 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16526 hardcode_libdir_separator_GCJ=:
16527 hardcode_direct_GCJ=no
16528 hardcode_shlibpath_var_GCJ=no
16531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532 hardcode_direct_GCJ=no
16533 hardcode_shlibpath_var_GCJ=no
16535 # hardcode_minus_L: Not really in the search PATH,
16536 # but as the default location of the library.
16537 hardcode_minus_L_GCJ=yes
16540 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16541 hardcode_libdir_separator_GCJ=:
16542 hardcode_direct_GCJ=yes
16543 export_dynamic_flag_spec_GCJ='${wl}-E'
16545 # hardcode_minus_L: Not really in the search PATH,
16546 # but as the default location of the library.
16547 hardcode_minus_L_GCJ=yes
16553 irix5* | irix6* | nonstopux*)
16554 if test "$GCC" = yes; then
16555 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'
16557 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'
16558 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16560 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16561 hardcode_libdir_separator_GCJ=:
16562 link_all_deplibs_GCJ=yes
16566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16567 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16569 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16571 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16572 hardcode_direct_GCJ=yes
16573 hardcode_shlibpath_var_GCJ=no
16577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_direct_GCJ=yes
16579 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16580 hardcode_libdir_separator_GCJ=:
16581 hardcode_shlibpath_var_GCJ=no
16585 hardcode_direct_GCJ=yes
16586 hardcode_shlibpath_var_GCJ=no
16587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16588 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16590 export_dynamic_flag_spec_GCJ='${wl}-E'
16593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16594 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16595 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16598 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16606 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16607 hardcode_minus_L_GCJ=yes
16608 allow_undefined_flag_GCJ=unsupported
16609 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'
16610 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16614 if test "$GCC" = yes; then
16615 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16616 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'
16618 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16619 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'
16621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16622 hardcode_libdir_separator_GCJ=:
16625 osf4* | osf5*) # as osf3* with the addition of -msym flag
16626 if test "$GCC" = yes; then
16627 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16628 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'
16629 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16631 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16632 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'
16633 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~
16634 $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'
16636 # Both c and cxx compiler support -rpath directly
16637 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16639 hardcode_libdir_separator_GCJ=:
16643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_shlibpath_var_GCJ=no
16645 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16646 runpath_var=LD_RUN_PATH
16647 hardcode_runpath_var=yes
16651 no_undefined_flag_GCJ=' -z text'
16652 if test "$GCC" = yes; then
16653 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16655 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16657 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16661 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16662 hardcode_shlibpath_var_GCJ=no
16664 solaris2.[0-5] | solaris2.[0-5].*) ;;
16665 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16666 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16668 link_all_deplibs_GCJ=yes
16672 if test "x$host_vendor" = xsequent; then
16673 # Use $CC to link under sequent, because it throws in some extra .o
16674 # files that make .init and .fini sections work.
16675 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16677 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16680 hardcode_direct_GCJ=yes
16681 hardcode_minus_L_GCJ=yes
16682 hardcode_shlibpath_var_GCJ=no
16686 case $host_vendor in
16688 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_direct_GCJ=yes # is this really true???
16692 ## LD is ld it makes a PLAMLIB
16693 ## CC just makes a GrossModule.
16694 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16695 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16696 hardcode_direct_GCJ=no
16699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16703 runpath_var='LD_RUN_PATH'
16704 hardcode_shlibpath_var_GCJ=no
16708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 hardcode_shlibpath_var_GCJ=no
16710 export_dynamic_flag_spec_GCJ='-Bexport'
16714 if test -d /usr/nec; then
16715 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716 hardcode_shlibpath_var_GCJ=no
16717 runpath_var=LD_RUN_PATH
16718 hardcode_runpath_var=yes
16724 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16725 hardcode_direct_GCJ=yes
16726 hardcode_minus_L_GCJ=no
16727 hardcode_shlibpath_var_GCJ=no
16728 hardcode_runpath_var=yes
16729 runpath_var=LD_RUN_PATH
16732 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16733 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16734 if test "$GCC" = yes; then
16735 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16739 runpath_var='LD_RUN_PATH'
16740 hardcode_shlibpath_var_GCJ=no
16744 no_undefined_flag_GCJ=' -z text'
16745 # $CC -shared without GNU ld will not create a library from C++
16746 # object files and a static libstdc++, better avoid it by now
16747 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16750 hardcode_libdir_flag_spec_GCJ=
16751 hardcode_shlibpath_var_GCJ=no
16752 runpath_var='LD_RUN_PATH'
16756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16758 hardcode_shlibpath_var_GCJ=no
16767 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16768 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16769 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16772 if test "$GCC" = yes; then
16773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16777 # Do we need to explicitly link libc?
16779 case "x$archive_cmds_need_lc_GCJ" in
16781 # Assume -lc should be added
16782 archive_cmds_need_lc_GCJ=yes
16784 if test "$enable_shared" = yes && test "$GCC" = yes; then
16785 case $archive_cmds_GCJ in
16787 # FIXME: we may have to deal with multi-command sequences.
16790 # Test whether the compiler implicitly links with -lc since on some
16791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16792 # to ld, don't add -lc before -lgcc.
16793 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } 2>conftest.err; then
16805 libobjs=conftest.$ac_objext
16807 wl=$lt_prog_compiler_wl_GCJ
16813 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16814 allow_undefined_flag_GCJ=
16815 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16816 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }
16821 archive_cmds_need_lc_GCJ=no
16823 archive_cmds_need_lc_GCJ=yes
16825 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16827 cat conftest.err 1>&5
16830 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16831 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16838 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16839 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16840 library_names_spec=
16841 libname_spec='lib$name'
16845 postuninstall_cmds=
16849 shlibpath_overrides_runpath=unknown
16851 dynamic_linker="$host_os ld.so"
16852 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16853 if test "$GCC" = yes; then
16854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16855 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16856 # if the path contains ";" then we assume it to be the separator
16857 # otherwise default to the standard path separator (i.e. ":") - it is
16858 # assumed that no part of a normal pathname contains ";" but that should
16859 # okay in the real world where ";" in dirpaths is itself problematic.
16860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16867 need_lib_prefix=unknown
16868 hardcode_into_libs=no
16870 # when you set need_version to no, make sure it does not cause -set_version
16871 # flags to be left without arguments
16872 need_version=unknown
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16878 shlibpath_var=LIBPATH
16880 # AIX 3 has no versioning support, so we append a major version to the name.
16881 soname_spec='${libname}${release}${shared_ext}$major'
16888 hardcode_into_libs=yes
16889 if test "$host_cpu" = ia64; then
16890 # AIX 5 supports IA64
16891 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16892 shlibpath_var=LD_LIBRARY_PATH
16894 # With GCC up to 2.95.x, collect2 would create an import file
16895 # for dependence libraries. The import file would start with
16896 # the line `#! .'. This would cause the generated library to
16897 # depend on `.', always an invalid library. This was fixed in
16898 # development snapshots of GCC prior to 3.0.
16900 aix4 | aix4.[01] | aix4.[01].*)
16901 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16903 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16906 can_build_shared=no
16910 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16911 # soname into executable. Probably we can add versioning support to
16912 # collect2, so additional links can be useful in future.
16913 if test "$aix_use_runtimelinking" = yes; then
16914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16915 # instead of lib<name>.a to let people know that these are not
16916 # typical AIX shared libraries.
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919 # We preserve .a as extension for shared libraries through AIX4.2
16920 # and later when we are not doing run time linking.
16921 library_names_spec='${libname}${release}.a $libname.a'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16924 shlibpath_var=LIBPATH
16929 library_names_spec='$libname.ixlibrary $libname.a'
16930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16931 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'
16935 library_names_spec='${libname}${shared_ext}'
16936 dynamic_linker="$host_os ld.so"
16937 shlibpath_var=LIBRARY_PATH
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16949 # the default ld.so.conf also contains /usr/contrib/lib and
16950 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16951 # libtool to hard-code these into programs
16954 cygwin* | mingw* | pw32*)
16955 version_type=windows
16960 case $GCC,$host_os in
16961 yes,cygwin* | yes,mingw* | yes,pw32*)
16962 library_names_spec='$libname.dll.a'
16963 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16964 postinstall_cmds='base_file=`basename \${file}`~
16965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16966 dldir=$destdir/`dirname \$dlpath`~
16967 test -d \$dldir || mkdir -p \$dldir~
16968 $install_prog $dir/$dlname \$dldir/$dlname'
16969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16970 dlpath=$dir/\$dldll~
16972 shlibpath_overrides_runpath=yes
16976 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16977 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16978 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16981 # MinGW DLLs use traditional 'lib' prefix
16982 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16983 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16984 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16985 # It is most probably a Windows format PATH printed by
16986 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16987 # path with ; separators, and with drive letters. We can handle the
16988 # drive letters (cygwin fileutils understands them), so leave them,
16989 # especially as we might pass files found there to a mingw objdump,
16990 # which wouldn't understand a cygwinified path. Ahh.
16991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16997 # pw32 DLLs use 'pw' prefix rather than 'lib'
16998 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17004 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17007 dynamic_linker='Win32 ld.exe'
17008 # FIXME: first we should search . and the directory the executable is in
17012 darwin* | rhapsody*)
17013 dynamic_linker="$host_os dyld"
17014 version_type=darwin
17017 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17018 soname_spec='${libname}${release}${major}$shared_ext'
17019 shlibpath_overrides_runpath=yes
17020 shlibpath_var=DYLD_LIBRARY_PATH
17021 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17022 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17023 if test "$GCC" = yes; then
17024 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"`
17026 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=no
17052 hardcode_into_libs=yes
17053 dynamic_linker='GNU ld.so'
17057 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17058 version_type=freebsd-$objformat
17059 case $version_type in
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17070 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes
17075 freebsd3.01* | freebsdelf3.01*)
17076 shlibpath_overrides_runpath=yes
17077 hardcode_into_libs=yes
17080 shlibpath_overrides_runpath=no
17081 hardcode_into_libs=yes
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 shlibpath_var=LD_LIBRARY_PATH
17093 hardcode_into_libs=yes
17096 hpux9* | hpux10* | hpux11*)
17097 # Give a soname corresponding to the major version so that dld.sl refuses to
17098 # link against other versions.
17102 case "$host_cpu" in
17105 hardcode_into_libs=yes
17106 dynamic_linker="$host_os dld.so"
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 if test "X$HPUX_IA64_MODE" = X32; then
17112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17120 hardcode_into_libs=yes
17121 dynamic_linker="$host_os dld.sl"
17122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17131 dynamic_linker="$host_os dld.sl"
17132 shlibpath_var=SHLIB_PATH
17133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17138 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17139 postinstall_cmds='chmod 555 $lib'
17142 irix5* | irix6* | nonstopux*)
17144 nonstopux*) version_type=nonstopux ;;
17146 if test "$lt_cv_prog_gnu_ld" = yes; then
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17157 irix5* | nonstopux*)
17158 libsuff= shlibsuff=
17161 case $LD in # libtool.m4 will add one of these switches to LD
17162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17163 libsuff= shlibsuff= libmagic=32-bit;;
17164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17165 libsuff=32 shlibsuff=N32 libmagic=N32;;
17166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17168 *) libsuff= shlibsuff= libmagic=never-match;;
17172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17173 shlibpath_overrides_runpath=no
17174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17176 hardcode_into_libs=yes
17179 # No shared lib support for Linux oldld, aout, or coff.
17180 linux*oldld* | linux*aout* | linux*coff*)
17184 # This must be Linux ELF.
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath=no
17194 # This implies no fast_install, which is unacceptable.
17195 # Some rework will be needed to allow for fast_install
17196 # before this can be enabled.
17197 hardcode_into_libs=yes
17199 # find out which ABI we are using
17201 case "$host_cpu" in
17202 x86_64*|s390x*|powerpc64*)
17203 echo '#line 17203 "configure"' > conftest.$ac_ext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; then
17209 case `/usr/bin/file conftest.$ac_objext` in
17212 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17220 # Append ld.so.conf contents to the search path
17221 if test -f /etc/ld.so.conf; then
17222 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17223 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17226 # We used to test for /lib/ld.so.1 and disable shared libraries on
17227 # powerpc, because MkLinux only supported shared libraries with the
17228 # GNU dynamic linker. Since this was broken with cross compilers,
17229 # most powerpc-linux boxes support dynamic linking these days and
17230 # people can always --disable-shared, the test was removed, and we
17231 # assume the GNU/Linux dynamic linker is in use.
17232 dynamic_linker='GNU/Linux ld.so'
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 shlibpath_overrides_runpath=no
17243 hardcode_into_libs=yes
17244 dynamic_linker='GNU ld.so'
17251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17254 dynamic_linker='NetBSD (a.out) ld.so'
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 dynamic_linker='NetBSD ld.elf_so'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 shlibpath_overrides_runpath=yes
17262 hardcode_into_libs=yes
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 shlibpath_overrides_runpath=yes
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 shlibpath_overrides_runpath=yes
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17291 openbsd2.[89] | openbsd2.[89].*)
17292 shlibpath_overrides_runpath=no
17295 shlibpath_overrides_runpath=yes
17299 shlibpath_overrides_runpath=yes
17304 libname_spec='$name'
17307 library_names_spec='$libname${shared_ext} $libname.a'
17308 dynamic_linker='OS/2 ld.exe'
17309 shlibpath_var=LIBPATH
17312 osf3* | osf4* | osf5*)
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17320 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 shlibpath_var=LD_LIBRARY_PATH
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 shlibpath_overrides_runpath=yes
17338 hardcode_into_libs=yes
17339 # ldd complains unless libraries are executable
17340 postinstall_cmds='chmod +x $lib'
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath=yes
17349 if test "$with_gnu_ld" = yes; then
17355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 case $host_vendor in
17362 shlibpath_overrides_runpath=no
17364 export_dynamic_flag_spec='${wl}-Blargedynsym'
17365 runpath_var=LD_RUN_PATH
17373 shlibpath_overrides_runpath=no
17374 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17380 if test -d /usr/nec ;then
17382 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17383 soname_spec='$libname${shared_ext}.$major'
17384 shlibpath_var=LD_LIBRARY_PATH
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 soname_spec='${libname}${release}${shared_ext}$major'
17392 shlibpath_var=LD_LIBRARY_PATH
17399 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17400 echo "${ECHO_T}$dynamic_linker" >&6
17401 test "$dynamic_linker" = no && can_build_shared=no
17403 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17404 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17405 hardcode_action_GCJ=
17406 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17407 test -n "$runpath_var GCJ" || \
17408 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17410 # We can hardcode non-existant directories.
17411 if test "$hardcode_direct_GCJ" != no &&
17412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17413 # have to relink, otherwise we might link with an installed library
17414 # when we should be linking with a yet-to-be-installed one
17415 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17416 test "$hardcode_minus_L_GCJ" != no; then
17417 # Linking always hardcodes the temporary library directory.
17418 hardcode_action_GCJ=relink
17420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17421 hardcode_action_GCJ=immediate
17424 # We cannot hardcode anything, or else we can only hardcode existing
17426 hardcode_action_GCJ=unsupported
17428 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17429 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17431 if test "$hardcode_action_GCJ" = relink; then
17432 # Fast installation is not supported
17433 enable_fast_install=no
17434 elif test "$shlibpath_overrides_runpath" = yes ||
17435 test "$enable_shared" = no; then
17436 # Fast installation is not necessary
17437 enable_fast_install=needless
17442 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17443 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17444 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17445 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17446 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17447 echo "$as_me:$LINENO: result: yes" >&5
17448 echo "${ECHO_T}yes" >&6
17450 # FIXME - insert some real tests, host_os isn't really good enough
17453 if test -n "$STRIP" ; then
17454 striplib="$STRIP -x"
17455 echo "$as_me:$LINENO: result: yes" >&5
17456 echo "${ECHO_T}yes" >&6
17458 echo "$as_me:$LINENO: result: no" >&5
17459 echo "${ECHO_T}no" >&6
17463 echo "$as_me:$LINENO: result: no" >&5
17464 echo "${ECHO_T}no" >&6
17469 if test "x$enable_dlopen" != xyes; then
17470 enable_dlopen=unknown
17471 enable_dlopen_self=unknown
17472 enable_dlopen_self_static=unknown
17479 lt_cv_dlopen="load_add_on"
17481 lt_cv_dlopen_self=yes
17485 lt_cv_dlopen="LoadLibrary"
17490 lt_cv_dlopen="dlopen"
17495 # if libdl is installed we need to link against it
17496 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 ac_check_lib_save_LIBS=$LIBS
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17510 /* Override any gcc2 internal prototype to avoid an error. */
17514 /* We use char because int might match the return type of a gcc2
17515 builtin and then its argument prototype would still apply. */
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_lib_dl_dlopen=yes
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 ac_cv_lib_dl_dlopen=no
17554 rm -f conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17558 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17560 if test $ac_cv_lib_dl_dlopen = yes; then
17561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17564 lt_cv_dlopen="dyld"
17566 lt_cv_dlopen_self=yes
17573 echo "$as_me:$LINENO: checking for shl_load" >&5
17574 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17575 if test "${ac_cv_func_shl_load+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17578 cat >conftest.$ac_ext <<_ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17586 #define shl_load innocuous_shl_load
17588 /* System header to define __stub macros and hopefully few prototypes,
17589 which can conflict with char shl_load (); below.
17590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591 <limits.h> exists even on freestanding compilers. */
17594 # include <limits.h>
17596 # include <assert.h>
17601 /* Override any gcc2 internal prototype to avoid an error. */
17606 /* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17609 /* The GNU C library defines this for functions which it implements
17610 to always fail with ENOSYS. Some functions are actually named
17611 something starting with __ and the normal name is an alias. */
17612 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17615 char (*f) () = shl_load;
17624 return f != shl_load;
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631 (eval $ac_link) 2>conftest.er1
17633 grep -v '^ *+' conftest.er1 >conftest.err
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag"
17639 || test ! -s conftest.err'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 ac_cv_func_shl_load=yes
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_cv_func_shl_load=no
17658 rm -f conftest.err conftest.$ac_objext \
17659 conftest$ac_exeext conftest.$ac_ext
17661 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17662 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17663 if test $ac_cv_func_shl_load = yes; then
17664 lt_cv_dlopen="shl_load"
17666 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17667 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17668 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 ac_check_lib_save_LIBS=$LIBS
17673 cat >conftest.$ac_ext <<_ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17680 /* Override any gcc2 internal prototype to avoid an error. */
17684 /* We use char because int might match the return type of a gcc2
17685 builtin and then its argument prototype would still apply. */
17695 rm -f conftest.$ac_objext conftest$ac_exeext
17696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17697 (eval $ac_link) 2>conftest.er1
17699 grep -v '^ *+' conftest.er1 >conftest.err
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } &&
17704 { ac_try='test -z "$ac_c_werror_flag"
17705 || test ! -s conftest.err'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; } &&
17711 { ac_try='test -s conftest$ac_exeext'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 ac_cv_lib_dld_shl_load=yes
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_cv_lib_dld_shl_load=no
17724 rm -f conftest.err conftest.$ac_objext \
17725 conftest$ac_exeext conftest.$ac_ext
17726 LIBS=$ac_check_lib_save_LIBS
17728 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17729 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17730 if test $ac_cv_lib_dld_shl_load = yes; then
17731 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17733 echo "$as_me:$LINENO: checking for dlopen" >&5
17734 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17735 if test "${ac_cv_func_dlopen+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 cat >conftest.$ac_ext <<_ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17746 #define dlopen innocuous_dlopen
17748 /* System header to define __stub macros and hopefully few prototypes,
17749 which can conflict with char dlopen (); below.
17750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17751 <limits.h> exists even on freestanding compilers. */
17754 # include <limits.h>
17756 # include <assert.h>
17761 /* Override any gcc2 internal prototype to avoid an error. */
17766 /* We use char because int might match the return type of a gcc2
17767 builtin and then its argument prototype would still apply. */
17769 /* The GNU C library defines this for functions which it implements
17770 to always fail with ENOSYS. Some functions are actually named
17771 something starting with __ and the normal name is an alias. */
17772 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17775 char (*f) () = dlopen;
17784 return f != dlopen;
17789 rm -f conftest.$ac_objext conftest$ac_exeext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17791 (eval $ac_link) 2>conftest.er1
17793 grep -v '^ *+' conftest.er1 >conftest.err
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -z "$ac_c_werror_flag"
17799 || test ! -s conftest.err'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest$ac_exeext'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; }; then
17811 ac_cv_func_dlopen=yes
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 ac_cv_func_dlopen=no
17818 rm -f conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17821 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17822 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17823 if test $ac_cv_func_dlopen = yes; then
17824 lt_cv_dlopen="dlopen"
17826 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17827 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 ac_check_lib_save_LIBS=$LIBS
17833 cat >conftest.$ac_ext <<_ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17840 /* Override any gcc2 internal prototype to avoid an error. */
17844 /* We use char because int might match the return type of a gcc2
17845 builtin and then its argument prototype would still apply. */
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>conftest.er1
17859 grep -v '^ *+' conftest.er1 >conftest.err
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try='test -s conftest$ac_exeext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17877 ac_cv_lib_dl_dlopen=yes
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 ac_cv_lib_dl_dlopen=no
17884 rm -f conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
17886 LIBS=$ac_check_lib_save_LIBS
17888 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17889 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17890 if test $ac_cv_lib_dl_dlopen = yes; then
17891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17893 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17894 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17895 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 ac_check_lib_save_LIBS=$LIBS
17899 LIBS="-lsvld $LIBS"
17900 cat >conftest.$ac_ext <<_ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17907 /* Override any gcc2 internal prototype to avoid an error. */
17911 /* We use char because int might match the return type of a gcc2
17912 builtin and then its argument prototype would still apply. */
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924 (eval $ac_link) 2>conftest.er1
17926 grep -v '^ *+' conftest.er1 >conftest.err
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try='test -z "$ac_c_werror_flag"
17932 || test ! -s conftest.err'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest$ac_exeext'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 ac_cv_lib_svld_dlopen=yes
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 ac_cv_lib_svld_dlopen=no
17951 rm -f conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17955 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17957 if test $ac_cv_lib_svld_dlopen = yes; then
17958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17960 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 ac_check_lib_save_LIBS=$LIBS
17967 cat >conftest.$ac_ext <<_ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17974 /* Override any gcc2 internal prototype to avoid an error. */
17978 /* We use char because int might match the return type of a gcc2
17979 builtin and then its argument prototype would still apply. */
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>conftest.er1
17993 grep -v '^ *+' conftest.er1 >conftest.err
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try='test -z "$ac_c_werror_flag"
17999 || test ! -s conftest.err'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; } &&
18005 { ac_try='test -s conftest$ac_exeext'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_lib_dld_dld_link=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_cv_lib_dld_dld_link=no
18018 rm -f conftest.err conftest.$ac_objext \
18019 conftest$ac_exeext conftest.$ac_ext
18020 LIBS=$ac_check_lib_save_LIBS
18022 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18023 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18024 if test $ac_cv_lib_dld_dld_link = yes; then
18025 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18046 if test "x$lt_cv_dlopen" != xno; then
18052 case $lt_cv_dlopen in
18054 save_CPPFLAGS="$CPPFLAGS"
18055 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18057 save_LDFLAGS="$LDFLAGS"
18058 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18061 LIBS="$lt_cv_dlopen_libs $LIBS"
18063 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18064 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18065 if test "${lt_cv_dlopen_self+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 if test "$cross_compiling" = yes; then :
18069 lt_cv_dlopen_self=cross
18071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18072 lt_status=$lt_dlunknown
18073 cat > conftest.$ac_ext <<EOF
18074 #line 18074 "configure"
18075 #include "confdefs.h"
18084 # define LT_DLGLOBAL RTLD_GLOBAL
18087 # define LT_DLGLOBAL DL_GLOBAL
18089 # define LT_DLGLOBAL 0
18093 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18094 find out it does not work in some platform. */
18095 #ifndef LT_DLLAZY_OR_NOW
18097 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18100 # define LT_DLLAZY_OR_NOW DL_LAZY
18103 # define LT_DLLAZY_OR_NOW RTLD_NOW
18106 # define LT_DLLAZY_OR_NOW DL_NOW
18108 # define LT_DLLAZY_OR_NOW 0
18116 extern "C" void exit (int);
18119 void fnord() { int i=42;}
18122 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18123 int status = $lt_dlunknown;
18127 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18128 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18129 /* dlclose (self); */
18135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18136 (eval $ac_link) 2>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18140 (./conftest; exit; ) 2>/dev/null
18142 case x$lt_status in
18143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18145 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18148 # compilation failed
18149 lt_cv_dlopen_self=no
18156 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18157 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18159 if test "x$lt_cv_dlopen_self" = xyes; then
18160 LDFLAGS="$LDFLAGS $link_static_flag"
18161 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18162 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18163 if test "${lt_cv_dlopen_self_static+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 if test "$cross_compiling" = yes; then :
18167 lt_cv_dlopen_self_static=cross
18169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18170 lt_status=$lt_dlunknown
18171 cat > conftest.$ac_ext <<EOF
18172 #line 18172 "configure"
18173 #include "confdefs.h"
18182 # define LT_DLGLOBAL RTLD_GLOBAL
18185 # define LT_DLGLOBAL DL_GLOBAL
18187 # define LT_DLGLOBAL 0
18191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18192 find out it does not work in some platform. */
18193 #ifndef LT_DLLAZY_OR_NOW
18195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18198 # define LT_DLLAZY_OR_NOW DL_LAZY
18201 # define LT_DLLAZY_OR_NOW RTLD_NOW
18204 # define LT_DLLAZY_OR_NOW DL_NOW
18206 # define LT_DLLAZY_OR_NOW 0
18214 extern "C" void exit (int);
18217 void fnord() { int i=42;}
18220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18221 int status = $lt_dlunknown;
18225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18227 /* dlclose (self); */
18233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18234 (eval $ac_link) 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18238 (./conftest; exit; ) 2>/dev/null
18240 case x$lt_status in
18241 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18242 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18243 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18246 # compilation failed
18247 lt_cv_dlopen_self_static=no
18254 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18255 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18258 CPPFLAGS="$save_CPPFLAGS"
18259 LDFLAGS="$save_LDFLAGS"
18264 case $lt_cv_dlopen_self in
18265 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18266 *) enable_dlopen_self=unknown ;;
18269 case $lt_cv_dlopen_self_static in
18270 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18271 *) enable_dlopen_self_static=unknown ;;
18276 # The else clause should only fire when bootstrapping the
18277 # libtool distribution, otherwise you forgot to ship ltmain.sh
18278 # with your package, and you will get complaints that there are
18279 # no rules to generate ltmain.sh.
18280 if test -f "$ltmain"; then
18281 # See if we are running on zsh, and set the options which allow our commands through
18282 # without removal of \ escapes.
18283 if test -n "${ZSH_VERSION+set}" ; then
18284 setopt NO_GLOB_SUBST
18286 # Now quote all the things that may contain metacharacters while being
18287 # careful not to overquote the AC_SUBSTed values. We take copies of the
18288 # variables and quote the copies for generation of the libtool script.
18289 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18291 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18292 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18293 deplibs_check_method reload_flag reload_cmds need_locks \
18294 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18295 lt_cv_sys_global_symbol_to_c_name_address \
18296 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18297 old_postinstall_cmds old_postuninstall_cmds \
18301 lt_prog_compiler_wl_GCJ \
18302 lt_prog_compiler_pic_GCJ \
18303 lt_prog_compiler_static_GCJ \
18304 lt_prog_compiler_no_builtin_flag_GCJ \
18305 export_dynamic_flag_spec_GCJ \
18306 thread_safe_flag_spec_GCJ \
18307 whole_archive_flag_spec_GCJ \
18308 enable_shared_with_static_runtimes_GCJ \
18309 old_archive_cmds_GCJ \
18310 old_archive_from_new_cmds_GCJ \
18311 predep_objects_GCJ \
18312 postdep_objects_GCJ \
18315 compiler_lib_search_path_GCJ \
18317 archive_expsym_cmds_GCJ \
18318 postinstall_cmds_GCJ \
18319 postuninstall_cmds_GCJ \
18320 old_archive_from_expsyms_cmds_GCJ \
18321 allow_undefined_flag_GCJ \
18322 no_undefined_flag_GCJ \
18323 export_symbols_cmds_GCJ \
18324 hardcode_libdir_flag_spec_GCJ \
18325 hardcode_libdir_flag_spec_ld_GCJ \
18326 hardcode_libdir_separator_GCJ \
18327 hardcode_automatic_GCJ \
18329 module_expsym_cmds_GCJ \
18330 lt_cv_prog_compiler_c_o_GCJ \
18331 exclude_expsyms_GCJ \
18332 include_expsyms_GCJ; do
18335 old_archive_cmds_GCJ | \
18336 old_archive_from_new_cmds_GCJ | \
18337 archive_cmds_GCJ | \
18338 archive_expsym_cmds_GCJ | \
18339 module_cmds_GCJ | \
18340 module_expsym_cmds_GCJ | \
18341 old_archive_from_expsyms_cmds_GCJ | \
18342 export_symbols_cmds_GCJ | \
18343 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18344 postinstall_cmds | postuninstall_cmds | \
18345 old_postinstall_cmds | old_postuninstall_cmds | \
18346 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18347 # Double-quote double-evaled strings.
18348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18357 *'\$0 --fallback-echo"')
18358 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18364 cat <<__EOF__ >> "$cfgfile"
18365 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18369 # Shell to use when invoking shell scripts.
18372 # Whether or not to build shared libraries.
18373 build_libtool_libs=$enable_shared
18375 # Whether or not to build static libraries.
18376 build_old_libs=$enable_static
18378 # Whether or not to add -lc for building shared libraries.
18379 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18381 # Whether or not to disallow shared libs when runtime libs are static
18382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18384 # Whether or not to optimize for fast installation.
18385 fast_install=$enable_fast_install
18388 host_alias=$host_alias
18391 # An echo program that does not interpret backslashes.
18396 AR_FLAGS=$lt_AR_FLAGS
18401 # A language-specific compiler.
18402 CC=$lt_compiler_GCJ
18404 # Is the compiler the GNU C compiler?
18410 # The linker used to build libraries.
18413 # Whether we need hard or soft links.
18416 # A BSD-compatible nm program.
18419 # A symbol stripping program
18422 # Used to examine libraries when file_magic_cmd begins "file"
18423 MAGIC_CMD=$MAGIC_CMD
18425 # Used on cygwin: DLL creation program.
18428 # Used on cygwin: object dumper.
18431 # Used on cygwin: assembler.
18434 # The name of the directory that contains temporary libtool files.
18437 # How to create reloadable object files.
18438 reload_flag=$lt_reload_flag
18439 reload_cmds=$lt_reload_cmds
18441 # How to pass a linker flag through the compiler.
18442 wl=$lt_lt_prog_compiler_wl_GCJ
18444 # Object file suffix (normally "o").
18445 objext="$ac_objext"
18447 # Old archive suffix (normally "a").
18450 # Shared library suffix (normally ".so").
18451 shrext_cmds='$shrext_cmds'
18453 # Executable file suffix (normally "").
18456 # Additional compiler flags for building library objects.
18457 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18460 # What is the maximum length of a command?
18461 max_cmd_len=$lt_cv_sys_max_cmd_len
18463 # Does compiler simultaneously support -c and -o options?
18464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18466 # Must we lock files when doing compilation ?
18467 need_locks=$lt_need_locks
18469 # Do we need the lib prefix for modules?
18470 need_lib_prefix=$need_lib_prefix
18472 # Do we need a version for libraries?
18473 need_version=$need_version
18475 # Whether dlopen is supported.
18476 dlopen_support=$enable_dlopen
18478 # Whether dlopen of programs is supported.
18479 dlopen_self=$enable_dlopen_self
18481 # Whether dlopen of statically linked programs is supported.
18482 dlopen_self_static=$enable_dlopen_self_static
18484 # Compiler flag to prevent dynamic linking.
18485 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18487 # Compiler flag to turn off builtin functions.
18488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18490 # Compiler flag to allow reflexive dlopens.
18491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18493 # Compiler flag to generate shared objects directly from archives.
18494 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18496 # Compiler flag to generate thread-safe objects.
18497 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18499 # Library versioning type.
18500 version_type=$version_type
18502 # Format of library name prefix.
18503 libname_spec=$lt_libname_spec
18505 # List of archive names. First name is the real one, the rest are links.
18506 # The last name is the one that the linker finds with -lNAME.
18507 library_names_spec=$lt_library_names_spec
18509 # The coded name of the library, if different from the real name.
18510 soname_spec=$lt_soname_spec
18512 # Commands used to build and install an old-style archive.
18514 old_archive_cmds=$lt_old_archive_cmds_GCJ
18515 old_postinstall_cmds=$lt_old_postinstall_cmds
18516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18518 # Create an old-style archive from a shared archive.
18519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18521 # Create a temporary old-style archive to link instead of a shared archive.
18522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18524 # Commands used to build and install a shared archive.
18525 archive_cmds=$lt_archive_cmds_GCJ
18526 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18527 postinstall_cmds=$lt_postinstall_cmds
18528 postuninstall_cmds=$lt_postuninstall_cmds
18530 # Commands used to build a loadable module (assumed same as above if empty)
18531 module_cmds=$lt_module_cmds_GCJ
18532 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18534 # Commands to strip libraries.
18535 old_striplib=$lt_old_striplib
18536 striplib=$lt_striplib
18538 # Dependencies to place before the objects being linked to create a
18540 predep_objects=$lt_predep_objects_GCJ
18542 # Dependencies to place after the objects being linked to create a
18544 postdep_objects=$lt_postdep_objects_GCJ
18546 # Dependencies to place before the objects being linked to create a
18548 predeps=$lt_predeps_GCJ
18550 # Dependencies to place after the objects being linked to create a
18552 postdeps=$lt_postdeps_GCJ
18554 # The library search path used internally by the compiler when linking
18555 # a shared library.
18556 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18558 # Method to check whether dependent libraries are shared objects.
18559 deplibs_check_method=$lt_deplibs_check_method
18561 # Command to use when deplibs_check_method == file_magic.
18562 file_magic_cmd=$lt_file_magic_cmd
18564 # Flag that allows shared libraries with undefined symbols to be built.
18565 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18567 # Flag that forces no undefined symbols.
18568 no_undefined_flag=$lt_no_undefined_flag_GCJ
18570 # Commands used to finish a libtool library installation in a directory.
18571 finish_cmds=$lt_finish_cmds
18573 # Same as above, but a single script fragment to be evaled but not shown.
18574 finish_eval=$lt_finish_eval
18576 # Take the output of nm and produce a listing of raw symbols and C names.
18577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18579 # Transform the output of nm in a proper C declaration
18580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18582 # Transform the output of nm in a C name address pair
18583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18585 # This is the shared library runtime path variable.
18586 runpath_var=$runpath_var
18588 # This is the shared library path variable.
18589 shlibpath_var=$shlibpath_var
18591 # Is shlibpath searched before the hard-coded library search path?
18592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18594 # How to hardcode a shared library path into an executable.
18595 hardcode_action=$hardcode_action_GCJ
18597 # Whether we should hardcode library paths into libraries.
18598 hardcode_into_libs=$hardcode_into_libs
18600 # Flag to hardcode \$libdir into a binary during linking.
18601 # This must work even if \$libdir does not exist.
18602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18604 # If ld is used when linking, flag to hardcode \$libdir into
18605 # a binary during linking. This must work even if \$libdir does
18607 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18609 # Whether we need a single -rpath flag with a separated argument.
18610 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18612 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18613 # resulting binary.
18614 hardcode_direct=$hardcode_direct_GCJ
18616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18617 # resulting binary.
18618 hardcode_minus_L=$hardcode_minus_L_GCJ
18620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18621 # the resulting binary.
18622 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18624 # Set to yes if building a shared library automatically hardcodes DIR into the library
18625 # and all subsequent libraries and executables linked against it.
18626 hardcode_automatic=$hardcode_automatic_GCJ
18628 # Variables whose values should be saved in libtool wrapper scripts and
18629 # restored at relink time.
18630 variables_saved_for_relink="$variables_saved_for_relink"
18632 # Whether libtool must link a program against all its dependency libraries.
18633 link_all_deplibs=$link_all_deplibs_GCJ
18635 # Compile-time system search path for libraries
18636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18638 # Run-time system search path for libraries
18639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18641 # Fix the shell variable \$srcfile for the compiler.
18642 fix_srcfile_path="$fix_srcfile_path_GCJ"
18644 # Set to yes if exported symbols are required.
18645 always_export_symbols=$always_export_symbols_GCJ
18647 # The commands to list exported symbols.
18648 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18650 # The commands to extract the exported symbol list from a shared archive.
18651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18653 # Symbols that should not be listed in the preloaded symbols.
18654 exclude_expsyms=$lt_exclude_expsyms_GCJ
18656 # Symbols that must always be exported.
18657 include_expsyms=$lt_include_expsyms_GCJ
18659 # ### END LIBTOOL TAG CONFIG: $tagname
18665 # If there is no Makefile yet, we rely on a make rule to execute
18666 # `config.status --recheck' to rerun these tests and create the
18667 # libtool script then.
18668 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18669 if test -f "$ltmain_in"; then
18670 test -f Makefile && make "$ltmain"
18676 ac_cpp='$CPP $CPPFLAGS'
18677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18692 # Source file extension for RC test sources.
18695 # Object file extension for compiled RC test sources.
18699 # Code to be used in simple compile tests
18700 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18702 # Code to be used in simple link tests
18703 lt_simple_link_test_code="$lt_simple_compile_test_code"
18705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18707 # If no C compiler was specified, use CC.
18710 # Allow CC to be a program name with arguments.
18714 # Allow CC to be a program name with arguments.
18719 lt_cv_prog_compiler_c_o_RC=yes
18721 # The else clause should only fire when bootstrapping the
18722 # libtool distribution, otherwise you forgot to ship ltmain.sh
18723 # with your package, and you will get complaints that there are
18724 # no rules to generate ltmain.sh.
18725 if test -f "$ltmain"; then
18726 # See if we are running on zsh, and set the options which allow our commands through
18727 # without removal of \ escapes.
18728 if test -n "${ZSH_VERSION+set}" ; then
18729 setopt NO_GLOB_SUBST
18731 # Now quote all the things that may contain metacharacters while being
18732 # careful not to overquote the AC_SUBSTed values. We take copies of the
18733 # variables and quote the copies for generation of the libtool script.
18734 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18736 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18737 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18738 deplibs_check_method reload_flag reload_cmds need_locks \
18739 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18740 lt_cv_sys_global_symbol_to_c_name_address \
18741 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18742 old_postinstall_cmds old_postuninstall_cmds \
18746 lt_prog_compiler_wl_RC \
18747 lt_prog_compiler_pic_RC \
18748 lt_prog_compiler_static_RC \
18749 lt_prog_compiler_no_builtin_flag_RC \
18750 export_dynamic_flag_spec_RC \
18751 thread_safe_flag_spec_RC \
18752 whole_archive_flag_spec_RC \
18753 enable_shared_with_static_runtimes_RC \
18754 old_archive_cmds_RC \
18755 old_archive_from_new_cmds_RC \
18756 predep_objects_RC \
18757 postdep_objects_RC \
18760 compiler_lib_search_path_RC \
18762 archive_expsym_cmds_RC \
18763 postinstall_cmds_RC \
18764 postuninstall_cmds_RC \
18765 old_archive_from_expsyms_cmds_RC \
18766 allow_undefined_flag_RC \
18767 no_undefined_flag_RC \
18768 export_symbols_cmds_RC \
18769 hardcode_libdir_flag_spec_RC \
18770 hardcode_libdir_flag_spec_ld_RC \
18771 hardcode_libdir_separator_RC \
18772 hardcode_automatic_RC \
18774 module_expsym_cmds_RC \
18775 lt_cv_prog_compiler_c_o_RC \
18776 exclude_expsyms_RC \
18777 include_expsyms_RC; do
18780 old_archive_cmds_RC | \
18781 old_archive_from_new_cmds_RC | \
18782 archive_cmds_RC | \
18783 archive_expsym_cmds_RC | \
18785 module_expsym_cmds_RC | \
18786 old_archive_from_expsyms_cmds_RC | \
18787 export_symbols_cmds_RC | \
18788 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18789 postinstall_cmds | postuninstall_cmds | \
18790 old_postinstall_cmds | old_postuninstall_cmds | \
18791 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18792 # Double-quote double-evaled strings.
18793 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18796 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18802 *'\$0 --fallback-echo"')
18803 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18809 cat <<__EOF__ >> "$cfgfile"
18810 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18812 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18814 # Shell to use when invoking shell scripts.
18817 # Whether or not to build shared libraries.
18818 build_libtool_libs=$enable_shared
18820 # Whether or not to build static libraries.
18821 build_old_libs=$enable_static
18823 # Whether or not to add -lc for building shared libraries.
18824 build_libtool_need_lc=$archive_cmds_need_lc_RC
18826 # Whether or not to disallow shared libs when runtime libs are static
18827 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18829 # Whether or not to optimize for fast installation.
18830 fast_install=$enable_fast_install
18833 host_alias=$host_alias
18836 # An echo program that does not interpret backslashes.
18841 AR_FLAGS=$lt_AR_FLAGS
18846 # A language-specific compiler.
18849 # Is the compiler the GNU C compiler?
18855 # The linker used to build libraries.
18858 # Whether we need hard or soft links.
18861 # A BSD-compatible nm program.
18864 # A symbol stripping program
18867 # Used to examine libraries when file_magic_cmd begins "file"
18868 MAGIC_CMD=$MAGIC_CMD
18870 # Used on cygwin: DLL creation program.
18873 # Used on cygwin: object dumper.
18876 # Used on cygwin: assembler.
18879 # The name of the directory that contains temporary libtool files.
18882 # How to create reloadable object files.
18883 reload_flag=$lt_reload_flag
18884 reload_cmds=$lt_reload_cmds
18886 # How to pass a linker flag through the compiler.
18887 wl=$lt_lt_prog_compiler_wl_RC
18889 # Object file suffix (normally "o").
18890 objext="$ac_objext"
18892 # Old archive suffix (normally "a").
18895 # Shared library suffix (normally ".so").
18896 shrext_cmds='$shrext_cmds'
18898 # Executable file suffix (normally "").
18901 # Additional compiler flags for building library objects.
18902 pic_flag=$lt_lt_prog_compiler_pic_RC
18905 # What is the maximum length of a command?
18906 max_cmd_len=$lt_cv_sys_max_cmd_len
18908 # Does compiler simultaneously support -c and -o options?
18909 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18911 # Must we lock files when doing compilation ?
18912 need_locks=$lt_need_locks
18914 # Do we need the lib prefix for modules?
18915 need_lib_prefix=$need_lib_prefix
18917 # Do we need a version for libraries?
18918 need_version=$need_version
18920 # Whether dlopen is supported.
18921 dlopen_support=$enable_dlopen
18923 # Whether dlopen of programs is supported.
18924 dlopen_self=$enable_dlopen_self
18926 # Whether dlopen of statically linked programs is supported.
18927 dlopen_self_static=$enable_dlopen_self_static
18929 # Compiler flag to prevent dynamic linking.
18930 link_static_flag=$lt_lt_prog_compiler_static_RC
18932 # Compiler flag to turn off builtin functions.
18933 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18935 # Compiler flag to allow reflexive dlopens.
18936 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18938 # Compiler flag to generate shared objects directly from archives.
18939 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18941 # Compiler flag to generate thread-safe objects.
18942 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18944 # Library versioning type.
18945 version_type=$version_type
18947 # Format of library name prefix.
18948 libname_spec=$lt_libname_spec
18950 # List of archive names. First name is the real one, the rest are links.
18951 # The last name is the one that the linker finds with -lNAME.
18952 library_names_spec=$lt_library_names_spec
18954 # The coded name of the library, if different from the real name.
18955 soname_spec=$lt_soname_spec
18957 # Commands used to build and install an old-style archive.
18959 old_archive_cmds=$lt_old_archive_cmds_RC
18960 old_postinstall_cmds=$lt_old_postinstall_cmds
18961 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18963 # Create an old-style archive from a shared archive.
18964 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18966 # Create a temporary old-style archive to link instead of a shared archive.
18967 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18969 # Commands used to build and install a shared archive.
18970 archive_cmds=$lt_archive_cmds_RC
18971 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18972 postinstall_cmds=$lt_postinstall_cmds
18973 postuninstall_cmds=$lt_postuninstall_cmds
18975 # Commands used to build a loadable module (assumed same as above if empty)
18976 module_cmds=$lt_module_cmds_RC
18977 module_expsym_cmds=$lt_module_expsym_cmds_RC
18979 # Commands to strip libraries.
18980 old_striplib=$lt_old_striplib
18981 striplib=$lt_striplib
18983 # Dependencies to place before the objects being linked to create a
18985 predep_objects=$lt_predep_objects_RC
18987 # Dependencies to place after the objects being linked to create a
18989 postdep_objects=$lt_postdep_objects_RC
18991 # Dependencies to place before the objects being linked to create a
18993 predeps=$lt_predeps_RC
18995 # Dependencies to place after the objects being linked to create a
18997 postdeps=$lt_postdeps_RC
18999 # The library search path used internally by the compiler when linking
19000 # a shared library.
19001 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19003 # Method to check whether dependent libraries are shared objects.
19004 deplibs_check_method=$lt_deplibs_check_method
19006 # Command to use when deplibs_check_method == file_magic.
19007 file_magic_cmd=$lt_file_magic_cmd
19009 # Flag that allows shared libraries with undefined symbols to be built.
19010 allow_undefined_flag=$lt_allow_undefined_flag_RC
19012 # Flag that forces no undefined symbols.
19013 no_undefined_flag=$lt_no_undefined_flag_RC
19015 # Commands used to finish a libtool library installation in a directory.
19016 finish_cmds=$lt_finish_cmds
19018 # Same as above, but a single script fragment to be evaled but not shown.
19019 finish_eval=$lt_finish_eval
19021 # Take the output of nm and produce a listing of raw symbols and C names.
19022 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19024 # Transform the output of nm in a proper C declaration
19025 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19027 # Transform the output of nm in a C name address pair
19028 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19030 # This is the shared library runtime path variable.
19031 runpath_var=$runpath_var
19033 # This is the shared library path variable.
19034 shlibpath_var=$shlibpath_var
19036 # Is shlibpath searched before the hard-coded library search path?
19037 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19039 # How to hardcode a shared library path into an executable.
19040 hardcode_action=$hardcode_action_RC
19042 # Whether we should hardcode library paths into libraries.
19043 hardcode_into_libs=$hardcode_into_libs
19045 # Flag to hardcode \$libdir into a binary during linking.
19046 # This must work even if \$libdir does not exist.
19047 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19049 # If ld is used when linking, flag to hardcode \$libdir into
19050 # a binary during linking. This must work even if \$libdir does
19052 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19054 # Whether we need a single -rpath flag with a separated argument.
19055 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19057 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19058 # resulting binary.
19059 hardcode_direct=$hardcode_direct_RC
19061 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19062 # resulting binary.
19063 hardcode_minus_L=$hardcode_minus_L_RC
19065 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19066 # the resulting binary.
19067 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19069 # Set to yes if building a shared library automatically hardcodes DIR into the library
19070 # and all subsequent libraries and executables linked against it.
19071 hardcode_automatic=$hardcode_automatic_RC
19073 # Variables whose values should be saved in libtool wrapper scripts and
19074 # restored at relink time.
19075 variables_saved_for_relink="$variables_saved_for_relink"
19077 # Whether libtool must link a program against all its dependency libraries.
19078 link_all_deplibs=$link_all_deplibs_RC
19080 # Compile-time system search path for libraries
19081 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19083 # Run-time system search path for libraries
19084 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19086 # Fix the shell variable \$srcfile for the compiler.
19087 fix_srcfile_path="$fix_srcfile_path_RC"
19089 # Set to yes if exported symbols are required.
19090 always_export_symbols=$always_export_symbols_RC
19092 # The commands to list exported symbols.
19093 export_symbols_cmds=$lt_export_symbols_cmds_RC
19095 # The commands to extract the exported symbol list from a shared archive.
19096 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19098 # Symbols that should not be listed in the preloaded symbols.
19099 exclude_expsyms=$lt_exclude_expsyms_RC
19101 # Symbols that must always be exported.
19102 include_expsyms=$lt_include_expsyms_RC
19104 # ### END LIBTOOL TAG CONFIG: $tagname
19110 # If there is no Makefile yet, we rely on a make rule to execute
19111 # `config.status --recheck' to rerun these tests and create the
19112 # libtool script then.
19113 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19114 if test -f "$ltmain_in"; then
19115 test -f Makefile && make "$ltmain"
19121 ac_cpp='$CPP $CPPFLAGS'
19122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19131 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19132 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19133 { (exit 1); exit 1; }; }
19137 # Append the new tag name to the list of available tags.
19138 if test -n "$tagname" ; then
19139 available_tags="$available_tags $tagname"
19145 # Now substitute the updated list of available tags.
19146 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19147 mv "${ofile}T" "$ofile"
19151 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19152 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19153 { (exit 1); exit 1; }; }
19159 # This can be used to rebuild libtool when needed
19160 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19162 # Always use our own libtool.
19163 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19165 # Prevent multiple expansion
19188 # Check whether --with-mysql or --without-mysql was given.
19189 if test "${with_mysql+set}" = set; then
19190 withval="$with_mysql"
19193 # Check whether --enable-debug or --disable-debug was given.
19194 if test "${enable_debug+set}" = set; then
19195 enableval="$enable_debug"
19197 cat >>confdefs.h <<\_ACEOF
19203 case "$target_os" in
19205 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
19209 test "$prefix" = "NONE" && prefix=
19212 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
19216 test "$prefix" = "NONE" && prefix= && libdir=/usr/lib
19219 CPPFLAGS="$CPPFLAGS -DPIC -D_REENTRANT"
19223 test "$prefix" = "NONE" && prefix= && libdir=/usr/lib
19231 if test "$RENAME" = "true"; then
19240 echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
19241 echo $ECHO_N "checking whether the linker accepts -znodelete... $ECHO_C" >&6
19242 if test "${nss_mysql_cv_cc_znodelete+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 LIBS="-Wl,-znodelete $SAVELIBS"
19248 cat >conftest.$ac_ext <<_ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19263 rm -f conftest.$ac_objext conftest$ac_exeext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19265 (eval $ac_link) 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try='test -z "$ac_c_werror_flag"
19273 || test ! -s conftest.err'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest$ac_exeext'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285 nss_mysql_cv_cc_znodelete=yes
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 nss_mysql_cv_cc_znodelete=no
19292 rm -f conftest.err conftest.$ac_objext \
19293 conftest$ac_exeext conftest.$ac_ext
19296 echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
19297 echo "${ECHO_T}$nss_mysql_cv_cc_znodelete" >&6
19298 if test $nss_mysql_cv_cc_znodelete = "yes"; then
19299 LIBS="-Wl,-znodelete $SAVELIBS"
19307 baselist="$with_mysql \
19314 echo "$as_me:$LINENO: checking for MySQL headers" >&5
19315 echo $ECHO_N "checking for MySQL headers... $ECHO_C" >&6
19316 for f in $baselist; do
19317 if test -f "$f/include/mysql/mysql.h"
19319 MYSQL_INC_DIR="$f/include/mysql"
19323 if test -f "$f/include/mysql.h"
19325 MYSQL_INC_DIR="$f/include"
19330 if test -n "$MYSQL_INC_DIR"
19332 echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
19333 echo "${ECHO_T}$MYSQL_INC_DIR" >&6
19334 CPPFLAGS="-I $MYSQL_INC_DIR $CPPFLAGS"
19336 { { echo "$as_me:$LINENO: error: Cannot locate MySQL headers. Try using --with-mysql=DIR" >&5
19337 echo "$as_me: error: Cannot locate MySQL headers. Try using --with-mysql=DIR" >&2;}
19338 { (exit 1); exit 1; }; }
19341 echo "$as_me:$LINENO: checking for MySQL libraries" >&5
19342 echo $ECHO_N "checking for MySQL libraries... $ECHO_C" >&6
19343 for f in $baselist; do
19344 if test -f "$f/lib/libmysqlclient.so"
19346 MYSQL_LIB_DIR="$f/lib"
19350 if test -f "$f/lib/mysql/libmysqlclient.so"
19352 MYSQL_LIB_DIR="$f/lib/mysql"
19357 for f in $baselist; do
19358 if test -f "$f/lib/libmysqlclient.a"
19360 MYSQL_LIB_DIR="$f/lib"
19364 if test -f "$f/lib/mysql/libmysqlclient.a"
19366 MYSQL_LIB_DIR="$f/lib/mysql"
19371 if test -n "$MYSQL_LIB_DIR"
19373 echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
19374 echo "${ECHO_T}$MYSQL_LIB_DIR" >&6
19375 LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS"
19377 { { echo "$as_me:$LINENO: error: Cannot locate MySQL libraries. Try using --with-mysql=DIR" >&5
19378 echo "$as_me: error: Cannot locate MySQL libraries. Try using --with-mysql=DIR" >&2;}
19379 { (exit 1); exit 1; }; }
19385 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19386 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19387 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 ac_check_lib_save_LIBS=$LIBS
19391 LIBS="-lsocket $LIBS"
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19399 /* Override any gcc2 internal prototype to avoid an error. */
19403 /* We use char because int might match the return type of a gcc2
19404 builtin and then its argument prototype would still apply. */
19405 char getsockname ();
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416 (eval $ac_link) 2>conftest.er1
19418 grep -v '^ *+' conftest.er1 >conftest.err
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag"
19424 || test ! -s conftest.err'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_lib_socket_getsockname=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_lib_socket_getsockname=no
19443 rm -f conftest.err conftest.$ac_objext \
19444 conftest$ac_exeext conftest.$ac_ext
19445 LIBS=$ac_check_lib_save_LIBS
19447 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19448 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19449 if test $ac_cv_lib_socket_getsockname = yes; then
19450 cat >>confdefs.h <<_ACEOF
19451 #define HAVE_LIBSOCKET 1
19454 LIBS="-lsocket $LIBS"
19459 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19460 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19461 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 ac_check_lib_save_LIBS=$LIBS
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19473 /* Override any gcc2 internal prototype to avoid an error. */
19477 /* We use char because int might match the return type of a gcc2
19478 builtin and then its argument prototype would still apply. */
19479 char gethostbyname ();
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19490 (eval $ac_link) 2>conftest.er1
19492 grep -v '^ *+' conftest.er1 >conftest.err
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
19497 { ac_try='test -z "$ac_c_werror_flag"
19498 || test ! -s conftest.err'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest$ac_exeext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_lib_nsl_gethostbyname=yes
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19515 ac_cv_lib_nsl_gethostbyname=no
19517 rm -f conftest.err conftest.$ac_objext \
19518 conftest$ac_exeext conftest.$ac_ext
19519 LIBS=$ac_check_lib_save_LIBS
19521 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19522 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19523 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19524 cat >>confdefs.h <<_ACEOF
19525 #define HAVE_LIBNSL 1
19533 echo "$as_me:$LINENO: checking for floor in -lm" >&5
19534 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
19535 if test "${ac_cv_lib_m_floor+set}" = set; then
19536 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 ac_check_lib_save_LIBS=$LIBS
19540 cat >conftest.$ac_ext <<_ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19547 /* Override any gcc2 internal prototype to avoid an error. */
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19564 (eval $ac_link) 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_c_werror_flag"
19572 || test ! -s conftest.err'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest$ac_exeext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_cv_lib_m_floor=yes
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_lib_m_floor=no
19591 rm -f conftest.err conftest.$ac_objext \
19592 conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19595 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
19596 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
19597 if test $ac_cv_lib_m_floor = yes; then
19598 cat >>confdefs.h <<_ACEOF
19599 #define HAVE_LIBM 1
19607 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
19608 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
19609 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 ac_check_lib_save_LIBS=$LIBS
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19621 /* Override any gcc2 internal prototype to avoid an error. */
19625 /* We use char because int might match the return type of a gcc2
19626 builtin and then its argument prototype would still apply. */
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19638 (eval $ac_link) 2>conftest.er1
19640 grep -v '^ *+' conftest.er1 >conftest.err
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -z "$ac_c_werror_flag"
19646 || test ! -s conftest.err'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest$ac_exeext'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_cv_lib_dl_dlsym=yes
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ac_cv_lib_dl_dlsym=no
19665 rm -f conftest.err conftest.$ac_objext \
19666 conftest$ac_exeext conftest.$ac_ext
19667 LIBS=$ac_check_lib_save_LIBS
19669 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
19670 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
19671 if test $ac_cv_lib_dl_dlsym = yes; then
19672 cat >>confdefs.h <<_ACEOF
19673 #define HAVE_LIBDL 1
19681 echo "$as_me:$LINENO: checking for compress in -lz" >&5
19682 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
19683 if test "${ac_cv_lib_z_compress+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 ac_check_lib_save_LIBS=$LIBS
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 /* Override any gcc2 internal prototype to avoid an error. */
19699 /* We use char because int might match the return type of a gcc2
19700 builtin and then its argument prototype would still apply. */
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_c_werror_flag"
19720 || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_cv_lib_z_compress=yes
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_lib_z_compress=no
19739 rm -f conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19743 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
19744 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
19745 if test $ac_cv_lib_z_compress = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_LIBZ 1
19756 echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
19757 echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
19758 if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 ac_check_lib_save_LIBS=$LIBS
19762 LIBS="-lmysqlclient $LIBS"
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781 (eval $ac_link) 2>conftest.er1
19783 grep -v '^ *+' conftest.er1 >conftest.err
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try='test -z "$ac_c_werror_flag"
19789 || test ! -s conftest.err'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest$ac_exeext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_lib_mysqlclient_main=yes
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ac_cv_lib_mysqlclient_main=no
19808 rm -f conftest.err conftest.$ac_objext \
19809 conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_check_lib_save_LIBS
19812 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
19813 echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
19814 if test $ac_cv_lib_mysqlclient_main = yes; then
19815 cat >>confdefs.h <<_ACEOF
19816 #define HAVE_LIBMYSQLCLIENT 1
19819 LIBS="-lmysqlclient $LIBS"
19822 { { echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
19823 echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
19824 { (exit 1); exit 1; }; }
19828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19830 if test "${ac_cv_header_stdc+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 #include <stdlib.h>
19840 #include <stdarg.h>
19841 #include <string.h>
19852 rm -f conftest.$ac_objext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19854 (eval $ac_compile) 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -z "$ac_c_werror_flag"
19862 || test ! -s conftest.err'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest.$ac_objext'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19874 ac_cv_header_stdc=yes
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ac_cv_header_stdc=no
19881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19883 if test $ac_cv_header_stdc = yes; then
19884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 #include <string.h>
19894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19895 $EGREP "memchr" >/dev/null 2>&1; then
19898 ac_cv_header_stdc=no
19904 if test $ac_cv_header_stdc = yes; then
19905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19912 #include <stdlib.h>
19915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19916 $EGREP "free" >/dev/null 2>&1; then
19919 ac_cv_header_stdc=no
19925 if test $ac_cv_header_stdc = yes; then
19926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19927 if test "$cross_compiling" = yes; then
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19937 #if ((' ' & 0x0FF) == 0x020)
19938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19941 # define ISLOWER(c) \
19942 (('a' <= (c) && (c) <= 'i') \
19943 || ('j' <= (c) && (c) <= 'r') \
19944 || ('s' <= (c) && (c) <= 'z'))
19945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19953 for (i = 0; i < 256; i++)
19954 if (XOR (islower (i), ISLOWER (i))
19955 || toupper (i) != TOUPPER (i))
19960 rm -f conftest$ac_exeext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19962 (eval $ac_link) 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19973 echo "$as_me: program exited with status $ac_status" >&5
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ( exit $ac_status )
19978 ac_cv_header_stdc=no
19980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19986 if test $ac_cv_header_stdc = yes; then
19988 cat >>confdefs.h <<\_ACEOF
19989 #define STDC_HEADERS 1
19994 if test "${ac_cv_header_mysql_h+set}" = set; then
19995 echo "$as_me:$LINENO: checking for mysql.h" >&5
19996 echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
19997 if test "${ac_cv_header_mysql_h+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
20001 echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
20003 # Is the header compilable?
20004 echo "$as_me:$LINENO: checking mysql.h usability" >&5
20005 echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 $ac_includes_default
20015 rm -f conftest.$ac_objext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20017 (eval $ac_compile) 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } &&
20024 { ac_try='test -z "$ac_c_werror_flag"
20025 || test ! -s conftest.err'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_header_compiler=yes
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 ac_header_compiler=no
20044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20046 echo "${ECHO_T}$ac_header_compiler" >&6
20048 # Is the header present?
20049 echo "$as_me:$LINENO: checking mysql.h presence" >&5
20050 echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
20051 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20062 grep -v '^ *+' conftest.er1 >conftest.err
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } >/dev/null; then
20067 if test -s conftest.err; then
20068 ac_cpp_err=$ac_c_preproc_warn_flag
20069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20076 if test -z "$ac_cpp_err"; then
20077 ac_header_preproc=yes
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20082 ac_header_preproc=no
20084 rm -f conftest.err conftest.$ac_ext
20085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20086 echo "${ECHO_T}$ac_header_preproc" >&6
20088 # So? What about this header?
20089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20091 { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20092 echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
20094 echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
20095 ac_header_preproc=yes
20098 { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
20099 echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5
20101 echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
20103 echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5
20105 echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
20107 echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
20109 echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
20112 ## ------------------------------------------ ##
20113 ## Report this to the AC_PACKAGE_NAME lists. ##
20114 ## ------------------------------------------ ##
20117 sed "s/^/$as_me: WARNING: /" >&2
20120 echo "$as_me:$LINENO: checking for mysql.h" >&5
20121 echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
20122 if test "${ac_cv_header_mysql_h+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 ac_cv_header_mysql_h=$ac_header_preproc
20127 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
20128 echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
20131 if test $ac_cv_header_mysql_h = yes; then
20134 { { echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
20135 echo "$as_me: error: Unable to find mysql.h" >&2;}
20136 { (exit 1); exit 1; }; }
20145 for ac_header in syslog.h stdint.h nss.h nss_common.h shadow.h
20147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20149 echo "$as_me:$LINENO: checking for $ac_header" >&5
20150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20157 # Is the header compilable?
20158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20160 cat >conftest.$ac_ext <<_ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 $ac_includes_default
20167 #include <$ac_header>
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171 (eval $ac_compile) 2>conftest.er1
20173 grep -v '^ *+' conftest.er1 >conftest.err
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
20178 { ac_try='test -z "$ac_c_werror_flag"
20179 || test ! -s conftest.err'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest.$ac_objext'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 ac_header_compiler=yes
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ac_header_compiler=no
20198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20200 echo "${ECHO_T}$ac_header_compiler" >&6
20202 # Is the header present?
20203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20205 cat >conftest.$ac_ext <<_ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 #include <$ac_header>
20213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } >/dev/null; then
20221 if test -s conftest.err; then
20222 ac_cpp_err=$ac_c_preproc_warn_flag
20223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20230 if test -z "$ac_cpp_err"; then
20231 ac_header_preproc=yes
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_header_preproc=no
20238 rm -f conftest.err conftest.$ac_ext
20239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20240 echo "${ECHO_T}$ac_header_preproc" >&6
20242 # So? What about this header?
20243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20249 ac_header_preproc=yes
20252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20266 ## ------------------------------------------ ##
20267 ## Report this to the AC_PACKAGE_NAME lists. ##
20268 ## ------------------------------------------ ##
20271 sed "s/^/$as_me: WARNING: /" >&2
20274 echo "$as_me:$LINENO: checking for $ac_header" >&5
20275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 eval "$as_ac_Header=\$ac_header_preproc"
20281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20295 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20296 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20297 if test "${ac_cv_c_const+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20310 /* FIXME: Include the comments suggested by Paul. */
20311 #ifndef __cplusplus
20312 /* Ultrix mips cc rejects this. */
20313 typedef int charset[2];
20315 /* SunOS 4.1.1 cc rejects this. */
20316 char const *const *ccp;
20318 /* NEC SVR4.0.2 mips cc rejects this. */
20319 struct point {int x, y;};
20320 static struct point const zero = {0,0};
20321 /* AIX XL C 1.02.0.0 rejects this.
20322 It does not let you subtract one const X* pointer from another in
20323 an arm of an if-expression whose if-part is not a constant
20325 const char *g = "string";
20326 ccp = &g + (g ? g-g : 0);
20327 /* HPUX 7.0 cc rejects these. */
20330 ccp = (char const *const *) p;
20331 { /* SCO 3.2v4 cc rejects this. */
20333 char const *s = 0 ? (char *) 0 : (char const *) 0;
20337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20338 int x[] = {25, 17};
20339 const int *foo = &x[0];
20342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20343 typedef const int *iptr;
20347 { /* AIX XL C 1.02.0.0 rejects this saying
20348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20349 struct s { int j; const int *ap[3]; };
20350 struct s *b; b->j = 5;
20352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20353 const int foo = 10;
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try='test -z "$ac_c_werror_flag"
20371 || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20392 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20393 echo "${ECHO_T}$ac_cv_c_const" >&6
20394 if test $ac_cv_c_const = no; then
20396 cat >>confdefs.h <<\_ACEOF
20402 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20403 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20404 if test "${ac_cv_type_uid_t+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 #include <sys/types.h>
20416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20417 $EGREP "uid_t" >/dev/null 2>&1; then
20418 ac_cv_type_uid_t=yes
20420 ac_cv_type_uid_t=no
20425 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20426 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20427 if test $ac_cv_type_uid_t = no; then
20429 cat >>confdefs.h <<\_ACEOF
20434 cat >>confdefs.h <<\_ACEOF
20440 echo "$as_me:$LINENO: checking for size_t" >&5
20441 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20442 if test "${ac_cv_type_size_t+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 $ac_includes_default
20457 if (sizeof (size_t))
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465 (eval $ac_compile) 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try='test -z "$ac_c_werror_flag"
20473 || test ! -s conftest.err'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest.$ac_objext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_type_size_t=yes
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_cv_type_size_t=no
20492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20494 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20495 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20496 if test $ac_cv_type_size_t = yes; then
20500 cat >>confdefs.h <<_ACEOF
20501 #define size_t unsigned
20506 echo "$as_me:$LINENO: checking for socklen_t" >&5
20507 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20508 if test "${ac_cv_type_socklen_t+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 #include <unistd.h>
20519 #include <sys/socket.h>
20525 if ((socklen_t *) 0)
20527 if (sizeof (socklen_t))
20533 rm -f conftest.$ac_objext
20534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20535 (eval $ac_compile) 2>conftest.er1
20537 grep -v '^ *+' conftest.er1 >conftest.err
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } &&
20542 { ac_try='test -z "$ac_c_werror_flag"
20543 || test ! -s conftest.err'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest.$ac_objext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_type_socklen_t=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_type_socklen_t=no
20562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20564 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20565 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
20566 if test $ac_cv_type_socklen_t = yes; then
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_SOCKLEN_T 1
20576 EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
20578 cat >>confdefs.h <<_ACEOF
20579 #define MAINCFG "$EXPANDED_SYSCONFDIR/libnss-mysql.cfg"
20583 cat >>confdefs.h <<_ACEOF
20584 #define ROOTCFG "$EXPANDED_SYSCONFDIR/libnss-mysql-root.cfg"
20588 ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
20590 cat >confcache <<\_ACEOF
20591 # This file is a shell script that caches the results of configure
20592 # tests run on this system so they can be shared between configure
20593 # scripts and configure runs, see configure's option --config-cache.
20594 # It is not useful on other systems. If it contains results you don't
20595 # want to keep, you may remove or edit it.
20597 # config.status only pays attention to the cache file if you give it
20598 # the --recheck option to rerun configure.
20600 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20602 # following values.
20606 # The following way of writing the cache mishandles newlines in values,
20607 # but we know of no workaround that is simple, portable, and efficient.
20608 # So, don't put newlines in cache variables' values.
20609 # Ultrix sh set writes to stderr and can't be redirected directly,
20610 # and sets the high bit in the cache file unless we assign to the vars.
20613 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20615 # `set' does not quote correctly, so add quotes (double-quote
20616 # substitution turns \\\\ into \\, and sed turns \\ into \).
20619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20622 # `set' quotes correctly as required by POSIX, so do not add quotes.
20624 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20633 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20635 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20636 if test -w $cache_file; then
20637 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20638 cat confcache >$cache_file
20640 echo "not updating unwritable cache $cache_file"
20645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20646 # Let make expand exec_prefix.
20647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20649 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20650 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20651 # trailing colons and then remove the whole line if VPATH becomes empty
20652 # (actually we leave an empty line to preserve line numbers).
20653 if test "x$srcdir" = x.; then
20654 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20655 s/:*\$(srcdir):*/:/;
20656 s/:*\${srcdir}:*/:/;
20658 s/^\([^=]*=[ ]*\):*/\1/;
20664 DEFS=-DHAVE_CONFIG_H
20668 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20669 # 1. Remove the extension, and $U if already installed.
20670 ac_i=`echo "$ac_i" |
20671 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20673 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20674 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20676 LIBOBJS=$ac_libobjs
20678 LTLIBOBJS=$ac_ltlibobjs
20681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20682 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20683 Usually this means the macro was only invoked conditionally." >&5
20684 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20685 Usually this means the macro was only invoked conditionally." >&2;}
20686 { (exit 1); exit 1; }; }
20688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20689 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20690 Usually this means the macro was only invoked conditionally." >&5
20691 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20692 Usually this means the macro was only invoked conditionally." >&2;}
20693 { (exit 1); exit 1; }; }
20695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20696 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20697 Usually this means the macro was only invoked conditionally." >&5
20698 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20699 Usually this means the macro was only invoked conditionally." >&2;}
20700 { (exit 1); exit 1; }; }
20702 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20703 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20704 Usually this means the macro was only invoked conditionally." >&5
20705 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20706 Usually this means the macro was only invoked conditionally." >&2;}
20707 { (exit 1); exit 1; }; }
20709 if test -z "${RENAME_TRUE}" && test -z "${RENAME_FALSE}"; then
20710 { { echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
20711 Usually this means the macro was only invoked conditionally." >&5
20712 echo "$as_me: error: conditional \"RENAME\" was never defined.
20713 Usually this means the macro was only invoked conditionally." >&2;}
20714 { (exit 1); exit 1; }; }
20717 : ${CONFIG_STATUS=./config.status}
20718 ac_clean_files_save=$ac_clean_files
20719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20720 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20722 cat >$CONFIG_STATUS <<_ACEOF
20724 # Generated by $as_me.
20725 # Run this file to recreate the current configuration.
20726 # Compiler output produced by configure, useful for debugging
20727 # configure, is in config.log if it exists.
20730 ac_cs_recheck=false
20732 SHELL=\${CONFIG_SHELL-$SHELL}
20735 cat >>$CONFIG_STATUS <<\_ACEOF
20736 ## --------------------- ##
20737 ## M4sh Initialization. ##
20738 ## --------------------- ##
20740 # Be Bourne compatible
20741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20744 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20745 # is contrary to our usage. Disable this feature.
20746 alias -g '${1+"$@"}'='"$@"'
20747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20750 DUALCASE=1; export DUALCASE # for MKS sh
20752 # Support unset when possible.
20753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20760 # Work around bugs in pre-3.0 UWIN ksh.
20761 $as_unset ENV MAIL MAILPATH
20768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20770 LC_TELEPHONE LC_TIME
20772 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20773 eval $as_var=C; export $as_var
20779 # Required to use basename.
20780 if expr a : '\(a\)' >/dev/null 2>&1; then
20786 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20787 as_basename=basename
20793 # Name of the executable.
20794 as_me=`$as_basename "$0" ||
20795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20796 X"$0" : 'X\(//\)$' \| \
20797 X"$0" : 'X\(/\)$' \| \
20798 . : '\(.\)' 2>/dev/null ||
20800 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20801 /^X\/\(\/\/\)$/{ s//\1/; q; }
20802 /^X\/\(\/\).*/{ s//\1/; q; }
20806 # PATH needs CR, and LINENO needs CR and PATH.
20807 # Avoid depending upon Character Ranges.
20808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20811 as_cr_digits='0123456789'
20812 as_cr_alnum=$as_cr_Letters$as_cr_digits
20814 # The user is always right.
20815 if test "${PATH_SEPARATOR+set}" != set; then
20816 echo "#! /bin/sh" >conf$$.sh
20817 echo "exit 0" >>conf$$.sh
20819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20828 as_lineno_1=$LINENO
20829 as_lineno_2=$LINENO
20830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20831 test "x$as_lineno_1" != "x$as_lineno_2" &&
20832 test "x$as_lineno_3" = "x$as_lineno_2" || {
20833 # Find who we are. Look in the path if we contain no path at all
20836 *[\\/]* ) as_myself=$0 ;;
20837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20838 for as_dir in $PATH
20841 test -z "$as_dir" && as_dir=.
20842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20847 # We did not find ourselves, most probably we were run as `sh COMMAND'
20848 # in which case we are not to be found in the path.
20849 if test "x$as_myself" = x; then
20852 if test ! -f "$as_myself"; then
20853 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20855 { (exit 1); exit 1; }; }
20857 case $CONFIG_SHELL in
20859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20863 test -z "$as_dir" && as_dir=.
20864 for as_base in sh bash ksh sh5; do
20867 if ("$as_dir/$as_base" -c '
20868 as_lineno_1=$LINENO
20869 as_lineno_2=$LINENO
20870 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20871 test "x$as_lineno_1" != "x$as_lineno_2" &&
20872 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20873 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20874 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20875 CONFIG_SHELL=$as_dir/$as_base
20876 export CONFIG_SHELL
20877 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20886 # uniformly replaced by the line number. The first 'sed' inserts a
20887 # line-number line before each line; the second 'sed' does the real
20888 # work. The second script uses 'N' to pair each line-number line
20889 # with the numbered line, and appends trailing '-' during
20890 # substitution so that $LINENO is not a special case at line end.
20891 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20892 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20893 sed '=' <$as_myself |
20898 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20901 s,^['$as_cr_digits']*\n,,
20902 ' >$as_me.lineno &&
20903 chmod +x $as_me.lineno ||
20904 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20906 { (exit 1); exit 1; }; }
20908 # Don't try to exec as it changes $[0], causing all sort of problems
20909 # (the dirname of $[0] is not the place where we might find the
20910 # original and so on. Autoconf is especially sensible to this).
20912 # Exit status is that of the last command.
20917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20918 *c*,-n*) ECHO_N= ECHO_C='
20920 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20921 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20924 if expr a : '\(a\)' >/dev/null 2>&1; then
20930 rm -f conf$$ conf$$.exe conf$$.file
20932 if ln -s conf$$.file conf$$ 2>/dev/null; then
20933 # We could just check for DJGPP; but this test a) works b) is more generic
20934 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20935 if test -f conf$$.exe; then
20936 # Don't use ln at all; we don't have any links
20941 elif ln conf$$.file conf$$ 2>/dev/null; then
20946 rm -f conf$$ conf$$.exe conf$$.file
20948 if mkdir -p . 2>/dev/null; then
20951 test -d ./-p && rmdir ./-p
20955 as_executable_p="test -f"
20957 # Sed expression to map a string onto a valid CPP name.
20958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20960 # Sed expression to map a string onto a valid variable name.
20961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20965 # We need space, tab and new line, in precisely that order.
20975 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20976 # report actual input values of CONFIG_FILES etc. instead of their
20977 # values after options handling. Logging --version etc. is OK.
20981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20982 ## Running $as_me. ##
20987 This file was extended by $as_me, which was
20988 generated by GNU Autoconf 2.59. Invocation command line was
20990 CONFIG_FILES = $CONFIG_FILES
20991 CONFIG_HEADERS = $CONFIG_HEADERS
20992 CONFIG_LINKS = $CONFIG_LINKS
20993 CONFIG_COMMANDS = $CONFIG_COMMANDS
20997 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21001 # Files that config.status was made for.
21002 if test -n "$ac_config_files"; then
21003 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21006 if test -n "$ac_config_headers"; then
21007 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21010 if test -n "$ac_config_links"; then
21011 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21014 if test -n "$ac_config_commands"; then
21015 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21018 cat >>$CONFIG_STATUS <<\_ACEOF
21021 \`$as_me' instantiates files from templates according to the
21022 current configuration.
21024 Usage: $0 [OPTIONS] [FILE]...
21026 -h, --help print this help, then exit
21027 -V, --version print version number, then exit
21028 -q, --quiet do not print progress messages
21029 -d, --debug don't remove temporary files
21030 --recheck update $as_me by reconfiguring in the same conditions
21031 --file=FILE[:TEMPLATE]
21032 instantiate the configuration file FILE
21033 --header=FILE[:TEMPLATE]
21034 instantiate the configuration header FILE
21036 Configuration files:
21039 Configuration headers:
21042 Configuration commands:
21045 Report bugs to <bug-autoconf@gnu.org>."
21048 cat >>$CONFIG_STATUS <<_ACEOF
21051 configured by $0, generated by GNU Autoconf 2.59,
21052 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21054 Copyright (C) 2003 Free Software Foundation, Inc.
21055 This config.status script is free software; the Free Software Foundation
21056 gives unlimited permission to copy, distribute and modify it."
21061 cat >>$CONFIG_STATUS <<\_ACEOF
21062 # If no file are specified by the user, then we need to provide default
21063 # value. By we need to know if files were specified by the user.
21069 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21070 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21078 *) # This is not an option, so the user has probably given explicit
21081 ac_need_defaults=false;;
21085 # Handling of the options.
21087 cat >>$CONFIG_STATUS <<\_ACEOF
21088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21090 --version | --vers* | -V )
21091 echo "$ac_cs_version"; exit 0 ;;
21093 # Conflict between --help and --header
21094 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21095 Try \`$0 --help' for more information." >&5
21096 echo "$as_me: error: ambiguous option: $1
21097 Try \`$0 --help' for more information." >&2;}
21098 { (exit 1); exit 1; }; };;
21099 --help | --hel | -h )
21100 echo "$ac_cs_usage"; exit 0 ;;
21101 --debug | --d* | -d )
21103 --file | --fil | --fi | --f )
21105 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21106 ac_need_defaults=false;;
21107 --header | --heade | --head | --hea )
21109 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21110 ac_need_defaults=false;;
21111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21112 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21115 # This is an error.
21116 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21117 Try \`$0 --help' for more information." >&5
21118 echo "$as_me: error: unrecognized option: $1
21119 Try \`$0 --help' for more information." >&2;}
21120 { (exit 1); exit 1; }; } ;;
21122 *) ac_config_targets="$ac_config_targets $1" ;;
21128 ac_configure_extra_args=
21130 if $ac_cs_silent; then
21132 ac_configure_extra_args="$ac_configure_extra_args --silent"
21136 cat >>$CONFIG_STATUS <<_ACEOF
21137 if \$ac_cs_recheck; then
21138 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21139 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21144 cat >>$CONFIG_STATUS <<_ACEOF
21146 # INIT-COMMANDS section.
21149 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21155 cat >>$CONFIG_STATUS <<\_ACEOF
21156 for ac_config_target in $ac_config_targets
21158 case "$ac_config_target" in
21159 # Handling of arguments.
21160 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21161 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21162 "src/version.c" ) CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
21163 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21164 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21165 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21166 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21167 { (exit 1); exit 1; }; };;
21171 # If the user did not use the arguments to specify the items to instantiate,
21172 # then the envvar interface is used. Set only those that are not.
21173 # We use the long form for the default assignment because of an extremely
21174 # bizarre bug on SunOS 4.1.3.
21175 if $ac_need_defaults; then
21176 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21177 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21178 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21181 # Have a temporary directory for convenience. Make it in the build tree
21182 # simply because there is no reason to put it here, and in addition,
21183 # creating and moving files from /tmp can sometimes cause problems.
21184 # Create a temporary directory, and hook for its removal unless debugging.
21187 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21188 trap '{ (exit 1); exit 1; }' 1 2 13 15
21191 # Create a (secure) tmp directory for tmp files.
21194 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21195 test -n "$tmp" && test -d "$tmp"
21198 tmp=./confstat$$-$RANDOM
21199 (umask 077 && mkdir $tmp)
21202 echo "$me: cannot create a temporary directory in ." >&2
21203 { (exit 1); exit 1; }
21208 cat >>$CONFIG_STATUS <<_ACEOF
21211 # CONFIG_FILES section.
21214 # No need to generate the scripts if there are no CONFIG_FILES.
21215 # This happens for instance when ./config.status config.h
21216 if test -n "\$CONFIG_FILES"; then
21217 # Protect against being on the right side of a sed subst in config.status.
21218 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21219 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21220 s,@SHELL@,$SHELL,;t t
21221 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21222 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21223 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21224 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21225 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21226 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21227 s,@exec_prefix@,$exec_prefix,;t t
21228 s,@prefix@,$prefix,;t t
21229 s,@program_transform_name@,$program_transform_name,;t t
21230 s,@bindir@,$bindir,;t t
21231 s,@sbindir@,$sbindir,;t t
21232 s,@libexecdir@,$libexecdir,;t t
21233 s,@datadir@,$datadir,;t t
21234 s,@sysconfdir@,$sysconfdir,;t t
21235 s,@sharedstatedir@,$sharedstatedir,;t t
21236 s,@localstatedir@,$localstatedir,;t t
21237 s,@libdir@,$libdir,;t t
21238 s,@includedir@,$includedir,;t t
21239 s,@oldincludedir@,$oldincludedir,;t t
21240 s,@infodir@,$infodir,;t t
21241 s,@mandir@,$mandir,;t t
21242 s,@build_alias@,$build_alias,;t t
21243 s,@host_alias@,$host_alias,;t t
21244 s,@target_alias@,$target_alias,;t t
21245 s,@DEFS@,$DEFS,;t t
21246 s,@ECHO_C@,$ECHO_C,;t t
21247 s,@ECHO_N@,$ECHO_N,;t t
21248 s,@ECHO_T@,$ECHO_T,;t t
21249 s,@LIBS@,$LIBS,;t t
21250 s,@build@,$build,;t t
21251 s,@build_cpu@,$build_cpu,;t t
21252 s,@build_vendor@,$build_vendor,;t t
21253 s,@build_os@,$build_os,;t t
21254 s,@host@,$host,;t t
21255 s,@host_cpu@,$host_cpu,;t t
21256 s,@host_vendor@,$host_vendor,;t t
21257 s,@host_os@,$host_os,;t t
21258 s,@target@,$target,;t t
21259 s,@target_cpu@,$target_cpu,;t t
21260 s,@target_vendor@,$target_vendor,;t t
21261 s,@target_os@,$target_os,;t t
21262 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21263 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21264 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21265 s,@CYGPATH_W@,$CYGPATH_W,;t t
21266 s,@PACKAGE@,$PACKAGE,;t t
21267 s,@VERSION@,$VERSION,;t t
21268 s,@ACLOCAL@,$ACLOCAL,;t t
21269 s,@AUTOCONF@,$AUTOCONF,;t t
21270 s,@AUTOMAKE@,$AUTOMAKE,;t t
21271 s,@AUTOHEADER@,$AUTOHEADER,;t t
21272 s,@MAKEINFO@,$MAKEINFO,;t t
21273 s,@install_sh@,$install_sh,;t t
21274 s,@STRIP@,$STRIP,;t t
21275 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21276 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21277 s,@mkdir_p@,$mkdir_p,;t t
21279 s,@SET_MAKE@,$SET_MAKE,;t t
21280 s,@am__leading_dot@,$am__leading_dot,;t t
21281 s,@AMTAR@,$AMTAR,;t t
21282 s,@am__tar@,$am__tar,;t t
21283 s,@am__untar@,$am__untar,;t t
21284 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21285 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21286 s,@MAINT@,$MAINT,;t t
21288 s,@CFLAGS@,$CFLAGS,;t t
21289 s,@LDFLAGS@,$LDFLAGS,;t t
21290 s,@CPPFLAGS@,$CPPFLAGS,;t t
21291 s,@ac_ct_CC@,$ac_ct_CC,;t t
21292 s,@EXEEXT@,$EXEEXT,;t t
21293 s,@OBJEXT@,$OBJEXT,;t t
21294 s,@DEPDIR@,$DEPDIR,;t t
21295 s,@am__include@,$am__include,;t t
21296 s,@am__quote@,$am__quote,;t t
21297 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21298 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21299 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21300 s,@CCDEPMODE@,$CCDEPMODE,;t t
21301 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21302 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21303 s,@EGREP@,$EGREP,;t t
21304 s,@LN_S@,$LN_S,;t t
21305 s,@ECHO@,$ECHO,;t t
21307 s,@ac_ct_AR@,$ac_ct_AR,;t t
21308 s,@RANLIB@,$RANLIB,;t t
21309 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21312 s,@CXXFLAGS@,$CXXFLAGS,;t t
21313 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21314 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21315 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21316 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21317 s,@CXXCPP@,$CXXCPP,;t t
21319 s,@FFLAGS@,$FFLAGS,;t t
21320 s,@ac_ct_F77@,$ac_ct_F77,;t t
21321 s,@LIBTOOL@,$LIBTOOL,;t t
21322 s,@RENAME_TRUE@,$RENAME_TRUE,;t t
21323 s,@RENAME_FALSE@,$RENAME_FALSE,;t t
21324 s,@LIBVER@,$LIBVER,;t t
21326 s,@LIBOBJS@,$LIBOBJS,;t t
21327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21332 cat >>$CONFIG_STATUS <<\_ACEOF
21333 # Split the substitutions into bite-sized pieces for seds with
21334 # small command number limits, like on Digital OSF/1 and HP-UX.
21335 ac_max_sed_lines=48
21336 ac_sed_frag=1 # Number of current file.
21337 ac_beg=1 # First line for current file.
21338 ac_end=$ac_max_sed_lines # Line after last line for current file.
21341 while $ac_more_lines; do
21342 if test $ac_beg -gt 1; then
21343 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21345 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21347 if test ! -s $tmp/subs.frag; then
21348 ac_more_lines=false
21350 # The purpose of the label and of the branching condition is to
21351 # speed up the sed processing (if there are no `@' at all, there
21352 # is no need to browse any of the substitutions).
21353 # These are the two extra sed commands mentioned above.
21355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21356 if test -z "$ac_sed_cmds"; then
21357 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21359 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21361 ac_sed_frag=`expr $ac_sed_frag + 1`
21363 ac_end=`expr $ac_end + $ac_max_sed_lines`
21366 if test -z "$ac_sed_cmds"; then
21369 fi # test -n "$CONFIG_FILES"
21372 cat >>$CONFIG_STATUS <<\_ACEOF
21373 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21376 - | *:- | *:-:* ) # input from stdin
21378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21382 * ) ac_file_in=$ac_file.in ;;
21385 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21388 X"$ac_file" : 'X\(//\)[^/]' \| \
21389 X"$ac_file" : 'X\(//\)$' \| \
21390 X"$ac_file" : 'X\(/\)' \| \
21391 . : '\(.\)' 2>/dev/null ||
21393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21395 /^X\(\/\/\)$/{ s//\1/; q; }
21396 /^X\(\/\).*/{ s//\1/; q; }
21398 { if $as_mkdir_p; then
21403 while test ! -d "$as_dir"; do
21404 as_dirs="$as_dir $as_dirs"
21405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21407 X"$as_dir" : 'X\(//\)[^/]' \| \
21408 X"$as_dir" : 'X\(//\)$' \| \
21409 X"$as_dir" : 'X\(/\)' \| \
21410 . : '\(.\)' 2>/dev/null ||
21412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21414 /^X\(\/\/\)$/{ s//\1/; q; }
21415 /^X\(\/\).*/{ s//\1/; q; }
21418 test ! -n "$as_dirs" || mkdir $as_dirs
21419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21421 { (exit 1); exit 1; }; }; }
21425 if test "$ac_dir" != .; then
21426 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21427 # A "../" for each directory in $ac_dir_suffix.
21428 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21430 ac_dir_suffix= ac_top_builddir=
21434 .) # No --srcdir option. We are building in place.
21436 if test -z "$ac_top_builddir"; then
21439 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21441 [\\/]* | ?:[\\/]* ) # Absolute path.
21442 ac_srcdir=$srcdir$ac_dir_suffix;
21443 ac_top_srcdir=$srcdir ;;
21444 *) # Relative path.
21445 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21446 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21449 # Do not use `cd foo && pwd` to compute absolute paths, because
21450 # the directories may not exist.
21452 .) ac_abs_builddir="$ac_dir";;
21455 .) ac_abs_builddir=`pwd`;;
21456 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21457 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21460 case $ac_abs_builddir in
21461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21463 case ${ac_top_builddir}. in
21464 .) ac_abs_top_builddir=$ac_abs_builddir;;
21465 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21466 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21469 case $ac_abs_builddir in
21470 .) ac_abs_srcdir=$ac_srcdir;;
21473 .) ac_abs_srcdir=$ac_abs_builddir;;
21474 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21475 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21478 case $ac_abs_builddir in
21479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21481 case $ac_top_srcdir in
21482 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21483 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21484 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21491 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21494 if test x"$ac_file" != x-; then
21495 { echo "$as_me:$LINENO: creating $ac_file" >&5
21496 echo "$as_me: creating $ac_file" >&6;}
21499 # Let's still pretend it is `configure' which instantiates (i.e., don't
21500 # use $as_me), people would be surprised to read:
21501 # /* config.h. Generated by config.status. */
21502 if test x"$ac_file" = x-; then
21505 configure_input="$ac_file. "
21507 configure_input=$configure_input"Generated from `echo $ac_file_in |
21508 sed 's,.*/,,'` by configure."
21510 # First look for the input files in the build tree, otherwise in the
21512 ac_file_inputs=`IFS=:
21513 for f in $ac_file_in; do
21515 -) echo $tmp/stdin ;;
21517 # Absolute (can't be DOS-style, as IFS=:)
21518 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21519 echo "$as_me: error: cannot find input file: $f" >&2;}
21520 { (exit 1); exit 1; }; }
21523 if test -f "$f"; then
21526 elif test -f "$srcdir/$f"; then
21531 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21532 echo "$as_me: error: cannot find input file: $f" >&2;}
21533 { (exit 1); exit 1; }; }
21536 done` || { (exit 1); exit 1; }
21538 cat >>$CONFIG_STATUS <<_ACEOF
21542 cat >>$CONFIG_STATUS <<\_ACEOF
21544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21545 s,@configure_input@,$configure_input,;t t
21546 s,@srcdir@,$ac_srcdir,;t t
21547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21548 s,@top_srcdir@,$ac_top_srcdir,;t t
21549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21550 s,@builddir@,$ac_builddir,;t t
21551 s,@abs_builddir@,$ac_abs_builddir,;t t
21552 s,@top_builddir@,$ac_top_builddir,;t t
21553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21554 s,@INSTALL@,$ac_INSTALL,;t t
21555 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21557 if test x"$ac_file" != x-; then
21558 mv $tmp/out $ac_file
21566 cat >>$CONFIG_STATUS <<\_ACEOF
21569 # CONFIG_HEADER section.
21572 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21573 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21575 # ac_d sets the value in "#define NAME VALUE" lines.
21576 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21577 ac_dB='[ ].*$,\1#\2'
21580 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21581 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21582 ac_uB='$,\1#\2define\3'
21586 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21589 - | *:- | *:-:* ) # input from stdin
21591 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21593 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21595 * ) ac_file_in=$ac_file.in ;;
21598 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21599 echo "$as_me: creating $ac_file" >&6;}
21601 # First look for the input files in the build tree, otherwise in the
21603 ac_file_inputs=`IFS=:
21604 for f in $ac_file_in; do
21606 -) echo $tmp/stdin ;;
21608 # Absolute (can't be DOS-style, as IFS=:)
21609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21610 echo "$as_me: error: cannot find input file: $f" >&2;}
21611 { (exit 1); exit 1; }; }
21612 # Do quote $f, to prevent DOS paths from being IFS'd.
21615 if test -f "$f"; then
21618 elif test -f "$srcdir/$f"; then
21623 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21624 echo "$as_me: error: cannot find input file: $f" >&2;}
21625 { (exit 1); exit 1; }; }
21628 done` || { (exit 1); exit 1; }
21629 # Remove the trailing spaces.
21630 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21634 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21635 # `conftest.undefs', that substitutes the proper values into
21636 # config.h.in to produce config.h. The first handles `#define'
21637 # templates, and the second `#undef' templates.
21638 # And first: Protect against being on the right side of a sed subst in
21639 # config.status. Protect against being in an unquoted here document
21640 # in config.status.
21641 rm -f conftest.defines conftest.undefs
21642 # Using a here document instead of a string reduces the quoting nightmare.
21643 # Putting comments in sed scripts is not portable.
21645 # `end' is used to avoid that the second main sed command (meant for
21646 # 0-ary CPP macros) applies to n-ary macro definitions.
21647 # See the Autoconf documentation for `clear'.
21648 cat >confdef2sed.sed <<\_ACEOF
21653 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21655 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21658 # If some macros were called several times there might be several times
21659 # the same #defines, which is useless. Nevertheless, we may not want to
21660 # sort them, since we want the *last* AC-DEFINE to be honored.
21661 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21662 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21663 rm -f confdef2sed.sed
21665 # This sed command replaces #undef with comments. This is necessary, for
21666 # example, in the case of _POSIX_SOURCE, which is predefined and required
21667 # on some systems where configure will not decide to define it.
21668 cat >>conftest.undefs <<\_ACEOF
21669 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21672 # Break up conftest.defines because some shells have a limit on the size
21673 # of here documents, and old seds have small limits too (100 cmds).
21674 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21675 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21676 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21677 echo ' :' >>$CONFIG_STATUS
21678 rm -f conftest.tail
21679 while grep . conftest.defines >/dev/null
21681 # Write a limited-size here document to $tmp/defines.sed.
21682 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21683 # Speed up: don't consider the non `#define' lines.
21684 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21685 # Work around the forget-to-reset-the-flag bug.
21686 echo 't clr' >>$CONFIG_STATUS
21687 echo ': clr' >>$CONFIG_STATUS
21688 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21690 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21692 mv $tmp/out $tmp/in
21694 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21695 rm -f conftest.defines
21696 mv conftest.tail conftest.defines
21698 rm -f conftest.defines
21699 echo ' fi # grep' >>$CONFIG_STATUS
21700 echo >>$CONFIG_STATUS
21702 # Break up conftest.undefs because some shells have a limit on the size
21703 # of here documents, and old seds have small limits too (100 cmds).
21704 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21705 rm -f conftest.tail
21706 while grep . conftest.undefs >/dev/null
21708 # Write a limited-size here document to $tmp/undefs.sed.
21709 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21710 # Speed up: don't consider the non `#undef'
21711 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21712 # Work around the forget-to-reset-the-flag bug.
21713 echo 't clr' >>$CONFIG_STATUS
21714 echo ': clr' >>$CONFIG_STATUS
21715 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21717 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21719 mv $tmp/out $tmp/in
21721 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21722 rm -f conftest.undefs
21723 mv conftest.tail conftest.undefs
21725 rm -f conftest.undefs
21727 cat >>$CONFIG_STATUS <<\_ACEOF
21728 # Let's still pretend it is `configure' which instantiates (i.e., don't
21729 # use $as_me), people would be surprised to read:
21730 # /* config.h. Generated by config.status. */
21731 if test x"$ac_file" = x-; then
21732 echo "/* Generated by configure. */" >$tmp/config.h
21734 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21736 cat $tmp/in >>$tmp/config.h
21738 if test x"$ac_file" != x-; then
21739 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21741 echo "$as_me: $ac_file is unchanged" >&6;}
21743 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21745 X"$ac_file" : 'X\(//\)[^/]' \| \
21746 X"$ac_file" : 'X\(//\)$' \| \
21747 X"$ac_file" : 'X\(/\)' \| \
21748 . : '\(.\)' 2>/dev/null ||
21750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21752 /^X\(\/\/\)$/{ s//\1/; q; }
21753 /^X\(\/\).*/{ s//\1/; q; }
21755 { if $as_mkdir_p; then
21760 while test ! -d "$as_dir"; do
21761 as_dirs="$as_dir $as_dirs"
21762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21764 X"$as_dir" : 'X\(//\)[^/]' \| \
21765 X"$as_dir" : 'X\(//\)$' \| \
21766 X"$as_dir" : 'X\(/\)' \| \
21767 . : '\(.\)' 2>/dev/null ||
21769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21771 /^X\(\/\/\)$/{ s//\1/; q; }
21772 /^X\(\/\).*/{ s//\1/; q; }
21775 test ! -n "$as_dirs" || mkdir $as_dirs
21776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21778 { (exit 1); exit 1; }; }; }
21781 mv $tmp/config.h $ac_file
21785 rm -f $tmp/config.h
21787 # Compute $ac_file's index in $config_headers.
21789 for _am_header in $config_headers :; do
21790 case $_am_header in
21791 $ac_file | $ac_file:* )
21794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21797 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21798 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21799 X$ac_file : 'X\(//\)[^/]' \| \
21800 X$ac_file : 'X\(//\)$' \| \
21801 X$ac_file : 'X\(/\)' \| \
21802 . : '\(.\)' 2>/dev/null ||
21804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21806 /^X\(\/\/\)$/{ s//\1/; q; }
21807 /^X\(\/\).*/{ s//\1/; q; }
21808 s/.*/./; q'`/stamp-h$_am_stamp_count
21811 cat >>$CONFIG_STATUS <<\_ACEOF
21814 # CONFIG_COMMANDS section.
21816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21821 X"$ac_dest" : 'X\(//\)[^/]' \| \
21822 X"$ac_dest" : 'X\(//\)$' \| \
21823 X"$ac_dest" : 'X\(/\)' \| \
21824 . : '\(.\)' 2>/dev/null ||
21826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21828 /^X\(\/\/\)$/{ s//\1/; q; }
21829 /^X\(\/\).*/{ s//\1/; q; }
21831 { if $as_mkdir_p; then
21836 while test ! -d "$as_dir"; do
21837 as_dirs="$as_dir $as_dirs"
21838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21840 X"$as_dir" : 'X\(//\)[^/]' \| \
21841 X"$as_dir" : 'X\(//\)$' \| \
21842 X"$as_dir" : 'X\(/\)' \| \
21843 . : '\(.\)' 2>/dev/null ||
21845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21847 /^X\(\/\/\)$/{ s//\1/; q; }
21848 /^X\(\/\).*/{ s//\1/; q; }
21851 test ! -n "$as_dirs" || mkdir $as_dirs
21852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21854 { (exit 1); exit 1; }; }; }
21858 if test "$ac_dir" != .; then
21859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21860 # A "../" for each directory in $ac_dir_suffix.
21861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21863 ac_dir_suffix= ac_top_builddir=
21867 .) # No --srcdir option. We are building in place.
21869 if test -z "$ac_top_builddir"; then
21872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21874 [\\/]* | ?:[\\/]* ) # Absolute path.
21875 ac_srcdir=$srcdir$ac_dir_suffix;
21876 ac_top_srcdir=$srcdir ;;
21877 *) # Relative path.
21878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21882 # Do not use `cd foo && pwd` to compute absolute paths, because
21883 # the directories may not exist.
21885 .) ac_abs_builddir="$ac_dir";;
21888 .) ac_abs_builddir=`pwd`;;
21889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21893 case $ac_abs_builddir in
21894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21896 case ${ac_top_builddir}. in
21897 .) ac_abs_top_builddir=$ac_abs_builddir;;
21898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21902 case $ac_abs_builddir in
21903 .) ac_abs_srcdir=$ac_srcdir;;
21906 .) ac_abs_srcdir=$ac_abs_builddir;;
21907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21911 case $ac_abs_builddir in
21912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21914 case $ac_top_srcdir in
21915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21923 echo "$as_me: executing $ac_dest commands" >&6;}
21925 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21926 # Strip MF so we end up with the name of the file.
21927 mf=`echo "$mf" | sed -e 's/:.*$//'`
21928 # Check whether this is an Automake generated Makefile or not.
21929 # We used to match only the files named `Makefile.in', but
21930 # some people rename them; so instead we look at the file content.
21931 # Grep'ing the first line is not enough: some people post-process
21932 # each Makefile.in and add a new line on top of each file to say so.
21933 # So let's grep whole file.
21934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21935 dirpart=`(dirname "$mf") 2>/dev/null ||
21936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937 X"$mf" : 'X\(//\)[^/]' \| \
21938 X"$mf" : 'X\(//\)$' \| \
21939 X"$mf" : 'X\(/\)' \| \
21940 . : '\(.\)' 2>/dev/null ||
21942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21944 /^X\(\/\/\)$/{ s//\1/; q; }
21945 /^X\(\/\).*/{ s//\1/; q; }
21950 # Extract the definition of DEPDIR, am__include, and am__quote
21951 # from the Makefile without running `make'.
21952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21953 test -z "$DEPDIR" && continue
21954 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21955 test -z "am__include" && continue
21956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21957 # When using ansi2knr, U may be empty or an underscore; expand it
21958 U=`sed -n 's/^U = //p' < "$mf"`
21959 # Find all dependency output files, they are included files with
21960 # $(DEPDIR) in their names. We invoke sed twice because it is the
21961 # simplest approach to changing $(DEPDIR) to its actual value in the
21963 for file in `sed -n "
21964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21966 # Make sure the directory exists.
21967 test -f "$dirpart/$file" && continue
21968 fdir=`(dirname "$file") 2>/dev/null ||
21969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21970 X"$file" : 'X\(//\)[^/]' \| \
21971 X"$file" : 'X\(//\)$' \| \
21972 X"$file" : 'X\(/\)' \| \
21973 . : '\(.\)' 2>/dev/null ||
21975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21977 /^X\(\/\/\)$/{ s//\1/; q; }
21978 /^X\(\/\).*/{ s//\1/; q; }
21980 { if $as_mkdir_p; then
21981 mkdir -p $dirpart/$fdir
21983 as_dir=$dirpart/$fdir
21985 while test ! -d "$as_dir"; do
21986 as_dirs="$as_dir $as_dirs"
21987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21989 X"$as_dir" : 'X\(//\)[^/]' \| \
21990 X"$as_dir" : 'X\(//\)$' \| \
21991 X"$as_dir" : 'X\(/\)' \| \
21992 . : '\(.\)' 2>/dev/null ||
21994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21996 /^X\(\/\/\)$/{ s//\1/; q; }
21997 /^X\(\/\).*/{ s//\1/; q; }
22000 test ! -n "$as_dirs" || mkdir $as_dirs
22001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22002 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22003 { (exit 1); exit 1; }; }; }
22005 # echo "creating $dirpart/$file"
22006 echo '# dummy' > "$dirpart/$file"
22014 cat >>$CONFIG_STATUS <<\_ACEOF
22016 { (exit 0); exit 0; }
22018 chmod +x $CONFIG_STATUS
22019 ac_clean_files=$ac_clean_files_save
22022 # configure is writing to config.log, and then calls config.status.
22023 # config.status does its own redirection, appending to config.log.
22024 # Unfortunately, on DOS this fails, as config.log is still kept open
22025 # by configure, so config.status won't be able to write to it; its
22026 # output is simply discarded. So we exec the FD to /dev/null,
22027 # effectively closing config.log, so it can be properly (re)opened and
22028 # appended to by config.status. When coming back to configure, we
22029 # need to make the FD available again.
22030 if test "$no_create" != yes; then
22032 ac_config_status_args=
22033 test "$silent" = yes &&
22034 ac_config_status_args="$ac_config_status_args --quiet"
22036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22039 # would make configure fail if this is the last instruction.
22040 $ac_cs_success || { (exit 1); exit 1; }