2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for librdmacm 1.0.11.
5 # Report bugs to <general@lists.openfabrics.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='librdmacm'
425 PACKAGE_TARNAME='librdmacm'
426 PACKAGE_VERSION='1.0.11'
427 PACKAGE_STRING='librdmacm 1.0.11'
428 PACKAGE_BUGREPORT='general@lists.openfabrics.org'
430 ac_unique_file="src/cma.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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 HAVE_LD_VERSION_SCRIPT_TRUE HAVE_LD_VERSION_SCRIPT_FALSE 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 librdmacm 1.0.11 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]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of librdmacm 1.0.11:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-dependency-tracking speeds up one-time build
1037 --enable-dependency-tracking do not reject slow dependency extractors
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --disable-libcheck do not test for presence of ib libraries
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1048 include additional configurations [automatic]
1049 --with-valgrind Enable valgrind annotations - default NO
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1068 Report bugs to <general@lists.openfabrics.org>.
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
1164 librdmacm configure 1.0.11
1165 generated by GNU Autoconf 2.59
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1178 It was created by librdmacm $as_me 1.0.11, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_must_keep_next=false
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 -* ) ac_must_keep_next=true ;;
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log. We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1291 ## ---------------- ##
1292 ## Cache variables. ##
1293 ## ---------------- ##
1296 # The following way of writing the cache mishandles newlines in values,
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1314 ## ----------------- ##
1315 ## Output variables. ##
1316 ## ----------------- ##
1319 for ac_var in $ac_subst_vars
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1326 if test -n "$ac_subst_files"; then
1333 for ac_var in $ac_subst_files
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -s confdefs.h; then
1348 sed "/^$/d" confdefs.h | sort
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 # Predefined preprocessor variables.
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1414 if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1431 # Check that the precious variables saved in the cache have kept the same
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 for ac_dir in config $srcdir/config; do
1517 if test -f $ac_dir/install-sh; then
1519 ac_install_sh="$ac_aux_dir/install-sh -c"
1521 elif test -f $ac_dir/install.sh; then
1523 ac_install_sh="$ac_aux_dir/install.sh -c"
1525 elif test -f $ac_dir/shtool; then
1527 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 if test -z "$ac_aux_dir"; then
1532 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1533 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1534 { (exit 1); exit 1; }; }
1536 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1540 ac_config_headers="$ac_config_headers config.h"
1542 am__api_version="1.9"
1543 # Find a good install program. We prefer a C program (faster),
1544 # so one script is as good as another. But avoid the broken or
1545 # incompatible versions:
1546 # SysV /etc/install, /usr/sbin/install
1547 # SunOS /usr/etc/install
1548 # IRIX /sbin/install
1550 # AmigaOS /C/install, which installs bootblocks on floppy discs
1551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1554 # OS/2's system install, which has a completely different semantic
1555 # ./install, which can be erroneously created by make from ./install.sh.
1556 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1557 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1558 if test -z "$INSTALL"; then
1559 if test "${ac_cv_path_install+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 # Account for people who put trailing slashes in PATH elements.
1569 ./ | .// | /cC/* | \
1570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1571 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1574 # OSF1 and SCO ODT 3.0 have their own names for install.
1575 # Don't use installbsd from OSF since it installs stuff as root
1577 for ac_prog in ginstall scoinst install; do
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1580 if test $ac_prog = install &&
1581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582 # AIX install. It has an incompatible calling convention.
1584 elif test $ac_prog = install &&
1585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586 # program-specific install script used by HP pwplus--don't use.
1589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1601 if test "${ac_cv_path_install+set}" = set; then
1602 INSTALL=$ac_cv_path_install
1604 # As a last resort, use the slow shell script. We don't cache a
1605 # path for INSTALL within a source directory, because that will
1606 # break other packages using the cache if that directory is
1607 # removed, or if the path is relative.
1608 INSTALL=$ac_install_sh
1611 echo "$as_me:$LINENO: result: $INSTALL" >&5
1612 echo "${ECHO_T}$INSTALL" >&6
1614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1615 # It thinks the first close brace ends the variable substitution.
1616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1622 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1623 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1626 echo timestamp > conftest.file
1627 # Do `set' in a subshell so we don't clobber the current shell's
1628 # arguments. Must try -L first in case configure is actually a
1629 # symlink; some systems play weird games with the mod time of symlinks
1630 # (eg FreeBSD returns the mod time of the symlink's containing
1633 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1634 if test "$*" = "X"; then
1636 set X `ls -t $srcdir/configure conftest.file`
1639 if test "$*" != "X $srcdir/configure conftest.file" \
1640 && test "$*" != "X conftest.file $srcdir/configure"; then
1642 # If neither matched, then we have a broken ls. This can happen
1643 # if, for instance, CONFIG_SHELL is bash and it inherits a
1644 # broken ls alias from the environment. This has actually
1645 # happened. Such a system could not be considered "sane".
1646 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1647 alias in your environment" >&5
1648 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1649 alias in your environment" >&2;}
1650 { (exit 1); exit 1; }; }
1653 test "$2" = conftest.file
1659 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1660 Check your system clock" >&5
1661 echo "$as_me: error: newly created file is older than distributed files!
1662 Check your system clock" >&2;}
1663 { (exit 1); exit 1; }; }
1665 echo "$as_me:$LINENO: result: yes" >&5
1666 echo "${ECHO_T}yes" >&6
1667 test "$program_prefix" != NONE &&
1668 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1669 # Use a double $ so make ignores it.
1670 test "$program_suffix" != NONE &&
1671 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1672 # Double any \ or $. echo might interpret backslashes.
1673 # By default was `s,x,x', remove it if useless.
1674 cat <<\_ACEOF >conftest.sed
1675 s/[\\$]/&&/g;s/;s,x,x,$//
1677 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1680 # expand $ac_aux_dir to an absolute path
1681 am_aux_dir=`cd $ac_aux_dir && pwd`
1683 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684 # Use eval to expand $SHELL
1685 if eval "$MISSING --run true"; then
1686 am_missing_run="$MISSING --run "
1689 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1693 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1694 # We used to keeping the `.' as first argument, in order to
1695 # allow $(mkdir_p) to be used without argument. As in
1696 # $(mkdir_p) $(somedir)
1697 # where $(somedir) is conditionally defined. However this is wrong
1699 # 1. if the package is installed by a user who cannot write `.'
1700 # make install will fail,
1701 # 2. the above comment should most certainly read
1702 # $(mkdir_p) $(DESTDIR)$(somedir)
1703 # so it does not work when $(somedir) is undefined and
1704 # $(DESTDIR) is not.
1705 # To support the latter case, we have to write
1706 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1707 # so the `.' trick is pointless.
1708 mkdir_p='mkdir -p --'
1710 # On NextStep and OpenStep, the `mkdir' command does not
1711 # recognize any option. It will interpret all options as
1712 # directories to create, and then abort because `.' already
1714 for d in ./-p ./--version;
1716 test -d $d && rmdir $d
1718 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1719 if test -f "$ac_aux_dir/mkinstalldirs"; then
1720 mkdir_p='$(mkinstalldirs)'
1722 mkdir_p='$(install_sh) -d'
1726 for ac_prog in gawk mawk nawk awk
1728 # Extract the first word of "$ac_prog", so it can be a program name with args.
1729 set dummy $ac_prog; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_AWK+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 if test -n "$AWK"; then
1736 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 for ac_exec_ext in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745 ac_cv_prog_AWK="$ac_prog"
1746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 if test -n "$AWK"; then
1756 echo "$as_me:$LINENO: result: $AWK" >&5
1757 echo "${ECHO_T}$AWK" >&6
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1763 test -n "$AWK" && break
1766 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1767 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1768 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1769 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 cat >conftest.make <<\_ACEOF
1774 @echo 'ac_maketemp="$(MAKE)"'
1776 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1777 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1778 if test -n "$ac_maketemp"; then
1779 eval ac_cv_prog_make_${ac_make}_set=yes
1781 eval ac_cv_prog_make_${ac_make}_set=no
1785 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1786 echo "$as_me:$LINENO: result: yes" >&5
1787 echo "${ECHO_T}yes" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792 SET_MAKE="MAKE=${MAKE-make}"
1795 rm -rf .tst 2>/dev/null
1796 mkdir .tst 2>/dev/null
1797 if test -d .tst; then
1802 rmdir .tst 2>/dev/null
1804 # test to see if srcdir already configured
1805 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1806 test -f $srcdir/config.status; then
1807 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1808 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1809 { (exit 1); exit 1; }; }
1812 # test whether we have cygpath
1813 if test -z "$CYGPATH_W"; then
1814 if (cygpath --version) >/dev/null 2>/dev/null; then
1815 CYGPATH_W='cygpath -w'
1822 # Define the identity of the package.
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE "$PACKAGE"
1832 cat >>confdefs.h <<_ACEOF
1833 #define VERSION "$VERSION"
1836 # Some tools Automake needs.
1838 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1841 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1844 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1847 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1850 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1852 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1854 # Installed binaries are usually stripped using `strip' when the user
1855 # run `make install-strip'. However `strip' might not be the right
1856 # tool to use in cross-compilation environments, therefore Automake
1857 # will honor the `STRIP' environment variable to overrule this program.
1858 if test "$cross_compiling" != no; then
1859 if test -n "$ac_tool_prefix"; then
1860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1861 set dummy ${ac_tool_prefix}strip; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_STRIP+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 if test -n "$STRIP"; then
1868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 STRIP=$ac_cv_prog_STRIP
1887 if test -n "$STRIP"; then
1888 echo "$as_me:$LINENO: result: $STRIP" >&5
1889 echo "${ECHO_T}$STRIP" >&6
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1896 if test -z "$ac_cv_prog_STRIP"; then
1898 # Extract the first word of "strip", so it can be a program name with args.
1899 set dummy strip; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 if test -n "$ac_ct_STRIP"; then
1906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_ac_ct_STRIP="strip"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1926 if test -n "$ac_ct_STRIP"; then
1927 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1928 echo "${ECHO_T}$ac_ct_STRIP" >&6
1930 echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1936 STRIP="$ac_cv_prog_STRIP"
1940 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1942 # We need awk for the "check" target. The system "awk" is bad on
1944 # Always define AMTAR for backward compatibility.
1946 AMTAR=${AMTAR-"${am_missing_run}tar"}
1948 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1955 # Check whether --enable-shared or --disable-shared was given.
1956 if test "${enable_shared+set}" = set; then
1957 enableval="$enable_shared"
1958 p=${PACKAGE-default}
1960 yes) enable_shared=yes ;;
1961 no) enable_shared=no ;;
1964 # Look at the argument we got. We use all the common list separators.
1965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1966 for pkg in $enableval; do
1968 if test "X$pkg" = "X$p"; then
1979 # Check whether --enable-static or --disable-static was given.
1980 if test "${enable_static+set}" = set; then
1981 enableval="$enable_static"
1982 p=${PACKAGE-default}
1984 yes) enable_static=yes ;;
1985 no) enable_static=no ;;
1988 # Look at the argument we got. We use all the common list separators.
1989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1990 for pkg in $enableval; do
1992 if test "X$pkg" = "X$p"; then
2003 # Check whether --enable-fast-install or --disable-fast-install was given.
2004 if test "${enable_fast_install+set}" = set; then
2005 enableval="$enable_fast_install"
2006 p=${PACKAGE-default}
2008 yes) enable_fast_install=yes ;;
2009 no) enable_fast_install=no ;;
2011 enable_fast_install=no
2012 # Look at the argument we got. We use all the common list separators.
2013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014 for pkg in $enableval; do
2016 if test "X$pkg" = "X$p"; then
2017 enable_fast_install=yes
2024 enable_fast_install=yes
2027 # Make sure we can run config.sub.
2028 $ac_config_sub sun4 >/dev/null 2>&1 ||
2029 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2030 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2031 { (exit 1); exit 1; }; }
2033 echo "$as_me:$LINENO: checking build system type" >&5
2034 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2035 if test "${ac_cv_build+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 ac_cv_build_alias=$build_alias
2039 test -z "$ac_cv_build_alias" &&
2040 ac_cv_build_alias=`$ac_config_guess`
2041 test -z "$ac_cv_build_alias" &&
2042 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2043 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2044 { (exit 1); exit 1; }; }
2045 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2046 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2047 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2048 { (exit 1); exit 1; }; }
2051 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2052 echo "${ECHO_T}$ac_cv_build" >&6
2054 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2059 echo "$as_me:$LINENO: checking host system type" >&5
2060 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2061 if test "${ac_cv_host+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 ac_cv_host_alias=$host_alias
2065 test -z "$ac_cv_host_alias" &&
2066 ac_cv_host_alias=$ac_cv_build_alias
2067 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2068 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2069 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2070 { (exit 1); exit 1; }; }
2073 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2074 echo "${ECHO_T}$ac_cv_host" >&6
2076 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2081 DEPDIR="${am__leading_dot}deps"
2083 ac_config_commands="$ac_config_commands depfiles"
2086 am_make=${MAKE-make}
2087 cat > confinc << 'END'
2092 # If we don't find an include directive, just comment out the code.
2093 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2094 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2098 # First try GNU make style include.
2099 echo "include confinc" > confmf
2100 # We grep out `Entering directory' and `Leaving directory'
2101 # messages which can occur if `w' ends up in MAKEFLAGS.
2102 # In particular we don't look at `^make:' because GNU make might
2103 # be invoked under some other name (usually "gmake"), in which
2104 # case it prints its new name instead of `make'.
2105 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2110 # Now try BSD make style include.
2111 if test "$am__include" = "#"; then
2112 echo '.include "confinc"' > confmf
2113 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2114 am__include=.include
2121 echo "$as_me:$LINENO: result: $_am_result" >&5
2122 echo "${ECHO_T}$_am_result" >&6
2123 rm -f confinc confmf
2125 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2126 if test "${enable_dependency_tracking+set}" = set; then
2127 enableval="$enable_dependency_tracking"
2130 if test "x$enable_dependency_tracking" != xno; then
2131 am_depcomp="$ac_aux_dir/depcomp"
2136 if test "x$enable_dependency_tracking" != xno; then
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151 if test -n "$ac_tool_prefix"; then
2152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_CC+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test -n "$CC"; then
2160 ac_cv_prog_CC="$CC" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 if test -n "$CC"; then
2180 echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6
2183 echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2188 if test -z "$ac_cv_prog_CC"; then
2190 # Extract the first word of "gcc", so it can be a program name with args.
2191 set dummy gcc; ac_word=$2
2192 echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 if test -n "$ac_ct_CC"; then
2198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2207 ac_cv_prog_ac_ct_CC="gcc"
2208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217 if test -n "$ac_ct_CC"; then
2218 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2219 echo "${ECHO_T}$ac_ct_CC" >&6
2221 echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2230 if test -z "$CC"; then
2231 if test -n "$ac_tool_prefix"; then
2232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2233 set dummy ${ac_tool_prefix}cc; ac_word=$2
2234 echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249 ac_cv_prog_CC="${ac_tool_prefix}cc"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 if test -n "$CC"; then
2260 echo "$as_me:$LINENO: result: $CC" >&5
2261 echo "${ECHO_T}$CC" >&6
2263 echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2268 if test -z "$ac_cv_prog_CC"; then
2270 # Extract the first word of "cc", so it can be a program name with args.
2271 set dummy cc; ac_word=$2
2272 echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287 ac_cv_prog_ac_ct_CC="cc"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6
2301 echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6
2311 if test -z "$CC"; then
2312 # Extract the first word of "cc", so it can be a program name with args.
2313 set dummy cc; ac_word=$2
2314 echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316 if test "${ac_cv_prog_CC+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 if test -n "$CC"; then
2320 ac_cv_prog_CC="$CC" # Let the user override the test.
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2331 ac_prog_rejected=yes
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 if test $ac_prog_rejected = yes; then
2342 # We found a bogon in the path, so make sure we never use it.
2343 set dummy $ac_cv_prog_CC
2345 if test $# != 0; then
2346 # We chose a different compiler from the bogus one.
2347 # However, it has the same basename, so the bogon will be chosen
2348 # first if we set CC to just the basename; use the full file name.
2350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2356 if test -n "$CC"; then
2357 echo "$as_me:$LINENO: result: $CC" >&5
2358 echo "${ECHO_T}$CC" >&6
2360 echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2365 if test -z "$CC"; then
2366 if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 if test -n "$CC"; then
2397 echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2404 test -n "$CC" && break
2407 if test -z "$CC"; then
2411 # Extract the first word of "$ac_prog", so it can be a program name with args.
2412 set dummy $ac_prog; ac_word=$2
2413 echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 if test -n "$ac_ct_CC"; then
2419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2428 ac_cv_prog_ac_ct_CC="$ac_prog"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2438 if test -n "$ac_ct_CC"; then
2439 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440 echo "${ECHO_T}$ac_ct_CC" >&6
2442 echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6
2446 test -n "$ac_ct_CC" && break
2455 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2456 See \`config.log' for more details." >&5
2457 echo "$as_me: error: no acceptable C compiler found in \$PATH
2458 See \`config.log' for more details." >&2;}
2459 { (exit 1); exit 1; }; }
2461 # Provide some information about the compiler.
2462 echo "$as_me:$LINENO:" \
2463 "checking for C compiler version" >&5
2464 ac_compiler=`set X $ac_compile; echo $2`
2465 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2466 (eval $ac_compiler --version </dev/null >&5) 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }
2470 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2471 (eval $ac_compiler -v </dev/null >&5) 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }
2475 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2476 (eval $ac_compiler -V </dev/null >&5) 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2501 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2505 (eval $ac_link_default) 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # Find the output, starting from the most likely. This scheme is
2510 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2513 # Be careful to initialize this variable, since it used to be cached.
2514 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2516 # b.out is created by i960 compilers.
2517 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2519 test -f "$ac_file" || continue
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2524 # This is the source file.
2527 # We found the default executable, but exeext='' is most
2531 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532 # FIXME: I believe we export ac_cv_exeext for Libtool,
2533 # but it would be cool to find out if it's true. Does anybody
2534 # maintain Libtool? --akim.
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&2;}
2549 { (exit 77); exit 77; }; }
2552 ac_exeext=$ac_cv_exeext
2553 echo "$as_me:$LINENO: result: $ac_file" >&5
2554 echo "${ECHO_T}$ac_file" >&6
2556 # Check the compiler produces executables we can run. If not, either
2557 # the compiler is broken, or we cross compile.
2558 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2559 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561 # If not cross compiling, check that we can run a simple program.
2562 if test "$cross_compiling" != yes; then
2563 if { ac_try='./$ac_file'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 if test "$cross_compiling" = maybe; then
2574 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot run C compiled programs.
2578 If you meant to cross compile, use \`--host'.
2579 See \`config.log' for more details." >&2;}
2580 { (exit 1); exit 1; }; }
2584 echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6
2587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2588 ac_clean_files=$ac_clean_files_save
2589 # Check the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2594 echo "${ECHO_T}$cross_compiling" >&6
2596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599 (eval $ac_link) 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; then
2603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2605 # work properly (i.e., refer to `conftest.exe'), while it won't with
2607 for ac_file in conftest.exe conftest conftest.*; do
2608 test -f "$ac_file" || continue
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2618 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&2;}
2622 { (exit 1); exit 1; }; }
2625 rm -f conftest$ac_cv_exeext
2626 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2627 echo "${ECHO_T}$ac_cv_exeext" >&6
2629 rm -f conftest.$ac_ext
2630 EXEEXT=$ac_cv_exeext
2632 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2633 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2634 if test "${ac_cv_objext+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 cat >conftest.$ac_ext <<_ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.o conftest.obj
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; then
2658 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2676 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2678 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2679 echo "${ECHO_T}$ac_cv_objext" >&6
2680 OBJEXT=$ac_cv_objext
2682 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2737 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2738 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2739 GCC=`test $ac_compiler_gnu = yes && echo yes`
2740 ac_test_CFLAGS=${CFLAGS+set}
2741 ac_save_CFLAGS=$CFLAGS
2743 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2744 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2745 if test "${ac_cv_prog_cc_g+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2804 if test "$GCC" = yes; then
2810 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 ac_cv_prog_cc_stdc=no
2817 cat >conftest.$ac_ext <<_ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2825 #include <sys/types.h>
2826 #include <sys/stat.h>
2827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2828 struct buf { int x; };
2829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830 static char *e (p, i)
2836 static char *f (char * (*g) (char **, int), char **p, ...)
2841 s = g (p, va_arg (v,int));
2846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2847 function prototypes and stuff, but not '\xHH' hex character constants.
2848 These don't provoke an error unfortunately, instead are silently treated
2849 as 'x'. The following induces an error, until -std1 is added to get
2850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2851 array size at least. It's necessary to write '\x00'==0 to get something
2852 that's true only with -std1. */
2853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2855 int test (int i, double x);
2856 struct s1 {int (*f) (int a);};
2857 struct s2 {int (*f) (double a);};
2858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2869 # Don't try gcc -ansi; that turns off useful extensions and
2870 # breaks some systems' header files.
2871 # AIX -qlanglvl=ansi
2872 # Ultrix and OSF/1 -std1
2873 # HP-UX 10.20 and later -Ae
2874 # HP-UX older versions -Aa -D_HPUX_SOURCE
2875 # SVR4 -Xc -D__EXTENSIONS__
2876 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2878 CC="$ac_save_CC $ac_arg"
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 ac_cv_prog_cc_stdc=$ac_arg
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext
2909 rm -f conftest.$ac_ext conftest.$ac_objext
2914 case "x$ac_cv_prog_cc_stdc" in
2916 echo "$as_me:$LINENO: result: none needed" >&5
2917 echo "${ECHO_T}none needed" >&6 ;;
2919 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2920 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2921 CC="$CC $ac_cv_prog_cc_stdc" ;;
2924 # Some people use a C++ compiler to compile C. Since we use `exit',
2925 # in C++ we need to declare it. In case someone uses the same compiler
2926 # for both compiling C and C++ we need to have the C++ compiler decide
2927 # the declaration of exit, since it's the most demanding environment.
2928 cat >conftest.$ac_ext <<_ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 for ac_declaration in \
2956 'extern "C" void std::exit (int) throw (); using std::exit;' \
2957 'extern "C" void std::exit (int); using std::exit;' \
2958 'extern "C" void exit (int) throw ();' \
2959 'extern "C" void exit (int);' \
2962 cat >conftest.$ac_ext <<_ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>conftest.er1
2982 grep -v '^ *+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052 if test -n "$ac_declaration"; then
3053 echo '#ifdef __cplusplus' >>confdefs.h
3054 echo $ac_declaration >>confdefs.h
3055 echo '#endif' >>confdefs.h
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 depcc="$CC" am_compiler_list=
3072 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3073 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3074 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3078 # We make a subdir and do the tests there. Otherwise we can end up
3079 # making bogus files that we don't know about and never remove. For
3080 # instance it was reported that on HP-UX the gcc test will end up
3081 # making a dummy file named `D' -- because `-MD' means `put the output
3084 # Copy depcomp to subdir because otherwise we won't find it if we're
3085 # using a relative directory.
3086 cp "$am_depcomp" conftest.dir
3088 # We will build objects and dependencies in a subdirectory because
3089 # it helps to detect inapplicable dependency modes. For instance
3090 # both Tru64's cc and ICC support -MD to output dependencies as a
3091 # side effect of compilation, but ICC will put the dependencies in
3092 # the current directory while Tru64 will put them in the object
3096 am_cv_CC_dependencies_compiler_type=none
3097 if test "$am_compiler_list" = ""; then
3098 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3100 for depmode in $am_compiler_list; do
3101 # Setup a source with many dependencies, because some compilers
3102 # like to wrap large dependency lists on column 80 (with \), and
3103 # we should not choose a depcomp mode which is confused by this.
3105 # We need to recreate these files for each test, as the compiler may
3106 # overwrite some of them when testing with obscure command lines.
3107 # This happens at least with the AIX C compiler.
3109 for i in 1 2 3 4 5 6; do
3110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3112 # Solaris 8's {/usr,}/bin/sh.
3113 touch sub/conftst$i.h
3115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3119 # after this tag, mechanisms are not by side-effect, so they'll
3120 # only be used when explicitly requested
3121 if test "x$enable_dependency_tracking" = xyes; then
3129 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3130 # mode. It turns out that the SunPro C++ compiler does not properly
3131 # handle `-M -o', and we need to detect this.
3132 if depmode=$depmode \
3133 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3134 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3135 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3136 >/dev/null 2>conftest.err &&
3137 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3138 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3139 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3140 # icc doesn't choke on unknown options, it will just issue warnings
3141 # or remarks (even with -Werror). So we grep stderr for any message
3142 # that says an option was ignored or not supported.
3143 # When given -MP, icc 7.0 and 7.1 complain thusly:
3144 # icc: Command line warning: ignoring option '-M'; no argument required
3145 # The diagnosis changed in icc 8.0:
3146 # icc: Command line remark: option '-MP' not supported
3147 if (grep 'ignoring option' conftest.err ||
3148 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3149 am_cv_CC_dependencies_compiler_type=$depmode
3158 am_cv_CC_dependencies_compiler_type=none
3162 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3163 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3164 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3169 test "x$enable_dependency_tracking" != xno \
3170 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3172 am__fastdepCC_FALSE='#'
3174 am__fastdepCC_TRUE='#'
3175 am__fastdepCC_FALSE=
3179 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3180 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3181 if test "${lt_cv_path_SED+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 # Loop through the user's path and test for sed and gsed.
3185 # Then use that list of sed's as ones to test for truncation.
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 test -z "$as_dir" && as_dir=.
3191 for lt_ac_prog in sed gsed; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3194 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3201 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3202 # along with /bin/sed that truncates output.
3203 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3204 test ! -f $lt_ac_sed && continue
3205 cat /dev/null > conftest.in
3207 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3208 # Check for GNU sed and select it if it is found.
3209 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3210 lt_cv_path_SED=$lt_ac_sed
3214 cat conftest.in conftest.in >conftest.tmp
3215 mv conftest.tmp conftest.in
3216 cp conftest.in conftest.nl
3218 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3219 cmp -s conftest.out conftest.nl || break
3220 # 10000 chars as input seems more than enough
3221 test $lt_ac_count -gt 10 && break
3222 lt_ac_count=`expr $lt_ac_count + 1`
3223 if test $lt_ac_count -gt $lt_ac_max; then
3224 lt_ac_max=$lt_ac_count
3225 lt_cv_path_SED=$lt_ac_sed
3233 echo "$as_me:$LINENO: result: $SED" >&5
3234 echo "${ECHO_T}$SED" >&6
3236 echo "$as_me:$LINENO: checking for egrep" >&5
3237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3238 if test "${ac_cv_prog_egrep+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3242 then ac_cv_prog_egrep='grep -E'
3243 else ac_cv_prog_egrep='egrep'
3246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3248 EGREP=$ac_cv_prog_egrep
3252 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3253 if test "${with_gnu_ld+set}" = set; then
3254 withval="$with_gnu_ld"
3255 test "$withval" = no || with_gnu_ld=yes
3260 if test "$GCC" = yes; then
3261 # Check if gcc -print-prog-name=ld gives a path.
3262 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3263 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3266 # gcc leaves a trailing carriage return which upsets mingw
3267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3272 # Accept absolute paths.
3274 re_direlt='/[^/][^/]*/\.\./'
3275 # Canonicalize the pathname of ld
3276 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3277 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3278 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3280 test -z "$LD" && LD="$ac_prog"
3283 # If it fails, then pretend we aren't using GCC.
3287 # If it is relative, then search for the first ld in PATH.
3291 elif test "$with_gnu_ld" = yes; then
3292 echo "$as_me:$LINENO: checking for GNU ld" >&5
3293 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3295 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3296 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3298 if test "${lt_cv_path_LD+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 if test -z "$LD"; then
3302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3303 for ac_dir in $PATH; do
3305 test -z "$ac_dir" && ac_dir=.
3306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3307 lt_cv_path_LD="$ac_dir/$ac_prog"
3308 # Check to see if the program is GNU ld. I'd rather use --version,
3309 # but apparently some variants of GNU ld only accept -v.
3310 # Break only if it was the GNU/non-GNU ld that we prefer.
3311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3312 *GNU* | *'with BFD'*)
3313 test "$with_gnu_ld" != no && break
3316 test "$with_gnu_ld" != yes && break
3323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3328 if test -n "$LD"; then
3329 echo "$as_me:$LINENO: result: $LD" >&5
3330 echo "${ECHO_T}$LD" >&6
3332 echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3335 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3336 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3337 { (exit 1); exit 1; }; }
3338 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3339 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3340 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3344 case `$LD -v 2>&1 </dev/null` in
3345 *GNU* | *'with BFD'*)
3346 lt_cv_prog_gnu_ld=yes
3349 lt_cv_prog_gnu_ld=no
3353 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3354 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3355 with_gnu_ld=$lt_cv_prog_gnu_ld
3358 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3359 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3360 if test "${lt_cv_ld_reload_flag+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 lt_cv_ld_reload_flag='-r'
3365 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3366 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3367 reload_flag=$lt_cv_ld_reload_flag
3368 case $reload_flag in
3370 *) reload_flag=" $reload_flag" ;;
3372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3375 if test "$GCC" = yes; then
3376 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3383 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3384 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3385 if test "${lt_cv_path_NM+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$NM"; then
3389 # Let the user override the test.
3392 lt_nm_to_check="${ac_tool_prefix}nm"
3393 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3394 lt_nm_to_check="$lt_nm_to_check nm"
3396 for lt_tmp_nm in $lt_nm_to_check; do
3397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3398 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3400 test -z "$ac_dir" && ac_dir=.
3401 tmp_nm="$ac_dir/$lt_tmp_nm"
3402 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3403 # Check to see if the nm accepts a BSD-compat flag.
3404 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3405 # nm: unknown option "B" ignored
3406 # Tru64's nm complains that /dev/null is an invalid object file
3407 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3408 */dev/null* | *'Invalid file or object type'*)
3409 lt_cv_path_NM="$tmp_nm -B"
3413 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3415 lt_cv_path_NM="$tmp_nm -p"
3419 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3420 continue # so that we can try to find one that supports BSD flags
3429 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3432 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3433 echo "${ECHO_T}$lt_cv_path_NM" >&6
3436 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3437 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3439 if test "$LN_S" = "ln -s"; then
3440 echo "$as_me:$LINENO: result: yes" >&5
3441 echo "${ECHO_T}yes" >&6
3443 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3444 echo "${ECHO_T}no, using $LN_S" >&6
3447 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3448 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3449 if test "${lt_cv_deplibs_check_method+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 lt_cv_file_magic_cmd='$MAGIC_CMD'
3453 lt_cv_file_magic_test_file=
3454 lt_cv_deplibs_check_method='unknown'
3455 # Need to set the preceding variable on all platforms that support
3456 # interlibrary dependencies.
3457 # 'none' -- dependencies not supported.
3458 # `unknown' -- same as none, but documents that we really don't know.
3459 # 'pass_all' -- all dependencies passed with no checks.
3460 # 'test_compile' -- check by making test program.
3461 # 'file_magic [[regex]]' -- check by looking for files in library path
3462 # which responds to the $file_magic_cmd with a given extended regex.
3463 # If you have `file' or equivalent on your system and you're not sure
3464 # whether `pass_all' will *always* work, you probably want this one.
3468 lt_cv_deplibs_check_method=pass_all
3472 lt_cv_deplibs_check_method=pass_all
3476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3477 lt_cv_file_magic_cmd='/usr/bin/file -L'
3478 lt_cv_file_magic_test_file=/shlib/libc.so
3482 # func_win32_libid is a shell function defined in ltmain.sh
3483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3484 lt_cv_file_magic_cmd='func_win32_libid'
3488 # Base MSYS/MinGW do not provide the 'file' command needed by
3489 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3490 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3491 lt_cv_file_magic_cmd='$OBJDUMP -f'
3494 darwin* | rhapsody*)
3495 lt_cv_deplibs_check_method=pass_all
3498 freebsd* | kfreebsd*-gnu | dragonfly*)
3499 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3502 # Not sure whether the presence of OpenBSD here was a mistake.
3503 # Let's accept both of them until this is cleared up.
3504 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3505 lt_cv_file_magic_cmd=/usr/bin/file
3506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3510 lt_cv_deplibs_check_method=pass_all
3515 lt_cv_deplibs_check_method=pass_all
3518 hpux10.20* | hpux11*)
3519 lt_cv_file_magic_cmd=/usr/bin/file
3522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3523 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3526 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]'
3527 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3531 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3537 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3541 irix5* | irix6* | nonstopux*)
3543 *-32|*"-32 ") libmagic=32-bit;;
3544 *-n32|*"-n32 ") libmagic=N32;;
3545 *-64|*"-64 ") libmagic=64-bit;;
3546 *) libmagic=never-match;;
3548 lt_cv_deplibs_check_method=pass_all
3551 # This must be Linux ELF.
3553 lt_cv_deplibs_check_method=pass_all
3556 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3557 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3566 lt_cv_file_magic_cmd=/usr/bin/file
3567 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3571 lt_cv_deplibs_check_method=unknown
3575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3582 osf3* | osf4* | osf5*)
3583 lt_cv_deplibs_check_method=pass_all
3587 lt_cv_deplibs_check_method=pass_all
3591 case $host_vendor in
3593 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]'
3594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3597 lt_cv_deplibs_check_method=pass_all
3600 lt_cv_file_magic_cmd='/bin/file'
3601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3604 lt_cv_file_magic_cmd='/bin/file'
3605 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3606 lt_cv_file_magic_test_file=/lib/libc.so
3609 lt_cv_deplibs_check_method=pass_all
3612 lt_cv_deplibs_check_method=pass_all
3617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3618 lt_cv_deplibs_check_method=pass_all
3623 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3624 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3625 file_magic_cmd=$lt_cv_file_magic_cmd
3626 deplibs_check_method=$lt_cv_deplibs_check_method
3627 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3632 # If no C compiler was specified, use CC.
3635 # If no C compiler flags were specified, use CFLAGS.
3636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3638 # Allow CC to be a program name with arguments.
3642 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3643 if test "${enable_libtool_lock+set}" = set; then
3644 enableval="$enable_libtool_lock"
3647 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3649 # Some flags need to be propagated to the compiler or linker for good
3653 # Find out which ABI we are using.
3654 echo 'int i;' > conftest.$ac_ext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656 (eval $ac_compile) 2>&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; then
3660 case `/usr/bin/file conftest.$ac_objext` in
3672 # Find out which ABI we are using.
3673 echo '#line 3673 "configure"' > conftest.$ac_ext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; then
3679 if test "$lt_cv_prog_gnu_ld" = yes; then
3680 case `/usr/bin/file conftest.$ac_objext` in
3682 LD="${LD-ld} -melf32bsmip"
3685 LD="${LD-ld} -melf32bmipn32"
3688 LD="${LD-ld} -melf64bmip"
3692 case `/usr/bin/file conftest.$ac_objext` in
3708 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3709 # Find out which ABI we are using.
3710 echo 'int i;' > conftest.$ac_ext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; then
3716 case `/usr/bin/file conftest.o` in
3720 LD="${LD-ld} -m elf_i386"
3722 ppc64-*linux*|powerpc64-*linux*)
3723 LD="${LD-ld} -m elf32ppclinux"
3726 LD="${LD-ld} -m elf_s390"
3729 LD="${LD-ld} -m elf32_sparc"
3736 LD="${LD-ld} -m elf_x86_64"
3738 ppc*-*linux*|powerpc*-*linux*)
3739 LD="${LD-ld} -m elf64ppc"
3742 LD="${LD-ld} -m elf64_s390"
3745 LD="${LD-ld} -m elf64_sparc"
3755 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3756 SAVE_CFLAGS="$CFLAGS"
3757 CFLAGS="$CFLAGS -belf"
3758 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3759 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3760 if test "${lt_cv_cc_needs_belf+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3784 rm -f conftest.$ac_objext conftest$ac_exeext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786 (eval $ac_link) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest$ac_exeext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 lt_cv_cc_needs_belf=yes
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3810 lt_cv_cc_needs_belf=no
3812 rm -f conftest.err conftest.$ac_objext \
3813 conftest$ac_exeext conftest.$ac_ext
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3822 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3823 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3824 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3825 CFLAGS="$SAVE_CFLAGS"
3829 # Find out which ABI we are using.
3830 echo 'int i;' > conftest.$ac_ext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; then
3836 case `/usr/bin/file conftest.o` in
3838 case $lt_cv_prog_gnu_ld in
3839 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3840 *) LD="${LD-ld} -64" ;;
3851 need_locks="$enable_libtool_lock"
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3860 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3861 # On Suns, sometimes $CPP names a directory.
3862 if test -n "$CPP" && test -d "$CPP"; then
3865 if test -z "$CPP"; then
3866 if test "${ac_cv_prog_CPP+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 # Double quotes because CPP needs to be expanded
3870 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3873 for ac_c_preproc_warn_flag in '' yes
3875 # Use a header file that comes with gcc, so configuring glibc
3876 # with a fresh cross-compiler works.
3877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878 # <limits.h> exists even on freestanding compilers.
3879 # On the NeXT, cc -E runs the code through the compiler's parser,
3880 # not just through cpp. "Syntax error" is here to catch this case.
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3888 # include <limits.h>
3890 # include <assert.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 # Broken: fails on valid input.
3920 rm -f conftest.err conftest.$ac_ext
3922 # OK, works on sane cases. Now check whether non-existent headers
3923 # can be detected and how.
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 #include <ac_nonexistent.h>
3932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null; then
3940 if test -s conftest.err; then
3941 ac_cpp_err=$ac_c_preproc_warn_flag
3942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3949 if test -z "$ac_cpp_err"; then
3950 # Broken: success on invalid input.
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 # Passes both tests.
3960 rm -f conftest.err conftest.$ac_ext
3963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964 rm -f conftest.err conftest.$ac_ext
3965 if $ac_preproc_ok; then
3977 echo "$as_me:$LINENO: result: $CPP" >&5
3978 echo "${ECHO_T}$CPP" >&6
3980 for ac_c_preproc_warn_flag in '' yes
3982 # Use a header file that comes with gcc, so configuring glibc
3983 # with a fresh cross-compiler works.
3984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985 # <limits.h> exists even on freestanding compilers.
3986 # On the NeXT, cc -E runs the code through the compiler's parser,
3987 # not just through cpp. "Syntax error" is here to catch this case.
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3995 # include <limits.h>
3997 # include <assert.h>
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
4011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4018 if test -z "$ac_cpp_err"; then
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 # Broken: fails on valid input.
4027 rm -f conftest.err conftest.$ac_ext
4029 # OK, works on sane cases. Now check whether non-existent headers
4030 # can be detected and how.
4031 cat >conftest.$ac_ext <<_ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4037 #include <ac_nonexistent.h>
4039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } >/dev/null; then
4047 if test -s conftest.err; then
4048 ac_cpp_err=$ac_c_preproc_warn_flag
4049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4056 if test -z "$ac_cpp_err"; then
4057 # Broken: success on invalid input.
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 # Passes both tests.
4067 rm -f conftest.err conftest.$ac_ext
4070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071 rm -f conftest.err conftest.$ac_ext
4072 if $ac_preproc_ok; then
4075 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4076 See \`config.log' for more details." >&5
4077 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4078 See \`config.log' for more details." >&2;}
4079 { (exit 1); exit 1; }; }
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4091 if test "${ac_cv_header_stdc+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4113 rm -f conftest.$ac_objext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115 (eval $ac_compile) 2>conftest.er1
4117 grep -v '^ *+' conftest.er1 >conftest.err
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 ac_cv_header_stdc=yes
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 ac_cv_header_stdc=no
4141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4143 if test $ac_cv_header_stdc = yes; then
4144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "memchr" >/dev/null 2>&1; then
4158 ac_cv_header_stdc=no
4164 if test $ac_cv_header_stdc = yes; then
4165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "free" >/dev/null 2>&1; then
4179 ac_cv_header_stdc=no
4185 if test $ac_cv_header_stdc = yes; then
4186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4187 if test "$cross_compiling" = yes; then
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 #if ((' ' & 0x0FF) == 0x020)
4198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4201 # define ISLOWER(c) \
4202 (('a' <= (c) && (c) <= 'i') \
4203 || ('j' <= (c) && (c) <= 'r') \
4204 || ('s' <= (c) && (c) <= 'z'))
4205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4213 for (i = 0; i < 256; i++)
4214 if (XOR (islower (i), ISLOWER (i))
4215 || toupper (i) != TOUPPER (i))
4220 rm -f conftest$ac_exeext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4222 (eval $ac_link) 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4233 echo "$as_me: program exited with status $ac_status" >&5
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4238 ac_cv_header_stdc=no
4240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4245 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4246 if test $ac_cv_header_stdc = yes; then
4248 cat >>confdefs.h <<\_ACEOF
4249 #define STDC_HEADERS 1
4254 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4264 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4265 inttypes.h stdint.h unistd.h
4267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268 echo "$as_me:$LINENO: checking for $ac_header" >&5
4269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 $ac_includes_default
4281 #include <$ac_header>
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 eval "$as_ac_Header=yes"
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 eval "$as_ac_Header=no"
4311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 cat >>confdefs.h <<_ACEOF
4317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4326 for ac_header in dlfcn.h
4328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 # Is the header compilable?
4339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4348 #include <$ac_header>
4350 rm -f conftest.$ac_objext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352 (eval $ac_compile) 2>conftest.er1
4354 grep -v '^ *+' conftest.er1 >conftest.err
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 ac_header_compiler=yes
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 ac_header_compiler=no
4378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4380 echo "${ECHO_T}$ac_header_compiler" >&6
4382 # Is the header present?
4383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 #include <$ac_header>
4393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } >/dev/null; then
4401 if test -s conftest.err; then
4402 ac_cpp_err=$ac_c_preproc_warn_flag
4403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4410 if test -z "$ac_cpp_err"; then
4411 ac_header_preproc=yes
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 ac_header_preproc=no
4418 rm -f conftest.err conftest.$ac_ext
4419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4420 echo "${ECHO_T}$ac_header_preproc" >&6
4422 # So? What about this header?
4423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4429 ac_header_preproc=yes
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4446 ## -------------------------------------------- ##
4447 ## Report this to general@lists.openfabrics.org ##
4448 ## -------------------------------------------- ##
4451 sed "s/^/$as_me: WARNING: /" >&2
4454 echo "$as_me:$LINENO: checking for $ac_header" >&5
4455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 eval "$as_ac_Header=\$ac_header_preproc"
4461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4466 cat >>confdefs.h <<_ACEOF
4467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 ac_cpp='$CXXCPP $CPPFLAGS'
4476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4479 if test -n "$ac_tool_prefix"; then
4480 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4484 echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4486 if test "${ac_cv_prog_CXX+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 if test -n "$CXX"; then
4490 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 if test -n "$CXX"; then
4510 echo "$as_me:$LINENO: result: $CXX" >&5
4511 echo "${ECHO_T}$CXX" >&6
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4517 test -n "$CXX" && break
4520 if test -z "$CXX"; then
4522 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4524 # Extract the first word of "$ac_prog", so it can be a program name with args.
4525 set dummy $ac_prog; ac_word=$2
4526 echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 if test -n "$ac_ct_CXX"; then
4532 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_prog_ac_ct_CXX="$ac_prog"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4551 if test -n "$ac_ct_CXX"; then
4552 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4553 echo "${ECHO_T}$ac_ct_CXX" >&6
4555 echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6
4559 test -n "$ac_ct_CXX" && break
4561 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4567 # Provide some information about the compiler.
4568 echo "$as_me:$LINENO:" \
4569 "checking for C++ compiler version" >&5
4570 ac_compiler=`set X $ac_compile; echo $2`
4571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4572 (eval $ac_compiler --version </dev/null >&5) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }
4576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4577 (eval $ac_compiler -v </dev/null >&5) 2>&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }
4581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4582 (eval $ac_compiler -V </dev/null >&5) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }
4587 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4588 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4589 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4642 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4643 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4644 GXX=`test $ac_compiler_gnu = yes && echo yes`
4645 ac_test_CXXFLAGS=${CXXFLAGS+set}
4646 ac_save_CXXFLAGS=$CXXFLAGS
4648 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4649 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4650 if test "${ac_cv_prog_cxx_g+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 cat >conftest.$ac_ext <<_ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>conftest.er1
4672 grep -v '^ *+' conftest.er1 >conftest.err
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_cv_prog_cxx_g=yes
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4698 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4699 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4700 if test "$ac_test_CXXFLAGS" = set; then
4701 CXXFLAGS=$ac_save_CXXFLAGS
4702 elif test $ac_cv_prog_cxx_g = yes; then
4703 if test "$GXX" = yes; then
4709 if test "$GXX" = yes; then
4715 for ac_declaration in \
4717 'extern "C" void std::exit (int) throw (); using std::exit;' \
4718 'extern "C" void std::exit (int); using std::exit;' \
4719 'extern "C" void exit (int) throw ();' \
4720 'extern "C" void exit (int);' \
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>conftest.er1
4743 grep -v '^ *+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>conftest.er1
4787 grep -v '^ *+' conftest.er1 >conftest.err
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest.$ac_objext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 if test -n "$ac_declaration"; then
4814 echo '#ifdef __cplusplus' >>confdefs.h
4815 echo $ac_declaration >>confdefs.h
4816 echo '#endif' >>confdefs.h
4820 ac_cpp='$CXXCPP $CPPFLAGS'
4821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4825 depcc="$CXX" am_compiler_list=
4827 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4828 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4829 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4833 # We make a subdir and do the tests there. Otherwise we can end up
4834 # making bogus files that we don't know about and never remove. For
4835 # instance it was reported that on HP-UX the gcc test will end up
4836 # making a dummy file named `D' -- because `-MD' means `put the output
4839 # Copy depcomp to subdir because otherwise we won't find it if we're
4840 # using a relative directory.
4841 cp "$am_depcomp" conftest.dir
4843 # We will build objects and dependencies in a subdirectory because
4844 # it helps to detect inapplicable dependency modes. For instance
4845 # both Tru64's cc and ICC support -MD to output dependencies as a
4846 # side effect of compilation, but ICC will put the dependencies in
4847 # the current directory while Tru64 will put them in the object
4851 am_cv_CXX_dependencies_compiler_type=none
4852 if test "$am_compiler_list" = ""; then
4853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4855 for depmode in $am_compiler_list; do
4856 # Setup a source with many dependencies, because some compilers
4857 # like to wrap large dependency lists on column 80 (with \), and
4858 # we should not choose a depcomp mode which is confused by this.
4860 # We need to recreate these files for each test, as the compiler may
4861 # overwrite some of them when testing with obscure command lines.
4862 # This happens at least with the AIX C compiler.
4864 for i in 1 2 3 4 5 6; do
4865 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4866 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4867 # Solaris 8's {/usr,}/bin/sh.
4868 touch sub/conftst$i.h
4870 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4874 # after this tag, mechanisms are not by side-effect, so they'll
4875 # only be used when explicitly requested
4876 if test "x$enable_dependency_tracking" = xyes; then
4884 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4885 # mode. It turns out that the SunPro C++ compiler does not properly
4886 # handle `-M -o', and we need to detect this.
4887 if depmode=$depmode \
4888 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4889 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4890 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4891 >/dev/null 2>conftest.err &&
4892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4893 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4895 # icc doesn't choke on unknown options, it will just issue warnings
4896 # or remarks (even with -Werror). So we grep stderr for any message
4897 # that says an option was ignored or not supported.
4898 # When given -MP, icc 7.0 and 7.1 complain thusly:
4899 # icc: Command line warning: ignoring option '-M'; no argument required
4900 # The diagnosis changed in icc 8.0:
4901 # icc: Command line remark: option '-MP' not supported
4902 if (grep 'ignoring option' conftest.err ||
4903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4904 am_cv_CXX_dependencies_compiler_type=$depmode
4913 am_cv_CXX_dependencies_compiler_type=none
4917 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4918 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4919 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4924 test "x$enable_dependency_tracking" != xno \
4925 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4926 am__fastdepCXX_TRUE=
4927 am__fastdepCXX_FALSE='#'
4929 am__fastdepCXX_TRUE='#'
4930 am__fastdepCXX_FALSE=
4936 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4937 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4938 (test "X$CXX" != "Xg++"))) ; then
4940 ac_cpp='$CXXCPP $CPPFLAGS'
4941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4944 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4945 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4946 if test -z "$CXXCPP"; then
4947 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 # Double quotes because CXXCPP needs to be expanded
4951 for CXXCPP in "$CXX -E" "/lib/cpp"
4954 for ac_cxx_preproc_warn_flag in '' yes
4956 # Use a header file that comes with gcc, so configuring glibc
4957 # with a fresh cross-compiler works.
4958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959 # <limits.h> exists even on freestanding compilers.
4960 # On the NeXT, cc -E runs the code through the compiler's parser,
4961 # not just through cpp. "Syntax error" is here to catch this case.
4962 cat >conftest.$ac_ext <<_ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4969 # include <limits.h>
4971 # include <assert.h>
4975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } >/dev/null; then
4983 if test -s conftest.err; then
4984 ac_cpp_err=$ac_cxx_preproc_warn_flag
4985 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4992 if test -z "$ac_cpp_err"; then
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4998 # Broken: fails on valid input.
5001 rm -f conftest.err conftest.$ac_ext
5003 # OK, works on sane cases. Now check whether non-existent headers
5004 # can be detected and how.
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 #include <ac_nonexistent.h>
5013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5016 grep -v '^ *+' conftest.er1 >conftest.err
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } >/dev/null; then
5021 if test -s conftest.err; then
5022 ac_cpp_err=$ac_cxx_preproc_warn_flag
5023 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5030 if test -z "$ac_cpp_err"; then
5031 # Broken: success on invalid input.
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5037 # Passes both tests.
5041 rm -f conftest.err conftest.$ac_ext
5044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5045 rm -f conftest.err conftest.$ac_ext
5046 if $ac_preproc_ok; then
5051 ac_cv_prog_CXXCPP=$CXXCPP
5054 CXXCPP=$ac_cv_prog_CXXCPP
5056 ac_cv_prog_CXXCPP=$CXXCPP
5058 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5059 echo "${ECHO_T}$CXXCPP" >&6
5061 for ac_cxx_preproc_warn_flag in '' yes
5063 # Use a header file that comes with gcc, so configuring glibc
5064 # with a fresh cross-compiler works.
5065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5066 # <limits.h> exists even on freestanding compilers.
5067 # On the NeXT, cc -E runs the code through the compiler's parser,
5068 # not just through cpp. "Syntax error" is here to catch this case.
5069 cat >conftest.$ac_ext <<_ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5076 # include <limits.h>
5078 # include <assert.h>
5082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null; then
5090 if test -s conftest.err; then
5091 ac_cpp_err=$ac_cxx_preproc_warn_flag
5092 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5099 if test -z "$ac_cpp_err"; then
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 # Broken: fails on valid input.
5108 rm -f conftest.err conftest.$ac_ext
5110 # OK, works on sane cases. Now check whether non-existent headers
5111 # can be detected and how.
5112 cat >conftest.$ac_ext <<_ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <ac_nonexistent.h>
5120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null; then
5128 if test -s conftest.err; then
5129 ac_cpp_err=$ac_cxx_preproc_warn_flag
5130 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5137 if test -z "$ac_cpp_err"; then
5138 # Broken: success on invalid input.
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 # Passes both tests.
5148 rm -f conftest.err conftest.$ac_ext
5151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5152 rm -f conftest.err conftest.$ac_ext
5153 if $ac_preproc_ok; then
5156 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5157 See \`config.log' for more details." >&5
5158 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5159 See \`config.log' for more details." >&2;}
5160 { (exit 1); exit 1; }; }
5164 ac_cpp='$CXXCPP $CPPFLAGS'
5165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5174 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5176 if test -n "$ac_tool_prefix"; then
5177 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_F77+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 if test -n "$F77"; then
5187 ac_cv_prog_F77="$F77" # Let the user override the test.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 if test -n "$F77"; then
5207 echo "$as_me:$LINENO: result: $F77" >&5
5208 echo "${ECHO_T}$F77" >&6
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5214 test -n "$F77" && break
5217 if test -z "$F77"; then
5219 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 if test -n "$ac_ct_F77"; then
5229 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_ac_ct_F77="$ac_prog"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5248 if test -n "$ac_ct_F77"; then
5249 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5250 echo "${ECHO_T}$ac_ct_F77" >&6
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5256 test -n "$ac_ct_F77" && break
5263 # Provide some information about the compiler.
5264 echo "$as_me:5264:" \
5265 "checking for Fortran 77 compiler version" >&5
5266 ac_compiler=`set X $ac_compile; echo $2`
5267 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5268 (eval $ac_compiler --version </dev/null >&5) 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }
5272 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5273 (eval $ac_compiler -v </dev/null >&5) 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }
5277 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5278 (eval $ac_compiler -V </dev/null >&5) 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }
5284 # If we don't use `.F' as extension, the preprocessor is not run on the
5285 # input file. (Note that this only needs to work for GNU compilers.)
5288 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5289 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5290 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 cat >conftest.$ac_ext <<_ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; } &&
5316 { ac_try='test -s conftest.$ac_objext'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5333 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5334 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5336 ac_test_FFLAGS=${FFLAGS+set}
5337 ac_save_FFLAGS=$FFLAGS
5339 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5340 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5341 if test "${ac_cv_prog_f77_g+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 cat >conftest.$ac_ext <<_ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5354 grep -v '^ *+' conftest.er1 >conftest.err
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_cv_prog_f77_g=yes
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5382 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5383 if test "$ac_test_FFLAGS" = set; then
5384 FFLAGS=$ac_save_FFLAGS
5385 elif test $ac_cv_prog_f77_g = yes; then
5386 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5392 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5399 G77=`test $ac_compiler_gnu = yes && echo yes`
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5410 # find the maximum length of command line arguments
5411 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5412 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5413 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 # On DJGPP, this test can blow up pretty badly due to problems in libc
5422 # (any single argument exceeding 2000 bytes causes a buffer overrun
5423 # during glob expansion). Even if it were fixed, the result of this
5424 # check would be larger than it should be.
5425 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5429 # Under GNU Hurd, this test is not required because there is
5430 # no limit to the length of command line arguments.
5431 # Libtool will interpret -1 as no limit whatsoever
5432 lt_cv_sys_max_cmd_len=-1;
5436 # On Win9x/ME, this test blows up -- it succeeds, but takes
5437 # about 5 minutes as the teststring grows exponentially.
5438 # Worse, since 9x/ME are not pre-emptively multitasking,
5439 # you end up with a "frozen" computer, even though with patience
5440 # the test eventually succeeds (with a max line length of 256k).
5441 # Instead, let's just punt: use the minimum linelength reported by
5442 # all of the supported platforms: 8192 (on NT/2K/XP).
5443 lt_cv_sys_max_cmd_len=8192;
5447 # On AmigaOS with pdksh, this test takes hours, literally.
5448 # So we just punt and use a minimum line length of 8192.
5449 lt_cv_sys_max_cmd_len=8192;
5452 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5453 # This has been around since 386BSD, at least. Likely further.
5454 if test -x /sbin/sysctl; then
5455 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5456 elif test -x /usr/sbin/sysctl; then
5457 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5459 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5461 # And add a safety zone
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5467 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5468 lt_cv_sys_max_cmd_len=196608
5472 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5473 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5474 # nice to cause kernel panics so lets avoid the loop below.
5475 # First set a reasonable default.
5476 lt_cv_sys_max_cmd_len=16384
5478 if test -x /sbin/sysconfig; then
5479 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5480 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5485 lt_cv_sys_max_cmd_len=102400
5487 sysv5* | sco5v6* | sysv4.2uw2*)
5488 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5489 if test -n "$kargmax"; then
5490 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5492 lt_cv_sys_max_cmd_len=32768
5496 # If test is not a shell built-in, we'll probably end up computing a
5497 # maximum length that is only half of the actual maximum length, but
5499 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5500 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5501 = "XX$teststring") >/dev/null 2>&1 &&
5502 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5503 lt_cv_sys_max_cmd_len=$new_result &&
5504 test $i != 17 # 1/2 MB should be enough
5507 teststring=$teststring$teststring
5510 # Add a significant safety factor because C++ compilers can tack on massive
5511 # amounts of additional arguments before passing them to the linker.
5512 # It appears as though 1/2 is a usable value.
5513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519 if test -n $lt_cv_sys_max_cmd_len ; then
5520 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5521 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5523 echo "$as_me:$LINENO: result: none" >&5
5524 echo "${ECHO_T}none" >&6
5530 # Check for command to grab the raw symbol name followed by C symbol from nm.
5531 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5532 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 # These are sane defaults that work on at least a few old systems.
5538 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5540 # Character class describing NM global symbol codes.
5541 symcode='[BCDEGRST]'
5543 # Regexp to match symbols that can be accessed directly from C.
5544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5546 # Transform an extracted symbol line into a proper C declaration
5547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5549 # Transform an extracted symbol line into symbol name and symbol address
5550 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'"
5552 # Define system-specific variables.
5557 cygwin* | mingw* | pw32*)
5558 symcode='[ABCDGISTW]'
5560 hpux*) # Its linker distinguishes data from code symbols
5561 if test "$host_cpu" = ia64; then
5562 symcode='[ABCDEGRST]'
5564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5565 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'"
5568 if test "$host_cpu" = ia64; then
5569 symcode='[ABCDGIRSTW]'
5570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5571 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'"
5575 symcode='[BCDEGRST]'
5578 symcode='[BCDEGQRST]'
5589 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5597 # Handle CRLF in mingw tool chain
5601 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5605 # If we're using GNU nm, then use its standard symbol codes.
5606 case `$NM -V 2>&1` in
5607 *GNU* | *'with BFD'*)
5608 symcode='[ABCDGIRSTW]' ;;
5611 # Try without a prefix undercore, then with it.
5612 for ac_symprfx in "" "_"; do
5614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5615 symxfrm="\\1 $ac_symprfx\\2 \\2"
5617 # Write the raw and C identifiers.
5618 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5620 # Check to see that the pipe works correctly.
5624 cat > conftest.$ac_ext <<EOF
5629 void nm_test_func(){}
5633 int main(){nm_test_var='a';nm_test_func();return(0);}
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; then
5641 # Now try to grab the symbols.
5643 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5644 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && test -s "$nlist"; then
5648 # Try sorting and uniquifying the output.
5649 if sort "$nlist" | uniq > "$nlist"T; then
5650 mv -f "$nlist"T "$nlist"
5655 # Make sure that we snagged all the symbols we need.
5656 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5657 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5658 cat <<EOF > conftest.$ac_ext
5664 # Now generate the symbol file.
5665 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5667 cat <<EOF >> conftest.$ac_ext
5668 #if defined (__STDC__) && __STDC__
5669 # define lt_ptr_t void *
5671 # define lt_ptr_t char *
5675 /* The mapping between symbol names and symbols. */
5680 lt_preloaded_symbols[] =
5683 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5684 cat <<\EOF >> conftest.$ac_ext
5692 # Now try linking the two files.
5693 mv conftest.$ac_objext conftstm.$ac_objext
5694 lt_save_LIBS="$LIBS"
5695 lt_save_CFLAGS="$CFLAGS"
5696 LIBS="conftstm.$ac_objext"
5697 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699 (eval $ac_link) 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5705 LIBS="$lt_save_LIBS"
5706 CFLAGS="$lt_save_CFLAGS"
5708 echo "cannot find nm_test_func in $nlist" >&5
5711 echo "cannot find nm_test_var in $nlist" >&5
5714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5717 echo "$progname: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 rm -f conftest* conftst*
5722 # Do not use the global_symbol_pipe unless it works.
5723 if test "$pipe_works" = yes; then
5726 lt_cv_sys_global_symbol_pipe=
5732 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5733 lt_cv_sys_global_symbol_to_cdecl=
5735 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5736 echo "$as_me:$LINENO: result: failed" >&5
5737 echo "${ECHO_T}failed" >&6
5739 echo "$as_me:$LINENO: result: ok" >&5
5740 echo "${ECHO_T}ok" >&6
5743 echo "$as_me:$LINENO: checking for objdir" >&5
5744 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5745 if test "${lt_cv_objdir+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 rm -f .libs 2>/dev/null
5749 mkdir .libs 2>/dev/null
5750 if test -d .libs; then
5753 # MS-DOS does not allow filenames that begin with a dot.
5756 rmdir .libs 2>/dev/null
5758 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5759 echo "${ECHO_T}$lt_cv_objdir" >&6
5760 objdir=$lt_cv_objdir
5768 # AIX sometimes has problems with the GCC collect2 program. For some
5769 # reason, if we set the COLLECT_NAMES environment variable, the problems
5770 # vanish in a puff of smoke.
5771 if test "X${COLLECT_NAMES+set}" != Xset; then
5773 export COLLECT_NAMES
5778 # Sed substitution that helps us do robust quoting. It backslashifies
5779 # metacharacters that are still active within double-quoted strings.
5780 Xsed='sed -e 1s/^X//'
5781 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5783 # Same as above, but do not quote variable references.
5784 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5786 # Sed substitution to delay expansion of an escaped shell variable in a
5787 # double_quote_subst'ed string.
5788 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5790 # Sed substitution to avoid accidental globbing in evaled expressions
5791 no_glob_subst='s/\*/\\\*/g'
5797 default_ofile=libtool
5798 can_build_shared=yes
5800 # All known linkers require a `.a' archive for static linking (except MSVC,
5801 # which needs '.lib').
5803 ltmain="$ac_aux_dir/ltmain.sh"
5804 ofile="$default_ofile"
5805 with_gnu_ld="$lt_cv_prog_gnu_ld"
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}ar; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_AR+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 if test -n "$AR"; then
5816 ac_cv_prog_AR="$AR" # Let the user override the test.
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_AR="${ac_tool_prefix}ar"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 if test -n "$AR"; then
5836 echo "$as_me:$LINENO: result: $AR" >&5
5837 echo "${ECHO_T}$AR" >&6
5839 echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5844 if test -z "$ac_cv_prog_AR"; then
5846 # Extract the first word of "ar", so it can be a program name with args.
5847 set dummy ar; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 if test -n "$ac_ct_AR"; then
5854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_ac_ct_AR="ar"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5874 if test -n "$ac_ct_AR"; then
5875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5876 echo "${ECHO_T}$ac_ct_AR" >&6
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5887 if test -n "$ac_tool_prefix"; then
5888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_prog_RANLIB+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 if test -n "$RANLIB"; then
5896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 RANLIB=$ac_cv_prog_RANLIB
5915 if test -n "$RANLIB"; then
5916 echo "$as_me:$LINENO: result: $RANLIB" >&5
5917 echo "${ECHO_T}$RANLIB" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5924 if test -z "$ac_cv_prog_RANLIB"; then
5925 ac_ct_RANLIB=$RANLIB
5926 # Extract the first word of "ranlib", so it can be a program name with args.
5927 set dummy ranlib; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 if test -n "$ac_ct_RANLIB"; then
5934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_RANLIB="ranlib"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954 if test -n "$ac_ct_RANLIB"; then
5955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5962 RANLIB=$ac_ct_RANLIB
5964 RANLIB="$ac_cv_prog_RANLIB"
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}strip; ac_word=$2
5970 echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972 if test "${ac_cv_prog_STRIP+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 if test -n "$STRIP"; then
5976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 STRIP=$ac_cv_prog_STRIP
5995 if test -n "$STRIP"; then
5996 echo "$as_me:$LINENO: result: $STRIP" >&5
5997 echo "${ECHO_T}$STRIP" >&6
5999 echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6004 if test -z "$ac_cv_prog_STRIP"; then
6006 # Extract the first word of "strip", so it can be a program name with args.
6007 set dummy strip; ac_word=$2
6008 echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 if test -n "$ac_ct_STRIP"; then
6014 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_ac_ct_STRIP="strip"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6033 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6034 if test -n "$ac_ct_STRIP"; then
6035 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6036 echo "${ECHO_T}$ac_ct_STRIP" >&6
6038 echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6044 STRIP="$ac_cv_prog_STRIP"
6049 old_CFLAGS="$CFLAGS"
6051 # Set sane defaults for various variables
6052 test -z "$AR" && AR=ar
6053 test -z "$AR_FLAGS" && AR_FLAGS=cru
6054 test -z "$AS" && AS=as
6055 test -z "$CC" && CC=cc
6056 test -z "$LTCC" && LTCC=$CC
6057 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6058 test -z "$DLLTOOL" && DLLTOOL=dlltool
6059 test -z "$LD" && LD=ld
6060 test -z "$LN_S" && LN_S="ln -s"
6061 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6062 test -z "$NM" && NM=nm
6063 test -z "$SED" && SED=sed
6064 test -z "$OBJDUMP" && OBJDUMP=objdump
6065 test -z "$RANLIB" && RANLIB=:
6066 test -z "$STRIP" && STRIP=:
6067 test -z "$ac_objext" && ac_objext=o
6069 # Determine commands to create old-style static archives.
6070 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6071 old_postinstall_cmds='chmod 644 $oldlib'
6072 old_postuninstall_cmds=
6074 if test -n "$RANLIB"; then
6077 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6083 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6086 for cc_temp in $compiler""; do
6088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6097 # Only perform the check for file, if the check method requires it
6098 case $deplibs_check_method in
6100 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6101 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6102 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6103 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6111 lt_save_MAGIC_CMD="$MAGIC_CMD"
6112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6114 for ac_dir in $ac_dummy; do
6116 test -z "$ac_dir" && ac_dir=.
6117 if test -f $ac_dir/${ac_tool_prefix}file; then
6118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6119 if test -n "$file_magic_test_file"; then
6120 case $deplibs_check_method in
6122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6125 $EGREP "$file_magic_regex" > /dev/null; then
6130 *** Warning: the command libtool uses to detect shared libraries,
6131 *** $file_magic_cmd, produces output that libtool cannot recognize.
6132 *** The result is that libtool may fail to recognize shared libraries
6133 *** as such. This will affect the creation of libtool libraries that
6134 *** depend on shared libraries, but programs linked with such libtool
6135 *** libraries will work regardless of this problem. Nevertheless, you
6136 *** may want to report the problem to your system manager and/or to
6137 *** bug-libtool@gnu.org
6147 MAGIC_CMD="$lt_save_MAGIC_CMD"
6152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6153 if test -n "$MAGIC_CMD"; then
6154 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6155 echo "${ECHO_T}$MAGIC_CMD" >&6
6157 echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6
6161 if test -z "$lt_cv_path_MAGIC_CMD"; then
6162 if test -n "$ac_tool_prefix"; then
6163 echo "$as_me:$LINENO: checking for file" >&5
6164 echo $ECHO_N "checking for file... $ECHO_C" >&6
6165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6173 lt_save_MAGIC_CMD="$MAGIC_CMD"
6174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176 for ac_dir in $ac_dummy; do
6178 test -z "$ac_dir" && ac_dir=.
6179 if test -f $ac_dir/file; then
6180 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6181 if test -n "$file_magic_test_file"; then
6182 case $deplibs_check_method in
6184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187 $EGREP "$file_magic_regex" > /dev/null; then
6192 *** Warning: the command libtool uses to detect shared libraries,
6193 *** $file_magic_cmd, produces output that libtool cannot recognize.
6194 *** The result is that libtool may fail to recognize shared libraries
6195 *** as such. This will affect the creation of libtool libraries that
6196 *** depend on shared libraries, but programs linked with such libtool
6197 *** libraries will work regardless of this problem. Nevertheless, you
6198 *** may want to report the problem to your system manager and/or to
6199 *** bug-libtool@gnu.org
6209 MAGIC_CMD="$lt_save_MAGIC_CMD"
6214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215 if test -n "$MAGIC_CMD"; then
6216 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217 echo "${ECHO_T}$MAGIC_CMD" >&6
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6235 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6236 if test "${enable_libtool_lock+set}" = set; then
6237 enableval="$enable_libtool_lock"
6240 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6243 # Check whether --with-pic or --without-pic was given.
6244 if test "${with_pic+set}" = set; then
6250 test -z "$pic_mode" && pic_mode=default
6252 # Use C for the default configuration in the libtool script
6256 ac_cpp='$CPP $CPPFLAGS'
6257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262 # Source file extension for C test sources.
6265 # Object file extension for compiled C test sources.
6269 # Code to be used in simple compile tests
6270 lt_simple_compile_test_code="int some_variable = 0;\n"
6272 # Code to be used in simple link tests
6273 lt_simple_link_test_code='int main(){return(0);}\n'
6276 # If no C compiler was specified, use CC.
6279 # If no C compiler flags were specified, use CFLAGS.
6280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6282 # Allow CC to be a program name with arguments.
6286 # save warnings/boilerplate of simple test code
6287 ac_outfile=conftest.$ac_objext
6288 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6289 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6290 _lt_compiler_boilerplate=`cat conftest.err`
6293 ac_outfile=conftest.$ac_objext
6294 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6295 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6296 _lt_linker_boilerplate=`cat conftest.err`
6301 lt_prog_compiler_no_builtin_flag=
6303 if test "$GCC" = yes; then
6304 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6307 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6308 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6309 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 lt_cv_prog_compiler_rtti_exceptions=no
6313 ac_outfile=conftest.$ac_objext
6314 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6315 lt_compiler_flag="-fno-rtti -fno-exceptions"
6316 # Insert the option either (1) after the last *FLAGS variable, or
6317 # (2) before a word containing "conftest.", or (3) at the end.
6318 # Note that $ac_compile itself does not contain backslashes and begins
6319 # with a dollar sign (not a hyphen), so the echo should work correctly.
6320 # The option is referenced via a variable to avoid confusing sed.
6321 lt_compile=`echo "$ac_compile" | $SED \
6322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6324 -e 's:$: $lt_compiler_flag:'`
6325 (eval echo "\"\$as_me:6325: $lt_compile\"" >&5)
6326 (eval "$lt_compile" 2>conftest.err)
6328 cat conftest.err >&5
6329 echo "$as_me:6329: \$? = $ac_status" >&5
6330 if (exit $ac_status) && test -s "$ac_outfile"; then
6331 # The compiler can only warn and ignore the option if not recognized
6332 # So say no if there are warnings other than the usual output.
6333 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6336 lt_cv_prog_compiler_rtti_exceptions=yes
6342 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6343 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6345 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6346 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6353 lt_prog_compiler_wl=
6354 lt_prog_compiler_pic=
6355 lt_prog_compiler_static=
6357 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6358 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6360 if test "$GCC" = yes; then
6361 lt_prog_compiler_wl='-Wl,'
6362 lt_prog_compiler_static='-static'
6366 # All AIX code is PIC.
6367 if test "$host_cpu" = ia64; then
6368 # AIX 5 now supports IA64 processor
6369 lt_prog_compiler_static='-Bstatic'
6374 # FIXME: we need at least 68020 code to build shared libraries, but
6375 # adding the `-m68020' flag to GCC prevents building anything better,
6377 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6380 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6381 # PIC is the default for these OSes.
6384 mingw* | pw32* | os2*)
6385 # This hack is so that the source file can tell whether it is being
6386 # built for inclusion in a dll (and should export symbols for example).
6387 lt_prog_compiler_pic='-DDLL_EXPORT'
6390 darwin* | rhapsody*)
6391 # PIC is the default on this platform
6392 # Common symbols not allowed in MH_DYLIB files
6393 lt_prog_compiler_pic='-fno-common'
6397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6398 # Instead, we relocate shared libraries at runtime.
6402 # Just because we use GCC doesn't mean we suddenly get shared libraries
6403 # on systems that don't support them.
6404 lt_prog_compiler_can_build_shared=no
6409 if test -d /usr/nec; then
6410 lt_prog_compiler_pic=-Kconform_pic
6415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6422 lt_prog_compiler_pic='-fPIC'
6428 lt_prog_compiler_pic='-fPIC'
6432 # PORTME Check for flag to pass linker flags through the system compiler.
6435 lt_prog_compiler_wl='-Wl,'
6436 if test "$host_cpu" = ia64; then
6437 # AIX 5 now supports IA64 processor
6438 lt_prog_compiler_static='-Bstatic'
6440 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6444 # PIC is the default on this platform
6445 # Common symbols not allowed in MH_DYLIB files
6446 case $cc_basename in
6448 lt_prog_compiler_pic='-qnocommon'
6449 lt_prog_compiler_wl='-Wl,'
6454 mingw* | pw32* | os2*)
6455 # This hack is so that the source file can tell whether it is being
6456 # built for inclusion in a dll (and should export symbols for example).
6457 lt_prog_compiler_pic='-DDLL_EXPORT'
6460 hpux9* | hpux10* | hpux11*)
6461 lt_prog_compiler_wl='-Wl,'
6462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6469 lt_prog_compiler_pic='+Z'
6472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6473 lt_prog_compiler_static='${wl}-a ${wl}archive'
6476 irix5* | irix6* | nonstopux*)
6477 lt_prog_compiler_wl='-Wl,'
6478 # PIC (with -KPIC) is the default.
6479 lt_prog_compiler_static='-non_shared'
6483 lt_prog_compiler_pic='-KPIC'
6484 lt_prog_compiler_static='-Bstatic'
6488 case $cc_basename in
6490 lt_prog_compiler_wl='-Wl,'
6491 lt_prog_compiler_pic='-KPIC'
6492 lt_prog_compiler_static='-static'
6494 pgcc* | pgf77* | pgf90* | pgf95*)
6495 # Portland Group compilers (*not* the Pentium gcc compiler,
6496 # which looks to be a dead project)
6497 lt_prog_compiler_wl='-Wl,'
6498 lt_prog_compiler_pic='-fpic'
6499 lt_prog_compiler_static='-Bstatic'
6502 lt_prog_compiler_wl='-Wl,'
6503 # All Alpha code is PIC.
6504 lt_prog_compiler_static='-non_shared'
6509 osf3* | osf4* | osf5*)
6510 lt_prog_compiler_wl='-Wl,'
6511 # All OSF/1 code is PIC.
6512 lt_prog_compiler_static='-non_shared'
6516 lt_prog_compiler_pic='-KPIC'
6517 lt_prog_compiler_static='-Bstatic'
6518 case $cc_basename in
6520 lt_prog_compiler_wl='-Qoption ld ';;
6522 lt_prog_compiler_wl='-Wl,';;
6527 lt_prog_compiler_wl='-Qoption ld '
6528 lt_prog_compiler_pic='-PIC'
6529 lt_prog_compiler_static='-Bstatic'
6532 sysv4 | sysv4.2uw2* | sysv4.3*)
6533 lt_prog_compiler_wl='-Wl,'
6534 lt_prog_compiler_pic='-KPIC'
6535 lt_prog_compiler_static='-Bstatic'
6539 if test -d /usr/nec ;then
6540 lt_prog_compiler_pic='-Kconform_pic'
6541 lt_prog_compiler_static='-Bstatic'
6545 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6546 lt_prog_compiler_wl='-Wl,'
6547 lt_prog_compiler_pic='-KPIC'
6548 lt_prog_compiler_static='-Bstatic'
6552 lt_prog_compiler_wl='-Wl,'
6553 lt_prog_compiler_can_build_shared=no
6557 lt_prog_compiler_pic='-pic'
6558 lt_prog_compiler_static='-Bstatic'
6562 lt_prog_compiler_can_build_shared=no
6567 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6568 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6571 # Check to make sure the PIC flag actually works.
6573 if test -n "$lt_prog_compiler_pic"; then
6575 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6576 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6577 if test "${lt_prog_compiler_pic_works+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 lt_prog_compiler_pic_works=no
6581 ac_outfile=conftest.$ac_objext
6582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6583 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6584 # Insert the option either (1) after the last *FLAGS variable, or
6585 # (2) before a word containing "conftest.", or (3) at the end.
6586 # Note that $ac_compile itself does not contain backslashes and begins
6587 # with a dollar sign (not a hyphen), so the echo should work correctly.
6588 # The option is referenced via a variable to avoid confusing sed.
6589 lt_compile=`echo "$ac_compile" | $SED \
6590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6592 -e 's:$: $lt_compiler_flag:'`
6593 (eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
6594 (eval "$lt_compile" 2>conftest.err)
6596 cat conftest.err >&5
6597 echo "$as_me:6597: \$? = $ac_status" >&5
6598 if (exit $ac_status) && test -s "$ac_outfile"; then
6599 # The compiler can only warn and ignore the option if not recognized
6600 # So say no if there are warnings other than the usual output.
6601 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6604 lt_prog_compiler_pic_works=yes
6610 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6611 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6613 if test x"$lt_prog_compiler_pic_works" = xyes; then
6614 case $lt_prog_compiler_pic in
6616 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6619 lt_prog_compiler_pic=
6620 lt_prog_compiler_can_build_shared=no
6625 # For platforms which do not support PIC, -DPIC is meaningless:
6627 lt_prog_compiler_pic=
6630 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6635 # Check to make sure the static flag actually works.
6637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6638 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6639 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6640 if test "${lt_prog_compiler_static_works+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 lt_prog_compiler_static_works=no
6644 save_LDFLAGS="$LDFLAGS"
6645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6646 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6648 # The linker can only warn and ignore the option if not recognized
6649 # So say no if there are warnings
6650 if test -s conftest.err; then
6651 # Append any errors to the config.log.
6652 cat conftest.err 1>&5
6653 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6655 if diff conftest.exp conftest.er2 >/dev/null; then
6656 lt_prog_compiler_static_works=yes
6659 lt_prog_compiler_static_works=yes
6663 LDFLAGS="$save_LDFLAGS"
6666 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6667 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6669 if test x"$lt_prog_compiler_static_works" = xyes; then
6672 lt_prog_compiler_static=
6676 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6677 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6678 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 lt_cv_prog_compiler_c_o=no
6682 $rm -r conftest 2>/dev/null
6686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6688 lt_compiler_flag="-o out/conftest2.$ac_objext"
6689 # Insert the option either (1) after the last *FLAGS variable, or
6690 # (2) before a word containing "conftest.", or (3) at the end.
6691 # Note that $ac_compile itself does not contain backslashes and begins
6692 # with a dollar sign (not a hyphen), so the echo should work correctly.
6693 lt_compile=`echo "$ac_compile" | $SED \
6694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6696 -e 's:$: $lt_compiler_flag:'`
6697 (eval echo "\"\$as_me:6697: $lt_compile\"" >&5)
6698 (eval "$lt_compile" 2>out/conftest.err)
6700 cat out/conftest.err >&5
6701 echo "$as_me:6701: \$? = $ac_status" >&5
6702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6704 # The compiler can only warn and ignore the option if not recognized
6705 # So say no if there are warnings
6706 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6709 lt_cv_prog_compiler_c_o=yes
6714 # SGI C++ compiler will create directory out/ii_files/ for
6715 # template instantiation
6716 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6717 $rm out/* && rmdir out
6723 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6724 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6727 hard_links="nottested"
6728 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6729 # do not overwrite the value of need_locks provided by the user
6730 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6731 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6736 ln conftest.a conftest.b 2>&5 || hard_links=no
6737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6738 echo "$as_me:$LINENO: result: $hard_links" >&5
6739 echo "${ECHO_T}$hard_links" >&6
6740 if test "$hard_links" = no; then
6741 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6742 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6749 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6750 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6753 allow_undefined_flag=
6754 enable_shared_with_static_runtimes=no
6756 archive_expsym_cmds=
6757 old_archive_From_new_cmds=
6758 old_archive_from_expsyms_cmds=
6759 export_dynamic_flag_spec=
6760 whole_archive_flag_spec=
6761 thread_safe_flag_spec=
6762 hardcode_libdir_flag_spec=
6763 hardcode_libdir_flag_spec_ld=
6764 hardcode_libdir_separator=
6767 hardcode_shlibpath_var=unsupported
6768 link_all_deplibs=unknown
6769 hardcode_automatic=no
6772 always_export_symbols=no
6773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6774 # include_expsyms should be a list of space-separated symbols to be *always*
6775 # included in the symbol list
6777 # exclude_expsyms can be an extended regexp of symbols to exclude
6778 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6779 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6780 # as well as any symbol that contains `d'.
6781 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6782 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6783 # platforms (ab)use it in PIC code, but their linkers get confused if
6784 # the symbol is explicitly referenced. Since portable code cannot
6785 # rely on this symbol name, it's probably fine to never include it in
6786 # preloaded symbol tables.
6787 extract_expsyms_cmds=
6788 # Just being paranoid about ensuring that cc_basename is set.
6789 for cc_temp in $compiler""; do
6791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6797 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6800 cygwin* | mingw* | pw32*)
6801 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6802 # When not using gcc, we currently assume that we are using
6803 # Microsoft Visual C++.
6804 if test "$GCC" != yes; then
6809 # we just hope/assume this is gcc and not c89 (= MSVC++)
6818 if test "$with_gnu_ld" = yes; then
6819 # If archive_cmds runs LD, not CC, wlarc should be empty
6822 # Set some defaults for GNU ld with shared library support. These
6823 # are reset later if shared libraries are not supported. Putting them
6824 # here allows them to be overridden if necessary.
6825 runpath_var=LD_RUN_PATH
6826 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6827 export_dynamic_flag_spec='${wl}--export-dynamic'
6828 # ancient GNU ld didn't support --whole-archive et. al.
6829 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6830 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6832 whole_archive_flag_spec=
6834 supports_anon_versioning=no
6835 case `$LD -v 2>/dev/null` in
6836 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6837 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6838 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6839 *\ 2.11.*) ;; # other 2.11 versions
6840 *) supports_anon_versioning=yes ;;
6843 # See if GNU ld supports shared libraries.
6845 aix3* | aix4* | aix5*)
6846 # On AIX/PPC, the GNU linker is very broken
6847 if test "$host_cpu" != ia64; then
6851 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6852 *** to be unable to reliably create shared libraries on AIX.
6853 *** Therefore, libtool is disabling shared libraries support. If you
6854 *** really care for shared libraries, you may want to modify your PATH
6855 *** so that a non-GNU linker is found, and then restart.
6862 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)'
6863 hardcode_libdir_flag_spec='-L$libdir'
6864 hardcode_minus_L=yes
6866 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6867 # that the semantics of dynamic libraries on AmigaOS, at least up
6868 # to version 4, is to share data among multiple programs linked
6869 # with the same dynamic library. Since this doesn't match the
6870 # behavior of shared libraries on other platforms, we can't use
6876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6877 allow_undefined_flag=unsupported
6878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6879 # support --undefined. This deserves some investigation. FIXME
6880 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6886 cygwin* | mingw* | pw32*)
6887 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6888 # as there is no search path for DLLs.
6889 hardcode_libdir_flag_spec='-L$libdir'
6890 allow_undefined_flag=unsupported
6891 always_export_symbols=no
6892 enable_shared_with_static_runtimes=yes
6893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6895 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6897 # If the export-symbols file already is a .def file (1st line
6898 # is EXPORTS), use it as is; otherwise, prepend...
6899 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6900 cp $export_symbols $output_objdir/$soname.def;
6902 echo EXPORTS > $output_objdir/$soname.def;
6903 cat $export_symbols >> $output_objdir/$soname.def;
6905 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6913 hardcode_shlibpath_var=no
6914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6915 export_dynamic_flag_spec='${wl}-E'
6916 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6917 # Instead, shared libraries are loaded at an image base (0x10000000 by
6918 # default) and relocated if they conflict, which is a slow very memory
6919 # consuming and fragmenting process. To avoid this, we pick a random,
6920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6921 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6922 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6923 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6929 case $cc_basename,$host_cpu in
6930 pgcc*) # Portland Group C compiler
6931 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6932 tmp_addflag=' $pic_flag'
6934 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6935 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6936 tmp_addflag=' $pic_flag -Mnomain' ;;
6937 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6938 tmp_addflag=' -i_dynamic' ;;
6939 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6940 tmp_addflag=' -i_dynamic -nofor_main' ;;
6941 ifc* | ifort*) # Intel Fortran compiler
6942 tmp_addflag=' -nofor_main' ;;
6944 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6946 if test $supports_anon_versioning = yes; then
6947 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6949 $echo "local: *; };" >> $output_objdir/$libname.ver~
6950 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6958 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6969 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6974 *** create shared libraries on Solaris systems. Therefore, libtool
6975 *** is disabling shared libraries support. We urge you to upgrade GNU
6976 *** binutils to release 2.9.1 or newer. Another option is to modify
6977 *** your PATH or compiler configuration so that the native linker is
6978 *** used, and then restart.
6981 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6990 case `$LD -v 2>&1` in
6991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6996 *** reliably create shared libraries on SCO systems. Therefore, libtool
6997 *** is disabling shared libraries support. We urge you to upgrade GNU
6998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6999 *** your PATH or compiler configuration so that the native linker is
7000 *** used, and then restart.
7005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7006 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7017 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7020 hardcode_shlibpath_var=no
7024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7033 if test "$ld_shlibs" = no; then
7035 hardcode_libdir_flag_spec=
7036 export_dynamic_flag_spec=
7037 whole_archive_flag_spec=
7040 # PORTME fill in a description of your system's linker (not GNU ld)
7043 allow_undefined_flag=unsupported
7044 always_export_symbols=yes
7045 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'
7046 # Note: this linker hardcodes the directories in LIBPATH if there
7047 # are no directories specified by -L.
7048 hardcode_minus_L=yes
7049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7050 # Neither direct hardcoding nor static linking is supported with a
7052 hardcode_direct=unsupported
7057 if test "$host_cpu" = ia64; then
7058 # On IA64, the linker does run time linking by default, so we don't
7059 # have to do anything special.
7060 aix_use_runtimelinking=no
7061 exp_sym_flag='-Bexport'
7064 # If we're using GNU nm, then we don't want the "-C" option.
7065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7066 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7067 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'
7069 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'
7071 aix_use_runtimelinking=no
7073 # Test if we are trying to use run time linking or normal
7074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7075 # need to do runtime linking.
7076 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7077 for ld_flag in $LDFLAGS; do
7078 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7079 aix_use_runtimelinking=yes
7086 exp_sym_flag='-bexport'
7087 no_entry_flag='-bnoentry'
7090 # When large executables or shared objects are built, AIX ld can
7091 # have problems creating the table of contents. If linking a library
7092 # or program results in "error TOC overflow" add -mminimal-toc to
7093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7098 hardcode_libdir_separator=':'
7099 link_all_deplibs=yes
7101 if test "$GCC" = yes; then
7102 case $host_os in aix4.[012]|aix4.[012].*)
7103 # We only want to do this on AIX 4.2 and lower, the check
7104 # below for broken collect2 doesn't work under 4.3+
7105 collect2name=`${CC} -print-prog-name=collect2`
7106 if test -f "$collect2name" && \
7107 strings "$collect2name" | grep resolve_lib_name >/dev/null
7109 # We have reworked collect2
7112 # We have old collect2
7113 hardcode_direct=unsupported
7114 # It fails to find uninstalled libraries when the uninstalled
7115 # path is not listed in the libpath. Setting hardcode_minus_L
7116 # to unsupported forces relinking
7117 hardcode_minus_L=yes
7118 hardcode_libdir_flag_spec='-L$libdir'
7119 hardcode_libdir_separator=
7123 shared_flag='-shared'
7124 if test "$aix_use_runtimelinking" = yes; then
7125 shared_flag="$shared_flag "'${wl}-G'
7129 if test "$host_cpu" = ia64; then
7130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7131 # chokes on -Wl,-G. The following line is correct:
7134 if test "$aix_use_runtimelinking" = yes; then
7135 shared_flag='${wl}-G'
7137 shared_flag='${wl}-bM:SRE'
7142 # It seems that -bexpall does not export symbols beginning with
7143 # underscore (_), so it is better to generate a list of symbols to export.
7144 always_export_symbols=yes
7145 if test "$aix_use_runtimelinking" = yes; then
7146 # Warning - without using the other runtime loading flags (-brtl),
7147 # -berok will link without error, but may produce a broken library.
7148 allow_undefined_flag='-berok'
7149 # Determine the default libpath from the value encoded in an empty executable.
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7167 (eval $ac_link) 2>conftest.er1
7169 grep -v '^ *+' conftest.er1 >conftest.err
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } &&
7174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; } &&
7180 { ac_try='test -s conftest$ac_exeext'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7189 # Check for a 64-bit object if we didn't find anything.
7190 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; }
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7197 rm -f conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7202 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7204 if test "$host_cpu" = ia64; then
7205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7206 allow_undefined_flag="-z nodefs"
7207 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7209 # Determine the default libpath from the value encoded in an empty executable.
7210 cat >conftest.$ac_ext <<_ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227 (eval $ac_link) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7249 # Check for a 64-bit object if we didn't find anything.
7250 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; }
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7257 rm -f conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7262 # Warning - without using the other run time loading flags,
7263 # -berok will link without error, but may produce a broken library.
7264 no_undefined_flag=' ${wl}-bernotok'
7265 allow_undefined_flag=' ${wl}-berok'
7266 # Exported symbols can be pulled into shared objects from archives
7267 whole_archive_flag_spec='$convenience'
7268 archive_cmds_need_lc=yes
7269 # This is similar to how AIX traditionally builds its shared libraries.
7270 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7276 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)'
7277 hardcode_libdir_flag_spec='-L$libdir'
7278 hardcode_minus_L=yes
7279 # see comment about different semantics on the GNU ld section
7284 export_dynamic_flag_spec=-rdynamic
7287 cygwin* | mingw* | pw32*)
7288 # When not using gcc, we currently assume that we are using
7289 # Microsoft Visual C++.
7290 # hardcode_libdir_flag_spec is actually meaningless, as there is
7291 # no search path for DLLs.
7292 hardcode_libdir_flag_spec=' '
7293 allow_undefined_flag=unsupported
7294 # Tell ltmain to make .lib files, not .a files.
7296 # Tell ltmain to make .dll files, not .so files.
7298 # FIXME: Setting linknames here is a bad hack.
7299 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7300 # The linker will automatically build a .lib file if we build a DLL.
7301 old_archive_From_new_cmds='true'
7302 # FIXME: Should let the user specify the lib program.
7303 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7304 fix_srcfile_path='`cygpath -w "$srcfile"`'
7305 enable_shared_with_static_runtimes=yes
7308 darwin* | rhapsody*)
7310 rhapsody* | darwin1.[012])
7311 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7314 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7315 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7317 case ${MACOSX_DEPLOYMENT_TARGET} in
7319 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7322 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7328 archive_cmds_need_lc=no
7330 hardcode_automatic=yes
7331 hardcode_shlibpath_var=unsupported
7332 whole_archive_flag_spec=''
7333 link_all_deplibs=yes
7334 if test "$GCC" = yes ; then
7335 output_verbose_link_cmd='echo'
7336 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7337 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7339 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}'
7340 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}'
7342 case $cc_basename in
7344 output_verbose_link_cmd='echo'
7345 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7346 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7348 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7349 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}'
7359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360 hardcode_libdir_flag_spec='-L$libdir'
7361 hardcode_shlibpath_var=no
7368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7369 # support. Future versions do this automatically, but an explicit c++rt0.o
7370 # does not break anything, and helps significantly (at the cost of a little
7373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7374 hardcode_libdir_flag_spec='-R$libdir'
7376 hardcode_shlibpath_var=no
7379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7383 hardcode_minus_L=yes
7384 hardcode_shlibpath_var=no
7387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7388 freebsd* | dragonfly*)
7389 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7390 hardcode_libdir_flag_spec='-R$libdir'
7392 hardcode_shlibpath_var=no
7395 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7397 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7398 hardcode_libdir_flag_spec='-R$libdir'
7400 hardcode_shlibpath_var=no
7405 if test "$GCC" = yes; then
7406 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'
7408 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'
7410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7411 hardcode_libdir_separator=:
7414 # hardcode_minus_L: Not really in the search PATH,
7415 # but as the default location of the library.
7416 hardcode_minus_L=yes
7417 export_dynamic_flag_spec='${wl}-E'
7421 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7422 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7424 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7426 if test "$with_gnu_ld" = no; then
7427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7428 hardcode_libdir_separator=:
7431 export_dynamic_flag_spec='${wl}-E'
7433 # hardcode_minus_L: Not really in the search PATH,
7434 # but as the default location of the library.
7435 hardcode_minus_L=yes
7440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7443 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7446 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7449 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7455 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7458 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7461 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7465 if test "$with_gnu_ld" = no; then
7466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7467 hardcode_libdir_separator=:
7471 hardcode_libdir_flag_spec_ld='+b $libdir'
7473 hardcode_shlibpath_var=no
7477 export_dynamic_flag_spec='${wl}-E'
7479 # hardcode_minus_L: Not really in the search PATH,
7480 # but as the default location of the library.
7481 hardcode_minus_L=yes
7487 irix5* | irix6* | nonstopux*)
7488 if test "$GCC" = yes; then
7489 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'
7491 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'
7492 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7495 hardcode_libdir_separator=:
7496 link_all_deplibs=yes
7499 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7503 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7505 hardcode_libdir_flag_spec='-R$libdir'
7507 hardcode_shlibpath_var=no
7511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7514 hardcode_libdir_separator=:
7515 hardcode_shlibpath_var=no
7520 hardcode_shlibpath_var=no
7521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7523 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7525 export_dynamic_flag_spec='${wl}-E'
7528 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7530 hardcode_libdir_flag_spec='-R$libdir'
7533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7541 hardcode_libdir_flag_spec='-L$libdir'
7542 hardcode_minus_L=yes
7543 allow_undefined_flag=unsupported
7544 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'
7545 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7549 if test "$GCC" = yes; then
7550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7551 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'
7553 allow_undefined_flag=' -expect_unresolved \*'
7554 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'
7556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7557 hardcode_libdir_separator=:
7560 osf4* | osf5*) # as osf3* with the addition of -msym flag
7561 if test "$GCC" = yes; then
7562 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7563 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'
7564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7566 allow_undefined_flag=' -expect_unresolved \*'
7567 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'
7568 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7569 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7571 # Both c and cxx compiler support -rpath directly
7572 hardcode_libdir_flag_spec='-rpath $libdir'
7574 hardcode_libdir_separator=:
7578 no_undefined_flag=' -z text'
7579 if test "$GCC" = yes; then
7581 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7582 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7583 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7586 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7590 hardcode_libdir_flag_spec='-R$libdir'
7591 hardcode_shlibpath_var=no
7593 solaris2.[0-5] | solaris2.[0-5].*) ;;
7595 # The compiler driver will combine linker options so we
7596 # cannot just pass the convience library names through
7597 # without $wl, iff we do not link with $LD.
7598 # Luckily, gcc supports the same syntax we need for Sun Studio.
7599 # Supported since Solaris 2.6 (maybe 2.5.1?)
7602 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7604 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7607 link_all_deplibs=yes
7611 if test "x$host_vendor" = xsequent; then
7612 # Use $CC to link under sequent, because it throws in some extra .o
7613 # files that make .init and .fini sections work.
7614 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7616 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7618 hardcode_libdir_flag_spec='-L$libdir'
7620 hardcode_minus_L=yes
7621 hardcode_shlibpath_var=no
7625 case $host_vendor in
7627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7628 hardcode_direct=yes # is this really true???
7631 ## LD is ld it makes a PLAMLIB
7632 ## CC just makes a GrossModule.
7633 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7634 reload_cmds='$CC -r -o $output$reload_objs'
7638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7642 runpath_var='LD_RUN_PATH'
7643 hardcode_shlibpath_var=no
7647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7648 hardcode_shlibpath_var=no
7649 export_dynamic_flag_spec='-Bexport'
7653 if test -d /usr/nec; then
7654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7655 hardcode_shlibpath_var=no
7656 runpath_var=LD_RUN_PATH
7657 hardcode_runpath_var=yes
7662 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7663 no_undefined_flag='${wl}-z,text'
7664 archive_cmds_need_lc=no
7665 hardcode_shlibpath_var=no
7666 runpath_var='LD_RUN_PATH'
7668 if test "$GCC" = yes; then
7669 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7670 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7672 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7673 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7677 sysv5* | sco3.2v5* | sco5v6*)
7678 # Note: We can NOT use -z defs as we might desire, because we do not
7679 # link with -lc, and that would cause any symbols used from libc to
7680 # always be unresolved, which means just about no library would
7681 # ever link correctly. If we're not using GNU ld we use -z text
7682 # though, which does catch some bad symbols but isn't as heavy-handed
7684 no_undefined_flag='${wl}-z,text'
7685 allow_undefined_flag='${wl}-z,nodefs'
7686 archive_cmds_need_lc=no
7687 hardcode_shlibpath_var=no
7688 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7689 hardcode_libdir_separator=':'
7690 link_all_deplibs=yes
7691 export_dynamic_flag_spec='${wl}-Bexport'
7692 runpath_var='LD_RUN_PATH'
7694 if test "$GCC" = yes; then
7695 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7696 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7698 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7699 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705 hardcode_libdir_flag_spec='-L$libdir'
7706 hardcode_shlibpath_var=no
7715 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7716 echo "${ECHO_T}$ld_shlibs" >&6
7717 test "$ld_shlibs" = no && can_build_shared=no
7720 # Do we need to explicitly link libc?
7722 case "x$archive_cmds_need_lc" in
7724 # Assume -lc should be added
7725 archive_cmds_need_lc=yes
7727 if test "$enable_shared" = yes && test "$GCC" = yes; then
7728 case $archive_cmds in
7730 # FIXME: we may have to deal with multi-command sequences.
7733 # Test whether the compiler implicitly links with -lc since on some
7734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7735 # to ld, don't add -lc before -lgcc.
7736 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7737 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } 2>conftest.err; then
7748 libobjs=conftest.$ac_objext
7750 wl=$lt_prog_compiler_wl
7751 pic_flag=$lt_prog_compiler_pic
7757 lt_save_allow_undefined_flag=$allow_undefined_flag
7758 allow_undefined_flag=
7759 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7760 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }
7765 archive_cmds_need_lc=no
7767 archive_cmds_need_lc=yes
7769 allow_undefined_flag=$lt_save_allow_undefined_flag
7771 cat conftest.err 1>&5
7774 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7775 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7782 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7783 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7785 libname_spec='lib$name'
7793 shlibpath_overrides_runpath=unknown
7795 dynamic_linker="$host_os ld.so"
7796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7797 if test "$GCC" = yes; then
7798 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7799 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7800 # if the path contains ";" then we assume it to be the separator
7801 # otherwise default to the standard path separator (i.e. ":") - it is
7802 # assumed that no part of a normal pathname contains ";" but that should
7803 # okay in the real world where ";" in dirpaths is itself problematic.
7804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7809 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7811 need_lib_prefix=unknown
7812 hardcode_into_libs=no
7814 # when you set need_version to no, make sure it does not cause -set_version
7815 # flags to be left without arguments
7816 need_version=unknown
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7822 shlibpath_var=LIBPATH
7824 # AIX 3 has no versioning support, so we append a major version to the name.
7825 soname_spec='${libname}${release}${shared_ext}$major'
7832 hardcode_into_libs=yes
7833 if test "$host_cpu" = ia64; then
7834 # AIX 5 supports IA64
7835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7836 shlibpath_var=LD_LIBRARY_PATH
7838 # With GCC up to 2.95.x, collect2 would create an import file
7839 # for dependence libraries. The import file would start with
7840 # the line `#! .'. This would cause the generated library to
7841 # depend on `.', always an invalid library. This was fixed in
7842 # development snapshots of GCC prior to 3.0.
7844 aix4 | aix4.[01] | aix4.[01].*)
7845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7847 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7855 # soname into executable. Probably we can add versioning support to
7856 # collect2, so additional links can be useful in future.
7857 if test "$aix_use_runtimelinking" = yes; then
7858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7859 # instead of lib<name>.a to let people know that these are not
7860 # typical AIX shared libraries.
7861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 # We preserve .a as extension for shared libraries through AIX4.2
7864 # and later when we are not doing run time linking.
7865 library_names_spec='${libname}${release}.a $libname.a'
7866 soname_spec='${libname}${release}${shared_ext}$major'
7868 shlibpath_var=LIBPATH
7873 library_names_spec='$libname.ixlibrary $libname.a'
7874 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7875 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'
7879 library_names_spec='${libname}${shared_ext}'
7880 dynamic_linker="$host_os ld.so"
7881 shlibpath_var=LIBRARY_PATH
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888 soname_spec='${libname}${release}${shared_ext}$major'
7889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7890 shlibpath_var=LD_LIBRARY_PATH
7891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7893 # the default ld.so.conf also contains /usr/contrib/lib and
7894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7895 # libtool to hard-code these into programs
7898 cygwin* | mingw* | pw32*)
7899 version_type=windows
7904 case $GCC,$host_os in
7905 yes,cygwin* | yes,mingw* | yes,pw32*)
7906 library_names_spec='$libname.dll.a'
7907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7908 postinstall_cmds='base_file=`basename \${file}`~
7909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7910 dldir=$destdir/`dirname \$dlpath`~
7911 test -d \$dldir || mkdir -p \$dldir~
7912 $install_prog $dir/$dlname \$dldir/$dlname~
7913 chmod a+x \$dldir/$dlname'
7914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7915 dlpath=$dir/\$dldll~
7917 shlibpath_overrides_runpath=yes
7921 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7923 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7926 # MinGW DLLs use traditional 'lib' prefix
7927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7929 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7930 # It is most probably a Windows format PATH printed by
7931 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7932 # path with ; separators, and with drive letters. We can handle the
7933 # drive letters (cygwin fileutils understands them), so leave them,
7934 # especially as we might pass files found there to a mingw objdump,
7935 # which wouldn't understand a cygwinified path. Ahh.
7936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7942 # pw32 DLLs use 'pw' prefix rather than 'lib'
7943 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7949 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7952 dynamic_linker='Win32 ld.exe'
7953 # FIXME: first we should search . and the directory the executable is in
7957 darwin* | rhapsody*)
7958 dynamic_linker="$host_os dyld"
7962 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7963 soname_spec='${libname}${release}${major}$shared_ext'
7964 shlibpath_overrides_runpath=yes
7965 shlibpath_var=DYLD_LIBRARY_PATH
7966 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7967 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7968 if test "$GCC" = yes; then
7969 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"`
7971 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7981 soname_spec='${libname}${release}${shared_ext}$major'
7982 shlibpath_var=LD_LIBRARY_PATH
7993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7994 soname_spec='${libname}${release}${shared_ext}$major'
7995 shlibpath_var=LD_LIBRARY_PATH
7996 shlibpath_overrides_runpath=no
7997 hardcode_into_libs=yes
7998 dynamic_linker='GNU ld.so'
8001 freebsd* | dragonfly*)
8002 # DragonFly does not have aout. When/if they implement a new
8003 # versioning mechanism, adjust this.
8004 if test -x /usr/bin/objformat; then
8005 objformat=`/usr/bin/objformat`
8008 freebsd[123]*) objformat=aout ;;
8012 version_type=freebsd-$objformat
8013 case $version_type in
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8024 shlibpath_var=LD_LIBRARY_PATH
8027 shlibpath_overrides_runpath=yes
8029 freebsd3.[01]* | freebsdelf3.[01]*)
8030 shlibpath_overrides_runpath=yes
8031 hardcode_into_libs=yes
8033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8035 shlibpath_overrides_runpath=no
8036 hardcode_into_libs=yes
8038 freebsd*) # from 4.6 on
8039 shlibpath_overrides_runpath=yes
8040 hardcode_into_libs=yes
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8050 soname_spec='${libname}${release}${shared_ext}$major'
8051 shlibpath_var=LD_LIBRARY_PATH
8052 hardcode_into_libs=yes
8055 hpux9* | hpux10* | hpux11*)
8056 # Give a soname corresponding to the major version so that dld.sl refuses to
8057 # link against other versions.
8064 hardcode_into_libs=yes
8065 dynamic_linker="$host_os dld.so"
8066 shlibpath_var=LD_LIBRARY_PATH
8067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 if test "X$HPUX_IA64_MODE" = X32; then
8071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8079 hardcode_into_libs=yes
8080 dynamic_linker="$host_os dld.sl"
8081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084 soname_spec='${libname}${release}${shared_ext}$major'
8085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8090 dynamic_linker="$host_os dld.sl"
8091 shlibpath_var=SHLIB_PATH
8092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094 soname_spec='${libname}${release}${shared_ext}$major'
8097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8098 postinstall_cmds='chmod 555 $lib'
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8106 soname_spec='${libname}${release}${shared_ext}$major'
8107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8108 shlibpath_var=LD_LIBRARY_PATH
8109 shlibpath_overrides_runpath=no
8110 hardcode_into_libs=yes
8113 irix5* | irix6* | nonstopux*)
8115 nonstopux*) version_type=nonstopux ;;
8117 if test "$lt_cv_prog_gnu_ld" = yes; then
8125 soname_spec='${libname}${release}${shared_ext}$major'
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8128 irix5* | nonstopux*)
8132 case $LD in # libtool.m4 will add one of these switches to LD
8133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8134 libsuff= shlibsuff= libmagic=32-bit;;
8135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8136 libsuff=32 shlibsuff=N32 libmagic=N32;;
8137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8139 *) libsuff= shlibsuff= libmagic=never-match;;
8143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8144 shlibpath_overrides_runpath=no
8145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8147 hardcode_into_libs=yes
8150 # No shared lib support for Linux oldld, aout, or coff.
8151 linux*oldld* | linux*aout* | linux*coff*)
8155 # This must be Linux ELF.
8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161 soname_spec='${libname}${release}${shared_ext}$major'
8162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8163 shlibpath_var=LD_LIBRARY_PATH
8164 shlibpath_overrides_runpath=no
8165 # This implies no fast_install, which is unacceptable.
8166 # Some rework will be needed to allow for fast_install
8167 # before this can be enabled.
8168 hardcode_into_libs=yes
8170 # Append ld.so.conf contents to the search path
8171 if test -f /etc/ld.so.conf; then
8172 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8176 # We used to test for /lib/ld.so.1 and disable shared libraries on
8177 # powerpc, because MkLinux only supported shared libraries with the
8178 # GNU dynamic linker. Since this was broken with cross compilers,
8179 # most powerpc-linux boxes support dynamic linking these days and
8180 # people can always --disable-shared, the test was removed, and we
8181 # assume the GNU/Linux dynamic linker is in use.
8182 dynamic_linker='GNU/Linux ld.so'
8189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8190 soname_spec='${libname}${release}${shared_ext}$major'
8191 shlibpath_var=LD_LIBRARY_PATH
8192 shlibpath_overrides_runpath=no
8193 hardcode_into_libs=yes
8194 dynamic_linker='NetBSD ld.elf_so'
8201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8202 soname_spec='${libname}${release}${shared_ext}$major'
8203 shlibpath_var=LD_LIBRARY_PATH
8204 shlibpath_overrides_runpath=no
8205 hardcode_into_libs=yes
8206 dynamic_linker='GNU ld.so'
8213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8216 dynamic_linker='NetBSD (a.out) ld.so'
8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8219 soname_spec='${libname}${release}${shared_ext}$major'
8220 dynamic_linker='NetBSD ld.elf_so'
8222 shlibpath_var=LD_LIBRARY_PATH
8223 shlibpath_overrides_runpath=yes
8224 hardcode_into_libs=yes
8229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8230 shlibpath_var=LD_LIBRARY_PATH
8231 shlibpath_overrides_runpath=yes
8238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8239 soname_spec='${libname}${release}${shared_ext}$major'
8240 shlibpath_var=LD_LIBRARY_PATH
8241 shlibpath_overrides_runpath=yes
8246 sys_lib_dlsearch_path_spec="/usr/lib"
8248 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8250 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8251 *) need_version=no ;;
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8255 shlibpath_var=LD_LIBRARY_PATH
8256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8258 openbsd2.[89] | openbsd2.[89].*)
8259 shlibpath_overrides_runpath=no
8262 shlibpath_overrides_runpath=yes
8266 shlibpath_overrides_runpath=yes
8271 libname_spec='$name'
8274 library_names_spec='$libname${shared_ext} $libname.a'
8275 dynamic_linker='OS/2 ld.exe'
8276 shlibpath_var=LIBPATH
8279 osf3* | osf4* | osf5*)
8283 soname_spec='${libname}${release}${shared_ext}$major'
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 shlibpath_var=LD_LIBRARY_PATH
8286 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8287 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295 soname_spec='${libname}${release}${shared_ext}$major'
8296 shlibpath_var=LD_LIBRARY_PATH
8297 shlibpath_overrides_runpath=yes
8298 hardcode_into_libs=yes
8299 # ldd complains unless libraries are executable
8300 postinstall_cmds='chmod +x $lib'
8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8307 shlibpath_var=LD_LIBRARY_PATH
8308 shlibpath_overrides_runpath=yes
8309 if test "$with_gnu_ld" = yes; then
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8318 soname_spec='${libname}${release}${shared_ext}$major'
8319 shlibpath_var=LD_LIBRARY_PATH
8320 case $host_vendor in
8322 shlibpath_overrides_runpath=no
8324 export_dynamic_flag_spec='${wl}-Blargedynsym'
8325 runpath_var=LD_RUN_PATH
8333 shlibpath_overrides_runpath=no
8334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8340 if test -d /usr/nec ;then
8342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8343 soname_spec='$libname${shared_ext}.$major'
8344 shlibpath_var=LD_LIBRARY_PATH
8348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8349 version_type=freebsd-elf
8352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8353 soname_spec='${libname}${release}${shared_ext}$major'
8354 shlibpath_var=LD_LIBRARY_PATH
8355 hardcode_into_libs=yes
8356 if test "$with_gnu_ld" = yes; then
8357 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8358 shlibpath_overrides_runpath=no
8360 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8361 shlibpath_overrides_runpath=yes
8364 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8368 sys_lib_dlsearch_path_spec='/usr/lib'
8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8374 soname_spec='${libname}${release}${shared_ext}$major'
8375 shlibpath_var=LD_LIBRARY_PATH
8382 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8383 echo "${ECHO_T}$dynamic_linker" >&6
8384 test "$dynamic_linker" = no && can_build_shared=no
8386 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8387 if test "$GCC" = yes; then
8388 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8391 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8392 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8394 if test -n "$hardcode_libdir_flag_spec" || \
8395 test -n "$runpath_var" || \
8396 test "X$hardcode_automatic" = "Xyes" ; then
8398 # We can hardcode non-existant directories.
8399 if test "$hardcode_direct" != no &&
8400 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8401 # have to relink, otherwise we might link with an installed library
8402 # when we should be linking with a yet-to-be-installed one
8403 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8404 test "$hardcode_minus_L" != no; then
8405 # Linking always hardcodes the temporary library directory.
8406 hardcode_action=relink
8408 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8409 hardcode_action=immediate
8412 # We cannot hardcode anything, or else we can only hardcode existing
8414 hardcode_action=unsupported
8416 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8417 echo "${ECHO_T}$hardcode_action" >&6
8419 if test "$hardcode_action" = relink; then
8420 # Fast installation is not supported
8421 enable_fast_install=no
8422 elif test "$shlibpath_overrides_runpath" = yes ||
8423 test "$enable_shared" = no; then
8424 # Fast installation is not necessary
8425 enable_fast_install=needless
8430 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8431 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8432 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8433 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8434 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8435 echo "$as_me:$LINENO: result: yes" >&5
8436 echo "${ECHO_T}yes" >&6
8438 # FIXME - insert some real tests, host_os isn't really good enough
8441 if test -n "$STRIP" ; then
8442 striplib="$STRIP -x"
8443 echo "$as_me:$LINENO: result: yes" >&5
8444 echo "${ECHO_T}yes" >&6
8446 echo "$as_me:$LINENO: result: no" >&5
8447 echo "${ECHO_T}no" >&6
8451 echo "$as_me:$LINENO: result: no" >&5
8452 echo "${ECHO_T}no" >&6
8457 if test "x$enable_dlopen" != xyes; then
8458 enable_dlopen=unknown
8459 enable_dlopen_self=unknown
8460 enable_dlopen_self_static=unknown
8467 lt_cv_dlopen="load_add_on"
8469 lt_cv_dlopen_self=yes
8473 lt_cv_dlopen="LoadLibrary"
8478 lt_cv_dlopen="dlopen"
8483 # if libdl is installed we need to link against it
8484 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8485 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8486 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_check_lib_save_LIBS=$LIBS
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8498 /* Override any gcc2 internal prototype to avoid an error. */
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_dl_dlopen=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_lib_dl_dlopen=no
8541 rm -f conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8545 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8546 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8547 if test $ac_cv_lib_dl_dlopen = yes; then
8548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8553 lt_cv_dlopen_self=yes
8560 echo "$as_me:$LINENO: checking for shl_load" >&5
8561 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8562 if test "${ac_cv_func_shl_load+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8573 #define shl_load innocuous_shl_load
8575 /* System header to define __stub macros and hopefully few prototypes,
8576 which can conflict with char shl_load (); below.
8577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8578 <limits.h> exists even on freestanding compilers. */
8581 # include <limits.h>
8583 # include <assert.h>
8588 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8596 /* The GNU C library defines this for functions which it implements
8597 to always fail with ENOSYS. Some functions are actually named
8598 something starting with __ and the normal name is an alias. */
8599 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8602 char (*f) () = shl_load;
8611 return f != shl_load;
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8618 (eval $ac_link) 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest$ac_exeext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_func_shl_load=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_cv_func_shl_load=no
8644 rm -f conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8647 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8648 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8649 if test $ac_cv_func_shl_load = yes; then
8650 lt_cv_dlopen="shl_load"
8652 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8653 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8654 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 ac_check_lib_save_LIBS=$LIBS
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8666 /* Override any gcc2 internal prototype to avoid an error. */
8670 /* We use char because int might match the return type of a gcc2
8671 builtin and then its argument prototype would still apply. */
8681 rm -f conftest.$ac_objext conftest$ac_exeext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683 (eval $ac_link) 2>conftest.er1
8685 grep -v '^ *+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_lib_dld_shl_load=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_lib_dld_shl_load=no
8709 rm -f conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 LIBS=$ac_check_lib_save_LIBS
8713 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8714 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8715 if test $ac_cv_lib_dld_shl_load = yes; then
8716 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8718 echo "$as_me:$LINENO: checking for dlopen" >&5
8719 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8720 if test "${ac_cv_func_dlopen+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 cat >conftest.$ac_ext <<_ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8731 #define dlopen innocuous_dlopen
8733 /* System header to define __stub macros and hopefully few prototypes,
8734 which can conflict with char dlopen (); below.
8735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8736 <limits.h> exists even on freestanding compilers. */
8739 # include <limits.h>
8741 # include <assert.h>
8746 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8754 /* The GNU C library defines this for functions which it implements
8755 to always fail with ENOSYS. Some functions are actually named
8756 something starting with __ and the normal name is an alias. */
8757 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8760 char (*f) () = dlopen;
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest$ac_exeext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_func_dlopen=yes
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_func_dlopen=no
8802 rm -f conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8806 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8807 if test $ac_cv_func_dlopen = yes; then
8808 lt_cv_dlopen="dlopen"
8810 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8811 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 ac_check_lib_save_LIBS=$LIBS
8817 cat >conftest.$ac_ext <<_ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8824 /* Override any gcc2 internal prototype to avoid an error. */
8828 /* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>conftest.er1
8843 grep -v '^ *+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try='test -s conftest$ac_exeext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_cv_lib_dl_dlopen=yes
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_cv_lib_dl_dlopen=no
8867 rm -f conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8871 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8872 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8873 if test $ac_cv_lib_dl_dlopen = yes; then
8874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8876 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8877 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8878 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 ac_check_lib_save_LIBS=$LIBS
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8890 /* Override any gcc2 internal prototype to avoid an error. */
8894 /* We use char because int might match the return type of a gcc2
8895 builtin and then its argument prototype would still apply. */
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907 (eval $ac_link) 2>conftest.er1
8909 grep -v '^ *+' conftest.er1 >conftest.err
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; } &&
8920 { ac_try='test -s conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8926 ac_cv_lib_svld_dlopen=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_cv_lib_svld_dlopen=no
8933 rm -f conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 LIBS=$ac_check_lib_save_LIBS
8937 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8938 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8939 if test $ac_cv_lib_svld_dlopen = yes; then
8940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8942 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8943 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8944 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 ac_check_lib_save_LIBS=$LIBS
8949 cat >conftest.$ac_ext <<_ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8956 /* Override any gcc2 internal prototype to avoid an error. */
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973 (eval $ac_link) 2>conftest.er1
8975 grep -v '^ *+' conftest.er1 >conftest.err
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_lib_dld_dld_link=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_cv_lib_dld_dld_link=no
8999 rm -f conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9001 LIBS=$ac_check_lib_save_LIBS
9003 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9004 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9005 if test $ac_cv_lib_dld_dld_link = yes; then
9006 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9027 if test "x$lt_cv_dlopen" != xno; then
9033 case $lt_cv_dlopen in
9035 save_CPPFLAGS="$CPPFLAGS"
9036 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9038 save_LDFLAGS="$LDFLAGS"
9039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9042 LIBS="$lt_cv_dlopen_libs $LIBS"
9044 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9045 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9046 if test "${lt_cv_dlopen_self+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 if test "$cross_compiling" = yes; then :
9050 lt_cv_dlopen_self=cross
9052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9053 lt_status=$lt_dlunknown
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9055 "configure"
9056 #include "confdefs.h"
9065 # define LT_DLGLOBAL RTLD_GLOBAL
9068 # define LT_DLGLOBAL DL_GLOBAL
9070 # define LT_DLGLOBAL 0
9074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9075 find out it does not work in some platform. */
9076 #ifndef LT_DLLAZY_OR_NOW
9078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9081 # define LT_DLLAZY_OR_NOW DL_LAZY
9084 # define LT_DLLAZY_OR_NOW RTLD_NOW
9087 # define LT_DLLAZY_OR_NOW DL_NOW
9089 # define LT_DLLAZY_OR_NOW 0
9097 extern "C" void exit (int);
9100 void fnord() { int i=42;}
9103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9104 int status = $lt_dlunknown;
9108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9110 /* dlclose (self); */
9118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9123 (./conftest; exit; ) >&5 2>/dev/null
9126 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9127 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9128 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9131 # compilation failed
9132 lt_cv_dlopen_self=no
9139 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9140 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9142 if test "x$lt_cv_dlopen_self" = xyes; then
9143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9144 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9145 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9146 if test "${lt_cv_dlopen_self_static+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 if test "$cross_compiling" = yes; then :
9150 lt_cv_dlopen_self_static=cross
9152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9153 lt_status=$lt_dlunknown
9154 cat > conftest.$ac_ext <<EOF
9155 #line 9155 "configure"
9156 #include "confdefs.h"
9165 # define LT_DLGLOBAL RTLD_GLOBAL
9168 # define LT_DLGLOBAL DL_GLOBAL
9170 # define LT_DLGLOBAL 0
9174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9175 find out it does not work in some platform. */
9176 #ifndef LT_DLLAZY_OR_NOW
9178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9181 # define LT_DLLAZY_OR_NOW DL_LAZY
9184 # define LT_DLLAZY_OR_NOW RTLD_NOW
9187 # define LT_DLLAZY_OR_NOW DL_NOW
9189 # define LT_DLLAZY_OR_NOW 0
9197 extern "C" void exit (int);
9200 void fnord() { int i=42;}
9203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9204 int status = $lt_dlunknown;
9208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9209 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9210 /* dlclose (self); */
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9223 (./conftest; exit; ) >&5 2>/dev/null
9226 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9227 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9228 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9231 # compilation failed
9232 lt_cv_dlopen_self_static=no
9239 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9240 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9243 CPPFLAGS="$save_CPPFLAGS"
9244 LDFLAGS="$save_LDFLAGS"
9249 case $lt_cv_dlopen_self in
9250 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9251 *) enable_dlopen_self=unknown ;;
9254 case $lt_cv_dlopen_self_static in
9255 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9256 *) enable_dlopen_self_static=unknown ;;
9261 # Report which library types will actually be built
9262 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9263 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9264 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9265 echo "${ECHO_T}$can_build_shared" >&6
9267 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9268 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9269 test "$can_build_shared" = "no" && enable_shared=no
9271 # On AIX, shared libraries and static libraries use the same namespace, and
9272 # are all built from PIC.
9275 test "$enable_shared" = yes && enable_static=no
9276 if test -n "$RANLIB"; then
9277 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9278 postinstall_cmds='$RANLIB $lib'
9283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9284 test "$enable_shared" = yes && enable_static=no
9288 echo "$as_me:$LINENO: result: $enable_shared" >&5
9289 echo "${ECHO_T}$enable_shared" >&6
9291 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9292 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9293 # Make sure either enable_shared or enable_static is yes.
9294 test "$enable_shared" = yes || enable_static=yes
9295 echo "$as_me:$LINENO: result: $enable_static" >&5
9296 echo "${ECHO_T}$enable_static" >&6
9298 # The else clause should only fire when bootstrapping the
9299 # libtool distribution, otherwise you forgot to ship ltmain.sh
9300 # with your package, and you will get complaints that there are
9301 # no rules to generate ltmain.sh.
9302 if test -f "$ltmain"; then
9303 # See if we are running on zsh, and set the options which allow our commands through
9304 # without removal of \ escapes.
9305 if test -n "${ZSH_VERSION+set}" ; then
9306 setopt NO_GLOB_SUBST
9308 # Now quote all the things that may contain metacharacters while being
9309 # careful not to overquote the AC_SUBSTed values. We take copies of the
9310 # variables and quote the copies for generation of the libtool script.
9311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9315 deplibs_check_method reload_flag reload_cmds need_locks \
9316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9317 lt_cv_sys_global_symbol_to_c_name_address \
9318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9319 old_postinstall_cmds old_postuninstall_cmds \
9323 lt_prog_compiler_wl \
9324 lt_prog_compiler_pic \
9325 lt_prog_compiler_static \
9326 lt_prog_compiler_no_builtin_flag \
9327 export_dynamic_flag_spec \
9328 thread_safe_flag_spec \
9329 whole_archive_flag_spec \
9330 enable_shared_with_static_runtimes \
9332 old_archive_from_new_cmds \
9337 compiler_lib_search_path \
9339 archive_expsym_cmds \
9341 postuninstall_cmds \
9342 old_archive_from_expsyms_cmds \
9343 allow_undefined_flag \
9345 export_symbols_cmds \
9346 hardcode_libdir_flag_spec \
9347 hardcode_libdir_flag_spec_ld \
9348 hardcode_libdir_separator \
9349 hardcode_automatic \
9351 module_expsym_cmds \
9352 lt_cv_prog_compiler_c_o \
9357 old_archive_cmds | \
9358 old_archive_from_new_cmds | \
9360 archive_expsym_cmds | \
9362 module_expsym_cmds | \
9363 old_archive_from_expsyms_cmds | \
9364 export_symbols_cmds | \
9365 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9366 postinstall_cmds | postuninstall_cmds | \
9367 old_postinstall_cmds | old_postuninstall_cmds | \
9368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9369 # Double-quote double-evaled strings.
9370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9379 *'\$0 --fallback-echo"')
9380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9385 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9387 { echo "$as_me:$LINENO: creating $ofile" >&5
9388 echo "$as_me: creating $ofile" >&6;}
9390 cat <<__EOF__ >> "$cfgfile"
9393 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9394 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9395 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9397 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9398 # Free Software Foundation, Inc.
9400 # This file is part of GNU Libtool:
9401 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9403 # This program is free software; you can redistribute it and/or modify
9404 # it under the terms of the GNU General Public License as published by
9405 # the Free Software Foundation; either version 2 of the License, or
9406 # (at your option) any later version.
9408 # This program is distributed in the hope that it will be useful, but
9409 # WITHOUT ANY WARRANTY; without even the implied warranty of
9410 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9411 # General Public License for more details.
9413 # You should have received a copy of the GNU General Public License
9414 # along with this program; if not, write to the Free Software
9415 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9417 # As a special exception to the GNU General Public License, if you
9418 # distribute this file as part of a program that contains a
9419 # configuration script generated by Autoconf, you may include it under
9420 # the same distribution terms that you use for the rest of that program.
9422 # A sed program that does not truncate output.
9425 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9426 Xsed="$SED -e 1s/^X//"
9428 # The HP-UX ksh and POSIX shell print the target directory to stdout
9430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9432 # The names of the tagged configurations supported by this script.
9435 # ### BEGIN LIBTOOL CONFIG
9437 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9439 # Shell to use when invoking shell scripts.
9442 # Whether or not to build shared libraries.
9443 build_libtool_libs=$enable_shared
9445 # Whether or not to build static libraries.
9446 build_old_libs=$enable_static
9448 # Whether or not to add -lc for building shared libraries.
9449 build_libtool_need_lc=$archive_cmds_need_lc
9451 # Whether or not to disallow shared libs when runtime libs are static
9452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9454 # Whether or not to optimize for fast installation.
9455 fast_install=$enable_fast_install
9458 host_alias=$host_alias
9463 build_alias=$build_alias
9467 # An echo program that does not interpret backslashes.
9472 AR_FLAGS=$lt_AR_FLAGS
9477 # LTCC compiler flags.
9478 LTCFLAGS=$lt_LTCFLAGS
9480 # A language-specific compiler.
9483 # Is the compiler the GNU C compiler?
9489 # The linker used to build libraries.
9492 # Whether we need hard or soft links.
9495 # A BSD-compatible nm program.
9498 # A symbol stripping program
9501 # Used to examine libraries when file_magic_cmd begins "file"
9502 MAGIC_CMD=$MAGIC_CMD
9504 # Used on cygwin: DLL creation program.
9507 # Used on cygwin: object dumper.
9510 # Used on cygwin: assembler.
9513 # The name of the directory that contains temporary libtool files.
9516 # How to create reloadable object files.
9517 reload_flag=$lt_reload_flag
9518 reload_cmds=$lt_reload_cmds
9520 # How to pass a linker flag through the compiler.
9521 wl=$lt_lt_prog_compiler_wl
9523 # Object file suffix (normally "o").
9526 # Old archive suffix (normally "a").
9529 # Shared library suffix (normally ".so").
9530 shrext_cmds='$shrext_cmds'
9532 # Executable file suffix (normally "").
9535 # Additional compiler flags for building library objects.
9536 pic_flag=$lt_lt_prog_compiler_pic
9539 # What is the maximum length of a command?
9540 max_cmd_len=$lt_cv_sys_max_cmd_len
9542 # Does compiler simultaneously support -c and -o options?
9543 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9545 # Must we lock files when doing compilation?
9546 need_locks=$lt_need_locks
9548 # Do we need the lib prefix for modules?
9549 need_lib_prefix=$need_lib_prefix
9551 # Do we need a version for libraries?
9552 need_version=$need_version
9554 # Whether dlopen is supported.
9555 dlopen_support=$enable_dlopen
9557 # Whether dlopen of programs is supported.
9558 dlopen_self=$enable_dlopen_self
9560 # Whether dlopen of statically linked programs is supported.
9561 dlopen_self_static=$enable_dlopen_self_static
9563 # Compiler flag to prevent dynamic linking.
9564 link_static_flag=$lt_lt_prog_compiler_static
9566 # Compiler flag to turn off builtin functions.
9567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9569 # Compiler flag to allow reflexive dlopens.
9570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9572 # Compiler flag to generate shared objects directly from archives.
9573 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9575 # Compiler flag to generate thread-safe objects.
9576 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9578 # Library versioning type.
9579 version_type=$version_type
9581 # Format of library name prefix.
9582 libname_spec=$lt_libname_spec
9584 # List of archive names. First name is the real one, the rest are links.
9585 # The last name is the one that the linker finds with -lNAME.
9586 library_names_spec=$lt_library_names_spec
9588 # The coded name of the library, if different from the real name.
9589 soname_spec=$lt_soname_spec
9591 # Commands used to build and install an old-style archive.
9593 old_archive_cmds=$lt_old_archive_cmds
9594 old_postinstall_cmds=$lt_old_postinstall_cmds
9595 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9597 # Create an old-style archive from a shared archive.
9598 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9600 # Create a temporary old-style archive to link instead of a shared archive.
9601 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9603 # Commands used to build and install a shared archive.
9604 archive_cmds=$lt_archive_cmds
9605 archive_expsym_cmds=$lt_archive_expsym_cmds
9606 postinstall_cmds=$lt_postinstall_cmds
9607 postuninstall_cmds=$lt_postuninstall_cmds
9609 # Commands used to build a loadable module (assumed same as above if empty)
9610 module_cmds=$lt_module_cmds
9611 module_expsym_cmds=$lt_module_expsym_cmds
9613 # Commands to strip libraries.
9614 old_striplib=$lt_old_striplib
9615 striplib=$lt_striplib
9617 # Dependencies to place before the objects being linked to create a
9619 predep_objects=$lt_predep_objects
9621 # Dependencies to place after the objects being linked to create a
9623 postdep_objects=$lt_postdep_objects
9625 # Dependencies to place before the objects being linked to create a
9629 # Dependencies to place after the objects being linked to create a
9631 postdeps=$lt_postdeps
9633 # The library search path used internally by the compiler when linking
9635 compiler_lib_search_path=$lt_compiler_lib_search_path
9637 # Method to check whether dependent libraries are shared objects.
9638 deplibs_check_method=$lt_deplibs_check_method
9640 # Command to use when deplibs_check_method == file_magic.
9641 file_magic_cmd=$lt_file_magic_cmd
9643 # Flag that allows shared libraries with undefined symbols to be built.
9644 allow_undefined_flag=$lt_allow_undefined_flag
9646 # Flag that forces no undefined symbols.
9647 no_undefined_flag=$lt_no_undefined_flag
9649 # Commands used to finish a libtool library installation in a directory.
9650 finish_cmds=$lt_finish_cmds
9652 # Same as above, but a single script fragment to be evaled but not shown.
9653 finish_eval=$lt_finish_eval
9655 # Take the output of nm and produce a listing of raw symbols and C names.
9656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9658 # Transform the output of nm in a proper C declaration
9659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9661 # Transform the output of nm in a C name address pair
9662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9664 # This is the shared library runtime path variable.
9665 runpath_var=$runpath_var
9667 # This is the shared library path variable.
9668 shlibpath_var=$shlibpath_var
9670 # Is shlibpath searched before the hard-coded library search path?
9671 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9673 # How to hardcode a shared library path into an executable.
9674 hardcode_action=$hardcode_action
9676 # Whether we should hardcode library paths into libraries.
9677 hardcode_into_libs=$hardcode_into_libs
9679 # Flag to hardcode \$libdir into a binary during linking.
9680 # This must work even if \$libdir does not exist.
9681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9683 # If ld is used when linking, flag to hardcode \$libdir into
9684 # a binary during linking. This must work even if \$libdir does
9686 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9688 # Whether we need a single -rpath flag with a separated argument.
9689 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9691 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9693 hardcode_direct=$hardcode_direct
9695 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9697 hardcode_minus_L=$hardcode_minus_L
9699 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9700 # the resulting binary.
9701 hardcode_shlibpath_var=$hardcode_shlibpath_var
9703 # Set to yes if building a shared library automatically hardcodes DIR into the library
9704 # and all subsequent libraries and executables linked against it.
9705 hardcode_automatic=$hardcode_automatic
9707 # Variables whose values should be saved in libtool wrapper scripts and
9708 # restored at relink time.
9709 variables_saved_for_relink="$variables_saved_for_relink"
9711 # Whether libtool must link a program against all its dependency libraries.
9712 link_all_deplibs=$link_all_deplibs
9714 # Compile-time system search path for libraries
9715 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9717 # Run-time system search path for libraries
9718 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9720 # Fix the shell variable \$srcfile for the compiler.
9721 fix_srcfile_path="$fix_srcfile_path"
9723 # Set to yes if exported symbols are required.
9724 always_export_symbols=$always_export_symbols
9726 # The commands to list exported symbols.
9727 export_symbols_cmds=$lt_export_symbols_cmds
9729 # The commands to extract the exported symbol list from a shared archive.
9730 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9732 # Symbols that should not be listed in the preloaded symbols.
9733 exclude_expsyms=$lt_exclude_expsyms
9735 # Symbols that must always be exported.
9736 include_expsyms=$lt_include_expsyms
9738 # ### END LIBTOOL CONFIG
9745 cat <<\EOF >> "$cfgfile"
9747 # AIX sometimes has problems with the GCC collect2 program. For some
9748 # reason, if we set the COLLECT_NAMES environment variable, the problems
9749 # vanish in a puff of smoke.
9750 if test "X${COLLECT_NAMES+set}" != Xset; then
9752 export COLLECT_NAMES
9758 # We use sed instead of cat because bash on DJGPP gets confused if
9759 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9760 # text mode, it properly converts lines to CR/LF. This bash problem
9761 # is reportedly fixed, but why not run on old versions too?
9762 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9764 mv -f "$cfgfile" "$ofile" || \
9765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9769 # If there is no Makefile yet, we rely on a make rule to execute
9770 # `config.status --recheck' to rerun these tests and create the
9771 # libtool script then.
9772 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9773 if test -f "$ltmain_in"; then
9774 test -f Makefile && make "$ltmain"
9780 ac_cpp='$CPP $CPPFLAGS'
9781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9788 # Check whether --with-tags or --without-tags was given.
9789 if test "${with_tags+set}" = set; then
9790 withval="$with_tags"
9794 if test -f "$ltmain" && test -n "$tagnames"; then
9795 if test ! -f "${ofile}"; then
9796 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9797 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9800 if test -z "$LTCC"; then
9801 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9802 if test -z "$LTCC"; then
9803 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9804 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9806 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9807 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9810 if test -z "$LTCFLAGS"; then
9811 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9814 # Extract list of available tagged configurations in $ofile.
9815 # Note that this assumes the entire list is on one line.
9816 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9819 for tagname in $tagnames; do
9821 # Check whether tagname contains only valid characters
9822 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9824 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9825 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9826 { (exit 1); exit 1; }; }
9830 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9832 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9833 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9834 { (exit 1); exit 1; }; }
9837 # Update the list of available tags.
9838 if test -n "$tagname"; then
9839 echo appending configuration tag \"$tagname\" to $ofile
9843 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9844 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9845 (test "X$CXX" != "Xg++"))) ; then
9847 ac_cpp='$CXXCPP $CPPFLAGS'
9848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9855 archive_cmds_need_lc_CXX=no
9856 allow_undefined_flag_CXX=
9857 always_export_symbols_CXX=no
9858 archive_expsym_cmds_CXX=
9859 export_dynamic_flag_spec_CXX=
9860 hardcode_direct_CXX=no
9861 hardcode_libdir_flag_spec_CXX=
9862 hardcode_libdir_flag_spec_ld_CXX=
9863 hardcode_libdir_separator_CXX=
9864 hardcode_minus_L_CXX=no
9865 hardcode_shlibpath_var_CXX=unsupported
9866 hardcode_automatic_CXX=no
9868 module_expsym_cmds_CXX=
9869 link_all_deplibs_CXX=unknown
9870 old_archive_cmds_CXX=$old_archive_cmds
9871 no_undefined_flag_CXX=
9872 whole_archive_flag_spec_CXX=
9873 enable_shared_with_static_runtimes_CXX=no
9875 # Dependencies to place before and after the object being linked:
9877 postdep_objects_CXX=
9880 compiler_lib_search_path_CXX=
9882 # Source file extension for C++ test sources.
9885 # Object file extension for compiled C++ test sources.
9889 # Code to be used in simple compile tests
9890 lt_simple_compile_test_code="int some_variable = 0;\n"
9892 # Code to be used in simple link tests
9893 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9897 # If no C compiler was specified, use CC.
9900 # If no C compiler flags were specified, use CFLAGS.
9901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9903 # Allow CC to be a program name with arguments.
9907 # save warnings/boilerplate of simple test code
9908 ac_outfile=conftest.$ac_objext
9909 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9911 _lt_compiler_boilerplate=`cat conftest.err`
9914 ac_outfile=conftest.$ac_objext
9915 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9917 _lt_linker_boilerplate=`cat conftest.err`
9921 # Allow CC to be a program name with arguments.
9926 lt_save_with_gnu_ld=$with_gnu_ld
9927 lt_save_path_LD=$lt_cv_path_LD
9928 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9929 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9931 $as_unset lt_cv_prog_gnu_ld
9933 if test -n "${lt_cv_path_LDCXX+set}"; then
9934 lt_cv_path_LD=$lt_cv_path_LDCXX
9936 $as_unset lt_cv_path_LD
9938 test -z "${LDCXX+set}" || LD=$LDCXX
9942 for cc_temp in $compiler""; do
9944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9953 # We don't want -fno-exception wen compiling C++ code, so set the
9954 # no_builtin_flag separately
9955 if test "$GXX" = yes; then
9956 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9958 lt_prog_compiler_no_builtin_flag_CXX=
9961 if test "$GXX" = yes; then
9962 # Set up default GNU C++ configuration
9965 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9966 if test "${with_gnu_ld+set}" = set; then
9967 withval="$with_gnu_ld"
9968 test "$withval" = no || with_gnu_ld=yes
9973 if test "$GCC" = yes; then
9974 # Check if gcc -print-prog-name=ld gives a path.
9975 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9976 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9979 # gcc leaves a trailing carriage return which upsets mingw
9980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9985 # Accept absolute paths.
9987 re_direlt='/[^/][^/]*/\.\./'
9988 # Canonicalize the pathname of ld
9989 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9990 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9991 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9993 test -z "$LD" && LD="$ac_prog"
9996 # If it fails, then pretend we aren't using GCC.
10000 # If it is relative, then search for the first ld in PATH.
10001 with_gnu_ld=unknown
10004 elif test "$with_gnu_ld" = yes; then
10005 echo "$as_me:$LINENO: checking for GNU ld" >&5
10006 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10008 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10009 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10011 if test "${lt_cv_path_LD+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 if test -z "$LD"; then
10015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10016 for ac_dir in $PATH; do
10018 test -z "$ac_dir" && ac_dir=.
10019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10020 lt_cv_path_LD="$ac_dir/$ac_prog"
10021 # Check to see if the program is GNU ld. I'd rather use --version,
10022 # but apparently some variants of GNU ld only accept -v.
10023 # Break only if it was the GNU/non-GNU ld that we prefer.
10024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10025 *GNU* | *'with BFD'*)
10026 test "$with_gnu_ld" != no && break
10029 test "$with_gnu_ld" != yes && break
10036 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10040 LD="$lt_cv_path_LD"
10041 if test -n "$LD"; then
10042 echo "$as_me:$LINENO: result: $LD" >&5
10043 echo "${ECHO_T}$LD" >&6
10045 echo "$as_me:$LINENO: result: no" >&5
10046 echo "${ECHO_T}no" >&6
10048 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10049 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10050 { (exit 1); exit 1; }; }
10051 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10052 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10053 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10057 case `$LD -v 2>&1 </dev/null` in
10058 *GNU* | *'with BFD'*)
10059 lt_cv_prog_gnu_ld=yes
10062 lt_cv_prog_gnu_ld=no
10066 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10067 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10068 with_gnu_ld=$lt_cv_prog_gnu_ld
10072 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10073 # archiving commands below assume that GNU ld is being used.
10074 if test "$with_gnu_ld" = yes; then
10075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 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'
10078 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10081 # If archive_cmds runs LD, not CC, wlarc should be empty
10082 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10083 # investigate it a little bit more. (MM)
10086 # ancient GNU ld didn't support --whole-archive et. al.
10087 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10088 grep 'no-whole-archive' > /dev/null; then
10089 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10091 whole_archive_flag_spec_CXX=
10097 # A generic and very simple default shared library creation
10098 # command for GNU C++ for the case where it uses the native
10099 # linker, instead of GNU ld. If possible, this setting should
10100 # overridden to take advantage of the native linker features on
10101 # the platform it is being used on.
10102 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10105 # Commands to make compiler produce verbose output that lists
10106 # what "hidden" libraries, object files and flags are used when
10107 # linking a shared library.
10108 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10116 # PORTME: fill in a description of your system's C++ link characteristics
10117 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10118 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10122 # FIXME: insert proper C++ library support
10126 if test "$host_cpu" = ia64; then
10127 # On IA64, the linker does run time linking by default, so we don't
10128 # have to do anything special.
10129 aix_use_runtimelinking=no
10130 exp_sym_flag='-Bexport'
10133 aix_use_runtimelinking=no
10135 # Test if we are trying to use run time linking or normal
10136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10137 # need to do runtime linking.
10138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10139 for ld_flag in $LDFLAGS; do
10142 aix_use_runtimelinking=yes
10150 exp_sym_flag='-bexport'
10151 no_entry_flag='-bnoentry'
10154 # When large executables or shared objects are built, AIX ld can
10155 # have problems creating the table of contents. If linking a library
10156 # or program results in "error TOC overflow" add -mminimal-toc to
10157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10160 archive_cmds_CXX=''
10161 hardcode_direct_CXX=yes
10162 hardcode_libdir_separator_CXX=':'
10163 link_all_deplibs_CXX=yes
10165 if test "$GXX" = yes; then
10166 case $host_os in aix4.[012]|aix4.[012].*)
10167 # We only want to do this on AIX 4.2 and lower, the check
10168 # below for broken collect2 doesn't work under 4.3+
10169 collect2name=`${CC} -print-prog-name=collect2`
10170 if test -f "$collect2name" && \
10171 strings "$collect2name" | grep resolve_lib_name >/dev/null
10173 # We have reworked collect2
10174 hardcode_direct_CXX=yes
10176 # We have old collect2
10177 hardcode_direct_CXX=unsupported
10178 # It fails to find uninstalled libraries when the uninstalled
10179 # path is not listed in the libpath. Setting hardcode_minus_L
10180 # to unsupported forces relinking
10181 hardcode_minus_L_CXX=yes
10182 hardcode_libdir_flag_spec_CXX='-L$libdir'
10183 hardcode_libdir_separator_CXX=
10187 shared_flag='-shared'
10188 if test "$aix_use_runtimelinking" = yes; then
10189 shared_flag="$shared_flag "'${wl}-G'
10193 if test "$host_cpu" = ia64; then
10194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10195 # chokes on -Wl,-G. The following line is correct:
10198 if test "$aix_use_runtimelinking" = yes; then
10199 shared_flag='${wl}-G'
10201 shared_flag='${wl}-bM:SRE'
10206 # It seems that -bexpall does not export symbols beginning with
10207 # underscore (_), so it is better to generate a list of symbols to export.
10208 always_export_symbols_CXX=yes
10209 if test "$aix_use_runtimelinking" = yes; then
10210 # Warning - without using the other runtime loading flags (-brtl),
10211 # -berok will link without error, but may produce a broken library.
10212 allow_undefined_flag_CXX='-berok'
10213 # Determine the default libpath from the value encoded in an empty executable.
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>conftest.er1
10233 grep -v '^ *+' conftest.er1 >conftest.err
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10253 # Check for a 64-bit object if we didn't find anything.
10254 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; }
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10261 rm -f conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10265 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10267 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10269 if test "$host_cpu" = ia64; then
10270 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10271 allow_undefined_flag_CXX="-z nodefs"
10272 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10274 # Determine the default libpath from the value encoded in an empty executable.
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10292 (eval $ac_link) 2>conftest.er1
10294 grep -v '^ *+' conftest.er1 >conftest.err
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest$ac_exeext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10314 # Check for a 64-bit object if we didn't find anything.
10315 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; }
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10322 rm -f conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10326 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10327 # Warning - without using the other run time loading flags,
10328 # -berok will link without error, but may produce a broken library.
10329 no_undefined_flag_CXX=' ${wl}-bernotok'
10330 allow_undefined_flag_CXX=' ${wl}-berok'
10331 # Exported symbols can be pulled into shared objects from archives
10332 whole_archive_flag_spec_CXX='$convenience'
10333 archive_cmds_need_lc_CXX=yes
10334 # This is similar to how AIX traditionally builds its shared libraries.
10335 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10341 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10342 allow_undefined_flag_CXX=unsupported
10343 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10344 # support --undefined. This deserves some investigation. FIXME
10345 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352 case $cc_basename in
10354 # FIXME: insert proper C++ library support
10360 cygwin* | mingw* | pw32*)
10361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10362 # as there is no search path for DLLs.
10363 hardcode_libdir_flag_spec_CXX='-L$libdir'
10364 allow_undefined_flag_CXX=unsupported
10365 always_export_symbols_CXX=no
10366 enable_shared_with_static_runtimes_CXX=yes
10368 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10369 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10370 # If the export-symbols file already is a .def file (1st line
10371 # is EXPORTS), use it as is; otherwise, prepend...
10372 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10373 cp $export_symbols $output_objdir/$soname.def;
10375 echo EXPORTS > $output_objdir/$soname.def;
10376 cat $export_symbols >> $output_objdir/$soname.def;
10378 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10383 darwin* | rhapsody*)
10385 rhapsody* | darwin1.[012])
10386 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10389 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10390 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10392 case ${MACOSX_DEPLOYMENT_TARGET} in
10394 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10397 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10403 archive_cmds_need_lc_CXX=no
10404 hardcode_direct_CXX=no
10405 hardcode_automatic_CXX=yes
10406 hardcode_shlibpath_var_CXX=unsupported
10407 whole_archive_flag_spec_CXX=''
10408 link_all_deplibs_CXX=yes
10410 if test "$GXX" = yes ; then
10411 lt_int_apple_cc_single_mod=no
10412 output_verbose_link_cmd='echo'
10413 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10414 lt_int_apple_cc_single_mod=yes
10416 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10417 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10419 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10421 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10422 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10423 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10424 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}'
10426 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10428 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}'
10430 case $cc_basename in
10432 output_verbose_link_cmd='echo'
10433 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10434 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10436 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10437 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}'
10447 case $cc_basename in
10449 # FIXME: insert proper C++ library support
10453 # Green Hills C++ Compiler
10454 # FIXME: insert proper C++ library support
10458 # FIXME: insert proper C++ library support
10464 # C++ shared libraries reported to be fairly broken before switch to ELF
10468 archive_cmds_need_lc_CXX=no
10470 freebsd* | kfreebsd*-gnu | dragonfly*)
10471 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10479 hardcode_libdir_separator_CXX=:
10480 export_dynamic_flag_spec_CXX='${wl}-E'
10481 hardcode_direct_CXX=yes
10482 hardcode_minus_L_CXX=yes # Not in the search PATH,
10483 # but as the default
10484 # location of the library.
10486 case $cc_basename in
10488 # FIXME: insert proper C++ library support
10492 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'
10493 # Commands to make compiler produce verbose output that lists
10494 # what "hidden" libraries, object files and flags are used when
10495 # linking a shared library.
10497 # There doesn't appear to be a way to prevent this compiler from
10498 # explicitly linking system object files so we need to strip them
10499 # from the output so that they don't get included in the library
10501 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'
10504 if test "$GXX" = yes; then
10505 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'
10507 # FIXME: insert proper C++ library support
10514 if test $with_gnu_ld = no; then
10515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10516 hardcode_libdir_separator_CXX=:
10520 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10523 export_dynamic_flag_spec_CXX='${wl}-E'
10529 hardcode_direct_CXX=no
10530 hardcode_shlibpath_var_CXX=no
10533 hardcode_direct_CXX=yes
10534 hardcode_minus_L_CXX=yes # Not in the search PATH,
10535 # but as the default
10536 # location of the library.
10540 case $cc_basename in
10542 # FIXME: insert proper C++ library support
10548 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10551 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10554 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10557 # Commands to make compiler produce verbose output that lists
10558 # what "hidden" libraries, object files and flags are used when
10559 # linking a shared library.
10561 # There doesn't appear to be a way to prevent this compiler from
10562 # explicitly linking system object files so we need to strip them
10563 # from the output so that they don't get included in the library
10565 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'
10568 if test "$GXX" = yes; then
10569 if test $with_gnu_ld = no; then
10572 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10575 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10578 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'
10583 # FIXME: insert proper C++ library support
10590 hardcode_direct_CXX=no
10591 hardcode_shlibpath_var_CXX=no
10592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10593 export_dynamic_flag_spec_CXX='${wl}-E'
10594 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10595 # Instead, shared libraries are loaded at an image base (0x10000000 by
10596 # default) and relocated if they conflict, which is a slow very memory
10597 # consuming and fragmenting process. To avoid this, we pick a random,
10598 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10599 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10600 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10601 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10604 case $cc_basename in
10607 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10609 # Archives containing C++ object files must be created using
10610 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10611 # necessary to make sure instantiated templates are included
10613 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10616 if test "$GXX" = yes; then
10617 if test "$with_gnu_ld" = no; then
10618 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10620 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'
10623 link_all_deplibs_CXX=yes
10626 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10627 hardcode_libdir_separator_CXX=:
10630 case $cc_basename in
10632 # Kuck and Associates, Inc. (KAI) C++ Compiler
10634 # KCC will only create a shared library if the output file
10635 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10636 # to its proper name (with version) after linking.
10637 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'
10638 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'
10639 # Commands to make compiler produce verbose output that lists
10640 # what "hidden" libraries, object files and flags are used when
10641 # linking a shared library.
10643 # There doesn't appear to be a way to prevent this compiler from
10644 # explicitly linking system object files so we need to strip them
10645 # from the output so that they don't get included in the library
10647 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'
10649 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10652 # Archives containing C++ object files must be created using
10653 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10654 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10659 # version 8.0 and above of icpc choke on multiply defined symbols
10660 # if we add $predep_objects and $postdep_objects, however 7.1 and
10661 # earlier do not add the objects themselves.
10662 case `$CC -V 2>&1` in
10664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10665 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'
10667 *) # Version 8.0 or newer
10670 ia64*) tmp_idyn=' -i_dynamic';;
10672 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10676 archive_cmds_need_lc_CXX=no
10677 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10682 # Portland Group C++ compiler
10683 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10684 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10686 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10688 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693 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'
10695 runpath_var=LD_RUN_PATH
10696 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10697 hardcode_libdir_separator_CXX=:
10699 # Commands to make compiler produce verbose output that lists
10700 # what "hidden" libraries, object files and flags are used when
10701 # linking a shared library.
10703 # There doesn't appear to be a way to prevent this compiler from
10704 # explicitly linking system object files so we need to strip them
10705 # from the output so that they don't get included in the library
10707 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'
10712 # FIXME: insert proper C++ library support
10716 # FIXME: insert proper C++ library support
10720 case $cc_basename in
10722 # FIXME: insert proper C++ library support
10726 # FIXME: insert proper C++ library support
10731 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10733 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10735 hardcode_libdir_flag_spec_CXX='-R$libdir'
10736 hardcode_direct_CXX=yes
10737 hardcode_shlibpath_var_CXX=no
10739 # Workaround some broken pre-1.5 toolchains
10740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10743 # C++ shared libraries are fairly broken
10747 hardcode_direct_CXX=yes
10748 hardcode_shlibpath_var_CXX=no
10749 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10752 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10753 export_dynamic_flag_spec_CXX='${wl}-E'
10754 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10756 output_verbose_link_cmd='echo'
10759 case $cc_basename in
10761 # Kuck and Associates, Inc. (KAI) C++ Compiler
10763 # KCC will only create a shared library if the output file
10764 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10765 # to its proper name (with version) after linking.
10766 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'
10768 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769 hardcode_libdir_separator_CXX=:
10771 # Archives containing C++ object files must be created using
10772 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10773 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10777 # Rational C++ 2.4.1
10778 # FIXME: insert proper C++ library support
10782 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10783 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10785 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10786 hardcode_libdir_separator_CXX=:
10788 # Commands to make compiler produce verbose output that lists
10789 # what "hidden" libraries, object files and flags are used when
10790 # linking a shared library.
10792 # There doesn't appear to be a way to prevent this compiler from
10793 # explicitly linking system object files so we need to strip them
10794 # from the output so that they don't get included in the library
10796 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'
10799 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10800 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804 hardcode_libdir_separator_CXX=:
10806 # Commands to make compiler produce verbose output that lists
10807 # what "hidden" libraries, object files and flags are used when
10808 # linking a shared library.
10809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10812 # FIXME: insert proper C++ library support
10819 case $cc_basename in
10821 # Kuck and Associates, Inc. (KAI) C++ Compiler
10823 # KCC will only create a shared library if the output file
10824 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10825 # to its proper name (with version) after linking.
10826 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'
10828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10829 hardcode_libdir_separator_CXX=:
10831 # Archives containing C++ object files must be created using
10832 # the KAI C++ compiler.
10833 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10836 # Rational C++ 2.4.1
10837 # FIXME: insert proper C++ library support
10841 allow_undefined_flag_CXX=' -expect_unresolved \*'
10842 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10843 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10844 echo "-hidden">> $lib.exp~
10845 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10848 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10849 hardcode_libdir_separator_CXX=:
10851 # Commands to make compiler produce verbose output that lists
10852 # what "hidden" libraries, object files and flags are used when
10853 # linking a shared library.
10855 # There doesn't appear to be a way to prevent this compiler from
10856 # explicitly linking system object files so we need to strip them
10857 # from the output so that they don't get included in the library
10859 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'
10862 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10863 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10864 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10867 hardcode_libdir_separator_CXX=:
10869 # Commands to make compiler produce verbose output that lists
10870 # what "hidden" libraries, object files and flags are used when
10871 # linking a shared library.
10872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10875 # FIXME: insert proper C++ library support
10882 # FIXME: insert proper C++ library support
10886 case $cc_basename in
10889 # FIXME: insert proper C++ library support
10894 # FIXME: insert proper C++ library support
10898 # FIXME: insert proper C++ library support
10904 case $cc_basename in
10906 # Sun C++ 4.2, 5.x and Centerline C++
10907 archive_cmds_need_lc_CXX=yes
10908 no_undefined_flag_CXX=' -zdefs'
10909 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10910 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10911 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10913 hardcode_libdir_flag_spec_CXX='-R$libdir'
10914 hardcode_shlibpath_var_CXX=no
10916 solaris2.[0-5] | solaris2.[0-5].*) ;;
10918 # The C++ compiler is used as linker so we must use $wl
10919 # flag to pass the commands to the underlying system
10920 # linker. We must also pass each convience library through
10921 # to the system linker between allextract/defaultextract.
10922 # The C++ compiler will combine linker options so we
10923 # cannot just pass the convience library names through
10925 # Supported since Solaris 2.6 (maybe 2.5.1?)
10926 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10929 link_all_deplibs_CXX=yes
10931 output_verbose_link_cmd='echo'
10933 # Archives containing C++ object files must be created using
10934 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10935 # necessary to make sure instantiated templates are included
10937 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10940 # Green Hills C++ Compiler
10941 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10943 # The C++ compiler must be used to create the archive.
10944 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10947 # GNU C++ compiler with Solaris linker
10948 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10949 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10950 if $CC --version | grep -v '^2\.7' > /dev/null; then
10951 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10952 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10953 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10955 # Commands to make compiler produce verbose output that lists
10956 # what "hidden" libraries, object files and flags are used when
10957 # linking a shared library.
10958 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10960 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10962 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10963 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10964 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10966 # Commands to make compiler produce verbose output that lists
10967 # what "hidden" libraries, object files and flags are used when
10968 # linking a shared library.
10969 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10972 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10978 no_undefined_flag_CXX='${wl}-z,text'
10979 archive_cmds_need_lc_CXX=no
10980 hardcode_shlibpath_var_CXX=no
10981 runpath_var='LD_RUN_PATH'
10983 case $cc_basename in
10985 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 sysv5* | sco3.2v5* | sco5v6*)
10995 # Note: We can NOT use -z defs as we might desire, because we do not
10996 # link with -lc, and that would cause any symbols used from libc to
10997 # always be unresolved, which means just about no library would
10998 # ever link correctly. If we're not using GNU ld we use -z text
10999 # though, which does catch some bad symbols but isn't as heavy-handed
11001 # For security reasons, it is highly recommended that you always
11002 # use absolute paths for naming shared libraries, and exclude the
11003 # DT_RUNPATH tag from executables and libraries. But doing so
11004 # requires that you compile everything twice, which is a pain.
11005 # So that behaviour is only enabled if SCOABSPATH is set to a
11006 # non-empty value in the environment. Most likely only useful for
11007 # creating official distributions of packages.
11008 # This is a hack until libtool officially supports absolute path
11009 # names for shared libraries.
11010 no_undefined_flag_CXX='${wl}-z,text'
11011 allow_undefined_flag_CXX='${wl}-z,nodefs'
11012 archive_cmds_need_lc_CXX=no
11013 hardcode_shlibpath_var_CXX=no
11014 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11015 hardcode_libdir_separator_CXX=':'
11016 link_all_deplibs_CXX=yes
11017 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11018 runpath_var='LD_RUN_PATH'
11020 case $cc_basename in
11022 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 case $cc_basename in
11034 # NonStop-UX NCC 3.20
11035 # FIXME: insert proper C++ library support
11039 # FIXME: insert proper C++ library support
11045 # FIXME: insert proper C++ library support
11049 # FIXME: insert proper C++ library support
11053 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11054 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11055 test "$ld_shlibs_CXX" = no && can_build_shared=no
11061 cat > conftest.$ac_ext <<EOF
11065 Foo (void) { a = 0; }
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; then
11076 # Parse the compiler output and extract the necessary
11077 # objects, libraries and library flags.
11079 # Sentinel used to keep track of whether or not we are before
11080 # the conftest object file.
11081 pre_test_object_deps_done=no
11083 # The `*' in the case matches for architectures that use `case' in
11084 # $output_verbose_cmd can trigger glob expansion during the loop
11085 # eval without this substitution.
11086 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11088 for p in `eval $output_verbose_link_cmd`; do
11092 # Some compilers place space between "-{L,R}" and the path.
11093 # Remove the space.
11094 if test $p = "-L" \
11095 || test $p = "-R"; then
11102 if test "$pre_test_object_deps_done" = no; then
11105 # Internal compiler library paths should come after those
11106 # provided the user. The postdeps already come after the
11107 # user supplied libs so there is no need to process them.
11108 if test -z "$compiler_lib_search_path_CXX"; then
11109 compiler_lib_search_path_CXX="${prev}${p}"
11111 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11114 # The "-l" case would never come before the object being
11115 # linked, so don't bother handling this case.
11118 if test -z "$postdeps_CXX"; then
11119 postdeps_CXX="${prev}${p}"
11121 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11127 # This assumes that the test object file only shows up
11128 # once in the compiler output.
11129 if test "$p" = "conftest.$objext"; then
11130 pre_test_object_deps_done=yes
11134 if test "$pre_test_object_deps_done" = no; then
11135 if test -z "$predep_objects_CXX"; then
11136 predep_objects_CXX="$p"
11138 predep_objects_CXX="$predep_objects_CXX $p"
11141 if test -z "$postdep_objects_CXX"; then
11142 postdep_objects_CXX="$p"
11144 postdep_objects_CXX="$postdep_objects_CXX $p"
11149 *) ;; # Ignore the rest.
11157 echo "libtool.m4: error: problem compiling CXX test program"
11160 $rm -f confest.$objext
11162 # PORTME: override above test on systems where it is broken
11165 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11166 # hack all around it, let's just trust "g++" to DTRT.
11167 predep_objects_CXX=
11168 postdep_objects_CXX=
11173 case $cc_basename in
11175 # Adding this requires a known-good setup of shared libraries for
11176 # Sun compiler versions before 5.6, else PIC objects from an old
11177 # archive will be linked into the output, leading to subtle bugs.
11178 postdeps_CXX='-lCstd -lCrun'
11185 case " $postdeps_CXX " in
11186 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11189 lt_prog_compiler_wl_CXX=
11190 lt_prog_compiler_pic_CXX=
11191 lt_prog_compiler_static_CXX=
11193 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11194 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11196 # C++ specific cases for pic, static, wl, etc.
11197 if test "$GXX" = yes; then
11198 lt_prog_compiler_wl_CXX='-Wl,'
11199 lt_prog_compiler_static_CXX='-static'
11203 # All AIX code is PIC.
11204 if test "$host_cpu" = ia64; then
11205 # AIX 5 now supports IA64 processor
11206 lt_prog_compiler_static_CXX='-Bstatic'
11210 # FIXME: we need at least 68020 code to build shared libraries, but
11211 # adding the `-m68020' flag to GCC prevents building anything better,
11213 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11215 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11216 # PIC is the default for these OSes.
11218 mingw* | os2* | pw32*)
11219 # This hack is so that the source file can tell whether it is being
11220 # built for inclusion in a dll (and should export symbols for example).
11221 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11223 darwin* | rhapsody*)
11224 # PIC is the default on this platform
11225 # Common symbols not allowed in MH_DYLIB files
11226 lt_prog_compiler_pic_CXX='-fno-common'
11229 # DJGPP does not support shared libraries at all
11230 lt_prog_compiler_pic_CXX=
11233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11234 # Instead, we relocate shared libraries at runtime.
11237 if test -d /usr/nec; then
11238 lt_prog_compiler_pic_CXX=-Kconform_pic
11242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11243 # not for PA HP-UX.
11248 lt_prog_compiler_pic_CXX='-fPIC'
11253 lt_prog_compiler_pic_CXX='-fPIC'
11259 # All AIX code is PIC.
11260 if test "$host_cpu" = ia64; then
11261 # AIX 5 now supports IA64 processor
11262 lt_prog_compiler_static_CXX='-Bstatic'
11264 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11268 case $cc_basename in
11270 # Green Hills C++ Compiler
11271 # _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"
11276 # PIC is the default on this platform
11277 # Common symbols not allowed in MH_DYLIB files
11278 case $cc_basename in
11280 lt_prog_compiler_pic_CXX='-qnocommon'
11281 lt_prog_compiler_wl_CXX='-Wl,'
11286 case $cc_basename in
11288 lt_prog_compiler_pic_CXX='-KPIC'
11291 # Green Hills C++ Compiler
11292 lt_prog_compiler_pic_CXX='-pic'
11298 freebsd* | kfreebsd*-gnu | dragonfly*)
11299 # FreeBSD uses GNU C++
11301 hpux9* | hpux10* | hpux11*)
11302 case $cc_basename in
11304 lt_prog_compiler_wl_CXX='-Wl,'
11305 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11306 if test "$host_cpu" != ia64; then
11307 lt_prog_compiler_pic_CXX='+Z'
11311 lt_prog_compiler_wl_CXX='-Wl,'
11312 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11318 lt_prog_compiler_pic_CXX='+Z'
11327 # This is c89, which is MS Visual C++ (no shared libs)
11328 # Anyone wants to do a port?
11330 irix5* | irix6* | nonstopux*)
11331 case $cc_basename in
11333 lt_prog_compiler_wl_CXX='-Wl,'
11334 lt_prog_compiler_static_CXX='-non_shared'
11335 # CC pic flag -KPIC is the default.
11342 case $cc_basename in
11345 lt_prog_compiler_wl_CXX='--backend -Wl,'
11346 lt_prog_compiler_pic_CXX='-fPIC'
11350 lt_prog_compiler_wl_CXX='-Wl,'
11351 lt_prog_compiler_pic_CXX='-KPIC'
11352 lt_prog_compiler_static_CXX='-static'
11355 # Portland Group C++ compiler.
11356 lt_prog_compiler_wl_CXX='-Wl,'
11357 lt_prog_compiler_pic_CXX='-fpic'
11358 lt_prog_compiler_static_CXX='-Bstatic'
11362 # Make sure the PIC flag is empty. It appears that all Alpha
11363 # Linux and Compaq Tru64 Unix objects are PIC.
11364 lt_prog_compiler_pic_CXX=
11365 lt_prog_compiler_static_CXX='-non_shared'
11376 case $cc_basename in
11378 lt_prog_compiler_pic_CXX='-W c,exportall'
11384 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11386 osf3* | osf4* | osf5*)
11387 case $cc_basename in
11389 lt_prog_compiler_wl_CXX='--backend -Wl,'
11392 # Rational C++ 2.4.1
11393 lt_prog_compiler_pic_CXX='-pic'
11396 # Digital/Compaq C++
11397 lt_prog_compiler_wl_CXX='-Wl,'
11398 # Make sure the PIC flag is empty. It appears that all Alpha
11399 # Linux and Compaq Tru64 Unix objects are PIC.
11400 lt_prog_compiler_pic_CXX=
11401 lt_prog_compiler_static_CXX='-non_shared'
11410 case $cc_basename in
11412 # Sun C++ 4.2, 5.x and Centerline C++
11413 lt_prog_compiler_pic_CXX='-KPIC'
11414 lt_prog_compiler_static_CXX='-Bstatic'
11415 lt_prog_compiler_wl_CXX='-Qoption ld '
11418 # Green Hills C++ Compiler
11419 lt_prog_compiler_pic_CXX='-PIC'
11426 case $cc_basename in
11429 lt_prog_compiler_pic_CXX='-pic'
11430 lt_prog_compiler_static_CXX='-Bstatic'
11434 lt_prog_compiler_pic_CXX='-pic'
11441 case $cc_basename in
11443 # NonStop-UX NCC 3.20
11444 lt_prog_compiler_pic_CXX='-KPIC'
11450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11451 case $cc_basename in
11453 lt_prog_compiler_wl_CXX='-Wl,'
11454 lt_prog_compiler_pic_CXX='-KPIC'
11455 lt_prog_compiler_static_CXX='-Bstatic'
11462 lt_prog_compiler_can_build_shared_CXX=no
11467 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11468 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11471 # Check to make sure the PIC flag actually works.
11473 if test -n "$lt_prog_compiler_pic_CXX"; then
11475 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11476 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11477 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 lt_prog_compiler_pic_works_CXX=no
11481 ac_outfile=conftest.$ac_objext
11482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11483 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11484 # Insert the option either (1) after the last *FLAGS variable, or
11485 # (2) before a word containing "conftest.", or (3) at the end.
11486 # Note that $ac_compile itself does not contain backslashes and begins
11487 # with a dollar sign (not a hyphen), so the echo should work correctly.
11488 # The option is referenced via a variable to avoid confusing sed.
11489 lt_compile=`echo "$ac_compile" | $SED \
11490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11492 -e 's:$: $lt_compiler_flag:'`
11493 (eval echo "\"\$as_me:11493: $lt_compile\"" >&5)
11494 (eval "$lt_compile" 2>conftest.err)
11496 cat conftest.err >&5
11497 echo "$as_me:11497: \$? = $ac_status" >&5
11498 if (exit $ac_status) && test -s "$ac_outfile"; then
11499 # The compiler can only warn and ignore the option if not recognized
11500 # So say no if there are warnings other than the usual output.
11501 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11504 lt_prog_compiler_pic_works_CXX=yes
11510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11511 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11513 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11514 case $lt_prog_compiler_pic_CXX in
11516 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11519 lt_prog_compiler_pic_CXX=
11520 lt_prog_compiler_can_build_shared_CXX=no
11525 # For platforms which do not support PIC, -DPIC is meaningless:
11527 lt_prog_compiler_pic_CXX=
11530 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11535 # Check to make sure the static flag actually works.
11537 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11538 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11539 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11540 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 lt_prog_compiler_static_works_CXX=no
11544 save_LDFLAGS="$LDFLAGS"
11545 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11546 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11548 # The linker can only warn and ignore the option if not recognized
11549 # So say no if there are warnings
11550 if test -s conftest.err; then
11551 # Append any errors to the config.log.
11552 cat conftest.err 1>&5
11553 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11555 if diff conftest.exp conftest.er2 >/dev/null; then
11556 lt_prog_compiler_static_works_CXX=yes
11559 lt_prog_compiler_static_works_CXX=yes
11563 LDFLAGS="$save_LDFLAGS"
11566 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11567 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11569 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11572 lt_prog_compiler_static_CXX=
11576 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11577 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11578 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 lt_cv_prog_compiler_c_o_CXX=no
11582 $rm -r conftest 2>/dev/null
11586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11588 lt_compiler_flag="-o out/conftest2.$ac_objext"
11589 # Insert the option either (1) after the last *FLAGS variable, or
11590 # (2) before a word containing "conftest.", or (3) at the end.
11591 # Note that $ac_compile itself does not contain backslashes and begins
11592 # with a dollar sign (not a hyphen), so the echo should work correctly.
11593 lt_compile=`echo "$ac_compile" | $SED \
11594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11596 -e 's:$: $lt_compiler_flag:'`
11597 (eval echo "\"\$as_me:11597: $lt_compile\"" >&5)
11598 (eval "$lt_compile" 2>out/conftest.err)
11600 cat out/conftest.err >&5
11601 echo "$as_me:11601: \$? = $ac_status" >&5
11602 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11604 # The compiler can only warn and ignore the option if not recognized
11605 # So say no if there are warnings
11606 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11609 lt_cv_prog_compiler_c_o_CXX=yes
11614 # SGI C++ compiler will create directory out/ii_files/ for
11615 # template instantiation
11616 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11617 $rm out/* && rmdir out
11623 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11624 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11627 hard_links="nottested"
11628 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11629 # do not overwrite the value of need_locks provided by the user
11630 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11631 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11636 ln conftest.a conftest.b 2>&5 || hard_links=no
11637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11638 echo "$as_me:$LINENO: result: $hard_links" >&5
11639 echo "${ECHO_T}$hard_links" >&6
11640 if test "$hard_links" = no; then
11641 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11642 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11649 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11650 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11655 # If we're using GNU nm, then we don't want the "-C" option.
11656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11657 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11658 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'
11660 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'
11664 export_symbols_cmds_CXX="$ltdll_cmds"
11667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11670 link_all_deplibs_CXX=no
11673 link_all_deplibs_CXX=no
11676 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11680 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11681 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11682 test "$ld_shlibs_CXX" = no && can_build_shared=no
11685 # Do we need to explicitly link libc?
11687 case "x$archive_cmds_need_lc_CXX" in
11689 # Assume -lc should be added
11690 archive_cmds_need_lc_CXX=yes
11692 if test "$enable_shared" = yes && test "$GCC" = yes; then
11693 case $archive_cmds_CXX in
11695 # FIXME: we may have to deal with multi-command sequences.
11698 # Test whether the compiler implicitly links with -lc since on some
11699 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11700 # to ld, don't add -lc before -lgcc.
11701 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11702 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707 (eval $ac_compile) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } 2>conftest.err; then
11713 libobjs=conftest.$ac_objext
11715 wl=$lt_prog_compiler_wl_CXX
11716 pic_flag=$lt_prog_compiler_pic_CXX
11722 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11723 allow_undefined_flag_CXX=
11724 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11725 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }
11730 archive_cmds_need_lc_CXX=no
11732 archive_cmds_need_lc_CXX=yes
11734 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11736 cat conftest.err 1>&5
11739 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11740 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11747 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11748 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11749 library_names_spec=
11750 libname_spec='lib$name'
11754 postuninstall_cmds=
11758 shlibpath_overrides_runpath=unknown
11760 dynamic_linker="$host_os ld.so"
11761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11762 if test "$GCC" = yes; then
11763 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11764 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11765 # if the path contains ";" then we assume it to be the separator
11766 # otherwise default to the standard path separator (i.e. ":") - it is
11767 # assumed that no part of a normal pathname contains ";" but that should
11768 # okay in the real world where ";" in dirpaths is itself problematic.
11769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11776 need_lib_prefix=unknown
11777 hardcode_into_libs=no
11779 # when you set need_version to no, make sure it does not cause -set_version
11780 # flags to be left without arguments
11781 need_version=unknown
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11787 shlibpath_var=LIBPATH
11789 # AIX 3 has no versioning support, so we append a major version to the name.
11790 soname_spec='${libname}${release}${shared_ext}$major'
11797 hardcode_into_libs=yes
11798 if test "$host_cpu" = ia64; then
11799 # AIX 5 supports IA64
11800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11801 shlibpath_var=LD_LIBRARY_PATH
11803 # With GCC up to 2.95.x, collect2 would create an import file
11804 # for dependence libraries. The import file would start with
11805 # the line `#! .'. This would cause the generated library to
11806 # depend on `.', always an invalid library. This was fixed in
11807 # development snapshots of GCC prior to 3.0.
11809 aix4 | aix4.[01] | aix4.[01].*)
11810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11812 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11815 can_build_shared=no
11819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11820 # soname into executable. Probably we can add versioning support to
11821 # collect2, so additional links can be useful in future.
11822 if test "$aix_use_runtimelinking" = yes; then
11823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11824 # instead of lib<name>.a to let people know that these are not
11825 # typical AIX shared libraries.
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828 # We preserve .a as extension for shared libraries through AIX4.2
11829 # and later when we are not doing run time linking.
11830 library_names_spec='${libname}${release}.a $libname.a'
11831 soname_spec='${libname}${release}${shared_ext}$major'
11833 shlibpath_var=LIBPATH
11838 library_names_spec='$libname.ixlibrary $libname.a'
11839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11840 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'
11844 library_names_spec='${libname}${shared_ext}'
11845 dynamic_linker="$host_os ld.so"
11846 shlibpath_var=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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11855 shlibpath_var=LD_LIBRARY_PATH
11856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11858 # the default ld.so.conf also contains /usr/contrib/lib and
11859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11860 # libtool to hard-code these into programs
11863 cygwin* | mingw* | pw32*)
11864 version_type=windows
11869 case $GCC,$host_os in
11870 yes,cygwin* | yes,mingw* | yes,pw32*)
11871 library_names_spec='$libname.dll.a'
11872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11873 postinstall_cmds='base_file=`basename \${file}`~
11874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11875 dldir=$destdir/`dirname \$dlpath`~
11876 test -d \$dldir || mkdir -p \$dldir~
11877 $install_prog $dir/$dlname \$dldir/$dlname~
11878 chmod a+x \$dldir/$dlname'
11879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11880 dlpath=$dir/\$dldll~
11882 shlibpath_overrides_runpath=yes
11886 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11891 # MinGW DLLs use traditional 'lib' prefix
11892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11894 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11895 # It is most probably a Windows format PATH printed by
11896 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11897 # path with ; separators, and with drive letters. We can handle the
11898 # drive letters (cygwin fileutils understands them), so leave them,
11899 # especially as we might pass files found there to a mingw objdump,
11900 # which wouldn't understand a cygwinified path. Ahh.
11901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11907 # pw32 DLLs use 'pw' prefix rather than 'lib'
11908 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11917 dynamic_linker='Win32 ld.exe'
11918 # FIXME: first we should search . and the directory the executable is in
11922 darwin* | rhapsody*)
11923 dynamic_linker="$host_os dyld"
11924 version_type=darwin
11927 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11928 soname_spec='${libname}${release}${major}$shared_ext'
11929 shlibpath_overrides_runpath=yes
11930 shlibpath_var=DYLD_LIBRARY_PATH
11931 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11932 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11933 if test "$GCC" = yes; then
11934 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"`
11936 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11938 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 shlibpath_var=LD_LIBRARY_PATH
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11959 soname_spec='${libname}${release}${shared_ext}$major'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 shlibpath_overrides_runpath=no
11962 hardcode_into_libs=yes
11963 dynamic_linker='GNU ld.so'
11966 freebsd* | dragonfly*)
11967 # DragonFly does not have aout. When/if they implement a new
11968 # versioning mechanism, adjust this.
11969 if test -x /usr/bin/objformat; then
11970 objformat=`/usr/bin/objformat`
11973 freebsd[123]*) objformat=aout ;;
11974 *) objformat=elf ;;
11977 version_type=freebsd-$objformat
11978 case $version_type in
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11989 shlibpath_var=LD_LIBRARY_PATH
11992 shlibpath_overrides_runpath=yes
11994 freebsd3.[01]* | freebsdelf3.[01]*)
11995 shlibpath_overrides_runpath=yes
11996 hardcode_into_libs=yes
11998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12000 shlibpath_overrides_runpath=no
12001 hardcode_into_libs=yes
12003 freebsd*) # from 4.6 on
12004 shlibpath_overrides_runpath=yes
12005 hardcode_into_libs=yes
12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12015 soname_spec='${libname}${release}${shared_ext}$major'
12016 shlibpath_var=LD_LIBRARY_PATH
12017 hardcode_into_libs=yes
12020 hpux9* | hpux10* | hpux11*)
12021 # Give a soname corresponding to the major version so that dld.sl refuses to
12022 # link against other versions.
12029 hardcode_into_libs=yes
12030 dynamic_linker="$host_os dld.so"
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034 soname_spec='${libname}${release}${shared_ext}$major'
12035 if test "X$HPUX_IA64_MODE" = X32; then
12036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12044 hardcode_into_libs=yes
12045 dynamic_linker="$host_os dld.sl"
12046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049 soname_spec='${libname}${release}${shared_ext}$major'
12050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12055 dynamic_linker="$host_os dld.sl"
12056 shlibpath_var=SHLIB_PATH
12057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059 soname_spec='${libname}${release}${shared_ext}$major'
12062 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12063 postinstall_cmds='chmod 555 $lib'
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12071 soname_spec='${libname}${release}${shared_ext}$major'
12072 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 shlibpath_overrides_runpath=no
12075 hardcode_into_libs=yes
12078 irix5* | irix6* | nonstopux*)
12080 nonstopux*) version_type=nonstopux ;;
12082 if test "$lt_cv_prog_gnu_ld" = yes; then
12090 soname_spec='${libname}${release}${shared_ext}$major'
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12093 irix5* | nonstopux*)
12094 libsuff= shlibsuff=
12097 case $LD in # libtool.m4 will add one of these switches to LD
12098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12099 libsuff= shlibsuff= libmagic=32-bit;;
12100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12101 libsuff=32 shlibsuff=N32 libmagic=N32;;
12102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12104 *) libsuff= shlibsuff= libmagic=never-match;;
12108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12109 shlibpath_overrides_runpath=no
12110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12112 hardcode_into_libs=yes
12115 # No shared lib support for Linux oldld, aout, or coff.
12116 linux*oldld* | linux*aout* | linux*coff*)
12120 # This must be Linux ELF.
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126 soname_spec='${libname}${release}${shared_ext}$major'
12127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12128 shlibpath_var=LD_LIBRARY_PATH
12129 shlibpath_overrides_runpath=no
12130 # This implies no fast_install, which is unacceptable.
12131 # Some rework will be needed to allow for fast_install
12132 # before this can be enabled.
12133 hardcode_into_libs=yes
12135 # Append ld.so.conf contents to the search path
12136 if test -f /etc/ld.so.conf; then
12137 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12141 # We used to test for /lib/ld.so.1 and disable shared libraries on
12142 # powerpc, because MkLinux only supported shared libraries with the
12143 # GNU dynamic linker. Since this was broken with cross compilers,
12144 # most powerpc-linux boxes support dynamic linking these days and
12145 # people can always --disable-shared, the test was removed, and we
12146 # assume the GNU/Linux dynamic linker is in use.
12147 dynamic_linker='GNU/Linux ld.so'
12154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12155 soname_spec='${libname}${release}${shared_ext}$major'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=no
12158 hardcode_into_libs=yes
12159 dynamic_linker='NetBSD ld.elf_so'
12166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12167 soname_spec='${libname}${release}${shared_ext}$major'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 shlibpath_overrides_runpath=no
12170 hardcode_into_libs=yes
12171 dynamic_linker='GNU ld.so'
12178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12181 dynamic_linker='NetBSD (a.out) ld.so'
12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12184 soname_spec='${libname}${release}${shared_ext}$major'
12185 dynamic_linker='NetBSD ld.elf_so'
12187 shlibpath_var=LD_LIBRARY_PATH
12188 shlibpath_overrides_runpath=yes
12189 hardcode_into_libs=yes
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 shlibpath_var=LD_LIBRARY_PATH
12196 shlibpath_overrides_runpath=yes
12203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204 soname_spec='${libname}${release}${shared_ext}$major'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=yes
12211 sys_lib_dlsearch_path_spec="/usr/lib"
12213 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12215 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12216 *) need_version=no ;;
12218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12220 shlibpath_var=LD_LIBRARY_PATH
12221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12223 openbsd2.[89] | openbsd2.[89].*)
12224 shlibpath_overrides_runpath=no
12227 shlibpath_overrides_runpath=yes
12231 shlibpath_overrides_runpath=yes
12236 libname_spec='$name'
12239 library_names_spec='$libname${shared_ext} $libname.a'
12240 dynamic_linker='OS/2 ld.exe'
12241 shlibpath_var=LIBPATH
12244 osf3* | osf4* | osf5*)
12248 soname_spec='${libname}${release}${shared_ext}$major'
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250 shlibpath_var=LD_LIBRARY_PATH
12251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12252 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260 soname_spec='${libname}${release}${shared_ext}$major'
12261 shlibpath_var=LD_LIBRARY_PATH
12262 shlibpath_overrides_runpath=yes
12263 hardcode_into_libs=yes
12264 # ldd complains unless libraries are executable
12265 postinstall_cmds='chmod +x $lib'
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 shlibpath_overrides_runpath=yes
12274 if test "$with_gnu_ld" = yes; then
12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283 soname_spec='${libname}${release}${shared_ext}$major'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 case $host_vendor in
12287 shlibpath_overrides_runpath=no
12289 export_dynamic_flag_spec='${wl}-Blargedynsym'
12290 runpath_var=LD_RUN_PATH
12298 shlibpath_overrides_runpath=no
12299 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12305 if test -d /usr/nec ;then
12307 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12308 soname_spec='$libname${shared_ext}.$major'
12309 shlibpath_var=LD_LIBRARY_PATH
12313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12314 version_type=freebsd-elf
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12318 soname_spec='${libname}${release}${shared_ext}$major'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 hardcode_into_libs=yes
12321 if test "$with_gnu_ld" = yes; then
12322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12323 shlibpath_overrides_runpath=no
12325 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12326 shlibpath_overrides_runpath=yes
12329 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12333 sys_lib_dlsearch_path_spec='/usr/lib'
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12347 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12348 echo "${ECHO_T}$dynamic_linker" >&6
12349 test "$dynamic_linker" = no && can_build_shared=no
12351 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12352 if test "$GCC" = yes; then
12353 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12356 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12357 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12358 hardcode_action_CXX=
12359 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12360 test -n "$runpath_var_CXX" || \
12361 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12363 # We can hardcode non-existant directories.
12364 if test "$hardcode_direct_CXX" != no &&
12365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12366 # have to relink, otherwise we might link with an installed library
12367 # when we should be linking with a yet-to-be-installed one
12368 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12369 test "$hardcode_minus_L_CXX" != no; then
12370 # Linking always hardcodes the temporary library directory.
12371 hardcode_action_CXX=relink
12373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12374 hardcode_action_CXX=immediate
12377 # We cannot hardcode anything, or else we can only hardcode existing
12379 hardcode_action_CXX=unsupported
12381 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12382 echo "${ECHO_T}$hardcode_action_CXX" >&6
12384 if test "$hardcode_action_CXX" = relink; then
12385 # Fast installation is not supported
12386 enable_fast_install=no
12387 elif test "$shlibpath_overrides_runpath" = yes ||
12388 test "$enable_shared" = no; then
12389 # Fast installation is not necessary
12390 enable_fast_install=needless
12394 # The else clause should only fire when bootstrapping the
12395 # libtool distribution, otherwise you forgot to ship ltmain.sh
12396 # with your package, and you will get complaints that there are
12397 # no rules to generate ltmain.sh.
12398 if test -f "$ltmain"; then
12399 # See if we are running on zsh, and set the options which allow our commands through
12400 # without removal of \ escapes.
12401 if test -n "${ZSH_VERSION+set}" ; then
12402 setopt NO_GLOB_SUBST
12404 # Now quote all the things that may contain metacharacters while being
12405 # careful not to overquote the AC_SUBSTed values. We take copies of the
12406 # variables and quote the copies for generation of the libtool script.
12407 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12409 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12410 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12411 deplibs_check_method reload_flag reload_cmds need_locks \
12412 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12413 lt_cv_sys_global_symbol_to_c_name_address \
12414 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12415 old_postinstall_cmds old_postuninstall_cmds \
12419 lt_prog_compiler_wl_CXX \
12420 lt_prog_compiler_pic_CXX \
12421 lt_prog_compiler_static_CXX \
12422 lt_prog_compiler_no_builtin_flag_CXX \
12423 export_dynamic_flag_spec_CXX \
12424 thread_safe_flag_spec_CXX \
12425 whole_archive_flag_spec_CXX \
12426 enable_shared_with_static_runtimes_CXX \
12427 old_archive_cmds_CXX \
12428 old_archive_from_new_cmds_CXX \
12429 predep_objects_CXX \
12430 postdep_objects_CXX \
12433 compiler_lib_search_path_CXX \
12435 archive_expsym_cmds_CXX \
12436 postinstall_cmds_CXX \
12437 postuninstall_cmds_CXX \
12438 old_archive_from_expsyms_cmds_CXX \
12439 allow_undefined_flag_CXX \
12440 no_undefined_flag_CXX \
12441 export_symbols_cmds_CXX \
12442 hardcode_libdir_flag_spec_CXX \
12443 hardcode_libdir_flag_spec_ld_CXX \
12444 hardcode_libdir_separator_CXX \
12445 hardcode_automatic_CXX \
12447 module_expsym_cmds_CXX \
12448 lt_cv_prog_compiler_c_o_CXX \
12449 exclude_expsyms_CXX \
12450 include_expsyms_CXX; do
12453 old_archive_cmds_CXX | \
12454 old_archive_from_new_cmds_CXX | \
12455 archive_cmds_CXX | \
12456 archive_expsym_cmds_CXX | \
12457 module_cmds_CXX | \
12458 module_expsym_cmds_CXX | \
12459 old_archive_from_expsyms_cmds_CXX | \
12460 export_symbols_cmds_CXX | \
12461 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12462 postinstall_cmds | postuninstall_cmds | \
12463 old_postinstall_cmds | old_postuninstall_cmds | \
12464 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12465 # Double-quote double-evaled strings.
12466 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12475 *'\$0 --fallback-echo"')
12476 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12482 cat <<__EOF__ >> "$cfgfile"
12483 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12487 # Shell to use when invoking shell scripts.
12490 # Whether or not to build shared libraries.
12491 build_libtool_libs=$enable_shared
12493 # Whether or not to build static libraries.
12494 build_old_libs=$enable_static
12496 # Whether or not to add -lc for building shared libraries.
12497 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12499 # Whether or not to disallow shared libs when runtime libs are static
12500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12502 # Whether or not to optimize for fast installation.
12503 fast_install=$enable_fast_install
12506 host_alias=$host_alias
12510 # The build system.
12511 build_alias=$build_alias
12515 # An echo program that does not interpret backslashes.
12520 AR_FLAGS=$lt_AR_FLAGS
12525 # LTCC compiler flags.
12526 LTCFLAGS=$lt_LTCFLAGS
12528 # A language-specific compiler.
12529 CC=$lt_compiler_CXX
12531 # Is the compiler the GNU C compiler?
12537 # The linker used to build libraries.
12540 # Whether we need hard or soft links.
12543 # A BSD-compatible nm program.
12546 # A symbol stripping program
12549 # Used to examine libraries when file_magic_cmd begins "file"
12550 MAGIC_CMD=$MAGIC_CMD
12552 # Used on cygwin: DLL creation program.
12555 # Used on cygwin: object dumper.
12558 # Used on cygwin: assembler.
12561 # The name of the directory that contains temporary libtool files.
12564 # How to create reloadable object files.
12565 reload_flag=$lt_reload_flag
12566 reload_cmds=$lt_reload_cmds
12568 # How to pass a linker flag through the compiler.
12569 wl=$lt_lt_prog_compiler_wl_CXX
12571 # Object file suffix (normally "o").
12572 objext="$ac_objext"
12574 # Old archive suffix (normally "a").
12577 # Shared library suffix (normally ".so").
12578 shrext_cmds='$shrext_cmds'
12580 # Executable file suffix (normally "").
12583 # Additional compiler flags for building library objects.
12584 pic_flag=$lt_lt_prog_compiler_pic_CXX
12587 # What is the maximum length of a command?
12588 max_cmd_len=$lt_cv_sys_max_cmd_len
12590 # Does compiler simultaneously support -c and -o options?
12591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12593 # Must we lock files when doing compilation?
12594 need_locks=$lt_need_locks
12596 # Do we need the lib prefix for modules?
12597 need_lib_prefix=$need_lib_prefix
12599 # Do we need a version for libraries?
12600 need_version=$need_version
12602 # Whether dlopen is supported.
12603 dlopen_support=$enable_dlopen
12605 # Whether dlopen of programs is supported.
12606 dlopen_self=$enable_dlopen_self
12608 # Whether dlopen of statically linked programs is supported.
12609 dlopen_self_static=$enable_dlopen_self_static
12611 # Compiler flag to prevent dynamic linking.
12612 link_static_flag=$lt_lt_prog_compiler_static_CXX
12614 # Compiler flag to turn off builtin functions.
12615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12617 # Compiler flag to allow reflexive dlopens.
12618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12620 # Compiler flag to generate shared objects directly from archives.
12621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12623 # Compiler flag to generate thread-safe objects.
12624 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12626 # Library versioning type.
12627 version_type=$version_type
12629 # Format of library name prefix.
12630 libname_spec=$lt_libname_spec
12632 # List of archive names. First name is the real one, the rest are links.
12633 # The last name is the one that the linker finds with -lNAME.
12634 library_names_spec=$lt_library_names_spec
12636 # The coded name of the library, if different from the real name.
12637 soname_spec=$lt_soname_spec
12639 # Commands used to build and install an old-style archive.
12641 old_archive_cmds=$lt_old_archive_cmds_CXX
12642 old_postinstall_cmds=$lt_old_postinstall_cmds
12643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12645 # Create an old-style archive from a shared archive.
12646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12648 # Create a temporary old-style archive to link instead of a shared archive.
12649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12651 # Commands used to build and install a shared archive.
12652 archive_cmds=$lt_archive_cmds_CXX
12653 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12654 postinstall_cmds=$lt_postinstall_cmds
12655 postuninstall_cmds=$lt_postuninstall_cmds
12657 # Commands used to build a loadable module (assumed same as above if empty)
12658 module_cmds=$lt_module_cmds_CXX
12659 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12661 # Commands to strip libraries.
12662 old_striplib=$lt_old_striplib
12663 striplib=$lt_striplib
12665 # Dependencies to place before the objects being linked to create a
12667 predep_objects=$lt_predep_objects_CXX
12669 # Dependencies to place after the objects being linked to create a
12671 postdep_objects=$lt_postdep_objects_CXX
12673 # Dependencies to place before the objects being linked to create a
12675 predeps=$lt_predeps_CXX
12677 # Dependencies to place after the objects being linked to create a
12679 postdeps=$lt_postdeps_CXX
12681 # The library search path used internally by the compiler when linking
12682 # a shared library.
12683 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12685 # Method to check whether dependent libraries are shared objects.
12686 deplibs_check_method=$lt_deplibs_check_method
12688 # Command to use when deplibs_check_method == file_magic.
12689 file_magic_cmd=$lt_file_magic_cmd
12691 # Flag that allows shared libraries with undefined symbols to be built.
12692 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12694 # Flag that forces no undefined symbols.
12695 no_undefined_flag=$lt_no_undefined_flag_CXX
12697 # Commands used to finish a libtool library installation in a directory.
12698 finish_cmds=$lt_finish_cmds
12700 # Same as above, but a single script fragment to be evaled but not shown.
12701 finish_eval=$lt_finish_eval
12703 # Take the output of nm and produce a listing of raw symbols and C names.
12704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12706 # Transform the output of nm in a proper C declaration
12707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12709 # Transform the output of nm in a C name address pair
12710 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12712 # This is the shared library runtime path variable.
12713 runpath_var=$runpath_var
12715 # This is the shared library path variable.
12716 shlibpath_var=$shlibpath_var
12718 # Is shlibpath searched before the hard-coded library search path?
12719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12721 # How to hardcode a shared library path into an executable.
12722 hardcode_action=$hardcode_action_CXX
12724 # Whether we should hardcode library paths into libraries.
12725 hardcode_into_libs=$hardcode_into_libs
12727 # Flag to hardcode \$libdir into a binary during linking.
12728 # This must work even if \$libdir does not exist.
12729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12731 # If ld is used when linking, flag to hardcode \$libdir into
12732 # a binary during linking. This must work even if \$libdir does
12734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12736 # Whether we need a single -rpath flag with a separated argument.
12737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12739 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12740 # resulting binary.
12741 hardcode_direct=$hardcode_direct_CXX
12743 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12744 # resulting binary.
12745 hardcode_minus_L=$hardcode_minus_L_CXX
12747 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12748 # the resulting binary.
12749 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12751 # Set to yes if building a shared library automatically hardcodes DIR into the library
12752 # and all subsequent libraries and executables linked against it.
12753 hardcode_automatic=$hardcode_automatic_CXX
12755 # Variables whose values should be saved in libtool wrapper scripts and
12756 # restored at relink time.
12757 variables_saved_for_relink="$variables_saved_for_relink"
12759 # Whether libtool must link a program against all its dependency libraries.
12760 link_all_deplibs=$link_all_deplibs_CXX
12762 # Compile-time system search path for libraries
12763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12765 # Run-time system search path for libraries
12766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12768 # Fix the shell variable \$srcfile for the compiler.
12769 fix_srcfile_path="$fix_srcfile_path_CXX"
12771 # Set to yes if exported symbols are required.
12772 always_export_symbols=$always_export_symbols_CXX
12774 # The commands to list exported symbols.
12775 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12777 # The commands to extract the exported symbol list from a shared archive.
12778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12780 # Symbols that should not be listed in the preloaded symbols.
12781 exclude_expsyms=$lt_exclude_expsyms_CXX
12783 # Symbols that must always be exported.
12784 include_expsyms=$lt_include_expsyms_CXX
12786 # ### END LIBTOOL TAG CONFIG: $tagname
12792 # If there is no Makefile yet, we rely on a make rule to execute
12793 # `config.status --recheck' to rerun these tests and create the
12794 # libtool script then.
12795 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12796 if test -f "$ltmain_in"; then
12797 test -f Makefile && make "$ltmain"
12803 ac_cpp='$CPP $CPPFLAGS'
12804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12812 with_gnu_ldcxx=$with_gnu_ld
12813 with_gnu_ld=$lt_save_with_gnu_ld
12814 lt_cv_path_LDCXX=$lt_cv_path_LD
12815 lt_cv_path_LD=$lt_save_path_LD
12816 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12817 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12825 if test -n "$F77" && test "X$F77" != "Xno"; then
12828 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12829 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12833 archive_cmds_need_lc_F77=no
12834 allow_undefined_flag_F77=
12835 always_export_symbols_F77=no
12836 archive_expsym_cmds_F77=
12837 export_dynamic_flag_spec_F77=
12838 hardcode_direct_F77=no
12839 hardcode_libdir_flag_spec_F77=
12840 hardcode_libdir_flag_spec_ld_F77=
12841 hardcode_libdir_separator_F77=
12842 hardcode_minus_L_F77=no
12843 hardcode_automatic_F77=no
12845 module_expsym_cmds_F77=
12846 link_all_deplibs_F77=unknown
12847 old_archive_cmds_F77=$old_archive_cmds
12848 no_undefined_flag_F77=
12849 whole_archive_flag_spec_F77=
12850 enable_shared_with_static_runtimes_F77=no
12852 # Source file extension for f77 test sources.
12855 # Object file extension for compiled f77 test sources.
12859 # Code to be used in simple compile tests
12860 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12862 # Code to be used in simple link tests
12863 lt_simple_link_test_code=" program t\n end\n"
12865 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12867 # If no C compiler was specified, use CC.
12870 # If no C compiler flags were specified, use CFLAGS.
12871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12873 # Allow CC to be a program name with arguments.
12877 # save warnings/boilerplate of simple test code
12878 ac_outfile=conftest.$ac_objext
12879 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12881 _lt_compiler_boilerplate=`cat conftest.err`
12884 ac_outfile=conftest.$ac_objext
12885 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12887 _lt_linker_boilerplate=`cat conftest.err`
12891 # Allow CC to be a program name with arguments.
12896 for cc_temp in $compiler""; do
12898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12904 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12907 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12908 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12909 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12910 echo "${ECHO_T}$can_build_shared" >&6
12912 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12913 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12914 test "$can_build_shared" = "no" && enable_shared=no
12916 # On AIX, shared libraries and static libraries use the same namespace, and
12917 # are all built from PIC.
12920 test "$enable_shared" = yes && enable_static=no
12921 if test -n "$RANLIB"; then
12922 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12923 postinstall_cmds='$RANLIB $lib'
12927 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12928 test "$enable_shared" = yes && enable_static=no
12932 echo "$as_me:$LINENO: result: $enable_shared" >&5
12933 echo "${ECHO_T}$enable_shared" >&6
12935 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12936 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12937 # Make sure either enable_shared or enable_static is yes.
12938 test "$enable_shared" = yes || enable_static=yes
12939 echo "$as_me:$LINENO: result: $enable_static" >&5
12940 echo "${ECHO_T}$enable_static" >&6
12945 lt_prog_compiler_wl_F77=
12946 lt_prog_compiler_pic_F77=
12947 lt_prog_compiler_static_F77=
12949 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12950 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12952 if test "$GCC" = yes; then
12953 lt_prog_compiler_wl_F77='-Wl,'
12954 lt_prog_compiler_static_F77='-static'
12958 # All AIX code is PIC.
12959 if test "$host_cpu" = ia64; then
12960 # AIX 5 now supports IA64 processor
12961 lt_prog_compiler_static_F77='-Bstatic'
12966 # FIXME: we need at least 68020 code to build shared libraries, but
12967 # adding the `-m68020' flag to GCC prevents building anything better,
12969 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12972 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12973 # PIC is the default for these OSes.
12976 mingw* | pw32* | os2*)
12977 # This hack is so that the source file can tell whether it is being
12978 # built for inclusion in a dll (and should export symbols for example).
12979 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12982 darwin* | rhapsody*)
12983 # PIC is the default on this platform
12984 # Common symbols not allowed in MH_DYLIB files
12985 lt_prog_compiler_pic_F77='-fno-common'
12989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990 # Instead, we relocate shared libraries at runtime.
12994 # Just because we use GCC doesn't mean we suddenly get shared libraries
12995 # on systems that don't support them.
12996 lt_prog_compiler_can_build_shared_F77=no
13001 if test -d /usr/nec; then
13002 lt_prog_compiler_pic_F77=-Kconform_pic
13007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13008 # not for PA HP-UX.
13014 lt_prog_compiler_pic_F77='-fPIC'
13020 lt_prog_compiler_pic_F77='-fPIC'
13024 # PORTME Check for flag to pass linker flags through the system compiler.
13027 lt_prog_compiler_wl_F77='-Wl,'
13028 if test "$host_cpu" = ia64; then
13029 # AIX 5 now supports IA64 processor
13030 lt_prog_compiler_static_F77='-Bstatic'
13032 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13036 # PIC is the default on this platform
13037 # Common symbols not allowed in MH_DYLIB files
13038 case $cc_basename in
13040 lt_prog_compiler_pic_F77='-qnocommon'
13041 lt_prog_compiler_wl_F77='-Wl,'
13046 mingw* | pw32* | os2*)
13047 # This hack is so that the source file can tell whether it is being
13048 # built for inclusion in a dll (and should export symbols for example).
13049 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13052 hpux9* | hpux10* | hpux11*)
13053 lt_prog_compiler_wl_F77='-Wl,'
13054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055 # not for PA HP-UX.
13061 lt_prog_compiler_pic_F77='+Z'
13064 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13065 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13068 irix5* | irix6* | nonstopux*)
13069 lt_prog_compiler_wl_F77='-Wl,'
13070 # PIC (with -KPIC) is the default.
13071 lt_prog_compiler_static_F77='-non_shared'
13075 lt_prog_compiler_pic_F77='-KPIC'
13076 lt_prog_compiler_static_F77='-Bstatic'
13080 case $cc_basename in
13082 lt_prog_compiler_wl_F77='-Wl,'
13083 lt_prog_compiler_pic_F77='-KPIC'
13084 lt_prog_compiler_static_F77='-static'
13086 pgcc* | pgf77* | pgf90* | pgf95*)
13087 # Portland Group compilers (*not* the Pentium gcc compiler,
13088 # which looks to be a dead project)
13089 lt_prog_compiler_wl_F77='-Wl,'
13090 lt_prog_compiler_pic_F77='-fpic'
13091 lt_prog_compiler_static_F77='-Bstatic'
13094 lt_prog_compiler_wl_F77='-Wl,'
13095 # All Alpha code is PIC.
13096 lt_prog_compiler_static_F77='-non_shared'
13101 osf3* | osf4* | osf5*)
13102 lt_prog_compiler_wl_F77='-Wl,'
13103 # All OSF/1 code is PIC.
13104 lt_prog_compiler_static_F77='-non_shared'
13108 lt_prog_compiler_pic_F77='-KPIC'
13109 lt_prog_compiler_static_F77='-Bstatic'
13110 case $cc_basename in
13111 f77* | f90* | f95*)
13112 lt_prog_compiler_wl_F77='-Qoption ld ';;
13114 lt_prog_compiler_wl_F77='-Wl,';;
13119 lt_prog_compiler_wl_F77='-Qoption ld '
13120 lt_prog_compiler_pic_F77='-PIC'
13121 lt_prog_compiler_static_F77='-Bstatic'
13124 sysv4 | sysv4.2uw2* | sysv4.3*)
13125 lt_prog_compiler_wl_F77='-Wl,'
13126 lt_prog_compiler_pic_F77='-KPIC'
13127 lt_prog_compiler_static_F77='-Bstatic'
13131 if test -d /usr/nec ;then
13132 lt_prog_compiler_pic_F77='-Kconform_pic'
13133 lt_prog_compiler_static_F77='-Bstatic'
13137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13138 lt_prog_compiler_wl_F77='-Wl,'
13139 lt_prog_compiler_pic_F77='-KPIC'
13140 lt_prog_compiler_static_F77='-Bstatic'
13144 lt_prog_compiler_wl_F77='-Wl,'
13145 lt_prog_compiler_can_build_shared_F77=no
13149 lt_prog_compiler_pic_F77='-pic'
13150 lt_prog_compiler_static_F77='-Bstatic'
13154 lt_prog_compiler_can_build_shared_F77=no
13159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13160 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13163 # Check to make sure the PIC flag actually works.
13165 if test -n "$lt_prog_compiler_pic_F77"; then
13167 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13168 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13169 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 lt_prog_compiler_pic_works_F77=no
13173 ac_outfile=conftest.$ac_objext
13174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13175 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13176 # Insert the option either (1) after the last *FLAGS variable, or
13177 # (2) before a word containing "conftest.", or (3) at the end.
13178 # Note that $ac_compile itself does not contain backslashes and begins
13179 # with a dollar sign (not a hyphen), so the echo should work correctly.
13180 # The option is referenced via a variable to avoid confusing sed.
13181 lt_compile=`echo "$ac_compile" | $SED \
13182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13184 -e 's:$: $lt_compiler_flag:'`
13185 (eval echo "\"\$as_me:13185: $lt_compile\"" >&5)
13186 (eval "$lt_compile" 2>conftest.err)
13188 cat conftest.err >&5
13189 echo "$as_me:13189: \$? = $ac_status" >&5
13190 if (exit $ac_status) && test -s "$ac_outfile"; then
13191 # The compiler can only warn and ignore the option if not recognized
13192 # So say no if there are warnings other than the usual output.
13193 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13196 lt_prog_compiler_pic_works_F77=yes
13202 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13203 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13205 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13206 case $lt_prog_compiler_pic_F77 in
13208 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13211 lt_prog_compiler_pic_F77=
13212 lt_prog_compiler_can_build_shared_F77=no
13217 # For platforms which do not support PIC, -DPIC is meaningless:
13219 lt_prog_compiler_pic_F77=
13222 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13227 # Check to make sure the static flag actually works.
13229 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13230 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13231 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13232 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 lt_prog_compiler_static_works_F77=no
13236 save_LDFLAGS="$LDFLAGS"
13237 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13238 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13240 # The linker can only warn and ignore the option if not recognized
13241 # So say no if there are warnings
13242 if test -s conftest.err; then
13243 # Append any errors to the config.log.
13244 cat conftest.err 1>&5
13245 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247 if diff conftest.exp conftest.er2 >/dev/null; then
13248 lt_prog_compiler_static_works_F77=yes
13251 lt_prog_compiler_static_works_F77=yes
13255 LDFLAGS="$save_LDFLAGS"
13258 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13259 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13261 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13264 lt_prog_compiler_static_F77=
13268 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13269 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13270 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 lt_cv_prog_compiler_c_o_F77=no
13274 $rm -r conftest 2>/dev/null
13278 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13280 lt_compiler_flag="-o out/conftest2.$ac_objext"
13281 # Insert the option either (1) after the last *FLAGS variable, or
13282 # (2) before a word containing "conftest.", or (3) at the end.
13283 # Note that $ac_compile itself does not contain backslashes and begins
13284 # with a dollar sign (not a hyphen), so the echo should work correctly.
13285 lt_compile=`echo "$ac_compile" | $SED \
13286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13288 -e 's:$: $lt_compiler_flag:'`
13289 (eval echo "\"\$as_me:13289: $lt_compile\"" >&5)
13290 (eval "$lt_compile" 2>out/conftest.err)
13292 cat out/conftest.err >&5
13293 echo "$as_me:13293: \$? = $ac_status" >&5
13294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13296 # The compiler can only warn and ignore the option if not recognized
13297 # So say no if there are warnings
13298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13301 lt_cv_prog_compiler_c_o_F77=yes
13306 # SGI C++ compiler will create directory out/ii_files/ for
13307 # template instantiation
13308 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13309 $rm out/* && rmdir out
13315 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13316 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13319 hard_links="nottested"
13320 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13321 # do not overwrite the value of need_locks provided by the user
13322 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13323 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13328 ln conftest.a conftest.b 2>&5 || hard_links=no
13329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330 echo "$as_me:$LINENO: result: $hard_links" >&5
13331 echo "${ECHO_T}$hard_links" >&6
13332 if test "$hard_links" = no; then
13333 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13334 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13341 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13342 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13345 allow_undefined_flag_F77=
13346 enable_shared_with_static_runtimes_F77=no
13348 archive_expsym_cmds_F77=
13349 old_archive_From_new_cmds_F77=
13350 old_archive_from_expsyms_cmds_F77=
13351 export_dynamic_flag_spec_F77=
13352 whole_archive_flag_spec_F77=
13353 thread_safe_flag_spec_F77=
13354 hardcode_libdir_flag_spec_F77=
13355 hardcode_libdir_flag_spec_ld_F77=
13356 hardcode_libdir_separator_F77=
13357 hardcode_direct_F77=no
13358 hardcode_minus_L_F77=no
13359 hardcode_shlibpath_var_F77=unsupported
13360 link_all_deplibs_F77=unknown
13361 hardcode_automatic_F77=no
13363 module_expsym_cmds_F77=
13364 always_export_symbols_F77=no
13365 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366 # include_expsyms should be a list of space-separated symbols to be *always*
13367 # included in the symbol list
13368 include_expsyms_F77=
13369 # exclude_expsyms can be an extended regexp of symbols to exclude
13370 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13371 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13372 # as well as any symbol that contains `d'.
13373 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13375 # platforms (ab)use it in PIC code, but their linkers get confused if
13376 # the symbol is explicitly referenced. Since portable code cannot
13377 # rely on this symbol name, it's probably fine to never include it in
13378 # preloaded symbol tables.
13379 extract_expsyms_cmds=
13380 # Just being paranoid about ensuring that cc_basename is set.
13381 for cc_temp in $compiler""; do
13383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13392 cygwin* | mingw* | pw32*)
13393 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13394 # When not using gcc, we currently assume that we are using
13395 # Microsoft Visual C++.
13396 if test "$GCC" != yes; then
13401 # we just hope/assume this is gcc and not c89 (= MSVC++)
13410 if test "$with_gnu_ld" = yes; then
13411 # If archive_cmds runs LD, not CC, wlarc should be empty
13414 # Set some defaults for GNU ld with shared library support. These
13415 # are reset later if shared libraries are not supported. Putting them
13416 # here allows them to be overridden if necessary.
13417 runpath_var=LD_RUN_PATH
13418 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13419 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13420 # ancient GNU ld didn't support --whole-archive et. al.
13421 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13422 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13424 whole_archive_flag_spec_F77=
13426 supports_anon_versioning=no
13427 case `$LD -v 2>/dev/null` in
13428 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13429 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13430 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13431 *\ 2.11.*) ;; # other 2.11 versions
13432 *) supports_anon_versioning=yes ;;
13435 # See if GNU ld supports shared libraries.
13437 aix3* | aix4* | aix5*)
13438 # On AIX/PPC, the GNU linker is very broken
13439 if test "$host_cpu" != ia64; then
13443 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13444 *** to be unable to reliably create shared libraries on AIX.
13445 *** Therefore, libtool is disabling shared libraries support. If you
13446 *** really care for shared libraries, you may want to modify your PATH
13447 *** so that a non-GNU linker is found, and then restart.
13454 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)'
13455 hardcode_libdir_flag_spec_F77='-L$libdir'
13456 hardcode_minus_L_F77=yes
13458 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13459 # that the semantics of dynamic libraries on AmigaOS, at least up
13460 # to version 4, is to share data among multiple programs linked
13461 # with the same dynamic library. Since this doesn't match the
13462 # behavior of shared libraries on other platforms, we can't use
13468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13469 allow_undefined_flag_F77=unsupported
13470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13471 # support --undefined. This deserves some investigation. FIXME
13472 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13478 cygwin* | mingw* | pw32*)
13479 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13480 # as there is no search path for DLLs.
13481 hardcode_libdir_flag_spec_F77='-L$libdir'
13482 allow_undefined_flag_F77=unsupported
13483 always_export_symbols_F77=no
13484 enable_shared_with_static_runtimes_F77=yes
13485 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13487 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13488 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13489 # If the export-symbols file already is a .def file (1st line
13490 # is EXPORTS), use it as is; otherwise, prepend...
13491 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13492 cp $export_symbols $output_objdir/$soname.def;
13494 echo EXPORTS > $output_objdir/$soname.def;
13495 cat $export_symbols >> $output_objdir/$soname.def;
13497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13504 hardcode_direct_F77=no
13505 hardcode_shlibpath_var_F77=no
13506 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13507 export_dynamic_flag_spec_F77='${wl}-E'
13508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13509 # Instead, shared libraries are loaded at an image base (0x10000000 by
13510 # default) and relocated if they conflict, which is a slow very memory
13511 # consuming and fragmenting process. To avoid this, we pick a random,
13512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13514 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13515 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13521 case $cc_basename,$host_cpu in
13522 pgcc*) # Portland Group C compiler
13523 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13524 tmp_addflag=' $pic_flag'
13526 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13527 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13528 tmp_addflag=' $pic_flag -Mnomain' ;;
13529 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13530 tmp_addflag=' -i_dynamic' ;;
13531 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13532 tmp_addflag=' -i_dynamic -nofor_main' ;;
13533 ifc* | ifort*) # Intel Fortran compiler
13534 tmp_addflag=' -nofor_main' ;;
13536 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13538 if test $supports_anon_versioning = yes; then
13539 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13541 $echo "local: *; };" >> $output_objdir/$libname.ver~
13542 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13544 link_all_deplibs_F77=no
13550 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13555 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13561 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13566 *** create shared libraries on Solaris systems. Therefore, libtool
13567 *** is disabling shared libraries support. We urge you to upgrade GNU
13568 *** binutils to release 2.9.1 or newer. Another option is to modify
13569 *** your PATH or compiler configuration so that the native linker is
13570 *** used, and then restart.
13573 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13582 case `$LD -v 2>&1` in
13583 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13588 *** reliably create shared libraries on SCO systems. Therefore, libtool
13589 *** is disabling shared libraries support. We urge you to upgrade GNU
13590 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13591 *** your PATH or compiler configuration so that the native linker is
13592 *** used, and then restart.
13597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13599 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13600 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13609 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_direct_F77=yes
13612 hardcode_shlibpath_var_F77=no
13616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13625 if test "$ld_shlibs_F77" = no; then
13627 hardcode_libdir_flag_spec_F77=
13628 export_dynamic_flag_spec_F77=
13629 whole_archive_flag_spec_F77=
13632 # PORTME fill in a description of your system's linker (not GNU ld)
13635 allow_undefined_flag_F77=unsupported
13636 always_export_symbols_F77=yes
13637 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'
13638 # Note: this linker hardcodes the directories in LIBPATH if there
13639 # are no directories specified by -L.
13640 hardcode_minus_L_F77=yes
13641 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13642 # Neither direct hardcoding nor static linking is supported with a
13644 hardcode_direct_F77=unsupported
13649 if test "$host_cpu" = ia64; then
13650 # On IA64, the linker does run time linking by default, so we don't
13651 # have to do anything special.
13652 aix_use_runtimelinking=no
13653 exp_sym_flag='-Bexport'
13656 # If we're using GNU nm, then we don't want the "-C" option.
13657 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13658 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13659 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'
13661 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'
13663 aix_use_runtimelinking=no
13665 # Test if we are trying to use run time linking or normal
13666 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13667 # need to do runtime linking.
13668 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13669 for ld_flag in $LDFLAGS; do
13670 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13671 aix_use_runtimelinking=yes
13678 exp_sym_flag='-bexport'
13679 no_entry_flag='-bnoentry'
13682 # When large executables or shared objects are built, AIX ld can
13683 # have problems creating the table of contents. If linking a library
13684 # or program results in "error TOC overflow" add -mminimal-toc to
13685 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13686 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13688 archive_cmds_F77=''
13689 hardcode_direct_F77=yes
13690 hardcode_libdir_separator_F77=':'
13691 link_all_deplibs_F77=yes
13693 if test "$GCC" = yes; then
13694 case $host_os in aix4.[012]|aix4.[012].*)
13695 # We only want to do this on AIX 4.2 and lower, the check
13696 # below for broken collect2 doesn't work under 4.3+
13697 collect2name=`${CC} -print-prog-name=collect2`
13698 if test -f "$collect2name" && \
13699 strings "$collect2name" | grep resolve_lib_name >/dev/null
13701 # We have reworked collect2
13702 hardcode_direct_F77=yes
13704 # We have old collect2
13705 hardcode_direct_F77=unsupported
13706 # It fails to find uninstalled libraries when the uninstalled
13707 # path is not listed in the libpath. Setting hardcode_minus_L
13708 # to unsupported forces relinking
13709 hardcode_minus_L_F77=yes
13710 hardcode_libdir_flag_spec_F77='-L$libdir'
13711 hardcode_libdir_separator_F77=
13715 shared_flag='-shared'
13716 if test "$aix_use_runtimelinking" = yes; then
13717 shared_flag="$shared_flag "'${wl}-G'
13721 if test "$host_cpu" = ia64; then
13722 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13723 # chokes on -Wl,-G. The following line is correct:
13726 if test "$aix_use_runtimelinking" = yes; then
13727 shared_flag='${wl}-G'
13729 shared_flag='${wl}-bM:SRE'
13734 # It seems that -bexpall does not export symbols beginning with
13735 # underscore (_), so it is better to generate a list of symbols to export.
13736 always_export_symbols_F77=yes
13737 if test "$aix_use_runtimelinking" = yes; then
13738 # Warning - without using the other runtime loading flags (-brtl),
13739 # -berok will link without error, but may produce a broken library.
13740 allow_undefined_flag_F77='-berok'
13741 # Determine the default libpath from the value encoded in an empty executable.
13742 cat >conftest.$ac_ext <<_ACEOF
13747 rm -f conftest.$ac_objext conftest$ac_exeext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749 (eval $ac_link) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1 >conftest.err
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13769 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13771 # Check for a 64-bit object if we didn't find anything.
13772 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; }
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13779 rm -f conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13783 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13784 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13786 if test "$host_cpu" = ia64; then
13787 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13788 allow_undefined_flag_F77="-z nodefs"
13789 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13791 # Determine the default libpath from the value encoded in an empty executable.
13792 cat >conftest.$ac_ext <<_ACEOF
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>conftest.er1
13801 grep -v '^ *+' conftest.er1 >conftest.err
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest$ac_exeext'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13821 # Check for a 64-bit object if we didn't find anything.
13822 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; }
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13829 rm -f conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13833 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13834 # Warning - without using the other run time loading flags,
13835 # -berok will link without error, but may produce a broken library.
13836 no_undefined_flag_F77=' ${wl}-bernotok'
13837 allow_undefined_flag_F77=' ${wl}-berok'
13838 # Exported symbols can be pulled into shared objects from archives
13839 whole_archive_flag_spec_F77='$convenience'
13840 archive_cmds_need_lc_F77=yes
13841 # This is similar to how AIX traditionally builds its shared libraries.
13842 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13848 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)'
13849 hardcode_libdir_flag_spec_F77='-L$libdir'
13850 hardcode_minus_L_F77=yes
13851 # see comment about different semantics on the GNU ld section
13856 export_dynamic_flag_spec_F77=-rdynamic
13859 cygwin* | mingw* | pw32*)
13860 # When not using gcc, we currently assume that we are using
13861 # Microsoft Visual C++.
13862 # hardcode_libdir_flag_spec is actually meaningless, as there is
13863 # no search path for DLLs.
13864 hardcode_libdir_flag_spec_F77=' '
13865 allow_undefined_flag_F77=unsupported
13866 # Tell ltmain to make .lib files, not .a files.
13868 # Tell ltmain to make .dll files, not .so files.
13870 # FIXME: Setting linknames here is a bad hack.
13871 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13872 # The linker will automatically build a .lib file if we build a DLL.
13873 old_archive_From_new_cmds_F77='true'
13874 # FIXME: Should let the user specify the lib program.
13875 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13876 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13877 enable_shared_with_static_runtimes_F77=yes
13880 darwin* | rhapsody*)
13882 rhapsody* | darwin1.[012])
13883 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13886 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13887 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13889 case ${MACOSX_DEPLOYMENT_TARGET} in
13891 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13894 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13900 archive_cmds_need_lc_F77=no
13901 hardcode_direct_F77=no
13902 hardcode_automatic_F77=yes
13903 hardcode_shlibpath_var_F77=unsupported
13904 whole_archive_flag_spec_F77=''
13905 link_all_deplibs_F77=yes
13906 if test "$GCC" = yes ; then
13907 output_verbose_link_cmd='echo'
13908 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13909 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13910 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13911 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13912 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}'
13914 case $cc_basename in
13916 output_verbose_link_cmd='echo'
13917 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13918 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13919 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13920 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13921 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}'
13931 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932 hardcode_libdir_flag_spec_F77='-L$libdir'
13933 hardcode_shlibpath_var_F77=no
13940 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13941 # support. Future versions do this automatically, but an explicit c++rt0.o
13942 # does not break anything, and helps significantly (at the cost of a little
13945 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13946 hardcode_libdir_flag_spec_F77='-R$libdir'
13947 hardcode_direct_F77=yes
13948 hardcode_shlibpath_var_F77=no
13951 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13953 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13954 hardcode_direct_F77=yes
13955 hardcode_minus_L_F77=yes
13956 hardcode_shlibpath_var_F77=no
13959 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13960 freebsd* | dragonfly*)
13961 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13962 hardcode_libdir_flag_spec_F77='-R$libdir'
13963 hardcode_direct_F77=yes
13964 hardcode_shlibpath_var_F77=no
13967 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13969 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13970 hardcode_libdir_flag_spec_F77='-R$libdir'
13971 hardcode_direct_F77=yes
13972 hardcode_shlibpath_var_F77=no
13973 link_all_deplibs_F77=no
13977 if test "$GCC" = yes; then
13978 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'
13980 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'
13982 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13983 hardcode_libdir_separator_F77=:
13984 hardcode_direct_F77=yes
13986 # hardcode_minus_L: Not really in the search PATH,
13987 # but as the default location of the library.
13988 hardcode_minus_L_F77=yes
13989 export_dynamic_flag_spec_F77='${wl}-E'
13993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13994 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13996 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13998 if test "$with_gnu_ld" = no; then
13999 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14000 hardcode_libdir_separator_F77=:
14002 hardcode_direct_F77=yes
14003 export_dynamic_flag_spec_F77='${wl}-E'
14005 # hardcode_minus_L: Not really in the search PATH,
14006 # but as the default location of the library.
14007 hardcode_minus_L_F77=yes
14012 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14015 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14018 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14021 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14027 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14030 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14033 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14037 if test "$with_gnu_ld" = no; then
14038 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14039 hardcode_libdir_separator_F77=:
14043 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14044 hardcode_direct_F77=no
14045 hardcode_shlibpath_var_F77=no
14048 hardcode_direct_F77=yes
14049 export_dynamic_flag_spec_F77='${wl}-E'
14051 # hardcode_minus_L: Not really in the search PATH,
14052 # but as the default location of the library.
14053 hardcode_minus_L_F77=yes
14059 irix5* | irix6* | nonstopux*)
14060 if test "$GCC" = yes; then
14061 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'
14063 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'
14064 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067 hardcode_libdir_separator_F77=:
14068 link_all_deplibs_F77=yes
14071 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14073 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14075 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14077 hardcode_libdir_flag_spec_F77='-R$libdir'
14078 hardcode_direct_F77=yes
14079 hardcode_shlibpath_var_F77=no
14083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084 hardcode_direct_F77=yes
14085 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14086 hardcode_libdir_separator_F77=:
14087 hardcode_shlibpath_var_F77=no
14091 hardcode_direct_F77=yes
14092 hardcode_shlibpath_var_F77=no
14093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14095 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14096 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14097 export_dynamic_flag_spec_F77='${wl}-E'
14100 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14101 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14102 hardcode_libdir_flag_spec_F77='-R$libdir'
14105 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14106 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14113 hardcode_libdir_flag_spec_F77='-L$libdir'
14114 hardcode_minus_L_F77=yes
14115 allow_undefined_flag_F77=unsupported
14116 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'
14117 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14121 if test "$GCC" = yes; then
14122 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14123 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'
14125 allow_undefined_flag_F77=' -expect_unresolved \*'
14126 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'
14128 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14129 hardcode_libdir_separator_F77=:
14132 osf4* | osf5*) # as osf3* with the addition of -msym flag
14133 if test "$GCC" = yes; then
14134 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14135 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'
14136 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14138 allow_undefined_flag_F77=' -expect_unresolved \*'
14139 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'
14140 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~
14141 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14143 # Both c and cxx compiler support -rpath directly
14144 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14146 hardcode_libdir_separator_F77=:
14150 no_undefined_flag_F77=' -z text'
14151 if test "$GCC" = yes; then
14153 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14154 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14155 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14158 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14162 hardcode_libdir_flag_spec_F77='-R$libdir'
14163 hardcode_shlibpath_var_F77=no
14165 solaris2.[0-5] | solaris2.[0-5].*) ;;
14167 # The compiler driver will combine linker options so we
14168 # cannot just pass the convience library names through
14169 # without $wl, iff we do not link with $LD.
14170 # Luckily, gcc supports the same syntax we need for Sun Studio.
14171 # Supported since Solaris 2.6 (maybe 2.5.1?)
14174 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14176 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14179 link_all_deplibs_F77=yes
14183 if test "x$host_vendor" = xsequent; then
14184 # Use $CC to link under sequent, because it throws in some extra .o
14185 # files that make .init and .fini sections work.
14186 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14188 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14190 hardcode_libdir_flag_spec_F77='-L$libdir'
14191 hardcode_direct_F77=yes
14192 hardcode_minus_L_F77=yes
14193 hardcode_shlibpath_var_F77=no
14197 case $host_vendor in
14199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200 hardcode_direct_F77=yes # is this really true???
14203 ## LD is ld it makes a PLAMLIB
14204 ## CC just makes a GrossModule.
14205 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14206 reload_cmds_F77='$CC -r -o $output$reload_objs'
14207 hardcode_direct_F77=no
14210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14214 runpath_var='LD_RUN_PATH'
14215 hardcode_shlibpath_var_F77=no
14219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220 hardcode_shlibpath_var_F77=no
14221 export_dynamic_flag_spec_F77='-Bexport'
14225 if test -d /usr/nec; then
14226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_shlibpath_var_F77=no
14228 runpath_var=LD_RUN_PATH
14229 hardcode_runpath_var=yes
14234 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14235 no_undefined_flag_F77='${wl}-z,text'
14236 archive_cmds_need_lc_F77=no
14237 hardcode_shlibpath_var_F77=no
14238 runpath_var='LD_RUN_PATH'
14240 if test "$GCC" = yes; then
14241 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14242 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14244 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14249 sysv5* | sco3.2v5* | sco5v6*)
14250 # Note: We can NOT use -z defs as we might desire, because we do not
14251 # link with -lc, and that would cause any symbols used from libc to
14252 # always be unresolved, which means just about no library would
14253 # ever link correctly. If we're not using GNU ld we use -z text
14254 # though, which does catch some bad symbols but isn't as heavy-handed
14256 no_undefined_flag_F77='${wl}-z,text'
14257 allow_undefined_flag_F77='${wl}-z,nodefs'
14258 archive_cmds_need_lc_F77=no
14259 hardcode_shlibpath_var_F77=no
14260 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14261 hardcode_libdir_separator_F77=':'
14262 link_all_deplibs_F77=yes
14263 export_dynamic_flag_spec_F77='${wl}-Bexport'
14264 runpath_var='LD_RUN_PATH'
14266 if test "$GCC" = yes; then
14267 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14270 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14271 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277 hardcode_libdir_flag_spec_F77='-L$libdir'
14278 hardcode_shlibpath_var_F77=no
14287 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14288 echo "${ECHO_T}$ld_shlibs_F77" >&6
14289 test "$ld_shlibs_F77" = no && can_build_shared=no
14292 # Do we need to explicitly link libc?
14294 case "x$archive_cmds_need_lc_F77" in
14296 # Assume -lc should be added
14297 archive_cmds_need_lc_F77=yes
14299 if test "$enable_shared" = yes && test "$GCC" = yes; then
14300 case $archive_cmds_F77 in
14302 # FIXME: we may have to deal with multi-command sequences.
14305 # Test whether the compiler implicitly links with -lc since on some
14306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14307 # to ld, don't add -lc before -lgcc.
14308 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14309 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } 2>conftest.err; then
14320 libobjs=conftest.$ac_objext
14322 wl=$lt_prog_compiler_wl_F77
14323 pic_flag=$lt_prog_compiler_pic_F77
14329 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14330 allow_undefined_flag_F77=
14331 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14332 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }
14337 archive_cmds_need_lc_F77=no
14339 archive_cmds_need_lc_F77=yes
14341 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14343 cat conftest.err 1>&5
14346 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14347 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14354 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14355 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14356 library_names_spec=
14357 libname_spec='lib$name'
14361 postuninstall_cmds=
14365 shlibpath_overrides_runpath=unknown
14367 dynamic_linker="$host_os ld.so"
14368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14369 if test "$GCC" = yes; then
14370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14371 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14372 # if the path contains ";" then we assume it to be the separator
14373 # otherwise default to the standard path separator (i.e. ":") - it is
14374 # assumed that no part of a normal pathname contains ";" but that should
14375 # okay in the real world where ";" in dirpaths is itself problematic.
14376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14383 need_lib_prefix=unknown
14384 hardcode_into_libs=no
14386 # when you set need_version to no, make sure it does not cause -set_version
14387 # flags to be left without arguments
14388 need_version=unknown
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14394 shlibpath_var=LIBPATH
14396 # AIX 3 has no versioning support, so we append a major version to the name.
14397 soname_spec='${libname}${release}${shared_ext}$major'
14404 hardcode_into_libs=yes
14405 if test "$host_cpu" = ia64; then
14406 # AIX 5 supports IA64
14407 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14408 shlibpath_var=LD_LIBRARY_PATH
14410 # With GCC up to 2.95.x, collect2 would create an import file
14411 # for dependence libraries. The import file would start with
14412 # the line `#! .'. This would cause the generated library to
14413 # depend on `.', always an invalid library. This was fixed in
14414 # development snapshots of GCC prior to 3.0.
14416 aix4 | aix4.[01] | aix4.[01].*)
14417 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14419 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14422 can_build_shared=no
14426 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14427 # soname into executable. Probably we can add versioning support to
14428 # collect2, so additional links can be useful in future.
14429 if test "$aix_use_runtimelinking" = yes; then
14430 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14431 # instead of lib<name>.a to let people know that these are not
14432 # typical AIX shared libraries.
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435 # We preserve .a as extension for shared libraries through AIX4.2
14436 # and later when we are not doing run time linking.
14437 library_names_spec='${libname}${release}.a $libname.a'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14440 shlibpath_var=LIBPATH
14445 library_names_spec='$libname.ixlibrary $libname.a'
14446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14447 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'
14451 library_names_spec='${libname}${shared_ext}'
14452 dynamic_linker="$host_os ld.so"
14453 shlibpath_var=LIBRARY_PATH
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14462 shlibpath_var=LD_LIBRARY_PATH
14463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14465 # the default ld.so.conf also contains /usr/contrib/lib and
14466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14467 # libtool to hard-code these into programs
14470 cygwin* | mingw* | pw32*)
14471 version_type=windows
14476 case $GCC,$host_os in
14477 yes,cygwin* | yes,mingw* | yes,pw32*)
14478 library_names_spec='$libname.dll.a'
14479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14480 postinstall_cmds='base_file=`basename \${file}`~
14481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14482 dldir=$destdir/`dirname \$dlpath`~
14483 test -d \$dldir || mkdir -p \$dldir~
14484 $install_prog $dir/$dlname \$dldir/$dlname~
14485 chmod a+x \$dldir/$dlname'
14486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14487 dlpath=$dir/\$dldll~
14489 shlibpath_overrides_runpath=yes
14493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14495 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14498 # MinGW DLLs use traditional 'lib' prefix
14499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14501 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14502 # It is most probably a Windows format PATH printed by
14503 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14504 # path with ; separators, and with drive letters. We can handle the
14505 # drive letters (cygwin fileutils understands them), so leave them,
14506 # especially as we might pass files found there to a mingw objdump,
14507 # which wouldn't understand a cygwinified path. Ahh.
14508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14514 # pw32 DLLs use 'pw' prefix rather than 'lib'
14515 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14521 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14524 dynamic_linker='Win32 ld.exe'
14525 # FIXME: first we should search . and the directory the executable is in
14529 darwin* | rhapsody*)
14530 dynamic_linker="$host_os dyld"
14531 version_type=darwin
14534 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14535 soname_spec='${libname}${release}${major}$shared_ext'
14536 shlibpath_overrides_runpath=yes
14537 shlibpath_var=DYLD_LIBRARY_PATH
14538 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14539 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14540 if test "$GCC" = yes; then
14541 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"`
14543 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14545 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 shlibpath_var=LD_LIBRARY_PATH
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 shlibpath_overrides_runpath=no
14569 hardcode_into_libs=yes
14570 dynamic_linker='GNU ld.so'
14573 freebsd* | dragonfly*)
14574 # DragonFly does not have aout. When/if they implement a new
14575 # versioning mechanism, adjust this.
14576 if test -x /usr/bin/objformat; then
14577 objformat=`/usr/bin/objformat`
14580 freebsd[123]*) objformat=aout ;;
14581 *) objformat=elf ;;
14584 version_type=freebsd-$objformat
14585 case $version_type in
14587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14596 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes
14601 freebsd3.[01]* | freebsdelf3.[01]*)
14602 shlibpath_overrides_runpath=yes
14603 hardcode_into_libs=yes
14605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14607 shlibpath_overrides_runpath=no
14608 hardcode_into_libs=yes
14610 freebsd*) # from 4.6 on
14611 shlibpath_overrides_runpath=yes
14612 hardcode_into_libs=yes
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 hardcode_into_libs=yes
14627 hpux9* | hpux10* | hpux11*)
14628 # Give a soname corresponding to the major version so that dld.sl refuses to
14629 # link against other versions.
14636 hardcode_into_libs=yes
14637 dynamic_linker="$host_os dld.so"
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 if test "X$HPUX_IA64_MODE" = X32; then
14643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14651 hardcode_into_libs=yes
14652 dynamic_linker="$host_os dld.sl"
14653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14662 dynamic_linker="$host_os dld.sl"
14663 shlibpath_var=SHLIB_PATH
14664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14669 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14670 postinstall_cmds='chmod 555 $lib'
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14678 soname_spec='${libname}${release}${shared_ext}$major'
14679 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 shlibpath_overrides_runpath=no
14682 hardcode_into_libs=yes
14685 irix5* | irix6* | nonstopux*)
14687 nonstopux*) version_type=nonstopux ;;
14689 if test "$lt_cv_prog_gnu_ld" = yes; then
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14700 irix5* | nonstopux*)
14701 libsuff= shlibsuff=
14704 case $LD in # libtool.m4 will add one of these switches to LD
14705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14706 libsuff= shlibsuff= libmagic=32-bit;;
14707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14708 libsuff=32 shlibsuff=N32 libmagic=N32;;
14709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14711 *) libsuff= shlibsuff= libmagic=never-match;;
14715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14716 shlibpath_overrides_runpath=no
14717 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14718 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14719 hardcode_into_libs=yes
14722 # No shared lib support for Linux oldld, aout, or coff.
14723 linux*oldld* | linux*aout* | linux*coff*)
14727 # This must be Linux ELF.
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14735 shlibpath_var=LD_LIBRARY_PATH
14736 shlibpath_overrides_runpath=no
14737 # This implies no fast_install, which is unacceptable.
14738 # Some rework will be needed to allow for fast_install
14739 # before this can be enabled.
14740 hardcode_into_libs=yes
14742 # Append ld.so.conf contents to the search path
14743 if test -f /etc/ld.so.conf; then
14744 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14748 # We used to test for /lib/ld.so.1 and disable shared libraries on
14749 # powerpc, because MkLinux only supported shared libraries with the
14750 # GNU dynamic linker. Since this was broken with cross compilers,
14751 # most powerpc-linux boxes support dynamic linking these days and
14752 # people can always --disable-shared, the test was removed, and we
14753 # assume the GNU/Linux dynamic linker is in use.
14754 dynamic_linker='GNU/Linux ld.so'
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=no
14765 hardcode_into_libs=yes
14766 dynamic_linker='NetBSD ld.elf_so'
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774 soname_spec='${libname}${release}${shared_ext}$major'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=no
14777 hardcode_into_libs=yes
14778 dynamic_linker='GNU ld.so'
14785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14788 dynamic_linker='NetBSD (a.out) ld.so'
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 dynamic_linker='NetBSD ld.elf_so'
14794 shlibpath_var=LD_LIBRARY_PATH
14795 shlibpath_overrides_runpath=yes
14796 hardcode_into_libs=yes
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 shlibpath_overrides_runpath=yes
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 shlibpath_var=LD_LIBRARY_PATH
14813 shlibpath_overrides_runpath=yes
14818 sys_lib_dlsearch_path_spec="/usr/lib"
14820 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14822 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14823 *) need_version=no ;;
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14830 openbsd2.[89] | openbsd2.[89].*)
14831 shlibpath_overrides_runpath=no
14834 shlibpath_overrides_runpath=yes
14838 shlibpath_overrides_runpath=yes
14843 libname_spec='$name'
14846 library_names_spec='$libname${shared_ext} $libname.a'
14847 dynamic_linker='OS/2 ld.exe'
14848 shlibpath_var=LIBPATH
14851 osf3* | osf4* | osf5*)
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867 soname_spec='${libname}${release}${shared_ext}$major'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=yes
14870 hardcode_into_libs=yes
14871 # ldd complains unless libraries are executable
14872 postinstall_cmds='chmod +x $lib'
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14878 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 shlibpath_overrides_runpath=yes
14881 if test "$with_gnu_ld" = yes; then
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 case $host_vendor in
14894 shlibpath_overrides_runpath=no
14896 export_dynamic_flag_spec='${wl}-Blargedynsym'
14897 runpath_var=LD_RUN_PATH
14905 shlibpath_overrides_runpath=no
14906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14912 if test -d /usr/nec ;then
14914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14915 soname_spec='$libname${shared_ext}.$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14921 version_type=freebsd-elf
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 hardcode_into_libs=yes
14928 if test "$with_gnu_ld" = yes; then
14929 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14930 shlibpath_overrides_runpath=no
14932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14933 shlibpath_overrides_runpath=yes
14936 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14940 sys_lib_dlsearch_path_spec='/usr/lib'
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 shlibpath_var=LD_LIBRARY_PATH
14954 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14955 echo "${ECHO_T}$dynamic_linker" >&6
14956 test "$dynamic_linker" = no && can_build_shared=no
14958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14959 if test "$GCC" = yes; then
14960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14963 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14964 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14965 hardcode_action_F77=
14966 if test -n "$hardcode_libdir_flag_spec_F77" || \
14967 test -n "$runpath_var_F77" || \
14968 test "X$hardcode_automatic_F77" = "Xyes" ; then
14970 # We can hardcode non-existant directories.
14971 if test "$hardcode_direct_F77" != no &&
14972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14973 # have to relink, otherwise we might link with an installed library
14974 # when we should be linking with a yet-to-be-installed one
14975 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14976 test "$hardcode_minus_L_F77" != no; then
14977 # Linking always hardcodes the temporary library directory.
14978 hardcode_action_F77=relink
14980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14981 hardcode_action_F77=immediate
14984 # We cannot hardcode anything, or else we can only hardcode existing
14986 hardcode_action_F77=unsupported
14988 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14989 echo "${ECHO_T}$hardcode_action_F77" >&6
14991 if test "$hardcode_action_F77" = relink; then
14992 # Fast installation is not supported
14993 enable_fast_install=no
14994 elif test "$shlibpath_overrides_runpath" = yes ||
14995 test "$enable_shared" = no; then
14996 # Fast installation is not necessary
14997 enable_fast_install=needless
15001 # The else clause should only fire when bootstrapping the
15002 # libtool distribution, otherwise you forgot to ship ltmain.sh
15003 # with your package, and you will get complaints that there are
15004 # no rules to generate ltmain.sh.
15005 if test -f "$ltmain"; then
15006 # See if we are running on zsh, and set the options which allow our commands through
15007 # without removal of \ escapes.
15008 if test -n "${ZSH_VERSION+set}" ; then
15009 setopt NO_GLOB_SUBST
15011 # Now quote all the things that may contain metacharacters while being
15012 # careful not to overquote the AC_SUBSTed values. We take copies of the
15013 # variables and quote the copies for generation of the libtool script.
15014 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15016 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15017 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15018 deplibs_check_method reload_flag reload_cmds need_locks \
15019 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15020 lt_cv_sys_global_symbol_to_c_name_address \
15021 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15022 old_postinstall_cmds old_postuninstall_cmds \
15026 lt_prog_compiler_wl_F77 \
15027 lt_prog_compiler_pic_F77 \
15028 lt_prog_compiler_static_F77 \
15029 lt_prog_compiler_no_builtin_flag_F77 \
15030 export_dynamic_flag_spec_F77 \
15031 thread_safe_flag_spec_F77 \
15032 whole_archive_flag_spec_F77 \
15033 enable_shared_with_static_runtimes_F77 \
15034 old_archive_cmds_F77 \
15035 old_archive_from_new_cmds_F77 \
15036 predep_objects_F77 \
15037 postdep_objects_F77 \
15040 compiler_lib_search_path_F77 \
15042 archive_expsym_cmds_F77 \
15043 postinstall_cmds_F77 \
15044 postuninstall_cmds_F77 \
15045 old_archive_from_expsyms_cmds_F77 \
15046 allow_undefined_flag_F77 \
15047 no_undefined_flag_F77 \
15048 export_symbols_cmds_F77 \
15049 hardcode_libdir_flag_spec_F77 \
15050 hardcode_libdir_flag_spec_ld_F77 \
15051 hardcode_libdir_separator_F77 \
15052 hardcode_automatic_F77 \
15054 module_expsym_cmds_F77 \
15055 lt_cv_prog_compiler_c_o_F77 \
15056 exclude_expsyms_F77 \
15057 include_expsyms_F77; do
15060 old_archive_cmds_F77 | \
15061 old_archive_from_new_cmds_F77 | \
15062 archive_cmds_F77 | \
15063 archive_expsym_cmds_F77 | \
15064 module_cmds_F77 | \
15065 module_expsym_cmds_F77 | \
15066 old_archive_from_expsyms_cmds_F77 | \
15067 export_symbols_cmds_F77 | \
15068 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15069 postinstall_cmds | postuninstall_cmds | \
15070 old_postinstall_cmds | old_postuninstall_cmds | \
15071 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15072 # Double-quote double-evaled strings.
15073 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15082 *'\$0 --fallback-echo"')
15083 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15089 cat <<__EOF__ >> "$cfgfile"
15090 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15092 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15094 # Shell to use when invoking shell scripts.
15097 # Whether or not to build shared libraries.
15098 build_libtool_libs=$enable_shared
15100 # Whether or not to build static libraries.
15101 build_old_libs=$enable_static
15103 # Whether or not to add -lc for building shared libraries.
15104 build_libtool_need_lc=$archive_cmds_need_lc_F77
15106 # Whether or not to disallow shared libs when runtime libs are static
15107 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15109 # Whether or not to optimize for fast installation.
15110 fast_install=$enable_fast_install
15113 host_alias=$host_alias
15117 # The build system.
15118 build_alias=$build_alias
15122 # An echo program that does not interpret backslashes.
15127 AR_FLAGS=$lt_AR_FLAGS
15132 # LTCC compiler flags.
15133 LTCFLAGS=$lt_LTCFLAGS
15135 # A language-specific compiler.
15136 CC=$lt_compiler_F77
15138 # Is the compiler the GNU C compiler?
15144 # The linker used to build libraries.
15147 # Whether we need hard or soft links.
15150 # A BSD-compatible nm program.
15153 # A symbol stripping program
15156 # Used to examine libraries when file_magic_cmd begins "file"
15157 MAGIC_CMD=$MAGIC_CMD
15159 # Used on cygwin: DLL creation program.
15162 # Used on cygwin: object dumper.
15165 # Used on cygwin: assembler.
15168 # The name of the directory that contains temporary libtool files.
15171 # How to create reloadable object files.
15172 reload_flag=$lt_reload_flag
15173 reload_cmds=$lt_reload_cmds
15175 # How to pass a linker flag through the compiler.
15176 wl=$lt_lt_prog_compiler_wl_F77
15178 # Object file suffix (normally "o").
15179 objext="$ac_objext"
15181 # Old archive suffix (normally "a").
15184 # Shared library suffix (normally ".so").
15185 shrext_cmds='$shrext_cmds'
15187 # Executable file suffix (normally "").
15190 # Additional compiler flags for building library objects.
15191 pic_flag=$lt_lt_prog_compiler_pic_F77
15194 # What is the maximum length of a command?
15195 max_cmd_len=$lt_cv_sys_max_cmd_len
15197 # Does compiler simultaneously support -c and -o options?
15198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15200 # Must we lock files when doing compilation?
15201 need_locks=$lt_need_locks
15203 # Do we need the lib prefix for modules?
15204 need_lib_prefix=$need_lib_prefix
15206 # Do we need a version for libraries?
15207 need_version=$need_version
15209 # Whether dlopen is supported.
15210 dlopen_support=$enable_dlopen
15212 # Whether dlopen of programs is supported.
15213 dlopen_self=$enable_dlopen_self
15215 # Whether dlopen of statically linked programs is supported.
15216 dlopen_self_static=$enable_dlopen_self_static
15218 # Compiler flag to prevent dynamic linking.
15219 link_static_flag=$lt_lt_prog_compiler_static_F77
15221 # Compiler flag to turn off builtin functions.
15222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15224 # Compiler flag to allow reflexive dlopens.
15225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15227 # Compiler flag to generate shared objects directly from archives.
15228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15230 # Compiler flag to generate thread-safe objects.
15231 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15233 # Library versioning type.
15234 version_type=$version_type
15236 # Format of library name prefix.
15237 libname_spec=$lt_libname_spec
15239 # List of archive names. First name is the real one, the rest are links.
15240 # The last name is the one that the linker finds with -lNAME.
15241 library_names_spec=$lt_library_names_spec
15243 # The coded name of the library, if different from the real name.
15244 soname_spec=$lt_soname_spec
15246 # Commands used to build and install an old-style archive.
15248 old_archive_cmds=$lt_old_archive_cmds_F77
15249 old_postinstall_cmds=$lt_old_postinstall_cmds
15250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15252 # Create an old-style archive from a shared archive.
15253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15255 # Create a temporary old-style archive to link instead of a shared archive.
15256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15258 # Commands used to build and install a shared archive.
15259 archive_cmds=$lt_archive_cmds_F77
15260 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15261 postinstall_cmds=$lt_postinstall_cmds
15262 postuninstall_cmds=$lt_postuninstall_cmds
15264 # Commands used to build a loadable module (assumed same as above if empty)
15265 module_cmds=$lt_module_cmds_F77
15266 module_expsym_cmds=$lt_module_expsym_cmds_F77
15268 # Commands to strip libraries.
15269 old_striplib=$lt_old_striplib
15270 striplib=$lt_striplib
15272 # Dependencies to place before the objects being linked to create a
15274 predep_objects=$lt_predep_objects_F77
15276 # Dependencies to place after the objects being linked to create a
15278 postdep_objects=$lt_postdep_objects_F77
15280 # Dependencies to place before the objects being linked to create a
15282 predeps=$lt_predeps_F77
15284 # Dependencies to place after the objects being linked to create a
15286 postdeps=$lt_postdeps_F77
15288 # The library search path used internally by the compiler when linking
15289 # a shared library.
15290 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15292 # Method to check whether dependent libraries are shared objects.
15293 deplibs_check_method=$lt_deplibs_check_method
15295 # Command to use when deplibs_check_method == file_magic.
15296 file_magic_cmd=$lt_file_magic_cmd
15298 # Flag that allows shared libraries with undefined symbols to be built.
15299 allow_undefined_flag=$lt_allow_undefined_flag_F77
15301 # Flag that forces no undefined symbols.
15302 no_undefined_flag=$lt_no_undefined_flag_F77
15304 # Commands used to finish a libtool library installation in a directory.
15305 finish_cmds=$lt_finish_cmds
15307 # Same as above, but a single script fragment to be evaled but not shown.
15308 finish_eval=$lt_finish_eval
15310 # Take the output of nm and produce a listing of raw symbols and C names.
15311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15313 # Transform the output of nm in a proper C declaration
15314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15316 # Transform the output of nm in a C name address pair
15317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15319 # This is the shared library runtime path variable.
15320 runpath_var=$runpath_var
15322 # This is the shared library path variable.
15323 shlibpath_var=$shlibpath_var
15325 # Is shlibpath searched before the hard-coded library search path?
15326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15328 # How to hardcode a shared library path into an executable.
15329 hardcode_action=$hardcode_action_F77
15331 # Whether we should hardcode library paths into libraries.
15332 hardcode_into_libs=$hardcode_into_libs
15334 # Flag to hardcode \$libdir into a binary during linking.
15335 # This must work even if \$libdir does not exist.
15336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15338 # If ld is used when linking, flag to hardcode \$libdir into
15339 # a binary during linking. This must work even if \$libdir does
15341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15343 # Whether we need a single -rpath flag with a separated argument.
15344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15347 # resulting binary.
15348 hardcode_direct=$hardcode_direct_F77
15350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15351 # resulting binary.
15352 hardcode_minus_L=$hardcode_minus_L_F77
15354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15355 # the resulting binary.
15356 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15358 # Set to yes if building a shared library automatically hardcodes DIR into the library
15359 # and all subsequent libraries and executables linked against it.
15360 hardcode_automatic=$hardcode_automatic_F77
15362 # Variables whose values should be saved in libtool wrapper scripts and
15363 # restored at relink time.
15364 variables_saved_for_relink="$variables_saved_for_relink"
15366 # Whether libtool must link a program against all its dependency libraries.
15367 link_all_deplibs=$link_all_deplibs_F77
15369 # Compile-time system search path for libraries
15370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15372 # Run-time system search path for libraries
15373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15375 # Fix the shell variable \$srcfile for the compiler.
15376 fix_srcfile_path="$fix_srcfile_path_F77"
15378 # Set to yes if exported symbols are required.
15379 always_export_symbols=$always_export_symbols_F77
15381 # The commands to list exported symbols.
15382 export_symbols_cmds=$lt_export_symbols_cmds_F77
15384 # The commands to extract the exported symbol list from a shared archive.
15385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15387 # Symbols that should not be listed in the preloaded symbols.
15388 exclude_expsyms=$lt_exclude_expsyms_F77
15390 # Symbols that must always be exported.
15391 include_expsyms=$lt_include_expsyms_F77
15393 # ### END LIBTOOL TAG CONFIG: $tagname
15399 # If there is no Makefile yet, we rely on a make rule to execute
15400 # `config.status --recheck' to rerun these tests and create the
15401 # libtool script then.
15402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15403 if test -f "$ltmain_in"; then
15404 test -f Makefile && make "$ltmain"
15410 ac_cpp='$CPP $CPPFLAGS'
15411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15427 # Source file extension for Java test sources.
15430 # Object file extension for compiled Java test sources.
15434 # Code to be used in simple compile tests
15435 lt_simple_compile_test_code="class foo {}\n"
15437 # Code to be used in simple link tests
15438 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15440 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15442 # If no C compiler was specified, use CC.
15445 # If no C compiler flags were specified, use CFLAGS.
15446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15448 # Allow CC to be a program name with arguments.
15452 # save warnings/boilerplate of simple test code
15453 ac_outfile=conftest.$ac_objext
15454 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456 _lt_compiler_boilerplate=`cat conftest.err`
15459 ac_outfile=conftest.$ac_objext
15460 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15462 _lt_linker_boilerplate=`cat conftest.err`
15466 # Allow CC to be a program name with arguments.
15471 for cc_temp in $compiler""; do
15473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15479 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15482 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15483 archive_cmds_need_lc_GCJ=no
15485 old_archive_cmds_GCJ=$old_archive_cmds
15488 lt_prog_compiler_no_builtin_flag_GCJ=
15490 if test "$GCC" = yes; then
15491 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15494 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15495 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15496 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 lt_cv_prog_compiler_rtti_exceptions=no
15500 ac_outfile=conftest.$ac_objext
15501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15502 lt_compiler_flag="-fno-rtti -fno-exceptions"
15503 # Insert the option either (1) after the last *FLAGS variable, or
15504 # (2) before a word containing "conftest.", or (3) at the end.
15505 # Note that $ac_compile itself does not contain backslashes and begins
15506 # with a dollar sign (not a hyphen), so the echo should work correctly.
15507 # The option is referenced via a variable to avoid confusing sed.
15508 lt_compile=`echo "$ac_compile" | $SED \
15509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511 -e 's:$: $lt_compiler_flag:'`
15512 (eval echo "\"\$as_me:15512: $lt_compile\"" >&5)
15513 (eval "$lt_compile" 2>conftest.err)
15515 cat conftest.err >&5
15516 echo "$as_me:15516: \$? = $ac_status" >&5
15517 if (exit $ac_status) && test -s "$ac_outfile"; then
15518 # The compiler can only warn and ignore the option if not recognized
15519 # So say no if there are warnings other than the usual output.
15520 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15523 lt_cv_prog_compiler_rtti_exceptions=yes
15529 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15530 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15532 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15533 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15540 lt_prog_compiler_wl_GCJ=
15541 lt_prog_compiler_pic_GCJ=
15542 lt_prog_compiler_static_GCJ=
15544 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15547 if test "$GCC" = yes; then
15548 lt_prog_compiler_wl_GCJ='-Wl,'
15549 lt_prog_compiler_static_GCJ='-static'
15553 # All AIX code is PIC.
15554 if test "$host_cpu" = ia64; then
15555 # AIX 5 now supports IA64 processor
15556 lt_prog_compiler_static_GCJ='-Bstatic'
15561 # FIXME: we need at least 68020 code to build shared libraries, but
15562 # adding the `-m68020' flag to GCC prevents building anything better,
15564 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15567 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15568 # PIC is the default for these OSes.
15571 mingw* | pw32* | os2*)
15572 # This hack is so that the source file can tell whether it is being
15573 # built for inclusion in a dll (and should export symbols for example).
15574 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15577 darwin* | rhapsody*)
15578 # PIC is the default on this platform
15579 # Common symbols not allowed in MH_DYLIB files
15580 lt_prog_compiler_pic_GCJ='-fno-common'
15584 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15585 # Instead, we relocate shared libraries at runtime.
15589 # Just because we use GCC doesn't mean we suddenly get shared libraries
15590 # on systems that don't support them.
15591 lt_prog_compiler_can_build_shared_GCJ=no
15596 if test -d /usr/nec; then
15597 lt_prog_compiler_pic_GCJ=-Kconform_pic
15602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15603 # not for PA HP-UX.
15609 lt_prog_compiler_pic_GCJ='-fPIC'
15615 lt_prog_compiler_pic_GCJ='-fPIC'
15619 # PORTME Check for flag to pass linker flags through the system compiler.
15622 lt_prog_compiler_wl_GCJ='-Wl,'
15623 if test "$host_cpu" = ia64; then
15624 # AIX 5 now supports IA64 processor
15625 lt_prog_compiler_static_GCJ='-Bstatic'
15627 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15631 # PIC is the default on this platform
15632 # Common symbols not allowed in MH_DYLIB files
15633 case $cc_basename in
15635 lt_prog_compiler_pic_GCJ='-qnocommon'
15636 lt_prog_compiler_wl_GCJ='-Wl,'
15641 mingw* | pw32* | os2*)
15642 # This hack is so that the source file can tell whether it is being
15643 # built for inclusion in a dll (and should export symbols for example).
15644 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15647 hpux9* | hpux10* | hpux11*)
15648 lt_prog_compiler_wl_GCJ='-Wl,'
15649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15650 # not for PA HP-UX.
15656 lt_prog_compiler_pic_GCJ='+Z'
15659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15660 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15663 irix5* | irix6* | nonstopux*)
15664 lt_prog_compiler_wl_GCJ='-Wl,'
15665 # PIC (with -KPIC) is the default.
15666 lt_prog_compiler_static_GCJ='-non_shared'
15670 lt_prog_compiler_pic_GCJ='-KPIC'
15671 lt_prog_compiler_static_GCJ='-Bstatic'
15675 case $cc_basename in
15677 lt_prog_compiler_wl_GCJ='-Wl,'
15678 lt_prog_compiler_pic_GCJ='-KPIC'
15679 lt_prog_compiler_static_GCJ='-static'
15681 pgcc* | pgf77* | pgf90* | pgf95*)
15682 # Portland Group compilers (*not* the Pentium gcc compiler,
15683 # which looks to be a dead project)
15684 lt_prog_compiler_wl_GCJ='-Wl,'
15685 lt_prog_compiler_pic_GCJ='-fpic'
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15689 lt_prog_compiler_wl_GCJ='-Wl,'
15690 # All Alpha code is PIC.
15691 lt_prog_compiler_static_GCJ='-non_shared'
15696 osf3* | osf4* | osf5*)
15697 lt_prog_compiler_wl_GCJ='-Wl,'
15698 # All OSF/1 code is PIC.
15699 lt_prog_compiler_static_GCJ='-non_shared'
15703 lt_prog_compiler_pic_GCJ='-KPIC'
15704 lt_prog_compiler_static_GCJ='-Bstatic'
15705 case $cc_basename in
15706 f77* | f90* | f95*)
15707 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15709 lt_prog_compiler_wl_GCJ='-Wl,';;
15714 lt_prog_compiler_wl_GCJ='-Qoption ld '
15715 lt_prog_compiler_pic_GCJ='-PIC'
15716 lt_prog_compiler_static_GCJ='-Bstatic'
15719 sysv4 | sysv4.2uw2* | sysv4.3*)
15720 lt_prog_compiler_wl_GCJ='-Wl,'
15721 lt_prog_compiler_pic_GCJ='-KPIC'
15722 lt_prog_compiler_static_GCJ='-Bstatic'
15726 if test -d /usr/nec ;then
15727 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15728 lt_prog_compiler_static_GCJ='-Bstatic'
15732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15733 lt_prog_compiler_wl_GCJ='-Wl,'
15734 lt_prog_compiler_pic_GCJ='-KPIC'
15735 lt_prog_compiler_static_GCJ='-Bstatic'
15739 lt_prog_compiler_wl_GCJ='-Wl,'
15740 lt_prog_compiler_can_build_shared_GCJ=no
15744 lt_prog_compiler_pic_GCJ='-pic'
15745 lt_prog_compiler_static_GCJ='-Bstatic'
15749 lt_prog_compiler_can_build_shared_GCJ=no
15754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15755 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15758 # Check to make sure the PIC flag actually works.
15760 if test -n "$lt_prog_compiler_pic_GCJ"; then
15762 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15764 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 lt_prog_compiler_pic_works_GCJ=no
15768 ac_outfile=conftest.$ac_objext
15769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15770 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15771 # Insert the option either (1) after the last *FLAGS variable, or
15772 # (2) before a word containing "conftest.", or (3) at the end.
15773 # Note that $ac_compile itself does not contain backslashes and begins
15774 # with a dollar sign (not a hyphen), so the echo should work correctly.
15775 # The option is referenced via a variable to avoid confusing sed.
15776 lt_compile=`echo "$ac_compile" | $SED \
15777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15779 -e 's:$: $lt_compiler_flag:'`
15780 (eval echo "\"\$as_me:15780: $lt_compile\"" >&5)
15781 (eval "$lt_compile" 2>conftest.err)
15783 cat conftest.err >&5
15784 echo "$as_me:15784: \$? = $ac_status" >&5
15785 if (exit $ac_status) && test -s "$ac_outfile"; then
15786 # The compiler can only warn and ignore the option if not recognized
15787 # So say no if there are warnings other than the usual output.
15788 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15791 lt_prog_compiler_pic_works_GCJ=yes
15797 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15798 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15800 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15801 case $lt_prog_compiler_pic_GCJ in
15803 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15806 lt_prog_compiler_pic_GCJ=
15807 lt_prog_compiler_can_build_shared_GCJ=no
15812 # For platforms which do not support PIC, -DPIC is meaningless:
15814 lt_prog_compiler_pic_GCJ=
15817 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15822 # Check to make sure the static flag actually works.
15824 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15825 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15826 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15827 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 lt_prog_compiler_static_works_GCJ=no
15831 save_LDFLAGS="$LDFLAGS"
15832 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15833 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15835 # The linker can only warn and ignore the option if not recognized
15836 # So say no if there are warnings
15837 if test -s conftest.err; then
15838 # Append any errors to the config.log.
15839 cat conftest.err 1>&5
15840 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15842 if diff conftest.exp conftest.er2 >/dev/null; then
15843 lt_prog_compiler_static_works_GCJ=yes
15846 lt_prog_compiler_static_works_GCJ=yes
15850 LDFLAGS="$save_LDFLAGS"
15853 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15854 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15856 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15859 lt_prog_compiler_static_GCJ=
15863 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15865 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 lt_cv_prog_compiler_c_o_GCJ=no
15869 $rm -r conftest 2>/dev/null
15873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15875 lt_compiler_flag="-o out/conftest2.$ac_objext"
15876 # Insert the option either (1) after the last *FLAGS variable, or
15877 # (2) before a word containing "conftest.", or (3) at the end.
15878 # Note that $ac_compile itself does not contain backslashes and begins
15879 # with a dollar sign (not a hyphen), so the echo should work correctly.
15880 lt_compile=`echo "$ac_compile" | $SED \
15881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15883 -e 's:$: $lt_compiler_flag:'`
15884 (eval echo "\"\$as_me:15884: $lt_compile\"" >&5)
15885 (eval "$lt_compile" 2>out/conftest.err)
15887 cat out/conftest.err >&5
15888 echo "$as_me:15888: \$? = $ac_status" >&5
15889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15891 # The compiler can only warn and ignore the option if not recognized
15892 # So say no if there are warnings
15893 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15896 lt_cv_prog_compiler_c_o_GCJ=yes
15901 # SGI C++ compiler will create directory out/ii_files/ for
15902 # template instantiation
15903 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15904 $rm out/* && rmdir out
15910 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15914 hard_links="nottested"
15915 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15916 # do not overwrite the value of need_locks provided by the user
15917 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15918 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15923 ln conftest.a conftest.b 2>&5 || hard_links=no
15924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15925 echo "$as_me:$LINENO: result: $hard_links" >&5
15926 echo "${ECHO_T}$hard_links" >&6
15927 if test "$hard_links" = no; then
15928 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15929 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15936 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15937 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15940 allow_undefined_flag_GCJ=
15941 enable_shared_with_static_runtimes_GCJ=no
15943 archive_expsym_cmds_GCJ=
15944 old_archive_From_new_cmds_GCJ=
15945 old_archive_from_expsyms_cmds_GCJ=
15946 export_dynamic_flag_spec_GCJ=
15947 whole_archive_flag_spec_GCJ=
15948 thread_safe_flag_spec_GCJ=
15949 hardcode_libdir_flag_spec_GCJ=
15950 hardcode_libdir_flag_spec_ld_GCJ=
15951 hardcode_libdir_separator_GCJ=
15952 hardcode_direct_GCJ=no
15953 hardcode_minus_L_GCJ=no
15954 hardcode_shlibpath_var_GCJ=unsupported
15955 link_all_deplibs_GCJ=unknown
15956 hardcode_automatic_GCJ=no
15958 module_expsym_cmds_GCJ=
15959 always_export_symbols_GCJ=no
15960 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15961 # include_expsyms should be a list of space-separated symbols to be *always*
15962 # included in the symbol list
15963 include_expsyms_GCJ=
15964 # exclude_expsyms can be an extended regexp of symbols to exclude
15965 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15967 # as well as any symbol that contains `d'.
15968 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15970 # platforms (ab)use it in PIC code, but their linkers get confused if
15971 # the symbol is explicitly referenced. Since portable code cannot
15972 # rely on this symbol name, it's probably fine to never include it in
15973 # preloaded symbol tables.
15974 extract_expsyms_cmds=
15975 # Just being paranoid about ensuring that cc_basename is set.
15976 for cc_temp in $compiler""; do
15978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15987 cygwin* | mingw* | pw32*)
15988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15989 # When not using gcc, we currently assume that we are using
15990 # Microsoft Visual C++.
15991 if test "$GCC" != yes; then
15996 # we just hope/assume this is gcc and not c89 (= MSVC++)
16005 if test "$with_gnu_ld" = yes; then
16006 # If archive_cmds runs LD, not CC, wlarc should be empty
16009 # Set some defaults for GNU ld with shared library support. These
16010 # are reset later if shared libraries are not supported. Putting them
16011 # here allows them to be overridden if necessary.
16012 runpath_var=LD_RUN_PATH
16013 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16014 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16015 # ancient GNU ld didn't support --whole-archive et. al.
16016 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16017 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16019 whole_archive_flag_spec_GCJ=
16021 supports_anon_versioning=no
16022 case `$LD -v 2>/dev/null` in
16023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16026 *\ 2.11.*) ;; # other 2.11 versions
16027 *) supports_anon_versioning=yes ;;
16030 # See if GNU ld supports shared libraries.
16032 aix3* | aix4* | aix5*)
16033 # On AIX/PPC, the GNU linker is very broken
16034 if test "$host_cpu" != ia64; then
16038 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16039 *** to be unable to reliably create shared libraries on AIX.
16040 *** Therefore, libtool is disabling shared libraries support. If you
16041 *** really care for shared libraries, you may want to modify your PATH
16042 *** so that a non-GNU linker is found, and then restart.
16049 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)'
16050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16051 hardcode_minus_L_GCJ=yes
16053 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16054 # that the semantics of dynamic libraries on AmigaOS, at least up
16055 # to version 4, is to share data among multiple programs linked
16056 # with the same dynamic library. Since this doesn't match the
16057 # behavior of shared libraries on other platforms, we can't use
16063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16064 allow_undefined_flag_GCJ=unsupported
16065 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16066 # support --undefined. This deserves some investigation. FIXME
16067 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073 cygwin* | mingw* | pw32*)
16074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16075 # as there is no search path for DLLs.
16076 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16077 allow_undefined_flag_GCJ=unsupported
16078 always_export_symbols_GCJ=no
16079 enable_shared_with_static_runtimes_GCJ=yes
16080 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16082 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16083 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16084 # If the export-symbols file already is a .def file (1st line
16085 # is EXPORTS), use it as is; otherwise, prepend...
16086 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16087 cp $export_symbols $output_objdir/$soname.def;
16089 echo EXPORTS > $output_objdir/$soname.def;
16090 cat $export_symbols >> $output_objdir/$soname.def;
16092 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16099 hardcode_direct_GCJ=no
16100 hardcode_shlibpath_var_GCJ=no
16101 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16102 export_dynamic_flag_spec_GCJ='${wl}-E'
16103 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16104 # Instead, shared libraries are loaded at an image base (0x10000000 by
16105 # default) and relocated if they conflict, which is a slow very memory
16106 # consuming and fragmenting process. To avoid this, we pick a random,
16107 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16108 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16109 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16110 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16116 case $cc_basename,$host_cpu in
16117 pgcc*) # Portland Group C compiler
16118 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16119 tmp_addflag=' $pic_flag'
16121 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16122 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16123 tmp_addflag=' $pic_flag -Mnomain' ;;
16124 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16125 tmp_addflag=' -i_dynamic' ;;
16126 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16127 tmp_addflag=' -i_dynamic -nofor_main' ;;
16128 ifc* | ifort*) # Intel Fortran compiler
16129 tmp_addflag=' -nofor_main' ;;
16131 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16133 if test $supports_anon_versioning = yes; then
16134 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16136 $echo "local: *; };" >> $output_objdir/$libname.ver~
16137 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16139 link_all_deplibs_GCJ=no
16145 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16147 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16150 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16151 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16156 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16161 *** create shared libraries on Solaris systems. Therefore, libtool
16162 *** is disabling shared libraries support. We urge you to upgrade GNU
16163 *** binutils to release 2.9.1 or newer. Another option is to modify
16164 *** your PATH or compiler configuration so that the native linker is
16165 *** used, and then restart.
16168 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16169 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16177 case `$LD -v 2>&1` in
16178 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16182 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16183 *** reliably create shared libraries on SCO systems. Therefore, libtool
16184 *** is disabling shared libraries support. We urge you to upgrade GNU
16185 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16186 *** your PATH or compiler configuration so that the native linker is
16187 *** used, and then restart.
16192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16193 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16194 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16195 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16204 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16206 hardcode_direct_GCJ=yes
16207 hardcode_shlibpath_var_GCJ=no
16211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16212 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16220 if test "$ld_shlibs_GCJ" = no; then
16222 hardcode_libdir_flag_spec_GCJ=
16223 export_dynamic_flag_spec_GCJ=
16224 whole_archive_flag_spec_GCJ=
16227 # PORTME fill in a description of your system's linker (not GNU ld)
16230 allow_undefined_flag_GCJ=unsupported
16231 always_export_symbols_GCJ=yes
16232 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'
16233 # Note: this linker hardcodes the directories in LIBPATH if there
16234 # are no directories specified by -L.
16235 hardcode_minus_L_GCJ=yes
16236 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16237 # Neither direct hardcoding nor static linking is supported with a
16239 hardcode_direct_GCJ=unsupported
16244 if test "$host_cpu" = ia64; then
16245 # On IA64, the linker does run time linking by default, so we don't
16246 # have to do anything special.
16247 aix_use_runtimelinking=no
16248 exp_sym_flag='-Bexport'
16251 # If we're using GNU nm, then we don't want the "-C" option.
16252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16253 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16254 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'
16256 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'
16258 aix_use_runtimelinking=no
16260 # Test if we are trying to use run time linking or normal
16261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16262 # need to do runtime linking.
16263 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16264 for ld_flag in $LDFLAGS; do
16265 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16266 aix_use_runtimelinking=yes
16273 exp_sym_flag='-bexport'
16274 no_entry_flag='-bnoentry'
16277 # When large executables or shared objects are built, AIX ld can
16278 # have problems creating the table of contents. If linking a library
16279 # or program results in "error TOC overflow" add -mminimal-toc to
16280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16283 archive_cmds_GCJ=''
16284 hardcode_direct_GCJ=yes
16285 hardcode_libdir_separator_GCJ=':'
16286 link_all_deplibs_GCJ=yes
16288 if test "$GCC" = yes; then
16289 case $host_os in aix4.[012]|aix4.[012].*)
16290 # We only want to do this on AIX 4.2 and lower, the check
16291 # below for broken collect2 doesn't work under 4.3+
16292 collect2name=`${CC} -print-prog-name=collect2`
16293 if test -f "$collect2name" && \
16294 strings "$collect2name" | grep resolve_lib_name >/dev/null
16296 # We have reworked collect2
16297 hardcode_direct_GCJ=yes
16299 # We have old collect2
16300 hardcode_direct_GCJ=unsupported
16301 # It fails to find uninstalled libraries when the uninstalled
16302 # path is not listed in the libpath. Setting hardcode_minus_L
16303 # to unsupported forces relinking
16304 hardcode_minus_L_GCJ=yes
16305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16306 hardcode_libdir_separator_GCJ=
16310 shared_flag='-shared'
16311 if test "$aix_use_runtimelinking" = yes; then
16312 shared_flag="$shared_flag "'${wl}-G'
16316 if test "$host_cpu" = ia64; then
16317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16318 # chokes on -Wl,-G. The following line is correct:
16321 if test "$aix_use_runtimelinking" = yes; then
16322 shared_flag='${wl}-G'
16324 shared_flag='${wl}-bM:SRE'
16329 # It seems that -bexpall does not export symbols beginning with
16330 # underscore (_), so it is better to generate a list of symbols to export.
16331 always_export_symbols_GCJ=yes
16332 if test "$aix_use_runtimelinking" = yes; then
16333 # Warning - without using the other runtime loading flags (-brtl),
16334 # -berok will link without error, but may produce a broken library.
16335 allow_undefined_flag_GCJ='-berok'
16336 # Determine the default libpath from the value encoded in an empty executable.
16337 cat >conftest.$ac_ext <<_ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16352 rm -f conftest.$ac_objext conftest$ac_exeext
16353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16354 (eval $ac_link) 2>conftest.er1
16356 grep -v '^ *+' conftest.er1 >conftest.err
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; } &&
16367 { ac_try='test -s conftest$ac_exeext'
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16376 # Check for a 64-bit object if we didn't find anything.
16377 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; }
16380 echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16384 rm -f conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
16386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16388 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16389 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16391 if test "$host_cpu" = ia64; then
16392 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16393 allow_undefined_flag_GCJ="-z nodefs"
16394 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16396 # Determine the default libpath from the value encoded in an empty executable.
16397 cat >conftest.$ac_ext <<_ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16412 rm -f conftest.$ac_objext conftest$ac_exeext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414 (eval $ac_link) 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest$ac_exeext'
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16436 # Check for a 64-bit object if we didn't find anything.
16437 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; }
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16444 rm -f conftest.err conftest.$ac_objext \
16445 conftest$ac_exeext conftest.$ac_ext
16446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16448 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16449 # Warning - without using the other run time loading flags,
16450 # -berok will link without error, but may produce a broken library.
16451 no_undefined_flag_GCJ=' ${wl}-bernotok'
16452 allow_undefined_flag_GCJ=' ${wl}-berok'
16453 # Exported symbols can be pulled into shared objects from archives
16454 whole_archive_flag_spec_GCJ='$convenience'
16455 archive_cmds_need_lc_GCJ=yes
16456 # This is similar to how AIX traditionally builds its shared libraries.
16457 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16463 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)'
16464 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16465 hardcode_minus_L_GCJ=yes
16466 # see comment about different semantics on the GNU ld section
16471 export_dynamic_flag_spec_GCJ=-rdynamic
16474 cygwin* | mingw* | pw32*)
16475 # When not using gcc, we currently assume that we are using
16476 # Microsoft Visual C++.
16477 # hardcode_libdir_flag_spec is actually meaningless, as there is
16478 # no search path for DLLs.
16479 hardcode_libdir_flag_spec_GCJ=' '
16480 allow_undefined_flag_GCJ=unsupported
16481 # Tell ltmain to make .lib files, not .a files.
16483 # Tell ltmain to make .dll files, not .so files.
16485 # FIXME: Setting linknames here is a bad hack.
16486 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16487 # The linker will automatically build a .lib file if we build a DLL.
16488 old_archive_From_new_cmds_GCJ='true'
16489 # FIXME: Should let the user specify the lib program.
16490 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16491 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16492 enable_shared_with_static_runtimes_GCJ=yes
16495 darwin* | rhapsody*)
16497 rhapsody* | darwin1.[012])
16498 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16501 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16502 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16504 case ${MACOSX_DEPLOYMENT_TARGET} in
16506 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16509 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16515 archive_cmds_need_lc_GCJ=no
16516 hardcode_direct_GCJ=no
16517 hardcode_automatic_GCJ=yes
16518 hardcode_shlibpath_var_GCJ=unsupported
16519 whole_archive_flag_spec_GCJ=''
16520 link_all_deplibs_GCJ=yes
16521 if test "$GCC" = yes ; then
16522 output_verbose_link_cmd='echo'
16523 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16524 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16525 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16526 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16527 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}'
16529 case $cc_basename in
16531 output_verbose_link_cmd='echo'
16532 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16533 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16534 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16535 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16536 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}'
16546 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548 hardcode_shlibpath_var_GCJ=no
16555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16556 # support. Future versions do this automatically, but an explicit c++rt0.o
16557 # does not break anything, and helps significantly (at the cost of a little
16560 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16561 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16562 hardcode_direct_GCJ=yes
16563 hardcode_shlibpath_var_GCJ=no
16566 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16568 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16569 hardcode_direct_GCJ=yes
16570 hardcode_minus_L_GCJ=yes
16571 hardcode_shlibpath_var_GCJ=no
16574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16575 freebsd* | dragonfly*)
16576 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16577 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16578 hardcode_direct_GCJ=yes
16579 hardcode_shlibpath_var_GCJ=no
16582 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16584 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16585 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16586 hardcode_direct_GCJ=yes
16587 hardcode_shlibpath_var_GCJ=no
16588 link_all_deplibs_GCJ=no
16592 if test "$GCC" = yes; then
16593 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'
16595 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'
16597 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16598 hardcode_libdir_separator_GCJ=:
16599 hardcode_direct_GCJ=yes
16601 # hardcode_minus_L: Not really in the search PATH,
16602 # but as the default location of the library.
16603 hardcode_minus_L_GCJ=yes
16604 export_dynamic_flag_spec_GCJ='${wl}-E'
16608 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16609 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16611 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16613 if test "$with_gnu_ld" = no; then
16614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16615 hardcode_libdir_separator_GCJ=:
16617 hardcode_direct_GCJ=yes
16618 export_dynamic_flag_spec_GCJ='${wl}-E'
16620 # hardcode_minus_L: Not really in the search PATH,
16621 # but as the default location of the library.
16622 hardcode_minus_L_GCJ=yes
16627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16630 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16633 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16642 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16645 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16648 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16652 if test "$with_gnu_ld" = no; then
16653 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16654 hardcode_libdir_separator_GCJ=:
16658 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16659 hardcode_direct_GCJ=no
16660 hardcode_shlibpath_var_GCJ=no
16663 hardcode_direct_GCJ=yes
16664 export_dynamic_flag_spec_GCJ='${wl}-E'
16666 # hardcode_minus_L: Not really in the search PATH,
16667 # but as the default location of the library.
16668 hardcode_minus_L_GCJ=yes
16674 irix5* | irix6* | nonstopux*)
16675 if test "$GCC" = yes; then
16676 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'
16678 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'
16679 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16682 hardcode_libdir_separator_GCJ=:
16683 link_all_deplibs_GCJ=yes
16686 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16690 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16692 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16693 hardcode_direct_GCJ=yes
16694 hardcode_shlibpath_var_GCJ=no
16698 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_direct_GCJ=yes
16700 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16701 hardcode_libdir_separator_GCJ=:
16702 hardcode_shlibpath_var_GCJ=no
16706 hardcode_direct_GCJ=yes
16707 hardcode_shlibpath_var_GCJ=no
16708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16709 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16710 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16712 export_dynamic_flag_spec_GCJ='${wl}-E'
16715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16716 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16720 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729 hardcode_minus_L_GCJ=yes
16730 allow_undefined_flag_GCJ=unsupported
16731 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'
16732 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16736 if test "$GCC" = yes; then
16737 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16738 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'
16740 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16741 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'
16743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744 hardcode_libdir_separator_GCJ=:
16747 osf4* | osf5*) # as osf3* with the addition of -msym flag
16748 if test "$GCC" = yes; then
16749 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16750 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'
16751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16753 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16754 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'
16755 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~
16756 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16758 # Both c and cxx compiler support -rpath directly
16759 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16761 hardcode_libdir_separator_GCJ=:
16765 no_undefined_flag_GCJ=' -z text'
16766 if test "$GCC" = yes; then
16768 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16773 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16775 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778 hardcode_shlibpath_var_GCJ=no
16780 solaris2.[0-5] | solaris2.[0-5].*) ;;
16782 # The compiler driver will combine linker options so we
16783 # cannot just pass the convience library names through
16784 # without $wl, iff we do not link with $LD.
16785 # Luckily, gcc supports the same syntax we need for Sun Studio.
16786 # Supported since Solaris 2.6 (maybe 2.5.1?)
16789 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16791 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16794 link_all_deplibs_GCJ=yes
16798 if test "x$host_vendor" = xsequent; then
16799 # Use $CC to link under sequent, because it throws in some extra .o
16800 # files that make .init and .fini sections work.
16801 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16803 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16805 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806 hardcode_direct_GCJ=yes
16807 hardcode_minus_L_GCJ=yes
16808 hardcode_shlibpath_var_GCJ=no
16812 case $host_vendor in
16814 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815 hardcode_direct_GCJ=yes # is this really true???
16818 ## LD is ld it makes a PLAMLIB
16819 ## CC just makes a GrossModule.
16820 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16821 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16822 hardcode_direct_GCJ=no
16825 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16829 runpath_var='LD_RUN_PATH'
16830 hardcode_shlibpath_var_GCJ=no
16834 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835 hardcode_shlibpath_var_GCJ=no
16836 export_dynamic_flag_spec_GCJ='-Bexport'
16840 if test -d /usr/nec; then
16841 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842 hardcode_shlibpath_var_GCJ=no
16843 runpath_var=LD_RUN_PATH
16844 hardcode_runpath_var=yes
16849 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16850 no_undefined_flag_GCJ='${wl}-z,text'
16851 archive_cmds_need_lc_GCJ=no
16852 hardcode_shlibpath_var_GCJ=no
16853 runpath_var='LD_RUN_PATH'
16855 if test "$GCC" = yes; then
16856 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16857 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16859 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16860 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16864 sysv5* | sco3.2v5* | sco5v6*)
16865 # Note: We can NOT use -z defs as we might desire, because we do not
16866 # link with -lc, and that would cause any symbols used from libc to
16867 # always be unresolved, which means just about no library would
16868 # ever link correctly. If we're not using GNU ld we use -z text
16869 # though, which does catch some bad symbols but isn't as heavy-handed
16871 no_undefined_flag_GCJ='${wl}-z,text'
16872 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16873 archive_cmds_need_lc_GCJ=no
16874 hardcode_shlibpath_var_GCJ=no
16875 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16876 hardcode_libdir_separator_GCJ=':'
16877 link_all_deplibs_GCJ=yes
16878 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16879 runpath_var='LD_RUN_PATH'
16881 if test "$GCC" = yes; then
16882 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16885 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16886 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16891 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16893 hardcode_shlibpath_var_GCJ=no
16902 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16903 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16904 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16907 # Do we need to explicitly link libc?
16909 case "x$archive_cmds_need_lc_GCJ" in
16911 # Assume -lc should be added
16912 archive_cmds_need_lc_GCJ=yes
16914 if test "$enable_shared" = yes && test "$GCC" = yes; then
16915 case $archive_cmds_GCJ in
16917 # FIXME: we may have to deal with multi-command sequences.
16920 # Test whether the compiler implicitly links with -lc since on some
16921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16922 # to ld, don't add -lc before -lgcc.
16923 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16924 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929 (eval $ac_compile) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } 2>conftest.err; then
16935 libobjs=conftest.$ac_objext
16937 wl=$lt_prog_compiler_wl_GCJ
16938 pic_flag=$lt_prog_compiler_pic_GCJ
16944 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16945 allow_undefined_flag_GCJ=
16946 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16947 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }
16952 archive_cmds_need_lc_GCJ=no
16954 archive_cmds_need_lc_GCJ=yes
16956 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16958 cat conftest.err 1>&5
16961 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16962 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16969 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16970 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16971 library_names_spec=
16972 libname_spec='lib$name'
16976 postuninstall_cmds=
16980 shlibpath_overrides_runpath=unknown
16982 dynamic_linker="$host_os ld.so"
16983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16984 if test "$GCC" = yes; then
16985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16986 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16987 # if the path contains ";" then we assume it to be the separator
16988 # otherwise default to the standard path separator (i.e. ":") - it is
16989 # assumed that no part of a normal pathname contains ";" but that should
16990 # okay in the real world where ";" in dirpaths is itself problematic.
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"`
16996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16998 need_lib_prefix=unknown
16999 hardcode_into_libs=no
17001 # when you set need_version to no, make sure it does not cause -set_version
17002 # flags to be left without arguments
17003 need_version=unknown
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17009 shlibpath_var=LIBPATH
17011 # AIX 3 has no versioning support, so we append a major version to the name.
17012 soname_spec='${libname}${release}${shared_ext}$major'
17019 hardcode_into_libs=yes
17020 if test "$host_cpu" = ia64; then
17021 # AIX 5 supports IA64
17022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17023 shlibpath_var=LD_LIBRARY_PATH
17025 # With GCC up to 2.95.x, collect2 would create an import file
17026 # for dependence libraries. The import file would start with
17027 # the line `#! .'. This would cause the generated library to
17028 # depend on `.', always an invalid library. This was fixed in
17029 # development snapshots of GCC prior to 3.0.
17031 aix4 | aix4.[01] | aix4.[01].*)
17032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17034 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17037 can_build_shared=no
17041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17042 # soname into executable. Probably we can add versioning support to
17043 # collect2, so additional links can be useful in future.
17044 if test "$aix_use_runtimelinking" = yes; then
17045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17046 # instead of lib<name>.a to let people know that these are not
17047 # typical AIX shared libraries.
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 # We preserve .a as extension for shared libraries through AIX4.2
17051 # and later when we are not doing run time linking.
17052 library_names_spec='${libname}${release}.a $libname.a'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17055 shlibpath_var=LIBPATH
17060 library_names_spec='$libname.ixlibrary $libname.a'
17061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17062 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'
17066 library_names_spec='${libname}${shared_ext}'
17067 dynamic_linker="$host_os ld.so"
17068 shlibpath_var=LIBRARY_PATH
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17080 # the default ld.so.conf also contains /usr/contrib/lib and
17081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17082 # libtool to hard-code these into programs
17085 cygwin* | mingw* | pw32*)
17086 version_type=windows
17091 case $GCC,$host_os in
17092 yes,cygwin* | yes,mingw* | yes,pw32*)
17093 library_names_spec='$libname.dll.a'
17094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17095 postinstall_cmds='base_file=`basename \${file}`~
17096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17097 dldir=$destdir/`dirname \$dlpath`~
17098 test -d \$dldir || mkdir -p \$dldir~
17099 $install_prog $dir/$dlname \$dldir/$dlname~
17100 chmod a+x \$dldir/$dlname'
17101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17102 dlpath=$dir/\$dldll~
17104 shlibpath_overrides_runpath=yes
17108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17110 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17113 # MinGW DLLs use traditional 'lib' prefix
17114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17116 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17117 # It is most probably a Windows format PATH printed by
17118 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17119 # path with ; separators, and with drive letters. We can handle the
17120 # drive letters (cygwin fileutils understands them), so leave them,
17121 # especially as we might pass files found there to a mingw objdump,
17122 # which wouldn't understand a cygwinified path. Ahh.
17123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17129 # pw32 DLLs use 'pw' prefix rather than 'lib'
17130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17139 dynamic_linker='Win32 ld.exe'
17140 # FIXME: first we should search . and the directory the executable is in
17144 darwin* | rhapsody*)
17145 dynamic_linker="$host_os dyld"
17146 version_type=darwin
17149 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17150 soname_spec='${libname}${release}${major}$shared_ext'
17151 shlibpath_overrides_runpath=yes
17152 shlibpath_var=DYLD_LIBRARY_PATH
17153 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17154 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17155 if test "$GCC" = yes; then
17156 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"`
17158 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17168 soname_spec='${libname}${release}${shared_ext}$major'
17169 shlibpath_var=LD_LIBRARY_PATH
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=no
17184 hardcode_into_libs=yes
17185 dynamic_linker='GNU ld.so'
17188 freebsd* | dragonfly*)
17189 # DragonFly does not have aout. When/if they implement a new
17190 # versioning mechanism, adjust this.
17191 if test -x /usr/bin/objformat; then
17192 objformat=`/usr/bin/objformat`
17195 freebsd[123]*) objformat=aout ;;
17196 *) objformat=elf ;;
17199 version_type=freebsd-$objformat
17200 case $version_type in
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17211 shlibpath_var=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath=yes
17216 freebsd3.[01]* | freebsdelf3.[01]*)
17217 shlibpath_overrides_runpath=yes
17218 hardcode_into_libs=yes
17220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17222 shlibpath_overrides_runpath=no
17223 hardcode_into_libs=yes
17225 freebsd*) # from 4.6 on
17226 shlibpath_overrides_runpath=yes
17227 hardcode_into_libs=yes
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 hardcode_into_libs=yes
17242 hpux9* | hpux10* | hpux11*)
17243 # Give a soname corresponding to the major version so that dld.sl refuses to
17244 # link against other versions.
17251 hardcode_into_libs=yes
17252 dynamic_linker="$host_os dld.so"
17253 shlibpath_var=LD_LIBRARY_PATH
17254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 if test "X$HPUX_IA64_MODE" = X32; then
17258 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17260 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17266 hardcode_into_libs=yes
17267 dynamic_linker="$host_os dld.sl"
17268 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 soname_spec='${libname}${release}${shared_ext}$major'
17272 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17277 dynamic_linker="$host_os dld.sl"
17278 shlibpath_var=SHLIB_PATH
17279 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17284 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17285 postinstall_cmds='chmod 555 $lib'
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17295 shlibpath_var=LD_LIBRARY_PATH
17296 shlibpath_overrides_runpath=no
17297 hardcode_into_libs=yes
17300 irix5* | irix6* | nonstopux*)
17302 nonstopux*) version_type=nonstopux ;;
17304 if test "$lt_cv_prog_gnu_ld" = yes; then
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17315 irix5* | nonstopux*)
17316 libsuff= shlibsuff=
17319 case $LD in # libtool.m4 will add one of these switches to LD
17320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17321 libsuff= shlibsuff= libmagic=32-bit;;
17322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17323 libsuff=32 shlibsuff=N32 libmagic=N32;;
17324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17326 *) libsuff= shlibsuff= libmagic=never-match;;
17330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17331 shlibpath_overrides_runpath=no
17332 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17333 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17334 hardcode_into_libs=yes
17337 # No shared lib support for Linux oldld, aout, or coff.
17338 linux*oldld* | linux*aout* | linux*coff*)
17342 # This must be Linux ELF.
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 shlibpath_overrides_runpath=no
17352 # This implies no fast_install, which is unacceptable.
17353 # Some rework will be needed to allow for fast_install
17354 # before this can be enabled.
17355 hardcode_into_libs=yes
17357 # Append ld.so.conf contents to the search path
17358 if test -f /etc/ld.so.conf; then
17359 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17363 # We used to test for /lib/ld.so.1 and disable shared libraries on
17364 # powerpc, because MkLinux only supported shared libraries with the
17365 # GNU dynamic linker. Since this was broken with cross compilers,
17366 # most powerpc-linux boxes support dynamic linking these days and
17367 # people can always --disable-shared, the test was removed, and we
17368 # assume the GNU/Linux dynamic linker is in use.
17369 dynamic_linker='GNU/Linux ld.so'
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 shlibpath_overrides_runpath=no
17380 hardcode_into_libs=yes
17381 dynamic_linker='NetBSD ld.elf_so'
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17389 soname_spec='${libname}${release}${shared_ext}$major'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=no
17392 hardcode_into_libs=yes
17393 dynamic_linker='GNU ld.so'
17400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17403 dynamic_linker='NetBSD (a.out) ld.so'
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 dynamic_linker='NetBSD ld.elf_so'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 shlibpath_overrides_runpath=yes
17411 hardcode_into_libs=yes
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17417 shlibpath_var=LD_LIBRARY_PATH
17418 shlibpath_overrides_runpath=yes
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426 soname_spec='${libname}${release}${shared_ext}$major'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 shlibpath_overrides_runpath=yes
17433 sys_lib_dlsearch_path_spec="/usr/lib"
17435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17437 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17438 *) need_version=no ;;
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17445 openbsd2.[89] | openbsd2.[89].*)
17446 shlibpath_overrides_runpath=no
17449 shlibpath_overrides_runpath=yes
17453 shlibpath_overrides_runpath=yes
17458 libname_spec='$name'
17461 library_names_spec='$libname${shared_ext} $libname.a'
17462 dynamic_linker='OS/2 ld.exe'
17463 shlibpath_var=LIBPATH
17466 osf3* | osf4* | osf5*)
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482 soname_spec='${libname}${release}${shared_ext}$major'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 shlibpath_overrides_runpath=yes
17485 hardcode_into_libs=yes
17486 # ldd complains unless libraries are executable
17487 postinstall_cmds='chmod +x $lib'
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 shlibpath_overrides_runpath=yes
17496 if test "$with_gnu_ld" = yes; then
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 soname_spec='${libname}${release}${shared_ext}$major'
17506 shlibpath_var=LD_LIBRARY_PATH
17507 case $host_vendor in
17509 shlibpath_overrides_runpath=no
17511 export_dynamic_flag_spec='${wl}-Blargedynsym'
17512 runpath_var=LD_RUN_PATH
17520 shlibpath_overrides_runpath=no
17521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17527 if test -d /usr/nec ;then
17529 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17530 soname_spec='$libname${shared_ext}.$major'
17531 shlibpath_var=LD_LIBRARY_PATH
17535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17536 version_type=freebsd-elf
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17540 soname_spec='${libname}${release}${shared_ext}$major'
17541 shlibpath_var=LD_LIBRARY_PATH
17542 hardcode_into_libs=yes
17543 if test "$with_gnu_ld" = yes; then
17544 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17545 shlibpath_overrides_runpath=no
17547 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17548 shlibpath_overrides_runpath=yes
17551 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17555 sys_lib_dlsearch_path_spec='/usr/lib'
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17569 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17570 echo "${ECHO_T}$dynamic_linker" >&6
17571 test "$dynamic_linker" = no && can_build_shared=no
17573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17574 if test "$GCC" = yes; then
17575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17578 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17579 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17580 hardcode_action_GCJ=
17581 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17582 test -n "$runpath_var_GCJ" || \
17583 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17585 # We can hardcode non-existant directories.
17586 if test "$hardcode_direct_GCJ" != no &&
17587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17588 # have to relink, otherwise we might link with an installed library
17589 # when we should be linking with a yet-to-be-installed one
17590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17591 test "$hardcode_minus_L_GCJ" != no; then
17592 # Linking always hardcodes the temporary library directory.
17593 hardcode_action_GCJ=relink
17595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17596 hardcode_action_GCJ=immediate
17599 # We cannot hardcode anything, or else we can only hardcode existing
17601 hardcode_action_GCJ=unsupported
17603 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17604 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17606 if test "$hardcode_action_GCJ" = relink; then
17607 # Fast installation is not supported
17608 enable_fast_install=no
17609 elif test "$shlibpath_overrides_runpath" = yes ||
17610 test "$enable_shared" = no; then
17611 # Fast installation is not necessary
17612 enable_fast_install=needless
17616 # The else clause should only fire when bootstrapping the
17617 # libtool distribution, otherwise you forgot to ship ltmain.sh
17618 # with your package, and you will get complaints that there are
17619 # no rules to generate ltmain.sh.
17620 if test -f "$ltmain"; then
17621 # See if we are running on zsh, and set the options which allow our commands through
17622 # without removal of \ escapes.
17623 if test -n "${ZSH_VERSION+set}" ; then
17624 setopt NO_GLOB_SUBST
17626 # Now quote all the things that may contain metacharacters while being
17627 # careful not to overquote the AC_SUBSTed values. We take copies of the
17628 # variables and quote the copies for generation of the libtool script.
17629 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17631 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17632 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17633 deplibs_check_method reload_flag reload_cmds need_locks \
17634 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17635 lt_cv_sys_global_symbol_to_c_name_address \
17636 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17637 old_postinstall_cmds old_postuninstall_cmds \
17641 lt_prog_compiler_wl_GCJ \
17642 lt_prog_compiler_pic_GCJ \
17643 lt_prog_compiler_static_GCJ \
17644 lt_prog_compiler_no_builtin_flag_GCJ \
17645 export_dynamic_flag_spec_GCJ \
17646 thread_safe_flag_spec_GCJ \
17647 whole_archive_flag_spec_GCJ \
17648 enable_shared_with_static_runtimes_GCJ \
17649 old_archive_cmds_GCJ \
17650 old_archive_from_new_cmds_GCJ \
17651 predep_objects_GCJ \
17652 postdep_objects_GCJ \
17655 compiler_lib_search_path_GCJ \
17657 archive_expsym_cmds_GCJ \
17658 postinstall_cmds_GCJ \
17659 postuninstall_cmds_GCJ \
17660 old_archive_from_expsyms_cmds_GCJ \
17661 allow_undefined_flag_GCJ \
17662 no_undefined_flag_GCJ \
17663 export_symbols_cmds_GCJ \
17664 hardcode_libdir_flag_spec_GCJ \
17665 hardcode_libdir_flag_spec_ld_GCJ \
17666 hardcode_libdir_separator_GCJ \
17667 hardcode_automatic_GCJ \
17669 module_expsym_cmds_GCJ \
17670 lt_cv_prog_compiler_c_o_GCJ \
17671 exclude_expsyms_GCJ \
17672 include_expsyms_GCJ; do
17675 old_archive_cmds_GCJ | \
17676 old_archive_from_new_cmds_GCJ | \
17677 archive_cmds_GCJ | \
17678 archive_expsym_cmds_GCJ | \
17679 module_cmds_GCJ | \
17680 module_expsym_cmds_GCJ | \
17681 old_archive_from_expsyms_cmds_GCJ | \
17682 export_symbols_cmds_GCJ | \
17683 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17684 postinstall_cmds | postuninstall_cmds | \
17685 old_postinstall_cmds | old_postuninstall_cmds | \
17686 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17687 # Double-quote double-evaled strings.
17688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17697 *'\$0 --fallback-echo"')
17698 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17704 cat <<__EOF__ >> "$cfgfile"
17705 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17709 # Shell to use when invoking shell scripts.
17712 # Whether or not to build shared libraries.
17713 build_libtool_libs=$enable_shared
17715 # Whether or not to build static libraries.
17716 build_old_libs=$enable_static
17718 # Whether or not to add -lc for building shared libraries.
17719 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17721 # Whether or not to disallow shared libs when runtime libs are static
17722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17724 # Whether or not to optimize for fast installation.
17725 fast_install=$enable_fast_install
17728 host_alias=$host_alias
17732 # The build system.
17733 build_alias=$build_alias
17737 # An echo program that does not interpret backslashes.
17742 AR_FLAGS=$lt_AR_FLAGS
17747 # LTCC compiler flags.
17748 LTCFLAGS=$lt_LTCFLAGS
17750 # A language-specific compiler.
17751 CC=$lt_compiler_GCJ
17753 # Is the compiler the GNU C compiler?
17759 # The linker used to build libraries.
17762 # Whether we need hard or soft links.
17765 # A BSD-compatible nm program.
17768 # A symbol stripping program
17771 # Used to examine libraries when file_magic_cmd begins "file"
17772 MAGIC_CMD=$MAGIC_CMD
17774 # Used on cygwin: DLL creation program.
17777 # Used on cygwin: object dumper.
17780 # Used on cygwin: assembler.
17783 # The name of the directory that contains temporary libtool files.
17786 # How to create reloadable object files.
17787 reload_flag=$lt_reload_flag
17788 reload_cmds=$lt_reload_cmds
17790 # How to pass a linker flag through the compiler.
17791 wl=$lt_lt_prog_compiler_wl_GCJ
17793 # Object file suffix (normally "o").
17794 objext="$ac_objext"
17796 # Old archive suffix (normally "a").
17799 # Shared library suffix (normally ".so").
17800 shrext_cmds='$shrext_cmds'
17802 # Executable file suffix (normally "").
17805 # Additional compiler flags for building library objects.
17806 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17809 # What is the maximum length of a command?
17810 max_cmd_len=$lt_cv_sys_max_cmd_len
17812 # Does compiler simultaneously support -c and -o options?
17813 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17815 # Must we lock files when doing compilation?
17816 need_locks=$lt_need_locks
17818 # Do we need the lib prefix for modules?
17819 need_lib_prefix=$need_lib_prefix
17821 # Do we need a version for libraries?
17822 need_version=$need_version
17824 # Whether dlopen is supported.
17825 dlopen_support=$enable_dlopen
17827 # Whether dlopen of programs is supported.
17828 dlopen_self=$enable_dlopen_self
17830 # Whether dlopen of statically linked programs is supported.
17831 dlopen_self_static=$enable_dlopen_self_static
17833 # Compiler flag to prevent dynamic linking.
17834 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17836 # Compiler flag to turn off builtin functions.
17837 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17839 # Compiler flag to allow reflexive dlopens.
17840 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17842 # Compiler flag to generate shared objects directly from archives.
17843 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17845 # Compiler flag to generate thread-safe objects.
17846 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17848 # Library versioning type.
17849 version_type=$version_type
17851 # Format of library name prefix.
17852 libname_spec=$lt_libname_spec
17854 # List of archive names. First name is the real one, the rest are links.
17855 # The last name is the one that the linker finds with -lNAME.
17856 library_names_spec=$lt_library_names_spec
17858 # The coded name of the library, if different from the real name.
17859 soname_spec=$lt_soname_spec
17861 # Commands used to build and install an old-style archive.
17863 old_archive_cmds=$lt_old_archive_cmds_GCJ
17864 old_postinstall_cmds=$lt_old_postinstall_cmds
17865 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17867 # Create an old-style archive from a shared archive.
17868 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17870 # Create a temporary old-style archive to link instead of a shared archive.
17871 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17873 # Commands used to build and install a shared archive.
17874 archive_cmds=$lt_archive_cmds_GCJ
17875 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17876 postinstall_cmds=$lt_postinstall_cmds
17877 postuninstall_cmds=$lt_postuninstall_cmds
17879 # Commands used to build a loadable module (assumed same as above if empty)
17880 module_cmds=$lt_module_cmds_GCJ
17881 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17883 # Commands to strip libraries.
17884 old_striplib=$lt_old_striplib
17885 striplib=$lt_striplib
17887 # Dependencies to place before the objects being linked to create a
17889 predep_objects=$lt_predep_objects_GCJ
17891 # Dependencies to place after the objects being linked to create a
17893 postdep_objects=$lt_postdep_objects_GCJ
17895 # Dependencies to place before the objects being linked to create a
17897 predeps=$lt_predeps_GCJ
17899 # Dependencies to place after the objects being linked to create a
17901 postdeps=$lt_postdeps_GCJ
17903 # The library search path used internally by the compiler when linking
17904 # a shared library.
17905 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17907 # Method to check whether dependent libraries are shared objects.
17908 deplibs_check_method=$lt_deplibs_check_method
17910 # Command to use when deplibs_check_method == file_magic.
17911 file_magic_cmd=$lt_file_magic_cmd
17913 # Flag that allows shared libraries with undefined symbols to be built.
17914 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17916 # Flag that forces no undefined symbols.
17917 no_undefined_flag=$lt_no_undefined_flag_GCJ
17919 # Commands used to finish a libtool library installation in a directory.
17920 finish_cmds=$lt_finish_cmds
17922 # Same as above, but a single script fragment to be evaled but not shown.
17923 finish_eval=$lt_finish_eval
17925 # Take the output of nm and produce a listing of raw symbols and C names.
17926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17928 # Transform the output of nm in a proper C declaration
17929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17931 # Transform the output of nm in a C name address pair
17932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17934 # This is the shared library runtime path variable.
17935 runpath_var=$runpath_var
17937 # This is the shared library path variable.
17938 shlibpath_var=$shlibpath_var
17940 # Is shlibpath searched before the hard-coded library search path?
17941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17943 # How to hardcode a shared library path into an executable.
17944 hardcode_action=$hardcode_action_GCJ
17946 # Whether we should hardcode library paths into libraries.
17947 hardcode_into_libs=$hardcode_into_libs
17949 # Flag to hardcode \$libdir into a binary during linking.
17950 # This must work even if \$libdir does not exist.
17951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17953 # If ld is used when linking, flag to hardcode \$libdir into
17954 # a binary during linking. This must work even if \$libdir does
17956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17958 # Whether we need a single -rpath flag with a separated argument.
17959 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17962 # resulting binary.
17963 hardcode_direct=$hardcode_direct_GCJ
17965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17966 # resulting binary.
17967 hardcode_minus_L=$hardcode_minus_L_GCJ
17969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17970 # the resulting binary.
17971 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17973 # Set to yes if building a shared library automatically hardcodes DIR into the library
17974 # and all subsequent libraries and executables linked against it.
17975 hardcode_automatic=$hardcode_automatic_GCJ
17977 # Variables whose values should be saved in libtool wrapper scripts and
17978 # restored at relink time.
17979 variables_saved_for_relink="$variables_saved_for_relink"
17981 # Whether libtool must link a program against all its dependency libraries.
17982 link_all_deplibs=$link_all_deplibs_GCJ
17984 # Compile-time system search path for libraries
17985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17987 # Run-time system search path for libraries
17988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17990 # Fix the shell variable \$srcfile for the compiler.
17991 fix_srcfile_path="$fix_srcfile_path_GCJ"
17993 # Set to yes if exported symbols are required.
17994 always_export_symbols=$always_export_symbols_GCJ
17996 # The commands to list exported symbols.
17997 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17999 # The commands to extract the exported symbol list from a shared archive.
18000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18002 # Symbols that should not be listed in the preloaded symbols.
18003 exclude_expsyms=$lt_exclude_expsyms_GCJ
18005 # Symbols that must always be exported.
18006 include_expsyms=$lt_include_expsyms_GCJ
18008 # ### END LIBTOOL TAG CONFIG: $tagname
18014 # If there is no Makefile yet, we rely on a make rule to execute
18015 # `config.status --recheck' to rerun these tests and create the
18016 # libtool script then.
18017 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18018 if test -f "$ltmain_in"; then
18019 test -f Makefile && make "$ltmain"
18025 ac_cpp='$CPP $CPPFLAGS'
18026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041 # Source file extension for RC test sources.
18044 # Object file extension for compiled RC test sources.
18048 # Code to be used in simple compile tests
18049 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18051 # Code to be used in simple link tests
18052 lt_simple_link_test_code="$lt_simple_compile_test_code"
18054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18056 # If no C compiler was specified, use CC.
18059 # If no C compiler flags were specified, use CFLAGS.
18060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18062 # Allow CC to be a program name with arguments.
18066 # save warnings/boilerplate of simple test code
18067 ac_outfile=conftest.$ac_objext
18068 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18070 _lt_compiler_boilerplate=`cat conftest.err`
18073 ac_outfile=conftest.$ac_objext
18074 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18076 _lt_linker_boilerplate=`cat conftest.err`
18080 # Allow CC to be a program name with arguments.
18085 for cc_temp in $compiler""; do
18087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18095 lt_cv_prog_compiler_c_o_RC=yes
18097 # The else clause should only fire when bootstrapping the
18098 # libtool distribution, otherwise you forgot to ship ltmain.sh
18099 # with your package, and you will get complaints that there are
18100 # no rules to generate ltmain.sh.
18101 if test -f "$ltmain"; then
18102 # See if we are running on zsh, and set the options which allow our commands through
18103 # without removal of \ escapes.
18104 if test -n "${ZSH_VERSION+set}" ; then
18105 setopt NO_GLOB_SUBST
18107 # Now quote all the things that may contain metacharacters while being
18108 # careful not to overquote the AC_SUBSTed values. We take copies of the
18109 # variables and quote the copies for generation of the libtool script.
18110 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18112 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18113 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18114 deplibs_check_method reload_flag reload_cmds need_locks \
18115 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18116 lt_cv_sys_global_symbol_to_c_name_address \
18117 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18118 old_postinstall_cmds old_postuninstall_cmds \
18122 lt_prog_compiler_wl_RC \
18123 lt_prog_compiler_pic_RC \
18124 lt_prog_compiler_static_RC \
18125 lt_prog_compiler_no_builtin_flag_RC \
18126 export_dynamic_flag_spec_RC \
18127 thread_safe_flag_spec_RC \
18128 whole_archive_flag_spec_RC \
18129 enable_shared_with_static_runtimes_RC \
18130 old_archive_cmds_RC \
18131 old_archive_from_new_cmds_RC \
18132 predep_objects_RC \
18133 postdep_objects_RC \
18136 compiler_lib_search_path_RC \
18138 archive_expsym_cmds_RC \
18139 postinstall_cmds_RC \
18140 postuninstall_cmds_RC \
18141 old_archive_from_expsyms_cmds_RC \
18142 allow_undefined_flag_RC \
18143 no_undefined_flag_RC \
18144 export_symbols_cmds_RC \
18145 hardcode_libdir_flag_spec_RC \
18146 hardcode_libdir_flag_spec_ld_RC \
18147 hardcode_libdir_separator_RC \
18148 hardcode_automatic_RC \
18150 module_expsym_cmds_RC \
18151 lt_cv_prog_compiler_c_o_RC \
18152 exclude_expsyms_RC \
18153 include_expsyms_RC; do
18156 old_archive_cmds_RC | \
18157 old_archive_from_new_cmds_RC | \
18158 archive_cmds_RC | \
18159 archive_expsym_cmds_RC | \
18161 module_expsym_cmds_RC | \
18162 old_archive_from_expsyms_cmds_RC | \
18163 export_symbols_cmds_RC | \
18164 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18165 postinstall_cmds | postuninstall_cmds | \
18166 old_postinstall_cmds | old_postuninstall_cmds | \
18167 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18168 # Double-quote double-evaled strings.
18169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18178 *'\$0 --fallback-echo"')
18179 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18185 cat <<__EOF__ >> "$cfgfile"
18186 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18190 # Shell to use when invoking shell scripts.
18193 # Whether or not to build shared libraries.
18194 build_libtool_libs=$enable_shared
18196 # Whether or not to build static libraries.
18197 build_old_libs=$enable_static
18199 # Whether or not to add -lc for building shared libraries.
18200 build_libtool_need_lc=$archive_cmds_need_lc_RC
18202 # Whether or not to disallow shared libs when runtime libs are static
18203 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18205 # Whether or not to optimize for fast installation.
18206 fast_install=$enable_fast_install
18209 host_alias=$host_alias
18213 # The build system.
18214 build_alias=$build_alias
18218 # An echo program that does not interpret backslashes.
18223 AR_FLAGS=$lt_AR_FLAGS
18228 # LTCC compiler flags.
18229 LTCFLAGS=$lt_LTCFLAGS
18231 # A language-specific compiler.
18234 # Is the compiler the GNU C compiler?
18240 # The linker used to build libraries.
18243 # Whether we need hard or soft links.
18246 # A BSD-compatible nm program.
18249 # A symbol stripping program
18252 # Used to examine libraries when file_magic_cmd begins "file"
18253 MAGIC_CMD=$MAGIC_CMD
18255 # Used on cygwin: DLL creation program.
18258 # Used on cygwin: object dumper.
18261 # Used on cygwin: assembler.
18264 # The name of the directory that contains temporary libtool files.
18267 # How to create reloadable object files.
18268 reload_flag=$lt_reload_flag
18269 reload_cmds=$lt_reload_cmds
18271 # How to pass a linker flag through the compiler.
18272 wl=$lt_lt_prog_compiler_wl_RC
18274 # Object file suffix (normally "o").
18275 objext="$ac_objext"
18277 # Old archive suffix (normally "a").
18280 # Shared library suffix (normally ".so").
18281 shrext_cmds='$shrext_cmds'
18283 # Executable file suffix (normally "").
18286 # Additional compiler flags for building library objects.
18287 pic_flag=$lt_lt_prog_compiler_pic_RC
18290 # What is the maximum length of a command?
18291 max_cmd_len=$lt_cv_sys_max_cmd_len
18293 # Does compiler simultaneously support -c and -o options?
18294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18296 # Must we lock files when doing compilation?
18297 need_locks=$lt_need_locks
18299 # Do we need the lib prefix for modules?
18300 need_lib_prefix=$need_lib_prefix
18302 # Do we need a version for libraries?
18303 need_version=$need_version
18305 # Whether dlopen is supported.
18306 dlopen_support=$enable_dlopen
18308 # Whether dlopen of programs is supported.
18309 dlopen_self=$enable_dlopen_self
18311 # Whether dlopen of statically linked programs is supported.
18312 dlopen_self_static=$enable_dlopen_self_static
18314 # Compiler flag to prevent dynamic linking.
18315 link_static_flag=$lt_lt_prog_compiler_static_RC
18317 # Compiler flag to turn off builtin functions.
18318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18320 # Compiler flag to allow reflexive dlopens.
18321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18323 # Compiler flag to generate shared objects directly from archives.
18324 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18326 # Compiler flag to generate thread-safe objects.
18327 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18329 # Library versioning type.
18330 version_type=$version_type
18332 # Format of library name prefix.
18333 libname_spec=$lt_libname_spec
18335 # List of archive names. First name is the real one, the rest are links.
18336 # The last name is the one that the linker finds with -lNAME.
18337 library_names_spec=$lt_library_names_spec
18339 # The coded name of the library, if different from the real name.
18340 soname_spec=$lt_soname_spec
18342 # Commands used to build and install an old-style archive.
18344 old_archive_cmds=$lt_old_archive_cmds_RC
18345 old_postinstall_cmds=$lt_old_postinstall_cmds
18346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18348 # Create an old-style archive from a shared archive.
18349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18351 # Create a temporary old-style archive to link instead of a shared archive.
18352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18354 # Commands used to build and install a shared archive.
18355 archive_cmds=$lt_archive_cmds_RC
18356 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18357 postinstall_cmds=$lt_postinstall_cmds
18358 postuninstall_cmds=$lt_postuninstall_cmds
18360 # Commands used to build a loadable module (assumed same as above if empty)
18361 module_cmds=$lt_module_cmds_RC
18362 module_expsym_cmds=$lt_module_expsym_cmds_RC
18364 # Commands to strip libraries.
18365 old_striplib=$lt_old_striplib
18366 striplib=$lt_striplib
18368 # Dependencies to place before the objects being linked to create a
18370 predep_objects=$lt_predep_objects_RC
18372 # Dependencies to place after the objects being linked to create a
18374 postdep_objects=$lt_postdep_objects_RC
18376 # Dependencies to place before the objects being linked to create a
18378 predeps=$lt_predeps_RC
18380 # Dependencies to place after the objects being linked to create a
18382 postdeps=$lt_postdeps_RC
18384 # The library search path used internally by the compiler when linking
18385 # a shared library.
18386 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18388 # Method to check whether dependent libraries are shared objects.
18389 deplibs_check_method=$lt_deplibs_check_method
18391 # Command to use when deplibs_check_method == file_magic.
18392 file_magic_cmd=$lt_file_magic_cmd
18394 # Flag that allows shared libraries with undefined symbols to be built.
18395 allow_undefined_flag=$lt_allow_undefined_flag_RC
18397 # Flag that forces no undefined symbols.
18398 no_undefined_flag=$lt_no_undefined_flag_RC
18400 # Commands used to finish a libtool library installation in a directory.
18401 finish_cmds=$lt_finish_cmds
18403 # Same as above, but a single script fragment to be evaled but not shown.
18404 finish_eval=$lt_finish_eval
18406 # Take the output of nm and produce a listing of raw symbols and C names.
18407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18409 # Transform the output of nm in a proper C declaration
18410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18412 # Transform the output of nm in a C name address pair
18413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18415 # This is the shared library runtime path variable.
18416 runpath_var=$runpath_var
18418 # This is the shared library path variable.
18419 shlibpath_var=$shlibpath_var
18421 # Is shlibpath searched before the hard-coded library search path?
18422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18424 # How to hardcode a shared library path into an executable.
18425 hardcode_action=$hardcode_action_RC
18427 # Whether we should hardcode library paths into libraries.
18428 hardcode_into_libs=$hardcode_into_libs
18430 # Flag to hardcode \$libdir into a binary during linking.
18431 # This must work even if \$libdir does not exist.
18432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18434 # If ld is used when linking, flag to hardcode \$libdir into
18435 # a binary during linking. This must work even if \$libdir does
18437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18439 # Whether we need a single -rpath flag with a separated argument.
18440 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18443 # resulting binary.
18444 hardcode_direct=$hardcode_direct_RC
18446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18447 # resulting binary.
18448 hardcode_minus_L=$hardcode_minus_L_RC
18450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18451 # the resulting binary.
18452 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18454 # Set to yes if building a shared library automatically hardcodes DIR into the library
18455 # and all subsequent libraries and executables linked against it.
18456 hardcode_automatic=$hardcode_automatic_RC
18458 # Variables whose values should be saved in libtool wrapper scripts and
18459 # restored at relink time.
18460 variables_saved_for_relink="$variables_saved_for_relink"
18462 # Whether libtool must link a program against all its dependency libraries.
18463 link_all_deplibs=$link_all_deplibs_RC
18465 # Compile-time system search path for libraries
18466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18468 # Run-time system search path for libraries
18469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18471 # Fix the shell variable \$srcfile for the compiler.
18472 fix_srcfile_path="$fix_srcfile_path_RC"
18474 # Set to yes if exported symbols are required.
18475 always_export_symbols=$always_export_symbols_RC
18477 # The commands to list exported symbols.
18478 export_symbols_cmds=$lt_export_symbols_cmds_RC
18480 # The commands to extract the exported symbol list from a shared archive.
18481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18483 # Symbols that should not be listed in the preloaded symbols.
18484 exclude_expsyms=$lt_exclude_expsyms_RC
18486 # Symbols that must always be exported.
18487 include_expsyms=$lt_include_expsyms_RC
18489 # ### END LIBTOOL TAG CONFIG: $tagname
18495 # If there is no Makefile yet, we rely on a make rule to execute
18496 # `config.status --recheck' to rerun these tests and create the
18497 # libtool script then.
18498 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18499 if test -f "$ltmain_in"; then
18500 test -f Makefile && make "$ltmain"
18506 ac_cpp='$CPP $CPPFLAGS'
18507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18516 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18517 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18518 { (exit 1); exit 1; }; }
18522 # Append the new tag name to the list of available tags.
18523 if test -n "$tagname" ; then
18524 available_tags="$available_tags $tagname"
18530 # Now substitute the updated list of available tags.
18531 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18532 mv "${ofile}T" "$ofile"
18536 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18537 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18538 { (exit 1); exit 1; }; }
18544 # This can be used to rebuild libtool when needed
18545 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18547 # Always use our own libtool.
18548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18550 # Prevent multiple expansion
18573 # Check whether --with-valgrind or --without-valgrind was given.
18574 if test "${with_valgrind+set}" = set; then
18575 withval="$with_valgrind"
18579 if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then
18581 cat >>confdefs.h <<\_ACEOF
18582 #define INCLUDE_VALGRIND 1
18585 if test -d $with_valgrind; then
18586 CPPFLAGS="$CPPLFAGS -I$with_valgrind/include"
18590 # Check whether --enable-libcheck or --disable-libcheck was given.
18591 if test "${enable_libcheck+set}" = set; then
18592 enableval="$enable_libcheck"
18593 if test "$enableval" = "no"; then
18594 disable_libcheck=yes
18600 ac_cpp='$CPP $CPPFLAGS'
18601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18604 if test -n "$ac_tool_prefix"; then
18605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18606 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18607 echo "$as_me:$LINENO: checking for $ac_word" >&5
18608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18609 if test "${ac_cv_prog_CC+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 if test -n "$CC"; then
18613 ac_cv_prog_CC="$CC" # Let the user override the test.
18615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in $PATH
18619 test -z "$as_dir" && as_dir=.
18620 for ac_exec_ext in '' $ac_executable_extensions; do
18621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18632 if test -n "$CC"; then
18633 echo "$as_me:$LINENO: result: $CC" >&5
18634 echo "${ECHO_T}$CC" >&6
18636 echo "$as_me:$LINENO: result: no" >&5
18637 echo "${ECHO_T}no" >&6
18641 if test -z "$ac_cv_prog_CC"; then
18643 # Extract the first word of "gcc", so it can be a program name with args.
18644 set dummy gcc; ac_word=$2
18645 echo "$as_me:$LINENO: checking for $ac_word" >&5
18646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 if test -n "$ac_ct_CC"; then
18651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654 for as_dir in $PATH
18657 test -z "$as_dir" && as_dir=.
18658 for ac_exec_ext in '' $ac_executable_extensions; do
18659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660 ac_cv_prog_ac_ct_CC="gcc"
18661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18670 if test -n "$ac_ct_CC"; then
18671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18672 echo "${ECHO_T}$ac_ct_CC" >&6
18674 echo "$as_me:$LINENO: result: no" >&5
18675 echo "${ECHO_T}no" >&6
18680 CC="$ac_cv_prog_CC"
18683 if test -z "$CC"; then
18684 if test -n "$ac_tool_prefix"; then
18685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18686 set dummy ${ac_tool_prefix}cc; ac_word=$2
18687 echo "$as_me:$LINENO: checking for $ac_word" >&5
18688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18689 if test "${ac_cv_prog_CC+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 if test -n "$CC"; then
18693 ac_cv_prog_CC="$CC" # Let the user override the test.
18695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696 for as_dir in $PATH
18699 test -z "$as_dir" && as_dir=.
18700 for ac_exec_ext in '' $ac_executable_extensions; do
18701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702 ac_cv_prog_CC="${ac_tool_prefix}cc"
18703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18712 if test -n "$CC"; then
18713 echo "$as_me:$LINENO: result: $CC" >&5
18714 echo "${ECHO_T}$CC" >&6
18716 echo "$as_me:$LINENO: result: no" >&5
18717 echo "${ECHO_T}no" >&6
18721 if test -z "$ac_cv_prog_CC"; then
18723 # Extract the first word of "cc", so it can be a program name with args.
18724 set dummy cc; ac_word=$2
18725 echo "$as_me:$LINENO: checking for $ac_word" >&5
18726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 if test -n "$ac_ct_CC"; then
18731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18734 for as_dir in $PATH
18737 test -z "$as_dir" && as_dir=.
18738 for ac_exec_ext in '' $ac_executable_extensions; do
18739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18740 ac_cv_prog_ac_ct_CC="cc"
18741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18750 if test -n "$ac_ct_CC"; then
18751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18752 echo "${ECHO_T}$ac_ct_CC" >&6
18754 echo "$as_me:$LINENO: result: no" >&5
18755 echo "${ECHO_T}no" >&6
18760 CC="$ac_cv_prog_CC"
18764 if test -z "$CC"; then
18765 # Extract the first word of "cc", so it can be a program name with args.
18766 set dummy cc; ac_word=$2
18767 echo "$as_me:$LINENO: checking for $ac_word" >&5
18768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18769 if test "${ac_cv_prog_CC+set}" = set; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 if test -n "$CC"; then
18773 ac_cv_prog_CC="$CC" # Let the user override the test.
18775 ac_prog_rejected=no
18776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18777 for as_dir in $PATH
18780 test -z "$as_dir" && as_dir=.
18781 for ac_exec_ext in '' $ac_executable_extensions; do
18782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18784 ac_prog_rejected=yes
18788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18794 if test $ac_prog_rejected = yes; then
18795 # We found a bogon in the path, so make sure we never use it.
18796 set dummy $ac_cv_prog_CC
18798 if test $# != 0; then
18799 # We chose a different compiler from the bogus one.
18800 # However, it has the same basename, so the bogon will be chosen
18801 # first if we set CC to just the basename; use the full file name.
18803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18809 if test -n "$CC"; then
18810 echo "$as_me:$LINENO: result: $CC" >&5
18811 echo "${ECHO_T}$CC" >&6
18813 echo "$as_me:$LINENO: result: no" >&5
18814 echo "${ECHO_T}no" >&6
18818 if test -z "$CC"; then
18819 if test -n "$ac_tool_prefix"; then
18822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18824 echo "$as_me:$LINENO: checking for $ac_word" >&5
18825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18826 if test "${ac_cv_prog_CC+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 if test -n "$CC"; then
18830 ac_cv_prog_CC="$CC" # Let the user override the test.
18832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18833 for as_dir in $PATH
18836 test -z "$as_dir" && as_dir=.
18837 for ac_exec_ext in '' $ac_executable_extensions; do
18838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18849 if test -n "$CC"; then
18850 echo "$as_me:$LINENO: result: $CC" >&5
18851 echo "${ECHO_T}$CC" >&6
18853 echo "$as_me:$LINENO: result: no" >&5
18854 echo "${ECHO_T}no" >&6
18857 test -n "$CC" && break
18860 if test -z "$CC"; then
18864 # Extract the first word of "$ac_prog", so it can be a program name with args.
18865 set dummy $ac_prog; ac_word=$2
18866 echo "$as_me:$LINENO: checking for $ac_word" >&5
18867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 if test -n "$ac_ct_CC"; then
18872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18875 for as_dir in $PATH
18878 test -z "$as_dir" && as_dir=.
18879 for ac_exec_ext in '' $ac_executable_extensions; do
18880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18881 ac_cv_prog_ac_ct_CC="$ac_prog"
18882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18891 if test -n "$ac_ct_CC"; then
18892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18893 echo "${ECHO_T}$ac_ct_CC" >&6
18895 echo "$as_me:$LINENO: result: no" >&5
18896 echo "${ECHO_T}no" >&6
18899 test -n "$ac_ct_CC" && break
18908 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18909 See \`config.log' for more details." >&5
18910 echo "$as_me: error: no acceptable C compiler found in \$PATH
18911 See \`config.log' for more details." >&2;}
18912 { (exit 1); exit 1; }; }
18914 # Provide some information about the compiler.
18915 echo "$as_me:$LINENO:" \
18916 "checking for C compiler version" >&5
18917 ac_compiler=`set X $ac_compile; echo $2`
18918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18919 (eval $ac_compiler --version </dev/null >&5) 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }
18923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18924 (eval $ac_compiler -v </dev/null >&5) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }
18928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18929 (eval $ac_compiler -V </dev/null >&5) 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }
18934 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18935 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18936 if test "${ac_cv_c_compiler_gnu+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18957 rm -f conftest.$ac_objext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18959 (eval $ac_compile) 2>conftest.er1
18961 grep -v '^ *+' conftest.er1 >conftest.err
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest.$ac_objext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_compiler_gnu=yes
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18989 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
18990 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18991 GCC=`test $ac_compiler_gnu = yes && echo yes`
18992 ac_test_CFLAGS=${CFLAGS+set}
18993 ac_save_CFLAGS=$CFLAGS
18995 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18996 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18997 if test "${ac_cv_prog_cc_g+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 cat >conftest.$ac_ext <<_ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19015 rm -f conftest.$ac_objext
19016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19017 (eval $ac_compile) 2>conftest.er1
19019 grep -v '^ *+' conftest.er1 >conftest.err
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest.$ac_objext'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 ac_cv_prog_cc_g=yes
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19046 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19047 if test "$ac_test_CFLAGS" = set; then
19048 CFLAGS=$ac_save_CFLAGS
19049 elif test $ac_cv_prog_cc_g = yes; then
19050 if test "$GCC" = yes; then
19056 if test "$GCC" = yes; then
19062 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19063 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19064 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 ac_cv_prog_cc_stdc=no
19069 cat >conftest.$ac_ext <<_ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 #include <stdarg.h>
19077 #include <sys/types.h>
19078 #include <sys/stat.h>
19079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19080 struct buf { int x; };
19081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19082 static char *e (p, i)
19088 static char *f (char * (*g) (char **, int), char **p, ...)
19093 s = g (p, va_arg (v,int));
19098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19099 function prototypes and stuff, but not '\xHH' hex character constants.
19100 These don't provoke an error unfortunately, instead are silently treated
19101 as 'x'. The following induces an error, until -std1 is added to get
19102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19103 array size at least. It's necessary to write '\x00'==0 to get something
19104 that's true only with -std1. */
19105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19107 int test (int i, double x);
19108 struct s1 {int (*f) (int a);};
19109 struct s2 {int (*f) (double a);};
19110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19121 # Don't try gcc -ansi; that turns off useful extensions and
19122 # breaks some systems' header files.
19123 # AIX -qlanglvl=ansi
19124 # Ultrix and OSF/1 -std1
19125 # HP-UX 10.20 and later -Ae
19126 # HP-UX older versions -Aa -D_HPUX_SOURCE
19127 # SVR4 -Xc -D__EXTENSIONS__
19128 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19130 CC="$ac_save_CC $ac_arg"
19131 rm -f conftest.$ac_objext
19132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19133 (eval $ac_compile) 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest.$ac_objext'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_prog_cc_stdc=$ac_arg
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19159 rm -f conftest.err conftest.$ac_objext
19161 rm -f conftest.$ac_ext conftest.$ac_objext
19166 case "x$ac_cv_prog_cc_stdc" in
19168 echo "$as_me:$LINENO: result: none needed" >&5
19169 echo "${ECHO_T}none needed" >&6 ;;
19171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19172 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19173 CC="$CC $ac_cv_prog_cc_stdc" ;;
19176 # Some people use a C++ compiler to compile C. Since we use `exit',
19177 # in C++ we need to declare it. In case someone uses the same compiler
19178 # for both compiling C and C++ we need to have the C++ compiler decide
19179 # the declaration of exit, since it's the most demanding environment.
19180 cat >conftest.$ac_ext <<_ACEOF
19181 #ifndef __cplusplus
19185 rm -f conftest.$ac_objext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187 (eval $ac_compile) 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest.$ac_objext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 for ac_declaration in \
19208 'extern "C" void std::exit (int) throw (); using std::exit;' \
19209 'extern "C" void std::exit (int); using std::exit;' \
19210 'extern "C" void exit (int) throw ();' \
19211 'extern "C" void exit (int);' \
19214 cat >conftest.$ac_ext <<_ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19221 #include <stdlib.h>
19230 rm -f conftest.$ac_objext
19231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19259 cat >conftest.$ac_ext <<_ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19274 rm -f conftest.$ac_objext
19275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19278 grep -v '^ *+' conftest.er1 >conftest.err
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
19283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19304 if test -n "$ac_declaration"; then
19305 echo '#ifdef __cplusplus' >>confdefs.h
19306 echo $ac_declaration >>confdefs.h
19307 echo '#endif' >>confdefs.h
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19317 ac_cpp='$CPP $CPPFLAGS'
19318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19322 depcc="$CC" am_compiler_list=
19324 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19325 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19326 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19330 # We make a subdir and do the tests there. Otherwise we can end up
19331 # making bogus files that we don't know about and never remove. For
19332 # instance it was reported that on HP-UX the gcc test will end up
19333 # making a dummy file named `D' -- because `-MD' means `put the output
19336 # Copy depcomp to subdir because otherwise we won't find it if we're
19337 # using a relative directory.
19338 cp "$am_depcomp" conftest.dir
19340 # We will build objects and dependencies in a subdirectory because
19341 # it helps to detect inapplicable dependency modes. For instance
19342 # both Tru64's cc and ICC support -MD to output dependencies as a
19343 # side effect of compilation, but ICC will put the dependencies in
19344 # the current directory while Tru64 will put them in the object
19348 am_cv_CC_dependencies_compiler_type=none
19349 if test "$am_compiler_list" = ""; then
19350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19352 for depmode in $am_compiler_list; do
19353 # Setup a source with many dependencies, because some compilers
19354 # like to wrap large dependency lists on column 80 (with \), and
19355 # we should not choose a depcomp mode which is confused by this.
19357 # We need to recreate these files for each test, as the compiler may
19358 # overwrite some of them when testing with obscure command lines.
19359 # This happens at least with the AIX C compiler.
19361 for i in 1 2 3 4 5 6; do
19362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19364 # Solaris 8's {/usr,}/bin/sh.
19365 touch sub/conftst$i.h
19367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19371 # after this tag, mechanisms are not by side-effect, so they'll
19372 # only be used when explicitly requested
19373 if test "x$enable_dependency_tracking" = xyes; then
19381 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19382 # mode. It turns out that the SunPro C++ compiler does not properly
19383 # handle `-M -o', and we need to detect this.
19384 if depmode=$depmode \
19385 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19387 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19388 >/dev/null 2>conftest.err &&
19389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19390 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19392 # icc doesn't choke on unknown options, it will just issue warnings
19393 # or remarks (even with -Werror). So we grep stderr for any message
19394 # that says an option was ignored or not supported.
19395 # When given -MP, icc 7.0 and 7.1 complain thusly:
19396 # icc: Command line warning: ignoring option '-M'; no argument required
19397 # The diagnosis changed in icc 8.0:
19398 # icc: Command line remark: option '-MP' not supported
19399 if (grep 'ignoring option' conftest.err ||
19400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19401 am_cv_CC_dependencies_compiler_type=$depmode
19408 rm -rf conftest.dir
19410 am_cv_CC_dependencies_compiler_type=none
19414 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19415 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19421 test "x$enable_dependency_tracking" != xno \
19422 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19423 am__fastdepCC_TRUE=
19424 am__fastdepCC_FALSE='#'
19426 am__fastdepCC_TRUE='#'
19427 am__fastdepCC_FALSE=
19432 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19433 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19434 if test "${ac_cv_c_const+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19447 /* FIXME: Include the comments suggested by Paul. */
19448 #ifndef __cplusplus
19449 /* Ultrix mips cc rejects this. */
19450 typedef int charset[2];
19452 /* SunOS 4.1.1 cc rejects this. */
19453 char const *const *ccp;
19455 /* NEC SVR4.0.2 mips cc rejects this. */
19456 struct point {int x, y;};
19457 static struct point const zero = {0,0};
19458 /* AIX XL C 1.02.0.0 rejects this.
19459 It does not let you subtract one const X* pointer from another in
19460 an arm of an if-expression whose if-part is not a constant
19462 const char *g = "string";
19463 ccp = &g + (g ? g-g : 0);
19464 /* HPUX 7.0 cc rejects these. */
19467 ccp = (char const *const *) p;
19468 { /* SCO 3.2v4 cc rejects this. */
19470 char const *s = 0 ? (char *) 0 : (char const *) 0;
19474 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19475 int x[] = {25, 17};
19476 const int *foo = &x[0];
19479 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19480 typedef const int *iptr;
19484 { /* AIX XL C 1.02.0.0 rejects this saying
19485 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19486 struct s { int j; const int *ap[3]; };
19487 struct s *b; b->j = 5;
19489 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19490 const int foo = 10;
19498 rm -f conftest.$ac_objext
19499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19500 (eval $ac_compile) 2>conftest.er1
19502 grep -v '^ *+' conftest.er1 >conftest.err
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } &&
19507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try='test -s conftest.$ac_objext'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19528 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19529 echo "${ECHO_T}$ac_cv_c_const" >&6
19530 if test $ac_cv_c_const = no; then
19532 cat >>confdefs.h <<\_ACEOF
19538 echo "$as_me:$LINENO: checking for long" >&5
19539 echo $ECHO_N "checking for long... $ECHO_C" >&6
19540 if test "${ac_cv_type_long+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 cat >conftest.$ac_ext <<_ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19549 $ac_includes_default
19561 rm -f conftest.$ac_objext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 (eval $ac_compile) 2>conftest.er1
19565 grep -v '^ *+' conftest.er1 >conftest.err
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest.$ac_objext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_cv_type_long=yes
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19591 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19592 echo "${ECHO_T}$ac_cv_type_long" >&6
19594 echo "$as_me:$LINENO: checking size of long" >&5
19595 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19596 if test "${ac_cv_sizeof_long+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 if test "$ac_cv_type_long" = yes; then
19600 # The cast to unsigned long works around a bug in the HP C Compiler
19601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19603 # This bug is HP SR number 8606223364.
19604 if test "$cross_compiling" = yes; then
19605 # Depending upon the size, compute the lo and hi bounds.
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 $ac_includes_default
19616 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19623 rm -f conftest.$ac_objext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19625 (eval $ac_compile) 2>conftest.er1
19627 grep -v '^ *+' conftest.er1 >conftest.err
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 $ac_includes_default
19656 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19663 rm -f conftest.$ac_objext
19664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665 (eval $ac_compile) 2>conftest.er1
19667 grep -v '^ *+' conftest.er1 >conftest.err
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
19672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; } &&
19678 { ac_try='test -s conftest.$ac_objext'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 ac_hi=$ac_mid; break
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 ac_lo=`expr $ac_mid + 1`
19690 if test $ac_lo -le $ac_mid; then
19694 ac_mid=`expr 2 '*' $ac_mid + 1`
19696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 $ac_includes_default
19712 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19719 rm -f conftest.$ac_objext
19720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19721 (eval $ac_compile) 2>conftest.er1
19723 grep -v '^ *+' conftest.er1 >conftest.err
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } &&
19728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest.$ac_objext'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 $ac_includes_default
19752 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19759 rm -f conftest.$ac_objext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761 (eval $ac_compile) 2>conftest.er1
19763 grep -v '^ *+' conftest.er1 >conftest.err
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest.$ac_objext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_lo=$ac_mid; break
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_hi=`expr '(' $ac_mid ')' - 1`
19786 if test $ac_mid -le $ac_hi; then
19790 ac_mid=`expr 2 '*' $ac_mid`
19792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 # Binary search between lo and hi bounds.
19804 while test "x$ac_lo" != "x$ac_hi"; do
19805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19806 cat >conftest.$ac_ext <<_ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19812 $ac_includes_default
19816 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19823 rm -f conftest.$ac_objext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825 (eval $ac_compile) 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_lo=`expr '(' $ac_mid ')' + 1`
19851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854 ?*) ac_cv_sizeof_long=$ac_lo;;
19855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19856 See \`config.log' for more details." >&5
19857 echo "$as_me: error: cannot compute sizeof (long), 77
19858 See \`config.log' for more details." >&2;}
19859 { (exit 1); exit 1; }; } ;;
19862 if test "$cross_compiling" = yes; then
19863 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19864 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19865 { (exit 1); exit 1; }; }
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 $ac_includes_default
19874 long longval () { return (long) (sizeof (long)); }
19875 unsigned long ulongval () { return (long) (sizeof (long)); }
19877 #include <stdlib.h>
19882 FILE *f = fopen ("conftest.val", "w");
19885 if (((long) (sizeof (long))) < 0)
19887 long i = longval ();
19888 if (i != ((long) (sizeof (long))))
19890 fprintf (f, "%ld\n", i);
19894 unsigned long i = ulongval ();
19895 if (i != ((long) (sizeof (long))))
19897 fprintf (f, "%lu\n", i);
19899 exit (ferror (f) || fclose (f) != 0);
19905 rm -f conftest$ac_exeext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907 (eval $ac_link) 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_sizeof_long=`cat conftest.val`
19918 echo "$as_me: program exited with status $ac_status" >&5
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ( exit $ac_status )
19923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19924 See \`config.log' for more details." >&5
19925 echo "$as_me: error: cannot compute sizeof (long), 77
19926 See \`config.log' for more details." >&2;}
19927 { (exit 1); exit 1; }; }
19929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19934 ac_cv_sizeof_long=0
19937 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19938 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19939 cat >>confdefs.h <<_ACEOF
19940 #define SIZEOF_LONG $ac_cv_sizeof_long
19945 if test "$disable_libcheck" != "yes"; then
19947 echo "$as_me:$LINENO: checking for ibv_get_device_list in -libverbs" >&5
19948 echo $ECHO_N "checking for ibv_get_device_list in -libverbs... $ECHO_C" >&6
19949 if test "${ac_cv_lib_ibverbs_ibv_get_device_list+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 ac_check_lib_save_LIBS=$LIBS
19953 LIBS="-libverbs $LIBS"
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19961 /* Override any gcc2 internal prototype to avoid an error. */
19965 /* We use char because int might match the return type of a gcc2
19966 builtin and then its argument prototype would still apply. */
19967 char ibv_get_device_list ();
19971 ibv_get_device_list ();
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19978 (eval $ac_link) 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest$ac_exeext'
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_cv_lib_ibverbs_ibv_get_device_list=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_lib_ibverbs_ibv_get_device_list=no
20004 rm -f conftest.err conftest.$ac_objext \
20005 conftest$ac_exeext conftest.$ac_ext
20006 LIBS=$ac_check_lib_save_LIBS
20008 echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
20009 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_get_device_list" >&6
20010 if test $ac_cv_lib_ibverbs_ibv_get_device_list = yes; then
20011 cat >>confdefs.h <<_ACEOF
20012 #define HAVE_LIBIBVERBS 1
20015 LIBS="-libverbs $LIBS"
20018 { { echo "$as_me:$LINENO: error: ibv_get_device_list() not found. librdmacm requires libibverbs." >&5
20019 echo "$as_me: error: ibv_get_device_list() not found. librdmacm requires libibverbs." >&2;}
20020 { (exit 1); exit 1; }; }
20025 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20027 if test "${ac_cv_header_stdc+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <stdlib.h>
20037 #include <stdarg.h>
20038 #include <string.h>
20049 rm -f conftest.$ac_objext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051 (eval $ac_compile) 2>conftest.er1
20053 grep -v '^ *+' conftest.er1 >conftest.err
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest.$ac_objext'
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
20070 ac_cv_header_stdc=yes
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 ac_cv_header_stdc=no
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079 if test $ac_cv_header_stdc = yes; then
20080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20081 cat >conftest.$ac_ext <<_ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 #include <string.h>
20090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20091 $EGREP "memchr" >/dev/null 2>&1; then
20094 ac_cv_header_stdc=no
20100 if test $ac_cv_header_stdc = yes; then
20101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20102 cat >conftest.$ac_ext <<_ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 #include <stdlib.h>
20111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20112 $EGREP "free" >/dev/null 2>&1; then
20115 ac_cv_header_stdc=no
20121 if test $ac_cv_header_stdc = yes; then
20122 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20123 if test "$cross_compiling" = yes; then
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20133 #if ((' ' & 0x0FF) == 0x020)
20134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20137 # define ISLOWER(c) \
20138 (('a' <= (c) && (c) <= 'i') \
20139 || ('j' <= (c) && (c) <= 'r') \
20140 || ('s' <= (c) && (c) <= 'z'))
20141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20149 for (i = 0; i < 256; i++)
20150 if (XOR (islower (i), ISLOWER (i))
20151 || toupper (i) != TOUPPER (i))
20156 rm -f conftest$ac_exeext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20158 (eval $ac_link) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20169 echo "$as_me: program exited with status $ac_status" >&5
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ( exit $ac_status )
20174 ac_cv_header_stdc=no
20176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20180 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20181 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20182 if test $ac_cv_header_stdc = yes; then
20184 cat >>confdefs.h <<\_ACEOF
20185 #define STDC_HEADERS 1
20190 if test "$disable_libcheck" != "yes"; then
20191 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20192 echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
20193 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
20194 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
20198 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
20200 # Is the header compilable?
20201 echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
20202 echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6
20203 cat >conftest.$ac_ext <<_ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 $ac_includes_default
20210 #include <infiniband/verbs.h>
20212 rm -f conftest.$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 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); } &&
20221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; } &&
20227 { ac_try='test -s conftest.$ac_objext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
20233 ac_header_compiler=yes
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 ac_header_compiler=no
20240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20242 echo "${ECHO_T}$ac_header_compiler" >&6
20244 # Is the header present?
20245 echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
20246 echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6
20247 cat >conftest.$ac_ext <<_ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 #include <infiniband/verbs.h>
20255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } >/dev/null; then
20263 if test -s conftest.err; then
20264 ac_cpp_err=$ac_c_preproc_warn_flag
20265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20272 if test -z "$ac_cpp_err"; then
20273 ac_header_preproc=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_header_preproc=no
20280 rm -f conftest.err conftest.$ac_ext
20281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20282 echo "${ECHO_T}$ac_header_preproc" >&6
20284 # So? What about this header?
20285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20287 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20288 echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
20290 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
20291 ac_header_preproc=yes
20294 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
20295 echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
20296 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5
20297 echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
20299 echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5
20301 echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
20303 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
20305 echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
20308 ## -------------------------------------------- ##
20309 ## Report this to general@lists.openfabrics.org ##
20310 ## -------------------------------------------- ##
20313 sed "s/^/$as_me: WARNING: /" >&2
20316 echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
20317 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
20318 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 ac_cv_header_infiniband_verbs_h=$ac_header_preproc
20323 echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
20324 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
20327 if test $ac_cv_header_infiniband_verbs_h = yes; then
20330 { { echo "$as_me:$LINENO: error: <infiniband/verbs.h> not found. Is libibverbs installed?" >&5
20331 echo "$as_me: error: <infiniband/verbs.h> not found. Is libibverbs installed?" >&2;}
20332 { (exit 1); exit 1; }; }
20337 if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then
20338 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20339 echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
20340 echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
20341 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
20345 echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
20347 # Is the header compilable?
20348 echo "$as_me:$LINENO: checking valgrind/memcheck.h usability" >&5
20349 echo $ECHO_N "checking valgrind/memcheck.h usability... $ECHO_C" >&6
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 $ac_includes_default
20357 #include <valgrind/memcheck.h>
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361 (eval $ac_compile) 2>conftest.er1
20363 grep -v '^ *+' conftest.er1 >conftest.err
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; } &&
20374 { ac_try='test -s conftest.$ac_objext'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 ac_header_compiler=yes
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 ac_header_compiler=no
20387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20389 echo "${ECHO_T}$ac_header_compiler" >&6
20391 # Is the header present?
20392 echo "$as_me:$LINENO: checking valgrind/memcheck.h presence" >&5
20393 echo $ECHO_N "checking valgrind/memcheck.h presence... $ECHO_C" >&6
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 #include <valgrind/memcheck.h>
20402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } >/dev/null; then
20410 if test -s conftest.err; then
20411 ac_cpp_err=$ac_c_preproc_warn_flag
20412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20419 if test -z "$ac_cpp_err"; then
20420 ac_header_preproc=yes
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20425 ac_header_preproc=no
20427 rm -f conftest.err conftest.$ac_ext
20428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20429 echo "${ECHO_T}$ac_header_preproc" >&6
20431 # So? What about this header?
20432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20434 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
20435 echo "$as_me: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&5
20437 echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&2;}
20438 ac_header_preproc=yes
20441 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&5
20442 echo "$as_me: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&2;}
20443 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: check for missing prerequisite headers?" >&5
20444 echo "$as_me: WARNING: valgrind/memcheck.h: check for missing prerequisite headers?" >&2;}
20445 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&5
20446 echo "$as_me: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&2;}
20447 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: section \"Present But Cannot Be Compiled\"" >&5
20448 echo "$as_me: WARNING: valgrind/memcheck.h: section \"Present But Cannot Be Compiled\"" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&5
20450 echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&5
20452 echo "$as_me: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&2;}
20455 ## -------------------------------------------- ##
20456 ## Report this to general@lists.openfabrics.org ##
20457 ## -------------------------------------------- ##
20460 sed "s/^/$as_me: WARNING: /" >&2
20463 echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
20464 echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6
20465 if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 ac_cv_header_valgrind_memcheck_h=$ac_header_preproc
20470 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
20471 echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6
20474 if test $ac_cv_header_valgrind_memcheck_h = yes; then
20477 { { echo "$as_me:$LINENO: error: valgrind requested but <valgrind/memcheck.h> not found." >&5
20478 echo "$as_me: error: valgrind requested but <valgrind/memcheck.h> not found." >&2;}
20479 { (exit 1); exit 1; }; }
20487 echo "$as_me:$LINENO: checking whether ld accepts --version-script" >&5
20488 echo $ECHO_N "checking whether ld accepts --version-script... $ECHO_C" >&6
20489 if test "${ac_cv_version_script+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
20493 ac_cv_version_script=yes
20495 ac_cv_version_script=no
20498 echo "$as_me:$LINENO: result: $ac_cv_version_script" >&5
20499 echo "${ECHO_T}$ac_cv_version_script" >&6
20503 if test "$ac_cv_version_script" = "yes"; then
20504 HAVE_LD_VERSION_SCRIPT_TRUE=
20505 HAVE_LD_VERSION_SCRIPT_FALSE='#'
20507 HAVE_LD_VERSION_SCRIPT_TRUE='#'
20508 HAVE_LD_VERSION_SCRIPT_FALSE=
20512 ac_config_files="$ac_config_files Makefile librdmacm.spec"
20514 cat >confcache <<\_ACEOF
20515 # This file is a shell script that caches the results of configure
20516 # tests run on this system so they can be shared between configure
20517 # scripts and configure runs, see configure's option --config-cache.
20518 # It is not useful on other systems. If it contains results you don't
20519 # want to keep, you may remove or edit it.
20521 # config.status only pays attention to the cache file if you give it
20522 # the --recheck option to rerun configure.
20524 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20525 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20526 # following values.
20530 # The following way of writing the cache mishandles newlines in values,
20531 # but we know of no workaround that is simple, portable, and efficient.
20532 # So, don't put newlines in cache variables' values.
20533 # Ultrix sh set writes to stderr and can't be redirected directly,
20534 # and sets the high bit in the cache file unless we assign to the vars.
20537 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20539 # `set' does not quote correctly, so add quotes (double-quote
20540 # substitution turns \\\\ into \\, and sed turns \\ into \).
20543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20546 # `set' quotes correctly as required by POSIX, so do not add quotes.
20548 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20557 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20559 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20560 if test -w $cache_file; then
20561 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20562 cat confcache >$cache_file
20564 echo "not updating unwritable cache $cache_file"
20569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20570 # Let make expand exec_prefix.
20571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20573 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20574 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20575 # trailing colons and then remove the whole line if VPATH becomes empty
20576 # (actually we leave an empty line to preserve line numbers).
20577 if test "x$srcdir" = x.; then
20578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20579 s/:*\$(srcdir):*/:/;
20580 s/:*\${srcdir}:*/:/;
20582 s/^\([^=]*=[ ]*\):*/\1/;
20588 DEFS=-DHAVE_CONFIG_H
20592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20593 # 1. Remove the extension, and $U if already installed.
20594 ac_i=`echo "$ac_i" |
20595 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20597 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20598 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20600 LIBOBJS=$ac_libobjs
20602 LTLIBOBJS=$ac_ltlibobjs
20605 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20606 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20607 Usually this means the macro was only invoked conditionally." >&5
20608 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20609 Usually this means the macro was only invoked conditionally." >&2;}
20610 { (exit 1); exit 1; }; }
20612 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20613 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20614 Usually this means the macro was only invoked conditionally." >&5
20615 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20616 Usually this means the macro was only invoked conditionally." >&2;}
20617 { (exit 1); exit 1; }; }
20619 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20620 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20621 Usually this means the macro was only invoked conditionally." >&5
20622 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20623 Usually this means the macro was only invoked conditionally." >&2;}
20624 { (exit 1); exit 1; }; }
20626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20627 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20628 Usually this means the macro was only invoked conditionally." >&5
20629 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20630 Usually this means the macro was only invoked conditionally." >&2;}
20631 { (exit 1); exit 1; }; }
20633 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20634 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20635 Usually this means the macro was only invoked conditionally." >&5
20636 echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20637 Usually this means the macro was only invoked conditionally." >&2;}
20638 { (exit 1); exit 1; }; }
20641 : ${CONFIG_STATUS=./config.status}
20642 ac_clean_files_save=$ac_clean_files
20643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20646 cat >$CONFIG_STATUS <<_ACEOF
20648 # Generated by $as_me.
20649 # Run this file to recreate the current configuration.
20650 # Compiler output produced by configure, useful for debugging
20651 # configure, is in config.log if it exists.
20654 ac_cs_recheck=false
20656 SHELL=\${CONFIG_SHELL-$SHELL}
20659 cat >>$CONFIG_STATUS <<\_ACEOF
20660 ## --------------------- ##
20661 ## M4sh Initialization. ##
20662 ## --------------------- ##
20664 # Be Bourne compatible
20665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20668 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20669 # is contrary to our usage. Disable this feature.
20670 alias -g '${1+"$@"}'='"$@"'
20671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20674 DUALCASE=1; export DUALCASE # for MKS sh
20676 # Support unset when possible.
20677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20684 # Work around bugs in pre-3.0 UWIN ksh.
20685 $as_unset ENV MAIL MAILPATH
20692 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20693 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20694 LC_TELEPHONE LC_TIME
20696 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20697 eval $as_var=C; export $as_var
20703 # Required to use basename.
20704 if expr a : '\(a\)' >/dev/null 2>&1; then
20710 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20711 as_basename=basename
20717 # Name of the executable.
20718 as_me=`$as_basename "$0" ||
20719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20720 X"$0" : 'X\(//\)$' \| \
20721 X"$0" : 'X\(/\)$' \| \
20722 . : '\(.\)' 2>/dev/null ||
20724 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20725 /^X\/\(\/\/\)$/{ s//\1/; q; }
20726 /^X\/\(\/\).*/{ s//\1/; q; }
20730 # PATH needs CR, and LINENO needs CR and PATH.
20731 # Avoid depending upon Character Ranges.
20732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20735 as_cr_digits='0123456789'
20736 as_cr_alnum=$as_cr_Letters$as_cr_digits
20738 # The user is always right.
20739 if test "${PATH_SEPARATOR+set}" != set; then
20740 echo "#! /bin/sh" >conf$$.sh
20741 echo "exit 0" >>conf$$.sh
20743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20752 as_lineno_1=$LINENO
20753 as_lineno_2=$LINENO
20754 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20755 test "x$as_lineno_1" != "x$as_lineno_2" &&
20756 test "x$as_lineno_3" = "x$as_lineno_2" || {
20757 # Find who we are. Look in the path if we contain no path at all
20760 *[\\/]* ) as_myself=$0 ;;
20761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20762 for as_dir in $PATH
20765 test -z "$as_dir" && as_dir=.
20766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20771 # We did not find ourselves, most probably we were run as `sh COMMAND'
20772 # in which case we are not to be found in the path.
20773 if test "x$as_myself" = x; then
20776 if test ! -f "$as_myself"; then
20777 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20778 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20779 { (exit 1); exit 1; }; }
20781 case $CONFIG_SHELL in
20783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20784 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20787 test -z "$as_dir" && as_dir=.
20788 for as_base in sh bash ksh sh5; do
20791 if ("$as_dir/$as_base" -c '
20792 as_lineno_1=$LINENO
20793 as_lineno_2=$LINENO
20794 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20795 test "x$as_lineno_1" != "x$as_lineno_2" &&
20796 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20797 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20798 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20799 CONFIG_SHELL=$as_dir/$as_base
20800 export CONFIG_SHELL
20801 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20809 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20810 # uniformly replaced by the line number. The first 'sed' inserts a
20811 # line-number line before each line; the second 'sed' does the real
20812 # work. The second script uses 'N' to pair each line-number line
20813 # with the numbered line, and appends trailing '-' during
20814 # substitution so that $LINENO is not a special case at line end.
20815 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20816 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20817 sed '=' <$as_myself |
20822 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20825 s,^['$as_cr_digits']*\n,,
20826 ' >$as_me.lineno &&
20827 chmod +x $as_me.lineno ||
20828 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20829 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20830 { (exit 1); exit 1; }; }
20832 # Don't try to exec as it changes $[0], causing all sort of problems
20833 # (the dirname of $[0] is not the place where we might find the
20834 # original and so on. Autoconf is especially sensible to this).
20836 # Exit status is that of the last command.
20841 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20842 *c*,-n*) ECHO_N= ECHO_C='
20844 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20845 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20848 if expr a : '\(a\)' >/dev/null 2>&1; then
20854 rm -f conf$$ conf$$.exe conf$$.file
20856 if ln -s conf$$.file conf$$ 2>/dev/null; then
20857 # We could just check for DJGPP; but this test a) works b) is more generic
20858 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20859 if test -f conf$$.exe; then
20860 # Don't use ln at all; we don't have any links
20865 elif ln conf$$.file conf$$ 2>/dev/null; then
20870 rm -f conf$$ conf$$.exe conf$$.file
20872 if mkdir -p . 2>/dev/null; then
20875 test -d ./-p && rmdir ./-p
20879 as_executable_p="test -f"
20881 # Sed expression to map a string onto a valid CPP name.
20882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20884 # Sed expression to map a string onto a valid variable name.
20885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20889 # We need space, tab and new line, in precisely that order.
20899 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20900 # report actual input values of CONFIG_FILES etc. instead of their
20901 # values after options handling. Logging --version etc. is OK.
20905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20906 ## Running $as_me. ##
20911 This file was extended by librdmacm $as_me 1.0.11, which was
20912 generated by GNU Autoconf 2.59. Invocation command line was
20914 CONFIG_FILES = $CONFIG_FILES
20915 CONFIG_HEADERS = $CONFIG_HEADERS
20916 CONFIG_LINKS = $CONFIG_LINKS
20917 CONFIG_COMMANDS = $CONFIG_COMMANDS
20921 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20925 # Files that config.status was made for.
20926 if test -n "$ac_config_files"; then
20927 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20930 if test -n "$ac_config_headers"; then
20931 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20934 if test -n "$ac_config_links"; then
20935 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20938 if test -n "$ac_config_commands"; then
20939 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20942 cat >>$CONFIG_STATUS <<\_ACEOF
20945 \`$as_me' instantiates files from templates according to the
20946 current configuration.
20948 Usage: $0 [OPTIONS] [FILE]...
20950 -h, --help print this help, then exit
20951 -V, --version print version number, then exit
20952 -q, --quiet do not print progress messages
20953 -d, --debug don't remove temporary files
20954 --recheck update $as_me by reconfiguring in the same conditions
20955 --file=FILE[:TEMPLATE]
20956 instantiate the configuration file FILE
20957 --header=FILE[:TEMPLATE]
20958 instantiate the configuration header FILE
20960 Configuration files:
20963 Configuration headers:
20966 Configuration commands:
20969 Report bugs to <bug-autoconf@gnu.org>."
20972 cat >>$CONFIG_STATUS <<_ACEOF
20974 librdmacm config.status 1.0.11
20975 configured by $0, generated by GNU Autoconf 2.59,
20976 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20978 Copyright (C) 2003 Free Software Foundation, Inc.
20979 This config.status script is free software; the Free Software Foundation
20980 gives unlimited permission to copy, distribute and modify it."
20985 cat >>$CONFIG_STATUS <<\_ACEOF
20986 # If no file are specified by the user, then we need to provide default
20987 # value. By we need to know if files were specified by the user.
20993 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20994 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21002 *) # This is not an option, so the user has probably given explicit
21005 ac_need_defaults=false;;
21009 # Handling of the options.
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21014 --version | --vers* | -V )
21015 echo "$ac_cs_version"; exit 0 ;;
21017 # Conflict between --help and --header
21018 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21019 Try \`$0 --help' for more information." >&5
21020 echo "$as_me: error: ambiguous option: $1
21021 Try \`$0 --help' for more information." >&2;}
21022 { (exit 1); exit 1; }; };;
21023 --help | --hel | -h )
21024 echo "$ac_cs_usage"; exit 0 ;;
21025 --debug | --d* | -d )
21027 --file | --fil | --fi | --f )
21029 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21030 ac_need_defaults=false;;
21031 --header | --heade | --head | --hea )
21033 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21034 ac_need_defaults=false;;
21035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21039 # This is an error.
21040 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21041 Try \`$0 --help' for more information." >&5
21042 echo "$as_me: error: unrecognized option: $1
21043 Try \`$0 --help' for more information." >&2;}
21044 { (exit 1); exit 1; }; } ;;
21046 *) ac_config_targets="$ac_config_targets $1" ;;
21052 ac_configure_extra_args=
21054 if $ac_cs_silent; then
21056 ac_configure_extra_args="$ac_configure_extra_args --silent"
21060 cat >>$CONFIG_STATUS <<_ACEOF
21061 if \$ac_cs_recheck; then
21062 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21063 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21068 cat >>$CONFIG_STATUS <<_ACEOF
21070 # INIT-COMMANDS section.
21073 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21079 cat >>$CONFIG_STATUS <<\_ACEOF
21080 for ac_config_target in $ac_config_targets
21082 case "$ac_config_target" in
21083 # Handling of arguments.
21084 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21085 "librdmacm.spec" ) CONFIG_FILES="$CONFIG_FILES librdmacm.spec" ;;
21086 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21087 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21088 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21090 { (exit 1); exit 1; }; };;
21094 # If the user did not use the arguments to specify the items to instantiate,
21095 # then the envvar interface is used. Set only those that are not.
21096 # We use the long form for the default assignment because of an extremely
21097 # bizarre bug on SunOS 4.1.3.
21098 if $ac_need_defaults; then
21099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21104 # Have a temporary directory for convenience. Make it in the build tree
21105 # simply because there is no reason to put it here, and in addition,
21106 # creating and moving files from /tmp can sometimes cause problems.
21107 # Create a temporary directory, and hook for its removal unless debugging.
21110 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21111 trap '{ (exit 1); exit 1; }' 1 2 13 15
21114 # Create a (secure) tmp directory for tmp files.
21117 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21118 test -n "$tmp" && test -d "$tmp"
21121 tmp=./confstat$$-$RANDOM
21122 (umask 077 && mkdir $tmp)
21125 echo "$me: cannot create a temporary directory in ." >&2
21126 { (exit 1); exit 1; }
21131 cat >>$CONFIG_STATUS <<_ACEOF
21134 # CONFIG_FILES section.
21137 # No need to generate the scripts if there are no CONFIG_FILES.
21138 # This happens for instance when ./config.status config.h
21139 if test -n "\$CONFIG_FILES"; then
21140 # Protect against being on the right side of a sed subst in config.status.
21141 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21142 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21143 s,@SHELL@,$SHELL,;t t
21144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21150 s,@exec_prefix@,$exec_prefix,;t t
21151 s,@prefix@,$prefix,;t t
21152 s,@program_transform_name@,$program_transform_name,;t t
21153 s,@bindir@,$bindir,;t t
21154 s,@sbindir@,$sbindir,;t t
21155 s,@libexecdir@,$libexecdir,;t t
21156 s,@datadir@,$datadir,;t t
21157 s,@sysconfdir@,$sysconfdir,;t t
21158 s,@sharedstatedir@,$sharedstatedir,;t t
21159 s,@localstatedir@,$localstatedir,;t t
21160 s,@libdir@,$libdir,;t t
21161 s,@includedir@,$includedir,;t t
21162 s,@oldincludedir@,$oldincludedir,;t t
21163 s,@infodir@,$infodir,;t t
21164 s,@mandir@,$mandir,;t t
21165 s,@build_alias@,$build_alias,;t t
21166 s,@host_alias@,$host_alias,;t t
21167 s,@target_alias@,$target_alias,;t t
21168 s,@DEFS@,$DEFS,;t t
21169 s,@ECHO_C@,$ECHO_C,;t t
21170 s,@ECHO_N@,$ECHO_N,;t t
21171 s,@ECHO_T@,$ECHO_T,;t t
21172 s,@LIBS@,$LIBS,;t t
21173 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21174 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21175 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21176 s,@CYGPATH_W@,$CYGPATH_W,;t t
21177 s,@PACKAGE@,$PACKAGE,;t t
21178 s,@VERSION@,$VERSION,;t t
21179 s,@ACLOCAL@,$ACLOCAL,;t t
21180 s,@AUTOCONF@,$AUTOCONF,;t t
21181 s,@AUTOMAKE@,$AUTOMAKE,;t t
21182 s,@AUTOHEADER@,$AUTOHEADER,;t t
21183 s,@MAKEINFO@,$MAKEINFO,;t t
21184 s,@install_sh@,$install_sh,;t t
21185 s,@STRIP@,$STRIP,;t t
21186 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21187 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21188 s,@mkdir_p@,$mkdir_p,;t t
21190 s,@SET_MAKE@,$SET_MAKE,;t t
21191 s,@am__leading_dot@,$am__leading_dot,;t t
21192 s,@AMTAR@,$AMTAR,;t t
21193 s,@am__tar@,$am__tar,;t t
21194 s,@am__untar@,$am__untar,;t t
21195 s,@build@,$build,;t t
21196 s,@build_cpu@,$build_cpu,;t t
21197 s,@build_vendor@,$build_vendor,;t t
21198 s,@build_os@,$build_os,;t t
21199 s,@host@,$host,;t t
21200 s,@host_cpu@,$host_cpu,;t t
21201 s,@host_vendor@,$host_vendor,;t t
21202 s,@host_os@,$host_os,;t t
21204 s,@CFLAGS@,$CFLAGS,;t t
21205 s,@LDFLAGS@,$LDFLAGS,;t t
21206 s,@CPPFLAGS@,$CPPFLAGS,;t t
21207 s,@ac_ct_CC@,$ac_ct_CC,;t t
21208 s,@EXEEXT@,$EXEEXT,;t t
21209 s,@OBJEXT@,$OBJEXT,;t t
21210 s,@DEPDIR@,$DEPDIR,;t t
21211 s,@am__include@,$am__include,;t t
21212 s,@am__quote@,$am__quote,;t t
21213 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21214 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21215 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21216 s,@CCDEPMODE@,$CCDEPMODE,;t t
21217 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21218 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21219 s,@EGREP@,$EGREP,;t t
21220 s,@LN_S@,$LN_S,;t t
21221 s,@ECHO@,$ECHO,;t t
21223 s,@ac_ct_AR@,$ac_ct_AR,;t t
21224 s,@RANLIB@,$RANLIB,;t t
21225 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21228 s,@CXXFLAGS@,$CXXFLAGS,;t t
21229 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21230 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21231 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21232 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21233 s,@CXXCPP@,$CXXCPP,;t t
21235 s,@FFLAGS@,$FFLAGS,;t t
21236 s,@ac_ct_F77@,$ac_ct_F77,;t t
21237 s,@LIBTOOL@,$LIBTOOL,;t t
21238 s,@HAVE_LD_VERSION_SCRIPT_TRUE@,$HAVE_LD_VERSION_SCRIPT_TRUE,;t t
21239 s,@HAVE_LD_VERSION_SCRIPT_FALSE@,$HAVE_LD_VERSION_SCRIPT_FALSE,;t t
21240 s,@LIBOBJS@,$LIBOBJS,;t t
21241 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21246 cat >>$CONFIG_STATUS <<\_ACEOF
21247 # Split the substitutions into bite-sized pieces for seds with
21248 # small command number limits, like on Digital OSF/1 and HP-UX.
21249 ac_max_sed_lines=48
21250 ac_sed_frag=1 # Number of current file.
21251 ac_beg=1 # First line for current file.
21252 ac_end=$ac_max_sed_lines # Line after last line for current file.
21255 while $ac_more_lines; do
21256 if test $ac_beg -gt 1; then
21257 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21259 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21261 if test ! -s $tmp/subs.frag; then
21262 ac_more_lines=false
21264 # The purpose of the label and of the branching condition is to
21265 # speed up the sed processing (if there are no `@' at all, there
21266 # is no need to browse any of the substitutions).
21267 # These are the two extra sed commands mentioned above.
21269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21270 if test -z "$ac_sed_cmds"; then
21271 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21273 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21275 ac_sed_frag=`expr $ac_sed_frag + 1`
21277 ac_end=`expr $ac_end + $ac_max_sed_lines`
21280 if test -z "$ac_sed_cmds"; then
21283 fi # test -n "$CONFIG_FILES"
21286 cat >>$CONFIG_STATUS <<\_ACEOF
21287 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21290 - | *:- | *:-:* ) # input from stdin
21292 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21294 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21295 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21296 * ) ac_file_in=$ac_file.in ;;
21299 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21300 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21301 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21302 X"$ac_file" : 'X\(//\)[^/]' \| \
21303 X"$ac_file" : 'X\(//\)$' \| \
21304 X"$ac_file" : 'X\(/\)' \| \
21305 . : '\(.\)' 2>/dev/null ||
21307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21309 /^X\(\/\/\)$/{ s//\1/; q; }
21310 /^X\(\/\).*/{ s//\1/; q; }
21312 { if $as_mkdir_p; then
21317 while test ! -d "$as_dir"; do
21318 as_dirs="$as_dir $as_dirs"
21319 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21321 X"$as_dir" : 'X\(//\)[^/]' \| \
21322 X"$as_dir" : 'X\(//\)$' \| \
21323 X"$as_dir" : 'X\(/\)' \| \
21324 . : '\(.\)' 2>/dev/null ||
21326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21328 /^X\(\/\/\)$/{ s//\1/; q; }
21329 /^X\(\/\).*/{ s//\1/; q; }
21332 test ! -n "$as_dirs" || mkdir $as_dirs
21333 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21334 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21335 { (exit 1); exit 1; }; }; }
21339 if test "$ac_dir" != .; then
21340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21341 # A "../" for each directory in $ac_dir_suffix.
21342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21344 ac_dir_suffix= ac_top_builddir=
21348 .) # No --srcdir option. We are building in place.
21350 if test -z "$ac_top_builddir"; then
21353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21355 [\\/]* | ?:[\\/]* ) # Absolute path.
21356 ac_srcdir=$srcdir$ac_dir_suffix;
21357 ac_top_srcdir=$srcdir ;;
21358 *) # Relative path.
21359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21360 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21363 # Do not use `cd foo && pwd` to compute absolute paths, because
21364 # the directories may not exist.
21366 .) ac_abs_builddir="$ac_dir";;
21369 .) ac_abs_builddir=`pwd`;;
21370 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21371 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21374 case $ac_abs_builddir in
21375 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21377 case ${ac_top_builddir}. in
21378 .) ac_abs_top_builddir=$ac_abs_builddir;;
21379 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21380 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21383 case $ac_abs_builddir in
21384 .) ac_abs_srcdir=$ac_srcdir;;
21387 .) ac_abs_srcdir=$ac_abs_builddir;;
21388 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21389 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21392 case $ac_abs_builddir in
21393 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21395 case $ac_top_srcdir in
21396 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21397 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21398 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21405 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21408 # Let's still pretend it is `configure' which instantiates (i.e., don't
21409 # use $as_me), people would be surprised to read:
21410 # /* config.h. Generated by config.status. */
21411 if test x"$ac_file" = x-; then
21414 configure_input="$ac_file. "
21416 configure_input=$configure_input"Generated from `echo $ac_file_in |
21417 sed 's,.*/,,'` by configure."
21419 # First look for the input files in the build tree, otherwise in the
21421 ac_file_inputs=`IFS=:
21422 for f in $ac_file_in; do
21424 -) echo $tmp/stdin ;;
21426 # Absolute (can't be DOS-style, as IFS=:)
21427 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21428 echo "$as_me: error: cannot find input file: $f" >&2;}
21429 { (exit 1); exit 1; }; }
21432 if test -f "$f"; then
21435 elif test -f "$srcdir/$f"; then
21440 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21441 echo "$as_me: error: cannot find input file: $f" >&2;}
21442 { (exit 1); exit 1; }; }
21445 done` || { (exit 1); exit 1; }
21447 if test x"$ac_file" != x-; then
21448 { echo "$as_me:$LINENO: creating $ac_file" >&5
21449 echo "$as_me: creating $ac_file" >&6;}
21453 cat >>$CONFIG_STATUS <<_ACEOF
21457 cat >>$CONFIG_STATUS <<\_ACEOF
21459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21460 s,@configure_input@,$configure_input,;t t
21461 s,@srcdir@,$ac_srcdir,;t t
21462 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21463 s,@top_srcdir@,$ac_top_srcdir,;t t
21464 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21465 s,@builddir@,$ac_builddir,;t t
21466 s,@abs_builddir@,$ac_abs_builddir,;t t
21467 s,@top_builddir@,$ac_top_builddir,;t t
21468 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21469 s,@INSTALL@,$ac_INSTALL,;t t
21470 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21472 if test x"$ac_file" != x-; then
21473 mv $tmp/out $ac_file
21481 cat >>$CONFIG_STATUS <<\_ACEOF
21484 # CONFIG_HEADER section.
21487 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21488 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21490 # ac_d sets the value in "#define NAME VALUE" lines.
21491 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21492 ac_dB='[ ].*$,\1#\2'
21495 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21496 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21497 ac_uB='$,\1#\2define\3'
21501 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21502 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21504 - | *:- | *:-:* ) # input from stdin
21506 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21507 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21508 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21510 * ) ac_file_in=$ac_file.in ;;
21513 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21514 echo "$as_me: creating $ac_file" >&6;}
21516 # First look for the input files in the build tree, otherwise in the
21518 ac_file_inputs=`IFS=:
21519 for f in $ac_file_in; do
21521 -) echo $tmp/stdin ;;
21523 # Absolute (can't be DOS-style, as IFS=:)
21524 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21525 echo "$as_me: error: cannot find input file: $f" >&2;}
21526 { (exit 1); exit 1; }; }
21527 # Do quote $f, to prevent DOS paths from being IFS'd.
21530 if test -f "$f"; then
21533 elif test -f "$srcdir/$f"; then
21538 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21539 echo "$as_me: error: cannot find input file: $f" >&2;}
21540 { (exit 1); exit 1; }; }
21543 done` || { (exit 1); exit 1; }
21544 # Remove the trailing spaces.
21545 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21549 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21550 # `conftest.undefs', that substitutes the proper values into
21551 # config.h.in to produce config.h. The first handles `#define'
21552 # templates, and the second `#undef' templates.
21553 # And first: Protect against being on the right side of a sed subst in
21554 # config.status. Protect against being in an unquoted here document
21555 # in config.status.
21556 rm -f conftest.defines conftest.undefs
21557 # Using a here document instead of a string reduces the quoting nightmare.
21558 # Putting comments in sed scripts is not portable.
21560 # `end' is used to avoid that the second main sed command (meant for
21561 # 0-ary CPP macros) applies to n-ary macro definitions.
21562 # See the Autoconf documentation for `clear'.
21563 cat >confdef2sed.sed <<\_ACEOF
21568 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21570 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21573 # If some macros were called several times there might be several times
21574 # the same #defines, which is useless. Nevertheless, we may not want to
21575 # sort them, since we want the *last* AC-DEFINE to be honored.
21576 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21577 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21578 rm -f confdef2sed.sed
21580 # This sed command replaces #undef with comments. This is necessary, for
21581 # example, in the case of _POSIX_SOURCE, which is predefined and required
21582 # on some systems where configure will not decide to define it.
21583 cat >>conftest.undefs <<\_ACEOF
21584 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21587 # Break up conftest.defines because some shells have a limit on the size
21588 # of here documents, and old seds have small limits too (100 cmds).
21589 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21590 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21591 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21592 echo ' :' >>$CONFIG_STATUS
21593 rm -f conftest.tail
21594 while grep . conftest.defines >/dev/null
21596 # Write a limited-size here document to $tmp/defines.sed.
21597 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21598 # Speed up: don't consider the non `#define' lines.
21599 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21600 # Work around the forget-to-reset-the-flag bug.
21601 echo 't clr' >>$CONFIG_STATUS
21602 echo ': clr' >>$CONFIG_STATUS
21603 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21605 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21607 mv $tmp/out $tmp/in
21609 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21610 rm -f conftest.defines
21611 mv conftest.tail conftest.defines
21613 rm -f conftest.defines
21614 echo ' fi # grep' >>$CONFIG_STATUS
21615 echo >>$CONFIG_STATUS
21617 # Break up conftest.undefs because some shells have a limit on the size
21618 # of here documents, and old seds have small limits too (100 cmds).
21619 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21620 rm -f conftest.tail
21621 while grep . conftest.undefs >/dev/null
21623 # Write a limited-size here document to $tmp/undefs.sed.
21624 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21625 # Speed up: don't consider the non `#undef'
21626 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21627 # Work around the forget-to-reset-the-flag bug.
21628 echo 't clr' >>$CONFIG_STATUS
21629 echo ': clr' >>$CONFIG_STATUS
21630 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21632 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21634 mv $tmp/out $tmp/in
21636 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21637 rm -f conftest.undefs
21638 mv conftest.tail conftest.undefs
21640 rm -f conftest.undefs
21642 cat >>$CONFIG_STATUS <<\_ACEOF
21643 # Let's still pretend it is `configure' which instantiates (i.e., don't
21644 # use $as_me), people would be surprised to read:
21645 # /* config.h. Generated by config.status. */
21646 if test x"$ac_file" = x-; then
21647 echo "/* Generated by configure. */" >$tmp/config.h
21649 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21651 cat $tmp/in >>$tmp/config.h
21653 if test x"$ac_file" != x-; then
21654 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21655 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21656 echo "$as_me: $ac_file is unchanged" >&6;}
21658 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21660 X"$ac_file" : 'X\(//\)[^/]' \| \
21661 X"$ac_file" : 'X\(//\)$' \| \
21662 X"$ac_file" : 'X\(/\)' \| \
21663 . : '\(.\)' 2>/dev/null ||
21665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21667 /^X\(\/\/\)$/{ s//\1/; q; }
21668 /^X\(\/\).*/{ s//\1/; q; }
21670 { if $as_mkdir_p; then
21675 while test ! -d "$as_dir"; do
21676 as_dirs="$as_dir $as_dirs"
21677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21679 X"$as_dir" : 'X\(//\)[^/]' \| \
21680 X"$as_dir" : 'X\(//\)$' \| \
21681 X"$as_dir" : 'X\(/\)' \| \
21682 . : '\(.\)' 2>/dev/null ||
21684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21686 /^X\(\/\/\)$/{ s//\1/; q; }
21687 /^X\(\/\).*/{ s//\1/; q; }
21690 test ! -n "$as_dirs" || mkdir $as_dirs
21691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21693 { (exit 1); exit 1; }; }; }
21696 mv $tmp/config.h $ac_file
21700 rm -f $tmp/config.h
21702 # Compute $ac_file's index in $config_headers.
21704 for _am_header in $config_headers :; do
21705 case $_am_header in
21706 $ac_file | $ac_file:* )
21709 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21712 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21713 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21714 X$ac_file : 'X\(//\)[^/]' \| \
21715 X$ac_file : 'X\(//\)$' \| \
21716 X$ac_file : 'X\(/\)' \| \
21717 . : '\(.\)' 2>/dev/null ||
21719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21721 /^X\(\/\/\)$/{ s//\1/; q; }
21722 /^X\(\/\).*/{ s//\1/; q; }
21723 s/.*/./; q'`/stamp-h$_am_stamp_count
21726 cat >>$CONFIG_STATUS <<\_ACEOF
21729 # CONFIG_COMMANDS section.
21731 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21732 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21733 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21734 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21735 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21736 X"$ac_dest" : 'X\(//\)[^/]' \| \
21737 X"$ac_dest" : 'X\(//\)$' \| \
21738 X"$ac_dest" : 'X\(/\)' \| \
21739 . : '\(.\)' 2>/dev/null ||
21741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21743 /^X\(\/\/\)$/{ s//\1/; q; }
21744 /^X\(\/\).*/{ s//\1/; q; }
21746 { if $as_mkdir_p; then
21751 while test ! -d "$as_dir"; do
21752 as_dirs="$as_dir $as_dirs"
21753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21755 X"$as_dir" : 'X\(//\)[^/]' \| \
21756 X"$as_dir" : 'X\(//\)$' \| \
21757 X"$as_dir" : 'X\(/\)' \| \
21758 . : '\(.\)' 2>/dev/null ||
21760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21762 /^X\(\/\/\)$/{ s//\1/; q; }
21763 /^X\(\/\).*/{ s//\1/; q; }
21766 test ! -n "$as_dirs" || mkdir $as_dirs
21767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21769 { (exit 1); exit 1; }; }; }
21773 if test "$ac_dir" != .; then
21774 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21775 # A "../" for each directory in $ac_dir_suffix.
21776 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21778 ac_dir_suffix= ac_top_builddir=
21782 .) # No --srcdir option. We are building in place.
21784 if test -z "$ac_top_builddir"; then
21787 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21789 [\\/]* | ?:[\\/]* ) # Absolute path.
21790 ac_srcdir=$srcdir$ac_dir_suffix;
21791 ac_top_srcdir=$srcdir ;;
21792 *) # Relative path.
21793 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21794 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21797 # Do not use `cd foo && pwd` to compute absolute paths, because
21798 # the directories may not exist.
21800 .) ac_abs_builddir="$ac_dir";;
21803 .) ac_abs_builddir=`pwd`;;
21804 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21805 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21808 case $ac_abs_builddir in
21809 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21811 case ${ac_top_builddir}. in
21812 .) ac_abs_top_builddir=$ac_abs_builddir;;
21813 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21814 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21817 case $ac_abs_builddir in
21818 .) ac_abs_srcdir=$ac_srcdir;;
21821 .) ac_abs_srcdir=$ac_abs_builddir;;
21822 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21823 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21826 case $ac_abs_builddir in
21827 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21829 case $ac_top_srcdir in
21830 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21831 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21832 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21837 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21838 echo "$as_me: executing $ac_dest commands" >&6;}
21840 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21841 # Strip MF so we end up with the name of the file.
21842 mf=`echo "$mf" | sed -e 's/:.*$//'`
21843 # Check whether this is an Automake generated Makefile or not.
21844 # We used to match only the files named `Makefile.in', but
21845 # some people rename them; so instead we look at the file content.
21846 # Grep'ing the first line is not enough: some people post-process
21847 # each Makefile.in and add a new line on top of each file to say so.
21848 # So let's grep whole file.
21849 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21850 dirpart=`(dirname "$mf") 2>/dev/null ||
21851 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21852 X"$mf" : 'X\(//\)[^/]' \| \
21853 X"$mf" : 'X\(//\)$' \| \
21854 X"$mf" : 'X\(/\)' \| \
21855 . : '\(.\)' 2>/dev/null ||
21857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21859 /^X\(\/\/\)$/{ s//\1/; q; }
21860 /^X\(\/\).*/{ s//\1/; q; }
21865 # Extract the definition of DEPDIR, am__include, and am__quote
21866 # from the Makefile without running `make'.
21867 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21868 test -z "$DEPDIR" && continue
21869 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21870 test -z "am__include" && continue
21871 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21872 # When using ansi2knr, U may be empty or an underscore; expand it
21873 U=`sed -n 's/^U = //p' < "$mf"`
21874 # Find all dependency output files, they are included files with
21875 # $(DEPDIR) in their names. We invoke sed twice because it is the
21876 # simplest approach to changing $(DEPDIR) to its actual value in the
21878 for file in `sed -n "
21879 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21880 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21881 # Make sure the directory exists.
21882 test -f "$dirpart/$file" && continue
21883 fdir=`(dirname "$file") 2>/dev/null ||
21884 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885 X"$file" : 'X\(//\)[^/]' \| \
21886 X"$file" : 'X\(//\)$' \| \
21887 X"$file" : 'X\(/\)' \| \
21888 . : '\(.\)' 2>/dev/null ||
21890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21892 /^X\(\/\/\)$/{ s//\1/; q; }
21893 /^X\(\/\).*/{ s//\1/; q; }
21895 { if $as_mkdir_p; then
21896 mkdir -p $dirpart/$fdir
21898 as_dir=$dirpart/$fdir
21900 while test ! -d "$as_dir"; do
21901 as_dirs="$as_dir $as_dirs"
21902 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21904 X"$as_dir" : 'X\(//\)[^/]' \| \
21905 X"$as_dir" : 'X\(//\)$' \| \
21906 X"$as_dir" : 'X\(/\)' \| \
21907 . : '\(.\)' 2>/dev/null ||
21909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21911 /^X\(\/\/\)$/{ s//\1/; q; }
21912 /^X\(\/\).*/{ s//\1/; q; }
21915 test ! -n "$as_dirs" || mkdir $as_dirs
21916 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21917 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21918 { (exit 1); exit 1; }; }; }
21920 # echo "creating $dirpart/$file"
21921 echo '# dummy' > "$dirpart/$file"
21929 cat >>$CONFIG_STATUS <<\_ACEOF
21931 { (exit 0); exit 0; }
21933 chmod +x $CONFIG_STATUS
21934 ac_clean_files=$ac_clean_files_save
21937 # configure is writing to config.log, and then calls config.status.
21938 # config.status does its own redirection, appending to config.log.
21939 # Unfortunately, on DOS this fails, as config.log is still kept open
21940 # by configure, so config.status won't be able to write to it; its
21941 # output is simply discarded. So we exec the FD to /dev/null,
21942 # effectively closing config.log, so it can be properly (re)opened and
21943 # appended to by config.status. When coming back to configure, we
21944 # need to make the FD available again.
21945 if test "$no_create" != yes; then
21947 ac_config_status_args=
21948 test "$silent" = yes &&
21949 ac_config_status_args="$ac_config_status_args --quiet"
21951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21954 # would make configure fail if this is the last instruction.
21955 $ac_cs_success || { (exit 1); exit 1; }