2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for cmockery 0.1.2.
5 # Report bugs to <opensource@google.com>.
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='cmockery'
425 PACKAGE_TARNAME='cmockery'
426 PACKAGE_VERSION='0.1.2'
427 PACKAGE_STRING='cmockery 0.1.2'
428 PACKAGE_BUGREPORT='opensource@google.com'
430 ac_unique_file="README"
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 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE GCC_TRUE GCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS 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 cmockery 0.1.2 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 cmockery 0.1.2:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --enable-namespace=FOO to define these Google
1040 classes in the FOO namespace. --disable-namespace
1041 to define them in the global namespace. Default
1042 is to define them in namespace google.
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1070 Report bugs to <opensource@google.com>.
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 ac_dir_suffix= ac_top_builddir=
1090 .) # No --srcdir option. We are building in place.
1092 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1108 .) ac_abs_builddir="$ac_dir";;
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1155 $ac_configure --help
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1166 cmockery configure 0.1.2
1167 generated by GNU Autoconf 2.59
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1180 It was created by cmockery $as_me 0.1.2, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1240 ac_must_keep_next=false
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 -* ) ac_must_keep_next=true ;;
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1298 # The following way of writing the cache mishandles newlines in values,
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1321 for ac_var in $ac_subst_vars
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1328 if test -n "$ac_subst_files"; then
1335 for ac_var in $ac_subst_files
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -s confdefs.h; then
1350 sed "/^$/d" confdefs.h | sort
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 # Predefined preprocessor variables.
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1433 # Check that the precious variables saved in the cache have kept the same
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 # The argument here is just something that should be in the current directory
1517 # (for sanity checking)
1519 am__api_version="1.9"
1521 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1522 if test -f $ac_dir/install-sh; then
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 elif test -f $ac_dir/install.sh; then
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 elif test -f $ac_dir/shtool; then
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1536 if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1539 { (exit 1); exit 1; }; }
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 # Find a good install program. We prefer a C program (faster),
1546 # so one script is as good as another. But avoid the broken or
1547 # incompatible versions:
1548 # SysV /etc/install, /usr/sbin/install
1549 # SunOS /usr/etc/install
1550 # IRIX /sbin/install
1552 # AmigaOS /C/install, which installs bootblocks on floppy discs
1553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556 # OS/2's system install, which has a completely different semantic
1557 # ./install, which can be erroneously created by make from ./install.sh.
1558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1560 if test -z "$INSTALL"; then
1561 if test "${ac_cv_path_install+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 # Account for people who put trailing slashes in PATH elements.
1571 ./ | .// | /cC/* | \
1572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1576 # OSF1 and SCO ODT 3.0 have their own names for install.
1577 # Don't use installbsd from OSF since it installs stuff as root
1579 for ac_prog in ginstall scoinst install; do
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1582 if test $ac_prog = install &&
1583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584 # AIX install. It has an incompatible calling convention.
1586 elif test $ac_prog = install &&
1587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588 # program-specific install script used by HP pwplus--don't use.
1591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1603 if test "${ac_cv_path_install+set}" = set; then
1604 INSTALL=$ac_cv_path_install
1606 # As a last resort, use the slow shell script. We don't cache a
1607 # path for INSTALL within a source directory, because that will
1608 # break other packages using the cache if that directory is
1609 # removed, or if the path is relative.
1610 INSTALL=$ac_install_sh
1613 echo "$as_me:$LINENO: result: $INSTALL" >&5
1614 echo "${ECHO_T}$INSTALL" >&6
1616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1617 # It thinks the first close brace ends the variable substitution.
1618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1625 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1628 echo timestamp > conftest.file
1629 # Do `set' in a subshell so we don't clobber the current shell's
1630 # arguments. Must try -L first in case configure is actually a
1631 # symlink; some systems play weird games with the mod time of symlinks
1632 # (eg FreeBSD returns the mod time of the symlink's containing
1635 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1636 if test "$*" = "X"; then
1638 set X `ls -t $srcdir/configure conftest.file`
1641 if test "$*" != "X $srcdir/configure conftest.file" \
1642 && test "$*" != "X conftest.file $srcdir/configure"; then
1644 # If neither matched, then we have a broken ls. This can happen
1645 # if, for instance, CONFIG_SHELL is bash and it inherits a
1646 # broken ls alias from the environment. This has actually
1647 # happened. Such a system could not be considered "sane".
1648 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1649 alias in your environment" >&5
1650 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1651 alias in your environment" >&2;}
1652 { (exit 1); exit 1; }; }
1655 test "$2" = conftest.file
1661 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1662 Check your system clock" >&5
1663 echo "$as_me: error: newly created file is older than distributed files!
1664 Check your system clock" >&2;}
1665 { (exit 1); exit 1; }; }
1667 echo "$as_me:$LINENO: result: yes" >&5
1668 echo "${ECHO_T}yes" >&6
1669 test "$program_prefix" != NONE &&
1670 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1671 # Use a double $ so make ignores it.
1672 test "$program_suffix" != NONE &&
1673 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1674 # Double any \ or $. echo might interpret backslashes.
1675 # By default was `s,x,x', remove it if useless.
1676 cat <<\_ACEOF >conftest.sed
1677 s/[\\$]/&&/g;s/;s,x,x,$//
1679 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1682 # expand $ac_aux_dir to an absolute path
1683 am_aux_dir=`cd $ac_aux_dir && pwd`
1685 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1686 # Use eval to expand $SHELL
1687 if eval "$MISSING --run true"; then
1688 am_missing_run="$MISSING --run "
1691 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1692 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1695 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1696 # We used to keeping the `.' as first argument, in order to
1697 # allow $(mkdir_p) to be used without argument. As in
1698 # $(mkdir_p) $(somedir)
1699 # where $(somedir) is conditionally defined. However this is wrong
1701 # 1. if the package is installed by a user who cannot write `.'
1702 # make install will fail,
1703 # 2. the above comment should most certainly read
1704 # $(mkdir_p) $(DESTDIR)$(somedir)
1705 # so it does not work when $(somedir) is undefined and
1706 # $(DESTDIR) is not.
1707 # To support the latter case, we have to write
1708 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1709 # so the `.' trick is pointless.
1710 mkdir_p='mkdir -p --'
1712 # On NextStep and OpenStep, the `mkdir' command does not
1713 # recognize any option. It will interpret all options as
1714 # directories to create, and then abort because `.' already
1716 for d in ./-p ./--version;
1718 test -d $d && rmdir $d
1720 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1721 if test -f "$ac_aux_dir/mkinstalldirs"; then
1722 mkdir_p='$(mkinstalldirs)'
1724 mkdir_p='$(install_sh) -d'
1728 for ac_prog in gawk mawk nawk awk
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_AWK+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$AWK"; then
1738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_AWK="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$AWK"; then
1758 echo "$as_me:$LINENO: result: $AWK" >&5
1759 echo "${ECHO_T}$AWK" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$AWK" && break
1768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 cat >conftest.make <<\_ACEOF
1776 @echo 'ac_maketemp="$(MAKE)"'
1778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1780 if test -n "$ac_maketemp"; then
1781 eval ac_cv_prog_make_${ac_make}_set=yes
1783 eval ac_cv_prog_make_${ac_make}_set=no
1787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1788 echo "$as_me:$LINENO: result: yes" >&5
1789 echo "${ECHO_T}yes" >&6
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1794 SET_MAKE="MAKE=${MAKE-make}"
1797 rm -rf .tst 2>/dev/null
1798 mkdir .tst 2>/dev/null
1799 if test -d .tst; then
1804 rmdir .tst 2>/dev/null
1806 # test to see if srcdir already configured
1807 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1808 test -f $srcdir/config.status; then
1809 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1810 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1811 { (exit 1); exit 1; }; }
1814 # test whether we have cygpath
1815 if test -z "$CYGPATH_W"; then
1816 if (cygpath --version) >/dev/null 2>/dev/null; then
1817 CYGPATH_W='cygpath -w'
1824 # Define the identity of the package.
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE "$PACKAGE"
1834 cat >>confdefs.h <<_ACEOF
1835 #define VERSION "$VERSION"
1838 # Some tools Automake needs.
1840 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1843 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1846 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1849 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1852 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1856 # Installed binaries are usually stripped using `strip' when the user
1857 # run `make install-strip'. However `strip' might not be the right
1858 # tool to use in cross-compilation environments, therefore Automake
1859 # will honor the `STRIP' environment variable to overrule this program.
1860 if test "$cross_compiling" != no; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}strip; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_STRIP+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$STRIP"; then
1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 STRIP=$ac_cv_prog_STRIP
1889 if test -n "$STRIP"; then
1890 echo "$as_me:$LINENO: result: $STRIP" >&5
1891 echo "${ECHO_T}$STRIP" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1898 if test -z "$ac_cv_prog_STRIP"; then
1900 # Extract the first word of "strip", so it can be a program name with args.
1901 set dummy strip; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$ac_ct_STRIP"; then
1908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_STRIP="strip"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1928 if test -n "$ac_ct_STRIP"; then
1929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1930 echo "${ECHO_T}$ac_ct_STRIP" >&6
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1938 STRIP="$ac_cv_prog_STRIP"
1942 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1944 # We need awk for the "check" target. The system "awk" is bad on
1946 # Always define AMTAR for backward compatibility.
1948 AMTAR=${AMTAR-"${am_missing_run}tar"}
1950 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1956 ac_config_headers="$ac_config_headers src/config.h"
1959 # Checks for programs.
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 if test -n "$CC"; then
1994 echo "$as_me:$LINENO: result: $CC" >&5
1995 echo "${ECHO_T}$CC" >&6
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2002 if test -z "$ac_cv_prog_CC"; then
2004 # Extract the first word of "gcc", so it can be a program name with args.
2005 set dummy gcc; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$ac_ct_CC"; then
2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_ac_ct_CC="gcc"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2044 if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047 set dummy ${ac_tool_prefix}cc; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2082 if test -z "$ac_cv_prog_CC"; then
2084 # Extract the first word of "cc", so it can be a program name with args.
2085 set dummy cc; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_ac_ct_CC="cc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111 if test -n "$ac_ct_CC"; then
2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113 echo "${ECHO_T}$ac_ct_CC" >&6
2115 echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2125 if test -z "$CC"; then
2126 # Extract the first word of "cc", so it can be a program name with args.
2127 set dummy cc; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2145 ac_prog_rejected=yes
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 if test $ac_prog_rejected = yes; then
2156 # We found a bogon in the path, so make sure we never use it.
2157 set dummy $ac_cv_prog_CC
2159 if test $# != 0; then
2160 # We chose a different compiler from the bogus one.
2161 # However, it has the same basename, so the bogon will be chosen
2162 # first if we set CC to just the basename; use the full file name.
2164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2170 if test -n "$CC"; then
2171 echo "$as_me:$LINENO: result: $CC" >&5
2172 echo "${ECHO_T}$CC" >&6
2174 echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6
2179 if test -z "$CC"; then
2180 if test -n "$ac_tool_prefix"; then
2183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_prog_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test -n "$CC"; then
2191 ac_cv_prog_CC="$CC" # Let the user override the test.
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2218 test -n "$CC" && break
2221 if test -z "$CC"; then
2225 # Extract the first word of "$ac_prog", so it can be a program name with args.
2226 set dummy $ac_prog; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test -n "$ac_ct_CC"; then
2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_ac_ct_CC="$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252 if test -n "$ac_ct_CC"; then
2253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254 echo "${ECHO_T}$ac_ct_CC" >&6
2256 echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2260 test -n "$ac_ct_CC" && break
2269 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2275 # Provide some information about the compiler.
2276 echo "$as_me:$LINENO:" \
2277 "checking for C compiler version" >&5
2278 ac_compiler=`set X $ac_compile; echo $2`
2279 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2280 (eval $ac_compiler --version </dev/null >&5) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2284 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2285 (eval $ac_compiler -v </dev/null >&5) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }
2289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2290 (eval $ac_compiler -V </dev/null >&5) 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2315 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319 (eval $ac_link_default) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # Find the output, starting from the most likely. This scheme is
2324 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2327 # Be careful to initialize this variable, since it used to be cached.
2328 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2330 # b.out is created by i960 compilers.
2331 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2333 test -f "$ac_file" || continue
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2338 # This is the source file.
2341 # We found the default executable, but exeext='' is most
2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346 # FIXME: I believe we export ac_cv_exeext for Libtool,
2347 # but it would be cool to find out if it's true. Does anybody
2348 # maintain Libtool? --akim.
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&2;}
2363 { (exit 77); exit 77; }; }
2366 ac_exeext=$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_file" >&5
2368 echo "${ECHO_T}$ac_file" >&6
2370 # Check the compiler produces executables we can run. If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375 # If not cross compiling, check that we can run a simple program.
2376 if test "$cross_compiling" != yes; then
2377 if { ac_try='./$ac_file'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 if test "$cross_compiling" = maybe; then
2388 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot run C compiled programs.
2392 If you meant to cross compile, use \`--host'.
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2398 echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402 ac_clean_files=$ac_clean_files_save
2403 # Check the compiler produces executables we can run. If not, either
2404 # the compiler is broken, or we cross compile.
2405 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408 echo "${ECHO_T}$cross_compiling" >&6
2410 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413 (eval $ac_link) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; then
2417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2419 # work properly (i.e., refer to `conftest.exe'), while it won't with
2421 for ac_file in conftest.exe conftest conftest.*; do
2422 test -f "$ac_file" || continue
2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2439 rm -f conftest$ac_cv_exeext
2440 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441 echo "${ECHO_T}$ac_cv_exeext" >&6
2443 rm -f conftest.$ac_ext
2444 EXEEXT=$ac_cv_exeext
2446 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448 if test "${ac_cv_objext+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2466 rm -f conftest.o conftest.obj
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493 echo "${ECHO_T}$ac_cv_objext" >&6
2494 OBJEXT=$ac_cv_objext
2496 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2519 rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2523 grep -v '^ *+' conftest.er1 >conftest.err
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2551 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2552 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2553 GCC=`test $ac_compiler_gnu = yes && echo yes`
2554 ac_test_CFLAGS=${CFLAGS+set}
2555 ac_save_CFLAGS=$CFLAGS
2557 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2558 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2559 if test "${ac_cv_prog_cc_g+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2608 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2609 if test "$ac_test_CFLAGS" = set; then
2610 CFLAGS=$ac_save_CFLAGS
2611 elif test $ac_cv_prog_cc_g = yes; then
2612 if test "$GCC" = yes; then
2618 if test "$GCC" = yes; then
2624 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2625 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2626 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 ac_cv_prog_cc_stdc=no
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2639 #include <sys/types.h>
2640 #include <sys/stat.h>
2641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2642 struct buf { int x; };
2643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2644 static char *e (p, i)
2650 static char *f (char * (*g) (char **, int), char **p, ...)
2655 s = g (p, va_arg (v,int));
2660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2661 function prototypes and stuff, but not '\xHH' hex character constants.
2662 These don't provoke an error unfortunately, instead are silently treated
2663 as 'x'. The following induces an error, until -std1 is added to get
2664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2665 array size at least. It's necessary to write '\x00'==0 to get something
2666 that's true only with -std1. */
2667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669 int test (int i, double x);
2670 struct s1 {int (*f) (int a);};
2671 struct s2 {int (*f) (double a);};
2672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2683 # Don't try gcc -ansi; that turns off useful extensions and
2684 # breaks some systems' header files.
2685 # AIX -qlanglvl=ansi
2686 # Ultrix and OSF/1 -std1
2687 # HP-UX 10.20 and later -Ae
2688 # HP-UX older versions -Aa -D_HPUX_SOURCE
2689 # SVR4 -Xc -D__EXTENSIONS__
2690 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692 CC="$ac_save_CC $ac_arg"
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_prog_cc_stdc=$ac_arg
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f conftest.err conftest.$ac_objext
2723 rm -f conftest.$ac_ext conftest.$ac_objext
2728 case "x$ac_cv_prog_cc_stdc" in
2730 echo "$as_me:$LINENO: result: none needed" >&5
2731 echo "${ECHO_T}none needed" >&6 ;;
2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2734 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2735 CC="$CC $ac_cv_prog_cc_stdc" ;;
2738 # Some people use a C++ compiler to compile C. Since we use `exit',
2739 # in C++ we need to declare it. In case someone uses the same compiler
2740 # for both compiling C and C++ we need to have the C++ compiler decide
2741 # the declaration of exit, since it's the most demanding environment.
2742 cat >conftest.$ac_ext <<_ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2751 grep -v '^ *+' conftest.er1 >conftest.err
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; } &&
2762 { ac_try='test -s conftest.$ac_objext'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 for ac_declaration in \
2770 'extern "C" void std::exit (int) throw (); using std::exit;' \
2771 'extern "C" void std::exit (int); using std::exit;' \
2772 'extern "C" void exit (int) throw ();' \
2773 'extern "C" void exit (int);' \
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>conftest.er1
2796 grep -v '^ *+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; } &&
2807 { ac_try='test -s conftest.$ac_objext'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2821 cat >conftest.$ac_ext <<_ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 if test -n "$ac_declaration"; then
2867 echo '#ifdef __cplusplus' >>confdefs.h
2868 echo $ac_declaration >>confdefs.h
2869 echo '#endif' >>confdefs.h
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 DEPDIR="${am__leading_dot}deps"
2885 ac_config_commands="$ac_config_commands depfiles"
2888 am_make=${MAKE-make}
2889 cat > confinc << 'END'
2894 # If we don't find an include directive, just comment out the code.
2895 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2896 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2900 # First try GNU make style include.
2901 echo "include confinc" > confmf
2902 # We grep out `Entering directory' and `Leaving directory'
2903 # messages which can occur if `w' ends up in MAKEFLAGS.
2904 # In particular we don't look at `^make:' because GNU make might
2905 # be invoked under some other name (usually "gmake"), in which
2906 # case it prints its new name instead of `make'.
2907 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2912 # Now try BSD make style include.
2913 if test "$am__include" = "#"; then
2914 echo '.include "confinc"' > confmf
2915 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2916 am__include=.include
2923 echo "$as_me:$LINENO: result: $_am_result" >&5
2924 echo "${ECHO_T}$_am_result" >&6
2925 rm -f confinc confmf
2927 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2928 if test "${enable_dependency_tracking+set}" = set; then
2929 enableval="$enable_dependency_tracking"
2932 if test "x$enable_dependency_tracking" != xno; then
2933 am_depcomp="$ac_aux_dir/depcomp"
2938 if test "x$enable_dependency_tracking" != xno; then
2949 depcc="$CC" am_compiler_list=
2951 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2952 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2953 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2957 # We make a subdir and do the tests there. Otherwise we can end up
2958 # making bogus files that we don't know about and never remove. For
2959 # instance it was reported that on HP-UX the gcc test will end up
2960 # making a dummy file named `D' -- because `-MD' means `put the output
2963 # Copy depcomp to subdir because otherwise we won't find it if we're
2964 # using a relative directory.
2965 cp "$am_depcomp" conftest.dir
2967 # We will build objects and dependencies in a subdirectory because
2968 # it helps to detect inapplicable dependency modes. For instance
2969 # both Tru64's cc and ICC support -MD to output dependencies as a
2970 # side effect of compilation, but ICC will put the dependencies in
2971 # the current directory while Tru64 will put them in the object
2975 am_cv_CC_dependencies_compiler_type=none
2976 if test "$am_compiler_list" = ""; then
2977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2979 for depmode in $am_compiler_list; do
2980 # Setup a source with many dependencies, because some compilers
2981 # like to wrap large dependency lists on column 80 (with \), and
2982 # we should not choose a depcomp mode which is confused by this.
2984 # We need to recreate these files for each test, as the compiler may
2985 # overwrite some of them when testing with obscure command lines.
2986 # This happens at least with the AIX C compiler.
2988 for i in 1 2 3 4 5 6; do
2989 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2990 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2991 # Solaris 8's {/usr,}/bin/sh.
2992 touch sub/conftst$i.h
2994 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2998 # after this tag, mechanisms are not by side-effect, so they'll
2999 # only be used when explicitly requested
3000 if test "x$enable_dependency_tracking" = xyes; then
3008 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3009 # mode. It turns out that the SunPro C++ compiler does not properly
3010 # handle `-M -o', and we need to detect this.
3011 if depmode=$depmode \
3012 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3013 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3014 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3015 >/dev/null 2>conftest.err &&
3016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3017 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3019 # icc doesn't choke on unknown options, it will just issue warnings
3020 # or remarks (even with -Werror). So we grep stderr for any message
3021 # that says an option was ignored or not supported.
3022 # When given -MP, icc 7.0 and 7.1 complain thusly:
3023 # icc: Command line warning: ignoring option '-M'; no argument required
3024 # The diagnosis changed in icc 8.0:
3025 # icc: Command line remark: option '-MP' not supported
3026 if (grep 'ignoring option' conftest.err ||
3027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3028 am_cv_CC_dependencies_compiler_type=$depmode
3037 am_cv_CC_dependencies_compiler_type=none
3041 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3042 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3043 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3048 test "x$enable_dependency_tracking" != xno \
3049 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3051 am__fastdepCC_FALSE='#'
3053 am__fastdepCC_TRUE='#'
3054 am__fastdepCC_FALSE=
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3064 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3065 # On Suns, sometimes $CPP names a directory.
3066 if test -n "$CPP" && test -d "$CPP"; then
3069 if test -z "$CPP"; then
3070 if test "${ac_cv_prog_CPP+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 # Double quotes because CPP needs to be expanded
3074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3077 for ac_c_preproc_warn_flag in '' yes
3079 # Use a header file that comes with gcc, so configuring glibc
3080 # with a fresh cross-compiler works.
3081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3082 # <limits.h> exists even on freestanding compilers.
3083 # On the NeXT, cc -E runs the code through the compiler's parser,
3084 # not just through cpp. "Syntax error" is here to catch this case.
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3092 # include <limits.h>
3094 # include <assert.h>
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3115 if test -z "$ac_cpp_err"; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 # Broken: fails on valid input.
3124 rm -f conftest.err conftest.$ac_ext
3126 # OK, works on sane cases. Now check whether non-existent headers
3127 # can be detected and how.
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3134 #include <ac_nonexistent.h>
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null; then
3144 if test -s conftest.err; then
3145 ac_cpp_err=$ac_c_preproc_warn_flag
3146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3153 if test -z "$ac_cpp_err"; then
3154 # Broken: success on invalid input.
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 # Passes both tests.
3164 rm -f conftest.err conftest.$ac_ext
3167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168 rm -f conftest.err conftest.$ac_ext
3169 if $ac_preproc_ok; then
3181 echo "$as_me:$LINENO: result: $CPP" >&5
3182 echo "${ECHO_T}$CPP" >&6
3184 for ac_c_preproc_warn_flag in '' yes
3186 # Use a header file that comes with gcc, so configuring glibc
3187 # with a fresh cross-compiler works.
3188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3189 # <limits.h> exists even on freestanding compilers.
3190 # On the NeXT, cc -E runs the code through the compiler's parser,
3191 # not just through cpp. "Syntax error" is here to catch this case.
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3199 # include <limits.h>
3201 # include <assert.h>
3205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null; then
3213 if test -s conftest.err; then
3214 ac_cpp_err=$ac_c_preproc_warn_flag
3215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3222 if test -z "$ac_cpp_err"; then
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 # Broken: fails on valid input.
3231 rm -f conftest.err conftest.$ac_ext
3233 # OK, works on sane cases. Now check whether non-existent headers
3234 # can be detected and how.
3235 cat >conftest.$ac_ext <<_ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241 #include <ac_nonexistent.h>
3243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3260 if test -z "$ac_cpp_err"; then
3261 # Broken: success on invalid input.
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 # Passes both tests.
3271 rm -f conftest.err conftest.$ac_ext
3274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3275 rm -f conftest.err conftest.$ac_ext
3276 if $ac_preproc_ok; then
3279 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3280 See \`config.log' for more details." >&5
3281 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3282 See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293 ac_cpp='$CXXCPP $CPPFLAGS'
3294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3297 if test -n "$ac_tool_prefix"; then
3298 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3302 echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_CXX+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 if test -n "$CXX"; then
3308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 if test -n "$CXX"; then
3328 echo "$as_me:$LINENO: result: $CXX" >&5
3329 echo "${ECHO_T}$CXX" >&6
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3335 test -n "$CXX" && break
3338 if test -z "$CXX"; then
3340 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3342 # Extract the first word of "$ac_prog", so it can be a program name with args.
3343 set dummy $ac_prog; ac_word=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 if test -n "$ac_ct_CXX"; then
3350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_ac_ct_CXX="$ac_prog"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3369 if test -n "$ac_ct_CXX"; then
3370 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3371 echo "${ECHO_T}$ac_ct_CXX" >&6
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3377 test -n "$ac_ct_CXX" && break
3379 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3385 # Provide some information about the compiler.
3386 echo "$as_me:$LINENO:" \
3387 "checking for C++ compiler version" >&5
3388 ac_compiler=`set X $ac_compile; echo $2`
3389 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3390 (eval $ac_compiler --version </dev/null >&5) 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }
3394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3395 (eval $ac_compiler -v </dev/null >&5) 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }
3399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3400 (eval $ac_compiler -V </dev/null >&5) 2>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3405 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3406 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3407 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; } &&
3443 { ac_try='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3460 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3461 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3462 GXX=`test $ac_compiler_gnu = yes && echo yes`
3463 ac_test_CXXFLAGS=${CXXFLAGS+set}
3464 ac_save_CXXFLAGS=$CXXFLAGS
3466 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3467 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3468 if test "${ac_cv_prog_cxx_g+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3486 rm -f conftest.$ac_objext
3487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488 (eval $ac_compile) 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 ac_cv_prog_cxx_g=yes
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3516 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3517 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3518 if test "$ac_test_CXXFLAGS" = set; then
3519 CXXFLAGS=$ac_save_CXXFLAGS
3520 elif test $ac_cv_prog_cxx_g = yes; then
3521 if test "$GXX" = yes; then
3527 if test "$GXX" = yes; then
3533 for ac_declaration in \
3535 'extern "C" void std::exit (int) throw (); using std::exit;' \
3536 'extern "C" void std::exit (int); using std::exit;' \
3537 'extern "C" void exit (int) throw ();' \
3538 'extern "C" void exit (int);' \
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3557 rm -f conftest.$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586 cat >conftest.$ac_ext <<_ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3601 rm -f conftest.$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631 if test -n "$ac_declaration"; then
3632 echo '#ifdef __cplusplus' >>confdefs.h
3633 echo $ac_declaration >>confdefs.h
3634 echo '#endif' >>confdefs.h
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 depcc="$CXX" am_compiler_list=
3645 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3646 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3647 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3651 # We make a subdir and do the tests there. Otherwise we can end up
3652 # making bogus files that we don't know about and never remove. For
3653 # instance it was reported that on HP-UX the gcc test will end up
3654 # making a dummy file named `D' -- because `-MD' means `put the output
3657 # Copy depcomp to subdir because otherwise we won't find it if we're
3658 # using a relative directory.
3659 cp "$am_depcomp" conftest.dir
3661 # We will build objects and dependencies in a subdirectory because
3662 # it helps to detect inapplicable dependency modes. For instance
3663 # both Tru64's cc and ICC support -MD to output dependencies as a
3664 # side effect of compilation, but ICC will put the dependencies in
3665 # the current directory while Tru64 will put them in the object
3669 am_cv_CXX_dependencies_compiler_type=none
3670 if test "$am_compiler_list" = ""; then
3671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3673 for depmode in $am_compiler_list; do
3674 # Setup a source with many dependencies, because some compilers
3675 # like to wrap large dependency lists on column 80 (with \), and
3676 # we should not choose a depcomp mode which is confused by this.
3678 # We need to recreate these files for each test, as the compiler may
3679 # overwrite some of them when testing with obscure command lines.
3680 # This happens at least with the AIX C compiler.
3682 for i in 1 2 3 4 5 6; do
3683 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3684 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3685 # Solaris 8's {/usr,}/bin/sh.
3686 touch sub/conftst$i.h
3688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3692 # after this tag, mechanisms are not by side-effect, so they'll
3693 # only be used when explicitly requested
3694 if test "x$enable_dependency_tracking" = xyes; then
3702 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3703 # mode. It turns out that the SunPro C++ compiler does not properly
3704 # handle `-M -o', and we need to detect this.
3705 if depmode=$depmode \
3706 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3707 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3708 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3709 >/dev/null 2>conftest.err &&
3710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3711 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3713 # icc doesn't choke on unknown options, it will just issue warnings
3714 # or remarks (even with -Werror). So we grep stderr for any message
3715 # that says an option was ignored or not supported.
3716 # When given -MP, icc 7.0 and 7.1 complain thusly:
3717 # icc: Command line warning: ignoring option '-M'; no argument required
3718 # The diagnosis changed in icc 8.0:
3719 # icc: Command line remark: option '-MP' not supported
3720 if (grep 'ignoring option' conftest.err ||
3721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3722 am_cv_CXX_dependencies_compiler_type=$depmode
3731 am_cv_CXX_dependencies_compiler_type=none
3735 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3736 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3737 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3742 test "x$enable_dependency_tracking" != xno \
3743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3744 am__fastdepCXX_TRUE=
3745 am__fastdepCXX_FALSE='#'
3747 am__fastdepCXX_TRUE='#'
3748 am__fastdepCXX_FALSE=
3754 if test "$GCC" = yes; then
3761 # let the Makefile know if we're gcc
3763 # Uncomment this if you'll be exporting libraries (.so's)
3764 # Check whether --enable-shared or --disable-shared was given.
3765 if test "${enable_shared+set}" = set; then
3766 enableval="$enable_shared"
3767 p=${PACKAGE-default}
3769 yes) enable_shared=yes ;;
3770 no) enable_shared=no ;;
3773 # Look at the argument we got. We use all the common list separators.
3774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3775 for pkg in $enableval; do
3777 if test "X$pkg" = "X$p"; then
3788 # Check whether --enable-static or --disable-static was given.
3789 if test "${enable_static+set}" = set; then
3790 enableval="$enable_static"
3791 p=${PACKAGE-default}
3793 yes) enable_static=yes ;;
3794 no) enable_static=no ;;
3797 # Look at the argument we got. We use all the common list separators.
3798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3799 for pkg in $enableval; do
3801 if test "X$pkg" = "X$p"; then
3812 # Check whether --enable-fast-install or --disable-fast-install was given.
3813 if test "${enable_fast_install+set}" = set; then
3814 enableval="$enable_fast_install"
3815 p=${PACKAGE-default}
3817 yes) enable_fast_install=yes ;;
3818 no) enable_fast_install=no ;;
3820 enable_fast_install=no
3821 # Look at the argument we got. We use all the common list separators.
3822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3823 for pkg in $enableval; do
3825 if test "X$pkg" = "X$p"; then
3826 enable_fast_install=yes
3833 enable_fast_install=yes
3836 # Make sure we can run config.sub.
3837 $ac_config_sub sun4 >/dev/null 2>&1 ||
3838 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3839 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3840 { (exit 1); exit 1; }; }
3842 echo "$as_me:$LINENO: checking build system type" >&5
3843 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3844 if test "${ac_cv_build+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 ac_cv_build_alias=$build_alias
3848 test -z "$ac_cv_build_alias" &&
3849 ac_cv_build_alias=`$ac_config_guess`
3850 test -z "$ac_cv_build_alias" &&
3851 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3852 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3853 { (exit 1); exit 1; }; }
3854 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3855 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3856 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3857 { (exit 1); exit 1; }; }
3860 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3861 echo "${ECHO_T}$ac_cv_build" >&6
3863 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3864 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3865 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3868 echo "$as_me:$LINENO: checking host system type" >&5
3869 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3870 if test "${ac_cv_host+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 ac_cv_host_alias=$host_alias
3874 test -z "$ac_cv_host_alias" &&
3875 ac_cv_host_alias=$ac_cv_build_alias
3876 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3877 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3878 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3879 { (exit 1); exit 1; }; }
3882 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3883 echo "${ECHO_T}$ac_cv_host" >&6
3885 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3886 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3887 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3890 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3891 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3892 if test "${lt_cv_path_SED+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 # Loop through the user's path and test for sed and gsed.
3896 # Then use that list of sed's as ones to test for truncation.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for lt_ac_prog in sed gsed; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3905 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3912 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3913 # along with /bin/sed that truncates output.
3914 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3915 test ! -f $lt_ac_sed && continue
3916 cat /dev/null > conftest.in
3918 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3919 # Check for GNU sed and select it if it is found.
3920 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3921 lt_cv_path_SED=$lt_ac_sed
3925 cat conftest.in conftest.in >conftest.tmp
3926 mv conftest.tmp conftest.in
3927 cp conftest.in conftest.nl
3929 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3930 cmp -s conftest.out conftest.nl || break
3931 # 10000 chars as input seems more than enough
3932 test $lt_ac_count -gt 10 && break
3933 lt_ac_count=`expr $lt_ac_count + 1`
3934 if test $lt_ac_count -gt $lt_ac_max; then
3935 lt_ac_max=$lt_ac_count
3936 lt_cv_path_SED=$lt_ac_sed
3944 echo "$as_me:$LINENO: result: $SED" >&5
3945 echo "${ECHO_T}$SED" >&6
3947 echo "$as_me:$LINENO: checking for egrep" >&5
3948 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3949 if test "${ac_cv_prog_egrep+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3953 then ac_cv_prog_egrep='grep -E'
3954 else ac_cv_prog_egrep='egrep'
3957 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3958 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3959 EGREP=$ac_cv_prog_egrep
3963 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3964 if test "${with_gnu_ld+set}" = set; then
3965 withval="$with_gnu_ld"
3966 test "$withval" = no || with_gnu_ld=yes
3971 if test "$GCC" = yes; then
3972 # Check if gcc -print-prog-name=ld gives a path.
3973 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3974 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3977 # gcc leaves a trailing carriage return which upsets mingw
3978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3983 # Accept absolute paths.
3985 re_direlt='/[^/][^/]*/\.\./'
3986 # Canonicalize the pathname of ld
3987 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3988 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3989 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3991 test -z "$LD" && LD="$ac_prog"
3994 # If it fails, then pretend we aren't using GCC.
3998 # If it is relative, then search for the first ld in PATH.
4002 elif test "$with_gnu_ld" = yes; then
4003 echo "$as_me:$LINENO: checking for GNU ld" >&5
4004 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4006 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4007 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4009 if test "${lt_cv_path_LD+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if test -z "$LD"; then
4013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4014 for ac_dir in $PATH; do
4016 test -z "$ac_dir" && ac_dir=.
4017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4018 lt_cv_path_LD="$ac_dir/$ac_prog"
4019 # Check to see if the program is GNU ld. I'd rather use --version,
4020 # but apparently some variants of GNU ld only accept -v.
4021 # Break only if it was the GNU/non-GNU ld that we prefer.
4022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4023 *GNU* | *'with BFD'*)
4024 test "$with_gnu_ld" != no && break
4027 test "$with_gnu_ld" != yes && break
4034 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4039 if test -n "$LD"; then
4040 echo "$as_me:$LINENO: result: $LD" >&5
4041 echo "${ECHO_T}$LD" >&6
4043 echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6
4046 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4047 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4048 { (exit 1); exit 1; }; }
4049 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4050 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4051 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4055 case `$LD -v 2>&1 </dev/null` in
4056 *GNU* | *'with BFD'*)
4057 lt_cv_prog_gnu_ld=yes
4060 lt_cv_prog_gnu_ld=no
4064 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4065 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4066 with_gnu_ld=$lt_cv_prog_gnu_ld
4069 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4070 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4071 if test "${lt_cv_ld_reload_flag+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 lt_cv_ld_reload_flag='-r'
4076 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4077 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4078 reload_flag=$lt_cv_ld_reload_flag
4079 case $reload_flag in
4081 *) reload_flag=" $reload_flag" ;;
4083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4086 if test "$GCC" = yes; then
4087 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4094 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4095 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4096 if test "${lt_cv_path_NM+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if test -n "$NM"; then
4100 # Let the user override the test.
4103 lt_nm_to_check="${ac_tool_prefix}nm"
4104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4105 lt_nm_to_check="$lt_nm_to_check nm"
4107 for lt_tmp_nm in $lt_nm_to_check; do
4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4111 test -z "$ac_dir" && ac_dir=.
4112 tmp_nm="$ac_dir/$lt_tmp_nm"
4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4114 # Check to see if the nm accepts a BSD-compat flag.
4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4116 # nm: unknown option "B" ignored
4117 # Tru64's nm complains that /dev/null is an invalid object file
4118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4119 */dev/null* | *'Invalid file or object type'*)
4120 lt_cv_path_NM="$tmp_nm -B"
4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4126 lt_cv_path_NM="$tmp_nm -p"
4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4131 continue # so that we can try to find one that supports BSD flags
4140 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4143 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4144 echo "${ECHO_T}$lt_cv_path_NM" >&6
4147 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4148 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4150 if test "$LN_S" = "ln -s"; then
4151 echo "$as_me:$LINENO: result: yes" >&5
4152 echo "${ECHO_T}yes" >&6
4154 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4155 echo "${ECHO_T}no, using $LN_S" >&6
4158 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4159 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4160 if test "${lt_cv_deplibs_check_method+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 lt_cv_file_magic_cmd='$MAGIC_CMD'
4164 lt_cv_file_magic_test_file=
4165 lt_cv_deplibs_check_method='unknown'
4166 # Need to set the preceding variable on all platforms that support
4167 # interlibrary dependencies.
4168 # 'none' -- dependencies not supported.
4169 # `unknown' -- same as none, but documents that we really don't know.
4170 # 'pass_all' -- all dependencies passed with no checks.
4171 # 'test_compile' -- check by making test program.
4172 # 'file_magic [[regex]]' -- check by looking for files in library path
4173 # which responds to the $file_magic_cmd with a given extended regex.
4174 # If you have `file' or equivalent on your system and you're not sure
4175 # whether `pass_all' will *always* work, you probably want this one.
4179 lt_cv_deplibs_check_method=pass_all
4183 lt_cv_deplibs_check_method=pass_all
4187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4188 lt_cv_file_magic_cmd='/usr/bin/file -L'
4189 lt_cv_file_magic_test_file=/shlib/libc.so
4193 # func_win32_libid is a shell function defined in ltmain.sh
4194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4195 lt_cv_file_magic_cmd='func_win32_libid'
4199 # Base MSYS/MinGW do not provide the 'file' command needed by
4200 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4201 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4202 lt_cv_file_magic_cmd='$OBJDUMP -f'
4205 darwin* | rhapsody*)
4206 lt_cv_deplibs_check_method=pass_all
4209 freebsd* | kfreebsd*-gnu | dragonfly*)
4210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4213 # Not sure whether the presence of OpenBSD here was a mistake.
4214 # Let's accept both of them until this is cleared up.
4215 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4216 lt_cv_file_magic_cmd=/usr/bin/file
4217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4221 lt_cv_deplibs_check_method=pass_all
4226 lt_cv_deplibs_check_method=pass_all
4229 hpux10.20* | hpux11*)
4230 lt_cv_file_magic_cmd=/usr/bin/file
4233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4237 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]'
4238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4242 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4252 irix5* | irix6* | nonstopux*)
4254 *-32|*"-32 ") libmagic=32-bit;;
4255 *-n32|*"-n32 ") libmagic=N32;;
4256 *-64|*"-64 ") libmagic=64-bit;;
4257 *) libmagic=never-match;;
4259 lt_cv_deplibs_check_method=pass_all
4262 # This must be Linux ELF.
4264 lt_cv_deplibs_check_method=pass_all
4267 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4268 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4277 lt_cv_file_magic_cmd=/usr/bin/file
4278 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4282 lt_cv_deplibs_check_method=unknown
4286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4293 osf3* | osf4* | osf5*)
4294 lt_cv_deplibs_check_method=pass_all
4298 lt_cv_deplibs_check_method=pass_all
4302 case $host_vendor in
4304 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]'
4305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4308 lt_cv_deplibs_check_method=pass_all
4311 lt_cv_file_magic_cmd='/bin/file'
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4315 lt_cv_file_magic_cmd='/bin/file'
4316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4317 lt_cv_file_magic_test_file=/lib/libc.so
4320 lt_cv_deplibs_check_method=pass_all
4323 lt_cv_deplibs_check_method=pass_all
4328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4329 lt_cv_deplibs_check_method=pass_all
4334 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4335 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4336 file_magic_cmd=$lt_cv_file_magic_cmd
4337 deplibs_check_method=$lt_cv_deplibs_check_method
4338 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4343 # If no C compiler was specified, use CC.
4346 # If no C compiler flags were specified, use CFLAGS.
4347 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4349 # Allow CC to be a program name with arguments.
4353 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4354 if test "${enable_libtool_lock+set}" = set; then
4355 enableval="$enable_libtool_lock"
4358 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4360 # Some flags need to be propagated to the compiler or linker for good
4364 # Find out which ABI we are using.
4365 echo 'int i;' > conftest.$ac_ext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; then
4371 case `/usr/bin/file conftest.$ac_objext` in
4383 # Find out which ABI we are using.
4384 echo '#line 4384 "configure"' > conftest.$ac_ext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386 (eval $ac_compile) 2>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; then
4390 if test "$lt_cv_prog_gnu_ld" = yes; then
4391 case `/usr/bin/file conftest.$ac_objext` in
4393 LD="${LD-ld} -melf32bsmip"
4396 LD="${LD-ld} -melf32bmipn32"
4399 LD="${LD-ld} -melf64bmip"
4403 case `/usr/bin/file conftest.$ac_objext` in
4419 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4420 # Find out which ABI we are using.
4421 echo 'int i;' > conftest.$ac_ext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; then
4427 case `/usr/bin/file conftest.o` in
4431 LD="${LD-ld} -m elf_i386"
4433 ppc64-*linux*|powerpc64-*linux*)
4434 LD="${LD-ld} -m elf32ppclinux"
4437 LD="${LD-ld} -m elf_s390"
4440 LD="${LD-ld} -m elf32_sparc"
4447 LD="${LD-ld} -m elf_x86_64"
4449 ppc*-*linux*|powerpc*-*linux*)
4450 LD="${LD-ld} -m elf64ppc"
4453 LD="${LD-ld} -m elf64_s390"
4456 LD="${LD-ld} -m elf64_sparc"
4466 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4467 SAVE_CFLAGS="$CFLAGS"
4468 CFLAGS="$CFLAGS -belf"
4469 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4470 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4471 if test "${lt_cv_cc_needs_belf+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4495 rm -f conftest.$ac_objext conftest$ac_exeext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4497 (eval $ac_link) 2>conftest.er1
4499 grep -v '^ *+' conftest.er1 >conftest.err
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest$ac_exeext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 lt_cv_cc_needs_belf=yes
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 lt_cv_cc_needs_belf=no
4523 rm -f conftest.err conftest.$ac_objext \
4524 conftest$ac_exeext conftest.$ac_ext
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4533 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4536 CFLAGS="$SAVE_CFLAGS"
4540 # Find out which ABI we are using.
4541 echo 'int i;' > conftest.$ac_ext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; then
4547 case `/usr/bin/file conftest.o` in
4549 case $lt_cv_prog_gnu_ld in
4550 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4551 *) LD="${LD-ld} -64" ;;
4562 need_locks="$enable_libtool_lock"
4566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4568 if test "${ac_cv_header_stdc+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 cat >conftest.$ac_ext <<_ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4590 rm -f conftest.$ac_objext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>conftest.er1
4594 grep -v '^ *+' conftest.er1 >conftest.err
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_header_stdc=yes
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 ac_cv_header_stdc=no
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 if test $ac_cv_header_stdc = yes; then
4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632 $EGREP "memchr" >/dev/null 2>&1; then
4635 ac_cv_header_stdc=no
4641 if test $ac_cv_header_stdc = yes; then
4642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "free" >/dev/null 2>&1; then
4656 ac_cv_header_stdc=no
4662 if test $ac_cv_header_stdc = yes; then
4663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4664 if test "$cross_compiling" = yes; then
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4674 #if ((' ' & 0x0FF) == 0x020)
4675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4678 # define ISLOWER(c) \
4679 (('a' <= (c) && (c) <= 'i') \
4680 || ('j' <= (c) && (c) <= 'r') \
4681 || ('s' <= (c) && (c) <= 'z'))
4682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4690 for (i = 0; i < 256; i++)
4691 if (XOR (islower (i), ISLOWER (i))
4692 || toupper (i) != TOUPPER (i))
4697 rm -f conftest$ac_exeext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4699 (eval $ac_link) 2>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4710 echo "$as_me: program exited with status $ac_status" >&5
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4715 ac_cv_header_stdc=no
4717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4722 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4723 if test $ac_cv_header_stdc = yes; then
4725 cat >>confdefs.h <<\_ACEOF
4726 #define STDC_HEADERS 1
4731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4742 inttypes.h stdint.h unistd.h
4744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4745 echo "$as_me:$LINENO: checking for $ac_header" >&5
4746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 $ac_includes_default
4758 #include <$ac_header>
4760 rm -f conftest.$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4764 grep -v '^ *+' conftest.er1 >conftest.err
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 eval "$as_ac_Header=yes"
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 eval "$as_ac_Header=no"
4788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4793 cat >>confdefs.h <<_ACEOF
4794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4803 for ac_header in dlfcn.h
4805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo "$as_me:$LINENO: checking for $ac_header" >&5
4808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815 # Is the header compilable?
4816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4818 cat >conftest.$ac_ext <<_ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 $ac_includes_default
4825 #include <$ac_header>
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; } &&
4842 { ac_try='test -s conftest.$ac_objext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 ac_header_compiler=yes
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 ac_header_compiler=no
4855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4857 echo "${ECHO_T}$ac_header_compiler" >&6
4859 # Is the header present?
4860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <$ac_header>
4870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null; then
4878 if test -s conftest.err; then
4879 ac_cpp_err=$ac_c_preproc_warn_flag
4880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4887 if test -z "$ac_cpp_err"; then
4888 ac_header_preproc=yes
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 ac_header_preproc=no
4895 rm -f conftest.err conftest.$ac_ext
4896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4897 echo "${ECHO_T}$ac_header_preproc" >&6
4899 # So? What about this header?
4900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4906 ac_header_preproc=yes
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4923 ## ------------------------------------ ##
4924 ## Report this to opensource@google.com ##
4925 ## ------------------------------------ ##
4928 sed "s/^/$as_me: WARNING: /" >&2
4931 echo "$as_me:$LINENO: checking for $ac_header" >&5
4932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 eval "$as_ac_Header=\$ac_header_preproc"
4938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4943 cat >>confdefs.h <<_ACEOF
4944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4953 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4954 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4955 (test "X$CXX" != "Xg++"))) ; then
4957 ac_cpp='$CXXCPP $CPPFLAGS'
4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4961 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4962 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4963 if test -z "$CXXCPP"; then
4964 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 # Double quotes because CXXCPP needs to be expanded
4968 for CXXCPP in "$CXX -E" "/lib/cpp"
4971 for ac_cxx_preproc_warn_flag in '' yes
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4986 # include <limits.h>
4988 # include <assert.h>
4992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4995 grep -v '^ *+' conftest.er1 >conftest.err
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null; then
5000 if test -s conftest.err; then
5001 ac_cpp_err=$ac_cxx_preproc_warn_flag
5002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5009 if test -z "$ac_cpp_err"; then
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 # Broken: fails on valid input.
5018 rm -f conftest.err conftest.$ac_ext
5020 # OK, works on sane cases. Now check whether non-existent headers
5021 # can be detected and how.
5022 cat >conftest.$ac_ext <<_ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #include <ac_nonexistent.h>
5030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } >/dev/null; then
5038 if test -s conftest.err; then
5039 ac_cpp_err=$ac_cxx_preproc_warn_flag
5040 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5047 if test -z "$ac_cpp_err"; then
5048 # Broken: success on invalid input.
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 # Passes both tests.
5058 rm -f conftest.err conftest.$ac_ext
5061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062 rm -f conftest.err conftest.$ac_ext
5063 if $ac_preproc_ok; then
5068 ac_cv_prog_CXXCPP=$CXXCPP
5071 CXXCPP=$ac_cv_prog_CXXCPP
5073 ac_cv_prog_CXXCPP=$CXXCPP
5075 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5076 echo "${ECHO_T}$CXXCPP" >&6
5078 for ac_cxx_preproc_warn_flag in '' yes
5080 # Use a header file that comes with gcc, so configuring glibc
5081 # with a fresh cross-compiler works.
5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083 # <limits.h> exists even on freestanding compilers.
5084 # On the NeXT, cc -E runs the code through the compiler's parser,
5085 # not just through cpp. "Syntax error" is here to catch this case.
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5093 # include <limits.h>
5095 # include <assert.h>
5099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5102 grep -v '^ *+' conftest.er1 >conftest.err
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null; then
5107 if test -s conftest.err; then
5108 ac_cpp_err=$ac_cxx_preproc_warn_flag
5109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5116 if test -z "$ac_cpp_err"; then
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 # Broken: fails on valid input.
5125 rm -f conftest.err conftest.$ac_ext
5127 # OK, works on sane cases. Now check whether non-existent headers
5128 # can be detected and how.
5129 cat >conftest.$ac_ext <<_ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <ac_nonexistent.h>
5137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140 grep -v '^ *+' conftest.er1 >conftest.err
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null; then
5145 if test -s conftest.err; then
5146 ac_cpp_err=$ac_cxx_preproc_warn_flag
5147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5154 if test -z "$ac_cpp_err"; then
5155 # Broken: success on invalid input.
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 # Passes both tests.
5165 rm -f conftest.err conftest.$ac_ext
5168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5169 rm -f conftest.err conftest.$ac_ext
5170 if $ac_preproc_ok; then
5173 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5174 See \`config.log' for more details." >&5
5175 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5176 See \`config.log' for more details." >&2;}
5177 { (exit 1); exit 1; }; }
5181 ac_cpp='$CXXCPP $CPPFLAGS'
5182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5190 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5191 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5193 if test -n "$ac_tool_prefix"; then
5194 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5198 echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5200 if test "${ac_cv_prog_F77+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 if test -n "$F77"; then
5204 ac_cv_prog_F77="$F77" # Let the user override the test.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 if test -n "$F77"; then
5224 echo "$as_me:$LINENO: result: $F77" >&5
5225 echo "${ECHO_T}$F77" >&6
5227 echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6
5231 test -n "$F77" && break
5234 if test -z "$F77"; then
5236 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239 set dummy $ac_prog; ac_word=$2
5240 echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5242 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 if test -n "$ac_ct_F77"; then
5246 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_ac_ct_F77="$ac_prog"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5265 if test -n "$ac_ct_F77"; then
5266 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5267 echo "${ECHO_T}$ac_ct_F77" >&6
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5273 test -n "$ac_ct_F77" && break
5280 # Provide some information about the compiler.
5281 echo "$as_me:5281:" \
5282 "checking for Fortran 77 compiler version" >&5
5283 ac_compiler=`set X $ac_compile; echo $2`
5284 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5285 (eval $ac_compiler --version </dev/null >&5) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }
5289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5290 (eval $ac_compiler -v </dev/null >&5) 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5295 (eval $ac_compiler -V </dev/null >&5) 2>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }
5301 # If we don't use `.F' as extension, the preprocessor is not run on the
5302 # input file. (Note that this only needs to work for GNU compilers.)
5305 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5306 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5307 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5320 (eval $ac_compile) 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5350 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5351 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5353 ac_test_FFLAGS=${FFLAGS+set}
5354 ac_save_FFLAGS=$FFLAGS
5356 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5357 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5358 if test "${ac_cv_prog_f77_g+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5367 rm -f conftest.$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>conftest.er1
5371 grep -v '^ *+' conftest.er1 >conftest.err
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; } &&
5382 { ac_try='test -s conftest.$ac_objext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_prog_f77_g=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5399 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5400 if test "$ac_test_FFLAGS" = set; then
5401 FFLAGS=$ac_save_FFLAGS
5402 elif test $ac_cv_prog_f77_g = yes; then
5403 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5409 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5416 G77=`test $ac_compiler_gnu = yes && echo yes`
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5427 # find the maximum length of command line arguments
5428 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5429 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5430 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 # On DJGPP, this test can blow up pretty badly due to problems in libc
5439 # (any single argument exceeding 2000 bytes causes a buffer overrun
5440 # during glob expansion). Even if it were fixed, the result of this
5441 # check would be larger than it should be.
5442 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5446 # Under GNU Hurd, this test is not required because there is
5447 # no limit to the length of command line arguments.
5448 # Libtool will interpret -1 as no limit whatsoever
5449 lt_cv_sys_max_cmd_len=-1;
5453 # On Win9x/ME, this test blows up -- it succeeds, but takes
5454 # about 5 minutes as the teststring grows exponentially.
5455 # Worse, since 9x/ME are not pre-emptively multitasking,
5456 # you end up with a "frozen" computer, even though with patience
5457 # the test eventually succeeds (with a max line length of 256k).
5458 # Instead, let's just punt: use the minimum linelength reported by
5459 # all of the supported platforms: 8192 (on NT/2K/XP).
5460 lt_cv_sys_max_cmd_len=8192;
5464 # On AmigaOS with pdksh, this test takes hours, literally.
5465 # So we just punt and use a minimum line length of 8192.
5466 lt_cv_sys_max_cmd_len=8192;
5469 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5470 # This has been around since 386BSD, at least. Likely further.
5471 if test -x /sbin/sysctl; then
5472 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5473 elif test -x /usr/sbin/sysctl; then
5474 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5476 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5478 # And add a safety zone
5479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5484 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5485 lt_cv_sys_max_cmd_len=196608
5489 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5490 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5491 # nice to cause kernel panics so lets avoid the loop below.
5492 # First set a reasonable default.
5493 lt_cv_sys_max_cmd_len=16384
5495 if test -x /sbin/sysconfig; then
5496 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5497 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5502 lt_cv_sys_max_cmd_len=102400
5504 sysv5* | sco5v6* | sysv4.2uw2*)
5505 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5506 if test -n "$kargmax"; then
5507 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5509 lt_cv_sys_max_cmd_len=32768
5513 # If test is not a shell built-in, we'll probably end up computing a
5514 # maximum length that is only half of the actual maximum length, but
5516 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5517 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5518 = "XX$teststring") >/dev/null 2>&1 &&
5519 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5520 lt_cv_sys_max_cmd_len=$new_result &&
5521 test $i != 17 # 1/2 MB should be enough
5524 teststring=$teststring$teststring
5527 # Add a significant safety factor because C++ compilers can tack on massive
5528 # amounts of additional arguments before passing them to the linker.
5529 # It appears as though 1/2 is a usable value.
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5536 if test -n $lt_cv_sys_max_cmd_len ; then
5537 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5538 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5540 echo "$as_me:$LINENO: result: none" >&5
5541 echo "${ECHO_T}none" >&6
5547 # Check for command to grab the raw symbol name followed by C symbol from nm.
5548 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5549 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5550 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 # These are sane defaults that work on at least a few old systems.
5555 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5557 # Character class describing NM global symbol codes.
5558 symcode='[BCDEGRST]'
5560 # Regexp to match symbols that can be accessed directly from C.
5561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5563 # Transform an extracted symbol line into a proper C declaration
5564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5566 # Transform an extracted symbol line into symbol name and symbol address
5567 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'"
5569 # Define system-specific variables.
5574 cygwin* | mingw* | pw32*)
5575 symcode='[ABCDGISTW]'
5577 hpux*) # Its linker distinguishes data from code symbols
5578 if test "$host_cpu" = ia64; then
5579 symcode='[ABCDEGRST]'
5581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5582 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'"
5585 if test "$host_cpu" = ia64; then
5586 symcode='[ABCDGIRSTW]'
5587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5588 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'"
5592 symcode='[BCDEGRST]'
5595 symcode='[BCDEGQRST]'
5606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5614 # Handle CRLF in mingw tool chain
5618 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5622 # If we're using GNU nm, then use its standard symbol codes.
5623 case `$NM -V 2>&1` in
5624 *GNU* | *'with BFD'*)
5625 symcode='[ABCDGIRSTW]' ;;
5628 # Try without a prefix undercore, then with it.
5629 for ac_symprfx in "" "_"; do
5631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5632 symxfrm="\\1 $ac_symprfx\\2 \\2"
5634 # Write the raw and C identifiers.
5635 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5637 # Check to see that the pipe works correctly.
5641 cat > conftest.$ac_ext <<EOF
5646 void nm_test_func(){}
5650 int main(){nm_test_var='a';nm_test_func();return(0);}
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; then
5658 # Now try to grab the symbols.
5660 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5661 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && test -s "$nlist"; then
5665 # Try sorting and uniquifying the output.
5666 if sort "$nlist" | uniq > "$nlist"T; then
5667 mv -f "$nlist"T "$nlist"
5672 # Make sure that we snagged all the symbols we need.
5673 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5674 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5675 cat <<EOF > conftest.$ac_ext
5681 # Now generate the symbol file.
5682 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5684 cat <<EOF >> conftest.$ac_ext
5685 #if defined (__STDC__) && __STDC__
5686 # define lt_ptr_t void *
5688 # define lt_ptr_t char *
5692 /* The mapping between symbol names and symbols. */
5697 lt_preloaded_symbols[] =
5700 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5701 cat <<\EOF >> conftest.$ac_ext
5709 # Now try linking the two files.
5710 mv conftest.$ac_objext conftstm.$ac_objext
5711 lt_save_LIBS="$LIBS"
5712 lt_save_CFLAGS="$CFLAGS"
5713 LIBS="conftstm.$ac_objext"
5714 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5716 (eval $ac_link) 2>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5722 LIBS="$lt_save_LIBS"
5723 CFLAGS="$lt_save_CFLAGS"
5725 echo "cannot find nm_test_func in $nlist" >&5
5728 echo "cannot find nm_test_var in $nlist" >&5
5731 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5734 echo "$progname: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5737 rm -f conftest* conftst*
5739 # Do not use the global_symbol_pipe unless it works.
5740 if test "$pipe_works" = yes; then
5743 lt_cv_sys_global_symbol_pipe=
5749 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5750 lt_cv_sys_global_symbol_to_cdecl=
5752 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5753 echo "$as_me:$LINENO: result: failed" >&5
5754 echo "${ECHO_T}failed" >&6
5756 echo "$as_me:$LINENO: result: ok" >&5
5757 echo "${ECHO_T}ok" >&6
5760 echo "$as_me:$LINENO: checking for objdir" >&5
5761 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5762 if test "${lt_cv_objdir+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 rm -f .libs 2>/dev/null
5766 mkdir .libs 2>/dev/null
5767 if test -d .libs; then
5770 # MS-DOS does not allow filenames that begin with a dot.
5773 rmdir .libs 2>/dev/null
5775 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5776 echo "${ECHO_T}$lt_cv_objdir" >&6
5777 objdir=$lt_cv_objdir
5785 # AIX sometimes has problems with the GCC collect2 program. For some
5786 # reason, if we set the COLLECT_NAMES environment variable, the problems
5787 # vanish in a puff of smoke.
5788 if test "X${COLLECT_NAMES+set}" != Xset; then
5790 export COLLECT_NAMES
5795 # Sed substitution that helps us do robust quoting. It backslashifies
5796 # metacharacters that are still active within double-quoted strings.
5797 Xsed='sed -e 1s/^X//'
5798 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5800 # Same as above, but do not quote variable references.
5801 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5803 # Sed substitution to delay expansion of an escaped shell variable in a
5804 # double_quote_subst'ed string.
5805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5807 # Sed substitution to avoid accidental globbing in evaled expressions
5808 no_glob_subst='s/\*/\\\*/g'
5814 default_ofile=libtool
5815 can_build_shared=yes
5817 # All known linkers require a `.a' archive for static linking (except MSVC,
5818 # which needs '.lib').
5820 ltmain="$ac_aux_dir/ltmain.sh"
5821 ofile="$default_ofile"
5822 with_gnu_ld="$lt_cv_prog_gnu_ld"
5824 if test -n "$ac_tool_prefix"; then
5825 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5826 set dummy ${ac_tool_prefix}ar; ac_word=$2
5827 echo "$as_me:$LINENO: checking for $ac_word" >&5
5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829 if test "${ac_cv_prog_AR+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 if test -n "$AR"; then
5833 ac_cv_prog_AR="$AR" # Let the user override the test.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_AR="${ac_tool_prefix}ar"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 if test -n "$AR"; then
5853 echo "$as_me:$LINENO: result: $AR" >&5
5854 echo "${ECHO_T}$AR" >&6
5856 echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6
5861 if test -z "$ac_cv_prog_AR"; then
5863 # Extract the first word of "ar", so it can be a program name with args.
5864 set dummy ar; ac_word=$2
5865 echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test -n "$ac_ct_AR"; then
5871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_ac_ct_AR="ar"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5891 if test -n "$ac_ct_AR"; then
5892 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5893 echo "${ECHO_T}$ac_ct_AR" >&6
5895 echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5907 echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5909 if test "${ac_cv_prog_RANLIB+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 if test -n "$RANLIB"; then
5913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 RANLIB=$ac_cv_prog_RANLIB
5932 if test -n "$RANLIB"; then
5933 echo "$as_me:$LINENO: result: $RANLIB" >&5
5934 echo "${ECHO_T}$RANLIB" >&6
5936 echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6
5941 if test -z "$ac_cv_prog_RANLIB"; then
5942 ac_ct_RANLIB=$RANLIB
5943 # Extract the first word of "ranlib", so it can be a program name with args.
5944 set dummy ranlib; ac_word=$2
5945 echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 if test -n "$ac_ct_RANLIB"; then
5951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_ac_ct_RANLIB="ranlib"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5971 if test -n "$ac_ct_RANLIB"; then
5972 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5973 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5975 echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5979 RANLIB=$ac_ct_RANLIB
5981 RANLIB="$ac_cv_prog_RANLIB"
5984 if test -n "$ac_tool_prefix"; then
5985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5986 set dummy ${ac_tool_prefix}strip; ac_word=$2
5987 echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5989 if test "${ac_cv_prog_STRIP+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 if test -n "$STRIP"; then
5993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 STRIP=$ac_cv_prog_STRIP
6012 if test -n "$STRIP"; then
6013 echo "$as_me:$LINENO: result: $STRIP" >&5
6014 echo "${ECHO_T}$STRIP" >&6
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6021 if test -z "$ac_cv_prog_STRIP"; then
6023 # Extract the first word of "strip", so it can be a program name with args.
6024 set dummy strip; ac_word=$2
6025 echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 if test -n "$ac_ct_STRIP"; then
6031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_STRIP="strip"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6051 if test -n "$ac_ct_STRIP"; then
6052 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6053 echo "${ECHO_T}$ac_ct_STRIP" >&6
6055 echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6061 STRIP="$ac_cv_prog_STRIP"
6066 old_CFLAGS="$CFLAGS"
6068 # Set sane defaults for various variables
6069 test -z "$AR" && AR=ar
6070 test -z "$AR_FLAGS" && AR_FLAGS=cru
6071 test -z "$AS" && AS=as
6072 test -z "$CC" && CC=cc
6073 test -z "$LTCC" && LTCC=$CC
6074 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6075 test -z "$DLLTOOL" && DLLTOOL=dlltool
6076 test -z "$LD" && LD=ld
6077 test -z "$LN_S" && LN_S="ln -s"
6078 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6079 test -z "$NM" && NM=nm
6080 test -z "$SED" && SED=sed
6081 test -z "$OBJDUMP" && OBJDUMP=objdump
6082 test -z "$RANLIB" && RANLIB=:
6083 test -z "$STRIP" && STRIP=:
6084 test -z "$ac_objext" && ac_objext=o
6086 # Determine commands to create old-style static archives.
6087 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6088 old_postinstall_cmds='chmod 644 $oldlib'
6089 old_postuninstall_cmds=
6091 if test -n "$RANLIB"; then
6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6103 for cc_temp in $compiler""; do
6105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6111 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6114 # Only perform the check for file, if the check method requires it
6115 case $deplibs_check_method in
6117 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6118 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6119 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6120 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6128 lt_save_MAGIC_CMD="$MAGIC_CMD"
6129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6131 for ac_dir in $ac_dummy; do
6133 test -z "$ac_dir" && ac_dir=.
6134 if test -f $ac_dir/${ac_tool_prefix}file; then
6135 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6136 if test -n "$file_magic_test_file"; then
6137 case $deplibs_check_method in
6139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6142 $EGREP "$file_magic_regex" > /dev/null; then
6147 *** Warning: the command libtool uses to detect shared libraries,
6148 *** $file_magic_cmd, produces output that libtool cannot recognize.
6149 *** The result is that libtool may fail to recognize shared libraries
6150 *** as such. This will affect the creation of libtool libraries that
6151 *** depend on shared libraries, but programs linked with such libtool
6152 *** libraries will work regardless of this problem. Nevertheless, you
6153 *** may want to report the problem to your system manager and/or to
6154 *** bug-libtool@gnu.org
6164 MAGIC_CMD="$lt_save_MAGIC_CMD"
6169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6170 if test -n "$MAGIC_CMD"; then
6171 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6172 echo "${ECHO_T}$MAGIC_CMD" >&6
6174 echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6
6178 if test -z "$lt_cv_path_MAGIC_CMD"; then
6179 if test -n "$ac_tool_prefix"; then
6180 echo "$as_me:$LINENO: checking for file" >&5
6181 echo $ECHO_N "checking for file... $ECHO_C" >&6
6182 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6190 lt_save_MAGIC_CMD="$MAGIC_CMD"
6191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6192 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6193 for ac_dir in $ac_dummy; do
6195 test -z "$ac_dir" && ac_dir=.
6196 if test -f $ac_dir/file; then
6197 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6198 if test -n "$file_magic_test_file"; then
6199 case $deplibs_check_method in
6201 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6203 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6204 $EGREP "$file_magic_regex" > /dev/null; then
6209 *** Warning: the command libtool uses to detect shared libraries,
6210 *** $file_magic_cmd, produces output that libtool cannot recognize.
6211 *** The result is that libtool may fail to recognize shared libraries
6212 *** as such. This will affect the creation of libtool libraries that
6213 *** depend on shared libraries, but programs linked with such libtool
6214 *** libraries will work regardless of this problem. Nevertheless, you
6215 *** may want to report the problem to your system manager and/or to
6216 *** bug-libtool@gnu.org
6226 MAGIC_CMD="$lt_save_MAGIC_CMD"
6231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6232 if test -n "$MAGIC_CMD"; then
6233 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6234 echo "${ECHO_T}$MAGIC_CMD" >&6
6236 echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6
6252 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6253 if test "${enable_libtool_lock+set}" = set; then
6254 enableval="$enable_libtool_lock"
6257 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6260 # Check whether --with-pic or --without-pic was given.
6261 if test "${with_pic+set}" = set; then
6267 test -z "$pic_mode" && pic_mode=default
6269 # Use C for the default configuration in the libtool script
6273 ac_cpp='$CPP $CPPFLAGS'
6274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279 # Source file extension for C test sources.
6282 # Object file extension for compiled C test sources.
6286 # Code to be used in simple compile tests
6287 lt_simple_compile_test_code="int some_variable = 0;\n"
6289 # Code to be used in simple link tests
6290 lt_simple_link_test_code='int main(){return(0);}\n'
6293 # If no C compiler was specified, use CC.
6296 # If no C compiler flags were specified, use CFLAGS.
6297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6299 # Allow CC to be a program name with arguments.
6303 # save warnings/boilerplate of simple test code
6304 ac_outfile=conftest.$ac_objext
6305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6307 _lt_compiler_boilerplate=`cat conftest.err`
6310 ac_outfile=conftest.$ac_objext
6311 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6313 _lt_linker_boilerplate=`cat conftest.err`
6318 lt_prog_compiler_no_builtin_flag=
6320 if test "$GCC" = yes; then
6321 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6324 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6325 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6326 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 lt_cv_prog_compiler_rtti_exceptions=no
6330 ac_outfile=conftest.$ac_objext
6331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6332 lt_compiler_flag="-fno-rtti -fno-exceptions"
6333 # Insert the option either (1) after the last *FLAGS variable, or
6334 # (2) before a word containing "conftest.", or (3) at the end.
6335 # Note that $ac_compile itself does not contain backslashes and begins
6336 # with a dollar sign (not a hyphen), so the echo should work correctly.
6337 # The option is referenced via a variable to avoid confusing sed.
6338 lt_compile=`echo "$ac_compile" | $SED \
6339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6341 -e 's:$: $lt_compiler_flag:'`
6342 (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
6343 (eval "$lt_compile" 2>conftest.err)
6345 cat conftest.err >&5
6346 echo "$as_me:6346: \$? = $ac_status" >&5
6347 if (exit $ac_status) && test -s "$ac_outfile"; then
6348 # The compiler can only warn and ignore the option if not recognized
6349 # So say no if there are warnings other than the usual output.
6350 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6353 lt_cv_prog_compiler_rtti_exceptions=yes
6359 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6360 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6370 lt_prog_compiler_wl=
6371 lt_prog_compiler_pic=
6372 lt_prog_compiler_static=
6374 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6377 if test "$GCC" = yes; then
6378 lt_prog_compiler_wl='-Wl,'
6379 lt_prog_compiler_static='-static'
6383 # All AIX code is PIC.
6384 if test "$host_cpu" = ia64; then
6385 # AIX 5 now supports IA64 processor
6386 lt_prog_compiler_static='-Bstatic'
6391 # FIXME: we need at least 68020 code to build shared libraries, but
6392 # adding the `-m68020' flag to GCC prevents building anything better,
6394 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6397 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6398 # PIC is the default for these OSes.
6401 mingw* | pw32* | os2*)
6402 # This hack is so that the source file can tell whether it is being
6403 # built for inclusion in a dll (and should export symbols for example).
6404 lt_prog_compiler_pic='-DDLL_EXPORT'
6407 darwin* | rhapsody*)
6408 # PIC is the default on this platform
6409 # Common symbols not allowed in MH_DYLIB files
6410 lt_prog_compiler_pic='-fno-common'
6414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6415 # Instead, we relocate shared libraries at runtime.
6419 # Just because we use GCC doesn't mean we suddenly get shared libraries
6420 # on systems that don't support them.
6421 lt_prog_compiler_can_build_shared=no
6426 if test -d /usr/nec; then
6427 lt_prog_compiler_pic=-Kconform_pic
6432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6439 lt_prog_compiler_pic='-fPIC'
6445 lt_prog_compiler_pic='-fPIC'
6449 # PORTME Check for flag to pass linker flags through the system compiler.
6452 lt_prog_compiler_wl='-Wl,'
6453 if test "$host_cpu" = ia64; then
6454 # AIX 5 now supports IA64 processor
6455 lt_prog_compiler_static='-Bstatic'
6457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6461 # PIC is the default on this platform
6462 # Common symbols not allowed in MH_DYLIB files
6463 case $cc_basename in
6465 lt_prog_compiler_pic='-qnocommon'
6466 lt_prog_compiler_wl='-Wl,'
6471 mingw* | pw32* | os2*)
6472 # This hack is so that the source file can tell whether it is being
6473 # built for inclusion in a dll (and should export symbols for example).
6474 lt_prog_compiler_pic='-DDLL_EXPORT'
6477 hpux9* | hpux10* | hpux11*)
6478 lt_prog_compiler_wl='-Wl,'
6479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6486 lt_prog_compiler_pic='+Z'
6489 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6490 lt_prog_compiler_static='${wl}-a ${wl}archive'
6493 irix5* | irix6* | nonstopux*)
6494 lt_prog_compiler_wl='-Wl,'
6495 # PIC (with -KPIC) is the default.
6496 lt_prog_compiler_static='-non_shared'
6500 lt_prog_compiler_pic='-KPIC'
6501 lt_prog_compiler_static='-Bstatic'
6505 case $cc_basename in
6507 lt_prog_compiler_wl='-Wl,'
6508 lt_prog_compiler_pic='-KPIC'
6509 lt_prog_compiler_static='-static'
6511 pgcc* | pgf77* | pgf90* | pgf95*)
6512 # Portland Group compilers (*not* the Pentium gcc compiler,
6513 # which looks to be a dead project)
6514 lt_prog_compiler_wl='-Wl,'
6515 lt_prog_compiler_pic='-fpic'
6516 lt_prog_compiler_static='-Bstatic'
6519 lt_prog_compiler_wl='-Wl,'
6520 # All Alpha code is PIC.
6521 lt_prog_compiler_static='-non_shared'
6526 osf3* | osf4* | osf5*)
6527 lt_prog_compiler_wl='-Wl,'
6528 # All OSF/1 code is PIC.
6529 lt_prog_compiler_static='-non_shared'
6533 lt_prog_compiler_pic='-KPIC'
6534 lt_prog_compiler_static='-Bstatic'
6535 case $cc_basename in
6537 lt_prog_compiler_wl='-Qoption ld ';;
6539 lt_prog_compiler_wl='-Wl,';;
6544 lt_prog_compiler_wl='-Qoption ld '
6545 lt_prog_compiler_pic='-PIC'
6546 lt_prog_compiler_static='-Bstatic'
6549 sysv4 | sysv4.2uw2* | sysv4.3*)
6550 lt_prog_compiler_wl='-Wl,'
6551 lt_prog_compiler_pic='-KPIC'
6552 lt_prog_compiler_static='-Bstatic'
6556 if test -d /usr/nec ;then
6557 lt_prog_compiler_pic='-Kconform_pic'
6558 lt_prog_compiler_static='-Bstatic'
6562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6563 lt_prog_compiler_wl='-Wl,'
6564 lt_prog_compiler_pic='-KPIC'
6565 lt_prog_compiler_static='-Bstatic'
6569 lt_prog_compiler_wl='-Wl,'
6570 lt_prog_compiler_can_build_shared=no
6574 lt_prog_compiler_pic='-pic'
6575 lt_prog_compiler_static='-Bstatic'
6579 lt_prog_compiler_can_build_shared=no
6584 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6585 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6588 # Check to make sure the PIC flag actually works.
6590 if test -n "$lt_prog_compiler_pic"; then
6592 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6593 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6594 if test "${lt_prog_compiler_pic_works+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 lt_prog_compiler_pic_works=no
6598 ac_outfile=conftest.$ac_objext
6599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6600 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6601 # Insert the option either (1) after the last *FLAGS variable, or
6602 # (2) before a word containing "conftest.", or (3) at the end.
6603 # Note that $ac_compile itself does not contain backslashes and begins
6604 # with a dollar sign (not a hyphen), so the echo should work correctly.
6605 # The option is referenced via a variable to avoid confusing sed.
6606 lt_compile=`echo "$ac_compile" | $SED \
6607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6609 -e 's:$: $lt_compiler_flag:'`
6610 (eval echo "\"\$as_me:6610: $lt_compile\"" >&5)
6611 (eval "$lt_compile" 2>conftest.err)
6613 cat conftest.err >&5
6614 echo "$as_me:6614: \$? = $ac_status" >&5
6615 if (exit $ac_status) && test -s "$ac_outfile"; then
6616 # The compiler can only warn and ignore the option if not recognized
6617 # So say no if there are warnings other than the usual output.
6618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6621 lt_prog_compiler_pic_works=yes
6627 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6628 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6630 if test x"$lt_prog_compiler_pic_works" = xyes; then
6631 case $lt_prog_compiler_pic in
6633 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6636 lt_prog_compiler_pic=
6637 lt_prog_compiler_can_build_shared=no
6642 # For platforms which do not support PIC, -DPIC is meaningless:
6644 lt_prog_compiler_pic=
6647 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6652 # Check to make sure the static flag actually works.
6654 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6655 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6656 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6657 if test "${lt_prog_compiler_static_works+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 lt_prog_compiler_static_works=no
6661 save_LDFLAGS="$LDFLAGS"
6662 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6663 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6665 # The linker can only warn and ignore the option if not recognized
6666 # So say no if there are warnings
6667 if test -s conftest.err; then
6668 # Append any errors to the config.log.
6669 cat conftest.err 1>&5
6670 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6672 if diff conftest.exp conftest.er2 >/dev/null; then
6673 lt_prog_compiler_static_works=yes
6676 lt_prog_compiler_static_works=yes
6680 LDFLAGS="$save_LDFLAGS"
6683 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6684 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6686 if test x"$lt_prog_compiler_static_works" = xyes; then
6689 lt_prog_compiler_static=
6693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6695 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 lt_cv_prog_compiler_c_o=no
6699 $rm -r conftest 2>/dev/null
6703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6705 lt_compiler_flag="-o out/conftest2.$ac_objext"
6706 # Insert the option either (1) after the last *FLAGS variable, or
6707 # (2) before a word containing "conftest.", or (3) at the end.
6708 # Note that $ac_compile itself does not contain backslashes and begins
6709 # with a dollar sign (not a hyphen), so the echo should work correctly.
6710 lt_compile=`echo "$ac_compile" | $SED \
6711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6713 -e 's:$: $lt_compiler_flag:'`
6714 (eval echo "\"\$as_me:6714: $lt_compile\"" >&5)
6715 (eval "$lt_compile" 2>out/conftest.err)
6717 cat out/conftest.err >&5
6718 echo "$as_me:6718: \$? = $ac_status" >&5
6719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6721 # The compiler can only warn and ignore the option if not recognized
6722 # So say no if there are warnings
6723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6726 lt_cv_prog_compiler_c_o=yes
6731 # SGI C++ compiler will create directory out/ii_files/ for
6732 # template instantiation
6733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6734 $rm out/* && rmdir out
6740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6741 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6744 hard_links="nottested"
6745 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6746 # do not overwrite the value of need_locks provided by the user
6747 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6748 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6753 ln conftest.a conftest.b 2>&5 || hard_links=no
6754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6755 echo "$as_me:$LINENO: result: $hard_links" >&5
6756 echo "${ECHO_T}$hard_links" >&6
6757 if test "$hard_links" = no; then
6758 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6759 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6766 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6767 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6770 allow_undefined_flag=
6771 enable_shared_with_static_runtimes=no
6773 archive_expsym_cmds=
6774 old_archive_From_new_cmds=
6775 old_archive_from_expsyms_cmds=
6776 export_dynamic_flag_spec=
6777 whole_archive_flag_spec=
6778 thread_safe_flag_spec=
6779 hardcode_libdir_flag_spec=
6780 hardcode_libdir_flag_spec_ld=
6781 hardcode_libdir_separator=
6784 hardcode_shlibpath_var=unsupported
6785 link_all_deplibs=unknown
6786 hardcode_automatic=no
6789 always_export_symbols=no
6790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6791 # include_expsyms should be a list of space-separated symbols to be *always*
6792 # included in the symbol list
6794 # exclude_expsyms can be an extended regexp of symbols to exclude
6795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6797 # as well as any symbol that contains `d'.
6798 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6800 # platforms (ab)use it in PIC code, but their linkers get confused if
6801 # the symbol is explicitly referenced. Since portable code cannot
6802 # rely on this symbol name, it's probably fine to never include it in
6803 # preloaded symbol tables.
6804 extract_expsyms_cmds=
6805 # Just being paranoid about ensuring that cc_basename is set.
6806 for cc_temp in $compiler""; do
6808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6814 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6817 cygwin* | mingw* | pw32*)
6818 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6819 # When not using gcc, we currently assume that we are using
6820 # Microsoft Visual C++.
6821 if test "$GCC" != yes; then
6826 # we just hope/assume this is gcc and not c89 (= MSVC++)
6835 if test "$with_gnu_ld" = yes; then
6836 # If archive_cmds runs LD, not CC, wlarc should be empty
6839 # Set some defaults for GNU ld with shared library support. These
6840 # are reset later if shared libraries are not supported. Putting them
6841 # here allows them to be overridden if necessary.
6842 runpath_var=LD_RUN_PATH
6843 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6844 export_dynamic_flag_spec='${wl}--export-dynamic'
6845 # ancient GNU ld didn't support --whole-archive et. al.
6846 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6847 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6849 whole_archive_flag_spec=
6851 supports_anon_versioning=no
6852 case `$LD -v 2>/dev/null` in
6853 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6854 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6855 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6856 *\ 2.11.*) ;; # other 2.11 versions
6857 *) supports_anon_versioning=yes ;;
6860 # See if GNU ld supports shared libraries.
6862 aix3* | aix4* | aix5*)
6863 # On AIX/PPC, the GNU linker is very broken
6864 if test "$host_cpu" != ia64; then
6868 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6869 *** to be unable to reliably create shared libraries on AIX.
6870 *** Therefore, libtool is disabling shared libraries support. If you
6871 *** really care for shared libraries, you may want to modify your PATH
6872 *** so that a non-GNU linker is found, and then restart.
6879 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)'
6880 hardcode_libdir_flag_spec='-L$libdir'
6881 hardcode_minus_L=yes
6883 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6884 # that the semantics of dynamic libraries on AmigaOS, at least up
6885 # to version 4, is to share data among multiple programs linked
6886 # with the same dynamic library. Since this doesn't match the
6887 # behavior of shared libraries on other platforms, we can't use
6893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6894 allow_undefined_flag=unsupported
6895 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6896 # support --undefined. This deserves some investigation. FIXME
6897 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6903 cygwin* | mingw* | pw32*)
6904 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6905 # as there is no search path for DLLs.
6906 hardcode_libdir_flag_spec='-L$libdir'
6907 allow_undefined_flag=unsupported
6908 always_export_symbols=no
6909 enable_shared_with_static_runtimes=yes
6910 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6912 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6914 # If the export-symbols file already is a .def file (1st line
6915 # is EXPORTS), use it as is; otherwise, prepend...
6916 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6917 cp $export_symbols $output_objdir/$soname.def;
6919 echo EXPORTS > $output_objdir/$soname.def;
6920 cat $export_symbols >> $output_objdir/$soname.def;
6922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6930 hardcode_shlibpath_var=no
6931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6932 export_dynamic_flag_spec='${wl}-E'
6933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6934 # Instead, shared libraries are loaded at an image base (0x10000000 by
6935 # default) and relocated if they conflict, which is a slow very memory
6936 # consuming and fragmenting process. To avoid this, we pick a random,
6937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6938 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6940 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'
6944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6946 case $cc_basename,$host_cpu in
6947 pgcc*) # Portland Group C compiler
6948 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'
6949 tmp_addflag=' $pic_flag'
6951 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6952 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'
6953 tmp_addflag=' $pic_flag -Mnomain' ;;
6954 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6955 tmp_addflag=' -i_dynamic' ;;
6956 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6957 tmp_addflag=' -i_dynamic -nofor_main' ;;
6958 ifc* | ifort*) # Intel Fortran compiler
6959 tmp_addflag=' -nofor_main' ;;
6961 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6963 if test $supports_anon_versioning = yes; then
6964 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6966 $echo "local: *; };" >> $output_objdir/$libname.ver~
6967 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6975 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6986 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6990 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6991 *** create shared libraries on Solaris systems. Therefore, libtool
6992 *** is disabling shared libraries support. We urge you to upgrade GNU
6993 *** binutils to release 2.9.1 or newer. Another option is to modify
6994 *** your PATH or compiler configuration so that the native linker is
6995 *** used, and then restart.
6998 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7007 case `$LD -v 2>&1` in
7008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7012 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7013 *** reliably create shared libraries on SCO systems. Therefore, libtool
7014 *** is disabling shared libraries support. We urge you to upgrade GNU
7015 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7016 *** your PATH or compiler configuration so that the native linker is
7017 *** used, and then restart.
7022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7023 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7034 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7037 hardcode_shlibpath_var=no
7041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7050 if test "$ld_shlibs" = no; then
7052 hardcode_libdir_flag_spec=
7053 export_dynamic_flag_spec=
7054 whole_archive_flag_spec=
7057 # PORTME fill in a description of your system's linker (not GNU ld)
7060 allow_undefined_flag=unsupported
7061 always_export_symbols=yes
7062 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'
7063 # Note: this linker hardcodes the directories in LIBPATH if there
7064 # are no directories specified by -L.
7065 hardcode_minus_L=yes
7066 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7067 # Neither direct hardcoding nor static linking is supported with a
7069 hardcode_direct=unsupported
7074 if test "$host_cpu" = ia64; then
7075 # On IA64, the linker does run time linking by default, so we don't
7076 # have to do anything special.
7077 aix_use_runtimelinking=no
7078 exp_sym_flag='-Bexport'
7081 # If we're using GNU nm, then we don't want the "-C" option.
7082 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7083 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7084 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'
7086 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'
7088 aix_use_runtimelinking=no
7090 # Test if we are trying to use run time linking or normal
7091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7092 # need to do runtime linking.
7093 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7094 for ld_flag in $LDFLAGS; do
7095 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7096 aix_use_runtimelinking=yes
7103 exp_sym_flag='-bexport'
7104 no_entry_flag='-bnoentry'
7107 # When large executables or shared objects are built, AIX ld can
7108 # have problems creating the table of contents. If linking a library
7109 # or program results in "error TOC overflow" add -mminimal-toc to
7110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7115 hardcode_libdir_separator=':'
7116 link_all_deplibs=yes
7118 if test "$GCC" = yes; then
7119 case $host_os in aix4.[012]|aix4.[012].*)
7120 # We only want to do this on AIX 4.2 and lower, the check
7121 # below for broken collect2 doesn't work under 4.3+
7122 collect2name=`${CC} -print-prog-name=collect2`
7123 if test -f "$collect2name" && \
7124 strings "$collect2name" | grep resolve_lib_name >/dev/null
7126 # We have reworked collect2
7129 # We have old collect2
7130 hardcode_direct=unsupported
7131 # It fails to find uninstalled libraries when the uninstalled
7132 # path is not listed in the libpath. Setting hardcode_minus_L
7133 # to unsupported forces relinking
7134 hardcode_minus_L=yes
7135 hardcode_libdir_flag_spec='-L$libdir'
7136 hardcode_libdir_separator=
7140 shared_flag='-shared'
7141 if test "$aix_use_runtimelinking" = yes; then
7142 shared_flag="$shared_flag "'${wl}-G'
7146 if test "$host_cpu" = ia64; then
7147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7148 # chokes on -Wl,-G. The following line is correct:
7151 if test "$aix_use_runtimelinking" = yes; then
7152 shared_flag='${wl}-G'
7154 shared_flag='${wl}-bM:SRE'
7159 # It seems that -bexpall does not export symbols beginning with
7160 # underscore (_), so it is better to generate a list of symbols to export.
7161 always_export_symbols=yes
7162 if test "$aix_use_runtimelinking" = yes; then
7163 # Warning - without using the other runtime loading flags (-brtl),
7164 # -berok will link without error, but may produce a broken library.
7165 allow_undefined_flag='-berok'
7166 # Determine the default libpath from the value encoded in an empty executable.
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7182 rm -f conftest.$ac_objext conftest$ac_exeext
7183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7184 (eval $ac_link) 2>conftest.er1
7186 grep -v '^ *+' conftest.er1 >conftest.err
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7206 # Check for a 64-bit object if we didn't find anything.
7207 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; }
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7214 rm -f conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
7216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7219 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"
7221 if test "$host_cpu" = ia64; then
7222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7223 allow_undefined_flag="-z nodefs"
7224 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"
7226 # Determine the default libpath from the value encoded in an empty executable.
7227 cat >conftest.$ac_ext <<_ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest$ac_exeext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7266 # Check for a 64-bit object if we didn't find anything.
7267 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; }
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7274 rm -f conftest.err conftest.$ac_objext \
7275 conftest$ac_exeext conftest.$ac_ext
7276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7279 # Warning - without using the other run time loading flags,
7280 # -berok will link without error, but may produce a broken library.
7281 no_undefined_flag=' ${wl}-bernotok'
7282 allow_undefined_flag=' ${wl}-berok'
7283 # Exported symbols can be pulled into shared objects from archives
7284 whole_archive_flag_spec='$convenience'
7285 archive_cmds_need_lc=yes
7286 # This is similar to how AIX traditionally builds its shared libraries.
7287 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'
7293 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)'
7294 hardcode_libdir_flag_spec='-L$libdir'
7295 hardcode_minus_L=yes
7296 # see comment about different semantics on the GNU ld section
7301 export_dynamic_flag_spec=-rdynamic
7304 cygwin* | mingw* | pw32*)
7305 # When not using gcc, we currently assume that we are using
7306 # Microsoft Visual C++.
7307 # hardcode_libdir_flag_spec is actually meaningless, as there is
7308 # no search path for DLLs.
7309 hardcode_libdir_flag_spec=' '
7310 allow_undefined_flag=unsupported
7311 # Tell ltmain to make .lib files, not .a files.
7313 # Tell ltmain to make .dll files, not .so files.
7315 # FIXME: Setting linknames here is a bad hack.
7316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7317 # The linker will automatically build a .lib file if we build a DLL.
7318 old_archive_From_new_cmds='true'
7319 # FIXME: Should let the user specify the lib program.
7320 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7321 fix_srcfile_path='`cygpath -w "$srcfile"`'
7322 enable_shared_with_static_runtimes=yes
7325 darwin* | rhapsody*)
7327 rhapsody* | darwin1.[012])
7328 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7331 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7332 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7334 case ${MACOSX_DEPLOYMENT_TARGET} in
7336 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7339 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7345 archive_cmds_need_lc=no
7347 hardcode_automatic=yes
7348 hardcode_shlibpath_var=unsupported
7349 whole_archive_flag_spec=''
7350 link_all_deplibs=yes
7351 if test "$GCC" = yes ; then
7352 output_verbose_link_cmd='echo'
7353 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7354 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7355 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7356 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}'
7357 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 case $cc_basename in
7361 output_verbose_link_cmd='echo'
7362 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7363 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7364 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7365 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}'
7366 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}'
7376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7377 hardcode_libdir_flag_spec='-L$libdir'
7378 hardcode_shlibpath_var=no
7385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7386 # support. Future versions do this automatically, but an explicit c++rt0.o
7387 # does not break anything, and helps significantly (at the cost of a little
7390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7391 hardcode_libdir_flag_spec='-R$libdir'
7393 hardcode_shlibpath_var=no
7396 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_minus_L=yes
7401 hardcode_shlibpath_var=no
7404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7405 freebsd* | dragonfly*)
7406 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7407 hardcode_libdir_flag_spec='-R$libdir'
7409 hardcode_shlibpath_var=no
7412 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7414 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7415 hardcode_libdir_flag_spec='-R$libdir'
7417 hardcode_shlibpath_var=no
7422 if test "$GCC" = yes; then
7423 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'
7425 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'
7427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7428 hardcode_libdir_separator=:
7431 # hardcode_minus_L: Not really in the search PATH,
7432 # but as the default location of the library.
7433 hardcode_minus_L=yes
7434 export_dynamic_flag_spec='${wl}-E'
7438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7443 if test "$with_gnu_ld" = no; then
7444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7445 hardcode_libdir_separator=:
7448 export_dynamic_flag_spec='${wl}-E'
7450 # hardcode_minus_L: Not really in the search PATH,
7451 # but as the default location of the library.
7452 hardcode_minus_L=yes
7457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7466 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7478 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7482 if test "$with_gnu_ld" = no; then
7483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7484 hardcode_libdir_separator=:
7488 hardcode_libdir_flag_spec_ld='+b $libdir'
7490 hardcode_shlibpath_var=no
7494 export_dynamic_flag_spec='${wl}-E'
7496 # hardcode_minus_L: Not really in the search PATH,
7497 # but as the default location of the library.
7498 hardcode_minus_L=yes
7504 irix5* | irix6* | nonstopux*)
7505 if test "$GCC" = yes; then
7506 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'
7508 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'
7509 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7512 hardcode_libdir_separator=:
7513 link_all_deplibs=yes
7516 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7522 hardcode_libdir_flag_spec='-R$libdir'
7524 hardcode_shlibpath_var=no
7528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7531 hardcode_libdir_separator=:
7532 hardcode_shlibpath_var=no
7537 hardcode_shlibpath_var=no
7538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7542 export_dynamic_flag_spec='${wl}-E'
7545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7547 hardcode_libdir_flag_spec='-R$libdir'
7550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7558 hardcode_libdir_flag_spec='-L$libdir'
7559 hardcode_minus_L=yes
7560 allow_undefined_flag=unsupported
7561 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'
7562 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7566 if test "$GCC" = yes; then
7567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7568 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'
7570 allow_undefined_flag=' -expect_unresolved \*'
7571 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'
7573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7574 hardcode_libdir_separator=:
7577 osf4* | osf5*) # as osf3* with the addition of -msym flag
7578 if test "$GCC" = yes; then
7579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7580 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'
7581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7583 allow_undefined_flag=' -expect_unresolved \*'
7584 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'
7585 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7586 $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'
7588 # Both c and cxx compiler support -rpath directly
7589 hardcode_libdir_flag_spec='-rpath $libdir'
7591 hardcode_libdir_separator=:
7595 no_undefined_flag=' -z text'
7596 if test "$GCC" = yes; then
7598 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7599 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7600 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7607 hardcode_libdir_flag_spec='-R$libdir'
7608 hardcode_shlibpath_var=no
7610 solaris2.[0-5] | solaris2.[0-5].*) ;;
7612 # The compiler driver will combine linker options so we
7613 # cannot just pass the convience library names through
7614 # without $wl, iff we do not link with $LD.
7615 # Luckily, gcc supports the same syntax we need for Sun Studio.
7616 # Supported since Solaris 2.6 (maybe 2.5.1?)
7619 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7621 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' ;;
7624 link_all_deplibs=yes
7628 if test "x$host_vendor" = xsequent; then
7629 # Use $CC to link under sequent, because it throws in some extra .o
7630 # files that make .init and .fini sections work.
7631 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7633 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7635 hardcode_libdir_flag_spec='-L$libdir'
7637 hardcode_minus_L=yes
7638 hardcode_shlibpath_var=no
7642 case $host_vendor in
7644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7645 hardcode_direct=yes # is this really true???
7648 ## LD is ld it makes a PLAMLIB
7649 ## CC just makes a GrossModule.
7650 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7651 reload_cmds='$CC -r -o $output$reload_objs'
7655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7656 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7659 runpath_var='LD_RUN_PATH'
7660 hardcode_shlibpath_var=no
7664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665 hardcode_shlibpath_var=no
7666 export_dynamic_flag_spec='-Bexport'
7670 if test -d /usr/nec; then
7671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7672 hardcode_shlibpath_var=no
7673 runpath_var=LD_RUN_PATH
7674 hardcode_runpath_var=yes
7679 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7680 no_undefined_flag='${wl}-z,text'
7681 archive_cmds_need_lc=no
7682 hardcode_shlibpath_var=no
7683 runpath_var='LD_RUN_PATH'
7685 if test "$GCC" = yes; then
7686 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7689 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7694 sysv5* | sco3.2v5* | sco5v6*)
7695 # Note: We can NOT use -z defs as we might desire, because we do not
7696 # link with -lc, and that would cause any symbols used from libc to
7697 # always be unresolved, which means just about no library would
7698 # ever link correctly. If we're not using GNU ld we use -z text
7699 # though, which does catch some bad symbols but isn't as heavy-handed
7701 no_undefined_flag='${wl}-z,text'
7702 allow_undefined_flag='${wl}-z,nodefs'
7703 archive_cmds_need_lc=no
7704 hardcode_shlibpath_var=no
7705 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7706 hardcode_libdir_separator=':'
7707 link_all_deplibs=yes
7708 export_dynamic_flag_spec='${wl}-Bexport'
7709 runpath_var='LD_RUN_PATH'
7711 if test "$GCC" = yes; then
7712 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7715 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7722 hardcode_libdir_flag_spec='-L$libdir'
7723 hardcode_shlibpath_var=no
7732 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7733 echo "${ECHO_T}$ld_shlibs" >&6
7734 test "$ld_shlibs" = no && can_build_shared=no
7737 # Do we need to explicitly link libc?
7739 case "x$archive_cmds_need_lc" in
7741 # Assume -lc should be added
7742 archive_cmds_need_lc=yes
7744 if test "$enable_shared" = yes && test "$GCC" = yes; then
7745 case $archive_cmds in
7747 # FIXME: we may have to deal with multi-command sequences.
7750 # Test whether the compiler implicitly links with -lc since on some
7751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7752 # to ld, don't add -lc before -lgcc.
7753 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7754 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } 2>conftest.err; then
7765 libobjs=conftest.$ac_objext
7767 wl=$lt_prog_compiler_wl
7768 pic_flag=$lt_prog_compiler_pic
7774 lt_save_allow_undefined_flag=$allow_undefined_flag
7775 allow_undefined_flag=
7776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7777 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }
7782 archive_cmds_need_lc=no
7784 archive_cmds_need_lc=yes
7786 allow_undefined_flag=$lt_save_allow_undefined_flag
7788 cat conftest.err 1>&5
7791 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7792 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7799 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7800 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7802 libname_spec='lib$name'
7810 shlibpath_overrides_runpath=unknown
7812 dynamic_linker="$host_os ld.so"
7813 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7814 if test "$GCC" = yes; then
7815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7816 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7817 # if the path contains ";" then we assume it to be the separator
7818 # otherwise default to the standard path separator (i.e. ":") - it is
7819 # assumed that no part of a normal pathname contains ";" but that should
7820 # okay in the real world where ";" in dirpaths is itself problematic.
7821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7828 need_lib_prefix=unknown
7829 hardcode_into_libs=no
7831 # when you set need_version to no, make sure it does not cause -set_version
7832 # flags to be left without arguments
7833 need_version=unknown
7838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7839 shlibpath_var=LIBPATH
7841 # AIX 3 has no versioning support, so we append a major version to the name.
7842 soname_spec='${libname}${release}${shared_ext}$major'
7849 hardcode_into_libs=yes
7850 if test "$host_cpu" = ia64; then
7851 # AIX 5 supports IA64
7852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7853 shlibpath_var=LD_LIBRARY_PATH
7855 # With GCC up to 2.95.x, collect2 would create an import file
7856 # for dependence libraries. The import file would start with
7857 # the line `#! .'. This would cause the generated library to
7858 # depend on `.', always an invalid library. This was fixed in
7859 # development snapshots of GCC prior to 3.0.
7861 aix4 | aix4.[01] | aix4.[01].*)
7862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7872 # soname into executable. Probably we can add versioning support to
7873 # collect2, so additional links can be useful in future.
7874 if test "$aix_use_runtimelinking" = yes; then
7875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7876 # instead of lib<name>.a to let people know that these are not
7877 # typical AIX shared libraries.
7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7880 # We preserve .a as extension for shared libraries through AIX4.2
7881 # and later when we are not doing run time linking.
7882 library_names_spec='${libname}${release}.a $libname.a'
7883 soname_spec='${libname}${release}${shared_ext}$major'
7885 shlibpath_var=LIBPATH
7890 library_names_spec='$libname.ixlibrary $libname.a'
7891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7892 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'
7896 library_names_spec='${libname}${shared_ext}'
7897 dynamic_linker="$host_os ld.so"
7898 shlibpath_var=LIBRARY_PATH
7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905 soname_spec='${libname}${release}${shared_ext}$major'
7906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7907 shlibpath_var=LD_LIBRARY_PATH
7908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7910 # the default ld.so.conf also contains /usr/contrib/lib and
7911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7912 # libtool to hard-code these into programs
7915 cygwin* | mingw* | pw32*)
7916 version_type=windows
7921 case $GCC,$host_os in
7922 yes,cygwin* | yes,mingw* | yes,pw32*)
7923 library_names_spec='$libname.dll.a'
7924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7925 postinstall_cmds='base_file=`basename \${file}`~
7926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7927 dldir=$destdir/`dirname \$dlpath`~
7928 test -d \$dldir || mkdir -p \$dldir~
7929 $install_prog $dir/$dlname \$dldir/$dlname~
7930 chmod a+x \$dldir/$dlname'
7931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7932 dlpath=$dir/\$dldll~
7934 shlibpath_overrides_runpath=yes
7938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7940 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7943 # MinGW DLLs use traditional 'lib' prefix
7944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7946 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7947 # It is most probably a Windows format PATH printed by
7948 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7949 # path with ; separators, and with drive letters. We can handle the
7950 # drive letters (cygwin fileutils understands them), so leave them,
7951 # especially as we might pass files found there to a mingw objdump,
7952 # which wouldn't understand a cygwinified path. Ahh.
7953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7959 # pw32 DLLs use 'pw' prefix rather than 'lib'
7960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7969 dynamic_linker='Win32 ld.exe'
7970 # FIXME: first we should search . and the directory the executable is in
7974 darwin* | rhapsody*)
7975 dynamic_linker="$host_os dyld"
7979 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7980 soname_spec='${libname}${release}${major}$shared_ext'
7981 shlibpath_overrides_runpath=yes
7982 shlibpath_var=DYLD_LIBRARY_PATH
7983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7984 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7985 if test "$GCC" = yes; then
7986 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"`
7988 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7998 soname_spec='${libname}${release}${shared_ext}$major'
7999 shlibpath_var=LD_LIBRARY_PATH
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8011 soname_spec='${libname}${release}${shared_ext}$major'
8012 shlibpath_var=LD_LIBRARY_PATH
8013 shlibpath_overrides_runpath=no
8014 hardcode_into_libs=yes
8015 dynamic_linker='GNU ld.so'
8018 freebsd* | dragonfly*)
8019 # DragonFly does not have aout. When/if they implement a new
8020 # versioning mechanism, adjust this.
8021 if test -x /usr/bin/objformat; then
8022 objformat=`/usr/bin/objformat`
8025 freebsd[123]*) objformat=aout ;;
8029 version_type=freebsd-$objformat
8030 case $version_type in
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8041 shlibpath_var=LD_LIBRARY_PATH
8044 shlibpath_overrides_runpath=yes
8046 freebsd3.[01]* | freebsdelf3.[01]*)
8047 shlibpath_overrides_runpath=yes
8048 hardcode_into_libs=yes
8050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8052 shlibpath_overrides_runpath=no
8053 hardcode_into_libs=yes
8055 freebsd*) # from 4.6 on
8056 shlibpath_overrides_runpath=yes
8057 hardcode_into_libs=yes
8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8067 soname_spec='${libname}${release}${shared_ext}$major'
8068 shlibpath_var=LD_LIBRARY_PATH
8069 hardcode_into_libs=yes
8072 hpux9* | hpux10* | hpux11*)
8073 # Give a soname corresponding to the major version so that dld.sl refuses to
8074 # link against other versions.
8081 hardcode_into_libs=yes
8082 dynamic_linker="$host_os dld.so"
8083 shlibpath_var=LD_LIBRARY_PATH
8084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8086 soname_spec='${libname}${release}${shared_ext}$major'
8087 if test "X$HPUX_IA64_MODE" = X32; then
8088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8096 hardcode_into_libs=yes
8097 dynamic_linker="$host_os dld.sl"
8098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8101 soname_spec='${libname}${release}${shared_ext}$major'
8102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8107 dynamic_linker="$host_os dld.sl"
8108 shlibpath_var=SHLIB_PATH
8109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111 soname_spec='${libname}${release}${shared_ext}$major'
8114 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8115 postinstall_cmds='chmod 555 $lib'
8122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8123 soname_spec='${libname}${release}${shared_ext}$major'
8124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8125 shlibpath_var=LD_LIBRARY_PATH
8126 shlibpath_overrides_runpath=no
8127 hardcode_into_libs=yes
8130 irix5* | irix6* | nonstopux*)
8132 nonstopux*) version_type=nonstopux ;;
8134 if test "$lt_cv_prog_gnu_ld" = yes; then
8142 soname_spec='${libname}${release}${shared_ext}$major'
8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8145 irix5* | nonstopux*)
8149 case $LD in # libtool.m4 will add one of these switches to LD
8150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8151 libsuff= shlibsuff= libmagic=32-bit;;
8152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8153 libsuff=32 shlibsuff=N32 libmagic=N32;;
8154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8156 *) libsuff= shlibsuff= libmagic=never-match;;
8160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8161 shlibpath_overrides_runpath=no
8162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8164 hardcode_into_libs=yes
8167 # No shared lib support for Linux oldld, aout, or coff.
8168 linux*oldld* | linux*aout* | linux*coff*)
8172 # This must be Linux ELF.
8177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8178 soname_spec='${libname}${release}${shared_ext}$major'
8179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8180 shlibpath_var=LD_LIBRARY_PATH
8181 shlibpath_overrides_runpath=no
8182 # This implies no fast_install, which is unacceptable.
8183 # Some rework will be needed to allow for fast_install
8184 # before this can be enabled.
8185 hardcode_into_libs=yes
8187 # Append ld.so.conf contents to the search path
8188 if test -f /etc/ld.so.conf; then
8189 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' ' '`
8190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8193 # We used to test for /lib/ld.so.1 and disable shared libraries on
8194 # powerpc, because MkLinux only supported shared libraries with the
8195 # GNU dynamic linker. Since this was broken with cross compilers,
8196 # most powerpc-linux boxes support dynamic linking these days and
8197 # people can always --disable-shared, the test was removed, and we
8198 # assume the GNU/Linux dynamic linker is in use.
8199 dynamic_linker='GNU/Linux ld.so'
8206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8207 soname_spec='${libname}${release}${shared_ext}$major'
8208 shlibpath_var=LD_LIBRARY_PATH
8209 shlibpath_overrides_runpath=no
8210 hardcode_into_libs=yes
8211 dynamic_linker='NetBSD ld.elf_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 shlibpath_var=LD_LIBRARY_PATH
8221 shlibpath_overrides_runpath=no
8222 hardcode_into_libs=yes
8223 dynamic_linker='GNU ld.so'
8230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8233 dynamic_linker='NetBSD (a.out) ld.so'
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8236 soname_spec='${libname}${release}${shared_ext}$major'
8237 dynamic_linker='NetBSD ld.elf_so'
8239 shlibpath_var=LD_LIBRARY_PATH
8240 shlibpath_overrides_runpath=yes
8241 hardcode_into_libs=yes
8246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8247 shlibpath_var=LD_LIBRARY_PATH
8248 shlibpath_overrides_runpath=yes
8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8256 soname_spec='${libname}${release}${shared_ext}$major'
8257 shlibpath_var=LD_LIBRARY_PATH
8258 shlibpath_overrides_runpath=yes
8263 sys_lib_dlsearch_path_spec="/usr/lib"
8265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8268 *) need_version=no ;;
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8272 shlibpath_var=LD_LIBRARY_PATH
8273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8275 openbsd2.[89] | openbsd2.[89].*)
8276 shlibpath_overrides_runpath=no
8279 shlibpath_overrides_runpath=yes
8283 shlibpath_overrides_runpath=yes
8288 libname_spec='$name'
8291 library_names_spec='$libname${shared_ext} $libname.a'
8292 dynamic_linker='OS/2 ld.exe'
8293 shlibpath_var=LIBPATH
8296 osf3* | osf4* | osf5*)
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=yes
8315 hardcode_into_libs=yes
8316 # ldd complains unless libraries are executable
8317 postinstall_cmds='chmod +x $lib'
8322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8324 shlibpath_var=LD_LIBRARY_PATH
8325 shlibpath_overrides_runpath=yes
8326 if test "$with_gnu_ld" = yes; then
8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8335 soname_spec='${libname}${release}${shared_ext}$major'
8336 shlibpath_var=LD_LIBRARY_PATH
8337 case $host_vendor in
8339 shlibpath_overrides_runpath=no
8341 export_dynamic_flag_spec='${wl}-Blargedynsym'
8342 runpath_var=LD_RUN_PATH
8350 shlibpath_overrides_runpath=no
8351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8357 if test -d /usr/nec ;then
8359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8360 soname_spec='$libname${shared_ext}.$major'
8361 shlibpath_var=LD_LIBRARY_PATH
8365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8366 version_type=freebsd-elf
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 hardcode_into_libs=yes
8373 if test "$with_gnu_ld" = yes; then
8374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8375 shlibpath_overrides_runpath=no
8377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8378 shlibpath_overrides_runpath=yes
8381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8385 sys_lib_dlsearch_path_spec='/usr/lib'
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8391 soname_spec='${libname}${release}${shared_ext}$major'
8392 shlibpath_var=LD_LIBRARY_PATH
8399 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8400 echo "${ECHO_T}$dynamic_linker" >&6
8401 test "$dynamic_linker" = no && can_build_shared=no
8403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8404 if test "$GCC" = yes; then
8405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8408 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8411 if test -n "$hardcode_libdir_flag_spec" || \
8412 test -n "$runpath_var" || \
8413 test "X$hardcode_automatic" = "Xyes" ; then
8415 # We can hardcode non-existant directories.
8416 if test "$hardcode_direct" != no &&
8417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8418 # have to relink, otherwise we might link with an installed library
8419 # when we should be linking with a yet-to-be-installed one
8420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8421 test "$hardcode_minus_L" != no; then
8422 # Linking always hardcodes the temporary library directory.
8423 hardcode_action=relink
8425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8426 hardcode_action=immediate
8429 # We cannot hardcode anything, or else we can only hardcode existing
8431 hardcode_action=unsupported
8433 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8434 echo "${ECHO_T}$hardcode_action" >&6
8436 if test "$hardcode_action" = relink; then
8437 # Fast installation is not supported
8438 enable_fast_install=no
8439 elif test "$shlibpath_overrides_runpath" = yes ||
8440 test "$enable_shared" = no; then
8441 # Fast installation is not necessary
8442 enable_fast_install=needless
8447 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8448 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8449 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8450 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8451 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8452 echo "$as_me:$LINENO: result: yes" >&5
8453 echo "${ECHO_T}yes" >&6
8455 # FIXME - insert some real tests, host_os isn't really good enough
8458 if test -n "$STRIP" ; then
8459 striplib="$STRIP -x"
8460 echo "$as_me:$LINENO: result: yes" >&5
8461 echo "${ECHO_T}yes" >&6
8463 echo "$as_me:$LINENO: result: no" >&5
8464 echo "${ECHO_T}no" >&6
8468 echo "$as_me:$LINENO: result: no" >&5
8469 echo "${ECHO_T}no" >&6
8474 if test "x$enable_dlopen" != xyes; then
8475 enable_dlopen=unknown
8476 enable_dlopen_self=unknown
8477 enable_dlopen_self_static=unknown
8484 lt_cv_dlopen="load_add_on"
8486 lt_cv_dlopen_self=yes
8490 lt_cv_dlopen="LoadLibrary"
8495 lt_cv_dlopen="dlopen"
8500 # if libdl is installed we need to link against it
8501 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 ac_check_lib_save_LIBS=$LIBS
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8515 /* Override any gcc2 internal prototype to avoid an error. */
8519 /* We use char because int might match the return type of a gcc2
8520 builtin and then its argument prototype would still apply. */
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest$ac_exeext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_lib_dl_dlopen=yes
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_lib_dl_dlopen=no
8558 rm -f conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560 LIBS=$ac_check_lib_save_LIBS
8562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8564 if test $ac_cv_lib_dl_dlopen = yes; then
8565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8570 lt_cv_dlopen_self=yes
8577 echo "$as_me:$LINENO: checking for shl_load" >&5
8578 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8579 if test "${ac_cv_func_shl_load+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 cat >conftest.$ac_ext <<_ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8588 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8590 #define shl_load innocuous_shl_load
8592 /* System header to define __stub macros and hopefully few prototypes,
8593 which can conflict with char shl_load (); below.
8594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8595 <limits.h> exists even on freestanding compilers. */
8598 # include <limits.h>
8600 # include <assert.h>
8605 /* Override any gcc2 internal prototype to avoid an error. */
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8613 /* The GNU C library defines this for functions which it implements
8614 to always fail with ENOSYS. Some functions are actually named
8615 something starting with __ and the normal name is an alias. */
8616 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8619 char (*f) () = shl_load;
8628 return f != shl_load;
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635 (eval $ac_link) 2>conftest.er1
8637 grep -v '^ *+' conftest.er1 >conftest.err
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_cv_func_shl_load=yes
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_cv_func_shl_load=no
8661 rm -f conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8664 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8665 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8666 if test $ac_cv_func_shl_load = yes; then
8667 lt_cv_dlopen="shl_load"
8669 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8670 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8671 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 ac_check_lib_save_LIBS=$LIBS
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8683 /* Override any gcc2 internal prototype to avoid an error. */
8687 /* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700 (eval $ac_link) 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_cv_lib_dld_shl_load=yes
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_cv_lib_dld_shl_load=no
8726 rm -f conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8730 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8731 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8732 if test $ac_cv_lib_dld_shl_load = yes; then
8733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8735 echo "$as_me:$LINENO: checking for dlopen" >&5
8736 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8737 if test "${ac_cv_func_dlopen+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8746 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8748 #define dlopen innocuous_dlopen
8750 /* System header to define __stub macros and hopefully few prototypes,
8751 which can conflict with char dlopen (); below.
8752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8753 <limits.h> exists even on freestanding compilers. */
8756 # include <limits.h>
8758 # include <assert.h>
8763 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8771 /* The GNU C library defines this for functions which it implements
8772 to always fail with ENOSYS. Some functions are actually named
8773 something starting with __ and the normal name is an alias. */
8774 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8777 char (*f) () = dlopen;
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8793 (eval $ac_link) 2>conftest.er1
8795 grep -v '^ *+' conftest.er1 >conftest.err
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; } &&
8806 { ac_try='test -s conftest$ac_exeext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 ac_cv_func_dlopen=yes
8814 echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_func_dlopen=no
8819 rm -f conftest.err conftest.$ac_objext \
8820 conftest$ac_exeext conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8823 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8824 if test $ac_cv_func_dlopen = yes; then
8825 lt_cv_dlopen="dlopen"
8827 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8828 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8829 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 ac_check_lib_save_LIBS=$LIBS
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8841 /* Override any gcc2 internal prototype to avoid an error. */
8845 /* We use char because int might match the return type of a gcc2
8846 builtin and then its argument prototype would still apply. */
8856 rm -f conftest.$ac_objext conftest$ac_exeext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858 (eval $ac_link) 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest$ac_exeext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 ac_cv_lib_dl_dlopen=yes
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8882 ac_cv_lib_dl_dlopen=no
8884 rm -f conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8888 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8889 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8890 if test $ac_cv_lib_dl_dlopen = yes; then
8891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8893 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8894 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8895 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 ac_check_lib_save_LIBS=$LIBS
8900 cat >conftest.$ac_ext <<_ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8907 /* Override any gcc2 internal prototype to avoid an error. */
8911 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_lib_svld_dlopen=yes
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_cv_lib_svld_dlopen=no
8950 rm -f conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 LIBS=$ac_check_lib_save_LIBS
8954 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8955 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8956 if test $ac_cv_lib_svld_dlopen = yes; then
8957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8959 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8960 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8961 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 ac_check_lib_save_LIBS=$LIBS
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8973 /* Override any gcc2 internal prototype to avoid an error. */
8977 /* We use char because int might match the return type of a gcc2
8978 builtin and then its argument prototype would still apply. */
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8990 (eval $ac_link) 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_lib_dld_dld_link=yes
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 ac_cv_lib_dld_dld_link=no
9016 rm -f conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 LIBS=$ac_check_lib_save_LIBS
9020 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9021 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9022 if test $ac_cv_lib_dld_dld_link = yes; then
9023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9044 if test "x$lt_cv_dlopen" != xno; then
9050 case $lt_cv_dlopen in
9052 save_CPPFLAGS="$CPPFLAGS"
9053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9055 save_LDFLAGS="$LDFLAGS"
9056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9059 LIBS="$lt_cv_dlopen_libs $LIBS"
9061 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9062 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9063 if test "${lt_cv_dlopen_self+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 if test "$cross_compiling" = yes; then :
9067 lt_cv_dlopen_self=cross
9069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9070 lt_status=$lt_dlunknown
9071 cat > conftest.$ac_ext <<EOF
9072 #line 9072 "configure"
9073 #include "confdefs.h"
9082 # define LT_DLGLOBAL RTLD_GLOBAL
9085 # define LT_DLGLOBAL DL_GLOBAL
9087 # define LT_DLGLOBAL 0
9091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9092 find out it does not work in some platform. */
9093 #ifndef LT_DLLAZY_OR_NOW
9095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9098 # define LT_DLLAZY_OR_NOW DL_LAZY
9101 # define LT_DLLAZY_OR_NOW RTLD_NOW
9104 # define LT_DLLAZY_OR_NOW DL_NOW
9106 # define LT_DLLAZY_OR_NOW 0
9114 extern "C" void exit (int);
9117 void fnord() { int i=42;}
9120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9121 int status = $lt_dlunknown;
9125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9127 /* dlclose (self); */
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9140 (./conftest; exit; ) >&5 2>/dev/null
9143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9148 # compilation failed
9149 lt_cv_dlopen_self=no
9156 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9157 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9159 if test "x$lt_cv_dlopen_self" = xyes; then
9160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9161 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9162 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9163 if test "${lt_cv_dlopen_self_static+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 if test "$cross_compiling" = yes; then :
9167 lt_cv_dlopen_self_static=cross
9169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9170 lt_status=$lt_dlunknown
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9172 "configure"
9173 #include "confdefs.h"
9182 # define LT_DLGLOBAL RTLD_GLOBAL
9185 # define LT_DLGLOBAL DL_GLOBAL
9187 # define LT_DLGLOBAL 0
9191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9192 find out it does not work in some platform. */
9193 #ifndef LT_DLLAZY_OR_NOW
9195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9198 # define LT_DLLAZY_OR_NOW DL_LAZY
9201 # define LT_DLLAZY_OR_NOW RTLD_NOW
9204 # define LT_DLLAZY_OR_NOW DL_NOW
9206 # define LT_DLLAZY_OR_NOW 0
9214 extern "C" void exit (int);
9217 void fnord() { int i=42;}
9220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9221 int status = $lt_dlunknown;
9225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9227 /* dlclose (self); */
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9240 (./conftest; exit; ) >&5 2>/dev/null
9243 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9244 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9245 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9248 # compilation failed
9249 lt_cv_dlopen_self_static=no
9256 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9257 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9260 CPPFLAGS="$save_CPPFLAGS"
9261 LDFLAGS="$save_LDFLAGS"
9266 case $lt_cv_dlopen_self in
9267 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9268 *) enable_dlopen_self=unknown ;;
9271 case $lt_cv_dlopen_self_static in
9272 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9273 *) enable_dlopen_self_static=unknown ;;
9278 # Report which library types will actually be built
9279 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9280 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9281 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9282 echo "${ECHO_T}$can_build_shared" >&6
9284 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9285 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9286 test "$can_build_shared" = "no" && enable_shared=no
9288 # On AIX, shared libraries and static libraries use the same namespace, and
9289 # are all built from PIC.
9292 test "$enable_shared" = yes && enable_static=no
9293 if test -n "$RANLIB"; then
9294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9295 postinstall_cmds='$RANLIB $lib'
9300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9301 test "$enable_shared" = yes && enable_static=no
9305 echo "$as_me:$LINENO: result: $enable_shared" >&5
9306 echo "${ECHO_T}$enable_shared" >&6
9308 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9309 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9310 # Make sure either enable_shared or enable_static is yes.
9311 test "$enable_shared" = yes || enable_static=yes
9312 echo "$as_me:$LINENO: result: $enable_static" >&5
9313 echo "${ECHO_T}$enable_static" >&6
9315 # The else clause should only fire when bootstrapping the
9316 # libtool distribution, otherwise you forgot to ship ltmain.sh
9317 # with your package, and you will get complaints that there are
9318 # no rules to generate ltmain.sh.
9319 if test -f "$ltmain"; then
9320 # See if we are running on zsh, and set the options which allow our commands through
9321 # without removal of \ escapes.
9322 if test -n "${ZSH_VERSION+set}" ; then
9323 setopt NO_GLOB_SUBST
9325 # Now quote all the things that may contain metacharacters while being
9326 # careful not to overquote the AC_SUBSTed values. We take copies of the
9327 # variables and quote the copies for generation of the libtool script.
9328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9332 deplibs_check_method reload_flag reload_cmds need_locks \
9333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9334 lt_cv_sys_global_symbol_to_c_name_address \
9335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9336 old_postinstall_cmds old_postuninstall_cmds \
9340 lt_prog_compiler_wl \
9341 lt_prog_compiler_pic \
9342 lt_prog_compiler_static \
9343 lt_prog_compiler_no_builtin_flag \
9344 export_dynamic_flag_spec \
9345 thread_safe_flag_spec \
9346 whole_archive_flag_spec \
9347 enable_shared_with_static_runtimes \
9349 old_archive_from_new_cmds \
9354 compiler_lib_search_path \
9356 archive_expsym_cmds \
9358 postuninstall_cmds \
9359 old_archive_from_expsyms_cmds \
9360 allow_undefined_flag \
9362 export_symbols_cmds \
9363 hardcode_libdir_flag_spec \
9364 hardcode_libdir_flag_spec_ld \
9365 hardcode_libdir_separator \
9366 hardcode_automatic \
9368 module_expsym_cmds \
9369 lt_cv_prog_compiler_c_o \
9374 old_archive_cmds | \
9375 old_archive_from_new_cmds | \
9377 archive_expsym_cmds | \
9379 module_expsym_cmds | \
9380 old_archive_from_expsyms_cmds | \
9381 export_symbols_cmds | \
9382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9383 postinstall_cmds | postuninstall_cmds | \
9384 old_postinstall_cmds | old_postuninstall_cmds | \
9385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9386 # Double-quote double-evaled strings.
9387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9396 *'\$0 --fallback-echo"')
9397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9402 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9404 { echo "$as_me:$LINENO: creating $ofile" >&5
9405 echo "$as_me: creating $ofile" >&6;}
9407 cat <<__EOF__ >> "$cfgfile"
9410 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9411 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9414 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9415 # Free Software Foundation, Inc.
9417 # This file is part of GNU Libtool:
9418 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9420 # This program is free software; you can redistribute it and/or modify
9421 # it under the terms of the GNU General Public License as published by
9422 # the Free Software Foundation; either version 2 of the License, or
9423 # (at your option) any later version.
9425 # This program is distributed in the hope that it will be useful, but
9426 # WITHOUT ANY WARRANTY; without even the implied warranty of
9427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9428 # General Public License for more details.
9430 # You should have received a copy of the GNU General Public License
9431 # along with this program; if not, write to the Free Software
9432 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9434 # As a special exception to the GNU General Public License, if you
9435 # distribute this file as part of a program that contains a
9436 # configuration script generated by Autoconf, you may include it under
9437 # the same distribution terms that you use for the rest of that program.
9439 # A sed program that does not truncate output.
9442 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9443 Xsed="$SED -e 1s/^X//"
9445 # The HP-UX ksh and POSIX shell print the target directory to stdout
9447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9449 # The names of the tagged configurations supported by this script.
9452 # ### BEGIN LIBTOOL CONFIG
9454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9456 # Shell to use when invoking shell scripts.
9459 # Whether or not to build shared libraries.
9460 build_libtool_libs=$enable_shared
9462 # Whether or not to build static libraries.
9463 build_old_libs=$enable_static
9465 # Whether or not to add -lc for building shared libraries.
9466 build_libtool_need_lc=$archive_cmds_need_lc
9468 # Whether or not to disallow shared libs when runtime libs are static
9469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9471 # Whether or not to optimize for fast installation.
9472 fast_install=$enable_fast_install
9475 host_alias=$host_alias
9480 build_alias=$build_alias
9484 # An echo program that does not interpret backslashes.
9489 AR_FLAGS=$lt_AR_FLAGS
9494 # LTCC compiler flags.
9495 LTCFLAGS=$lt_LTCFLAGS
9497 # A language-specific compiler.
9500 # Is the compiler the GNU C compiler?
9506 # The linker used to build libraries.
9509 # Whether we need hard or soft links.
9512 # A BSD-compatible nm program.
9515 # A symbol stripping program
9518 # Used to examine libraries when file_magic_cmd begins "file"
9519 MAGIC_CMD=$MAGIC_CMD
9521 # Used on cygwin: DLL creation program.
9524 # Used on cygwin: object dumper.
9527 # Used on cygwin: assembler.
9530 # The name of the directory that contains temporary libtool files.
9533 # How to create reloadable object files.
9534 reload_flag=$lt_reload_flag
9535 reload_cmds=$lt_reload_cmds
9537 # How to pass a linker flag through the compiler.
9538 wl=$lt_lt_prog_compiler_wl
9540 # Object file suffix (normally "o").
9543 # Old archive suffix (normally "a").
9546 # Shared library suffix (normally ".so").
9547 shrext_cmds='$shrext_cmds'
9549 # Executable file suffix (normally "").
9552 # Additional compiler flags for building library objects.
9553 pic_flag=$lt_lt_prog_compiler_pic
9556 # What is the maximum length of a command?
9557 max_cmd_len=$lt_cv_sys_max_cmd_len
9559 # Does compiler simultaneously support -c and -o options?
9560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9562 # Must we lock files when doing compilation?
9563 need_locks=$lt_need_locks
9565 # Do we need the lib prefix for modules?
9566 need_lib_prefix=$need_lib_prefix
9568 # Do we need a version for libraries?
9569 need_version=$need_version
9571 # Whether dlopen is supported.
9572 dlopen_support=$enable_dlopen
9574 # Whether dlopen of programs is supported.
9575 dlopen_self=$enable_dlopen_self
9577 # Whether dlopen of statically linked programs is supported.
9578 dlopen_self_static=$enable_dlopen_self_static
9580 # Compiler flag to prevent dynamic linking.
9581 link_static_flag=$lt_lt_prog_compiler_static
9583 # Compiler flag to turn off builtin functions.
9584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9586 # Compiler flag to allow reflexive dlopens.
9587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9589 # Compiler flag to generate shared objects directly from archives.
9590 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9592 # Compiler flag to generate thread-safe objects.
9593 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9595 # Library versioning type.
9596 version_type=$version_type
9598 # Format of library name prefix.
9599 libname_spec=$lt_libname_spec
9601 # List of archive names. First name is the real one, the rest are links.
9602 # The last name is the one that the linker finds with -lNAME.
9603 library_names_spec=$lt_library_names_spec
9605 # The coded name of the library, if different from the real name.
9606 soname_spec=$lt_soname_spec
9608 # Commands used to build and install an old-style archive.
9610 old_archive_cmds=$lt_old_archive_cmds
9611 old_postinstall_cmds=$lt_old_postinstall_cmds
9612 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9614 # Create an old-style archive from a shared archive.
9615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9617 # Create a temporary old-style archive to link instead of a shared archive.
9618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9620 # Commands used to build and install a shared archive.
9621 archive_cmds=$lt_archive_cmds
9622 archive_expsym_cmds=$lt_archive_expsym_cmds
9623 postinstall_cmds=$lt_postinstall_cmds
9624 postuninstall_cmds=$lt_postuninstall_cmds
9626 # Commands used to build a loadable module (assumed same as above if empty)
9627 module_cmds=$lt_module_cmds
9628 module_expsym_cmds=$lt_module_expsym_cmds
9630 # Commands to strip libraries.
9631 old_striplib=$lt_old_striplib
9632 striplib=$lt_striplib
9634 # Dependencies to place before the objects being linked to create a
9636 predep_objects=$lt_predep_objects
9638 # Dependencies to place after the objects being linked to create a
9640 postdep_objects=$lt_postdep_objects
9642 # Dependencies to place before the objects being linked to create a
9646 # Dependencies to place after the objects being linked to create a
9648 postdeps=$lt_postdeps
9650 # The library search path used internally by the compiler when linking
9652 compiler_lib_search_path=$lt_compiler_lib_search_path
9654 # Method to check whether dependent libraries are shared objects.
9655 deplibs_check_method=$lt_deplibs_check_method
9657 # Command to use when deplibs_check_method == file_magic.
9658 file_magic_cmd=$lt_file_magic_cmd
9660 # Flag that allows shared libraries with undefined symbols to be built.
9661 allow_undefined_flag=$lt_allow_undefined_flag
9663 # Flag that forces no undefined symbols.
9664 no_undefined_flag=$lt_no_undefined_flag
9666 # Commands used to finish a libtool library installation in a directory.
9667 finish_cmds=$lt_finish_cmds
9669 # Same as above, but a single script fragment to be evaled but not shown.
9670 finish_eval=$lt_finish_eval
9672 # Take the output of nm and produce a listing of raw symbols and C names.
9673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9675 # Transform the output of nm in a proper C declaration
9676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9678 # Transform the output of nm in a C name address pair
9679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9681 # This is the shared library runtime path variable.
9682 runpath_var=$runpath_var
9684 # This is the shared library path variable.
9685 shlibpath_var=$shlibpath_var
9687 # Is shlibpath searched before the hard-coded library search path?
9688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9690 # How to hardcode a shared library path into an executable.
9691 hardcode_action=$hardcode_action
9693 # Whether we should hardcode library paths into libraries.
9694 hardcode_into_libs=$hardcode_into_libs
9696 # Flag to hardcode \$libdir into a binary during linking.
9697 # This must work even if \$libdir does not exist.
9698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9700 # If ld is used when linking, flag to hardcode \$libdir into
9701 # a binary during linking. This must work even if \$libdir does
9703 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9705 # Whether we need a single -rpath flag with a separated argument.
9706 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9708 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9710 hardcode_direct=$hardcode_direct
9712 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9714 hardcode_minus_L=$hardcode_minus_L
9716 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9717 # the resulting binary.
9718 hardcode_shlibpath_var=$hardcode_shlibpath_var
9720 # Set to yes if building a shared library automatically hardcodes DIR into the library
9721 # and all subsequent libraries and executables linked against it.
9722 hardcode_automatic=$hardcode_automatic
9724 # Variables whose values should be saved in libtool wrapper scripts and
9725 # restored at relink time.
9726 variables_saved_for_relink="$variables_saved_for_relink"
9728 # Whether libtool must link a program against all its dependency libraries.
9729 link_all_deplibs=$link_all_deplibs
9731 # Compile-time system search path for libraries
9732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9734 # Run-time system search path for libraries
9735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9737 # Fix the shell variable \$srcfile for the compiler.
9738 fix_srcfile_path="$fix_srcfile_path"
9740 # Set to yes if exported symbols are required.
9741 always_export_symbols=$always_export_symbols
9743 # The commands to list exported symbols.
9744 export_symbols_cmds=$lt_export_symbols_cmds
9746 # The commands to extract the exported symbol list from a shared archive.
9747 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9749 # Symbols that should not be listed in the preloaded symbols.
9750 exclude_expsyms=$lt_exclude_expsyms
9752 # Symbols that must always be exported.
9753 include_expsyms=$lt_include_expsyms
9755 # ### END LIBTOOL CONFIG
9762 cat <<\EOF >> "$cfgfile"
9764 # AIX sometimes has problems with the GCC collect2 program. For some
9765 # reason, if we set the COLLECT_NAMES environment variable, the problems
9766 # vanish in a puff of smoke.
9767 if test "X${COLLECT_NAMES+set}" != Xset; then
9769 export COLLECT_NAMES
9775 # We use sed instead of cat because bash on DJGPP gets confused if
9776 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9777 # text mode, it properly converts lines to CR/LF. This bash problem
9778 # is reportedly fixed, but why not run on old versions too?
9779 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9781 mv -f "$cfgfile" "$ofile" || \
9782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9786 # If there is no Makefile yet, we rely on a make rule to execute
9787 # `config.status --recheck' to rerun these tests and create the
9788 # libtool script then.
9789 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9790 if test -f "$ltmain_in"; then
9791 test -f Makefile && make "$ltmain"
9797 ac_cpp='$CPP $CPPFLAGS'
9798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9805 # Check whether --with-tags or --without-tags was given.
9806 if test "${with_tags+set}" = set; then
9807 withval="$with_tags"
9811 if test -f "$ltmain" && test -n "$tagnames"; then
9812 if test ! -f "${ofile}"; then
9813 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9814 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9817 if test -z "$LTCC"; then
9818 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9819 if test -z "$LTCC"; then
9820 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9821 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9824 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9827 if test -z "$LTCFLAGS"; then
9828 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9831 # Extract list of available tagged configurations in $ofile.
9832 # Note that this assumes the entire list is on one line.
9833 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9836 for tagname in $tagnames; do
9838 # Check whether tagname contains only valid characters
9839 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9841 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9842 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9843 { (exit 1); exit 1; }; }
9847 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9849 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9850 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9851 { (exit 1); exit 1; }; }
9854 # Update the list of available tags.
9855 if test -n "$tagname"; then
9856 echo appending configuration tag \"$tagname\" to $ofile
9860 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9861 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9862 (test "X$CXX" != "Xg++"))) ; then
9864 ac_cpp='$CXXCPP $CPPFLAGS'
9865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9872 archive_cmds_need_lc_CXX=no
9873 allow_undefined_flag_CXX=
9874 always_export_symbols_CXX=no
9875 archive_expsym_cmds_CXX=
9876 export_dynamic_flag_spec_CXX=
9877 hardcode_direct_CXX=no
9878 hardcode_libdir_flag_spec_CXX=
9879 hardcode_libdir_flag_spec_ld_CXX=
9880 hardcode_libdir_separator_CXX=
9881 hardcode_minus_L_CXX=no
9882 hardcode_shlibpath_var_CXX=unsupported
9883 hardcode_automatic_CXX=no
9885 module_expsym_cmds_CXX=
9886 link_all_deplibs_CXX=unknown
9887 old_archive_cmds_CXX=$old_archive_cmds
9888 no_undefined_flag_CXX=
9889 whole_archive_flag_spec_CXX=
9890 enable_shared_with_static_runtimes_CXX=no
9892 # Dependencies to place before and after the object being linked:
9894 postdep_objects_CXX=
9897 compiler_lib_search_path_CXX=
9899 # Source file extension for C++ test sources.
9902 # Object file extension for compiled C++ test sources.
9906 # Code to be used in simple compile tests
9907 lt_simple_compile_test_code="int some_variable = 0;\n"
9909 # Code to be used in simple link tests
9910 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9912 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9914 # If no C compiler was specified, use CC.
9917 # If no C compiler flags were specified, use CFLAGS.
9918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9920 # Allow CC to be a program name with arguments.
9924 # save warnings/boilerplate of simple test code
9925 ac_outfile=conftest.$ac_objext
9926 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9928 _lt_compiler_boilerplate=`cat conftest.err`
9931 ac_outfile=conftest.$ac_objext
9932 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9934 _lt_linker_boilerplate=`cat conftest.err`
9938 # Allow CC to be a program name with arguments.
9943 lt_save_with_gnu_ld=$with_gnu_ld
9944 lt_save_path_LD=$lt_cv_path_LD
9945 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9946 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9948 $as_unset lt_cv_prog_gnu_ld
9950 if test -n "${lt_cv_path_LDCXX+set}"; then
9951 lt_cv_path_LD=$lt_cv_path_LDCXX
9953 $as_unset lt_cv_path_LD
9955 test -z "${LDCXX+set}" || LD=$LDCXX
9959 for cc_temp in $compiler""; do
9961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9970 # We don't want -fno-exception wen compiling C++ code, so set the
9971 # no_builtin_flag separately
9972 if test "$GXX" = yes; then
9973 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9975 lt_prog_compiler_no_builtin_flag_CXX=
9978 if test "$GXX" = yes; then
9979 # Set up default GNU C++ configuration
9982 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9983 if test "${with_gnu_ld+set}" = set; then
9984 withval="$with_gnu_ld"
9985 test "$withval" = no || with_gnu_ld=yes
9990 if test "$GCC" = yes; then
9991 # Check if gcc -print-prog-name=ld gives a path.
9992 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9993 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9996 # gcc leaves a trailing carriage return which upsets mingw
9997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10002 # Accept absolute paths.
10004 re_direlt='/[^/][^/]*/\.\./'
10005 # Canonicalize the pathname of ld
10006 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10007 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10008 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10010 test -z "$LD" && LD="$ac_prog"
10013 # If it fails, then pretend we aren't using GCC.
10017 # If it is relative, then search for the first ld in PATH.
10018 with_gnu_ld=unknown
10021 elif test "$with_gnu_ld" = yes; then
10022 echo "$as_me:$LINENO: checking for GNU ld" >&5
10023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10025 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10028 if test "${lt_cv_path_LD+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 if test -z "$LD"; then
10032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10033 for ac_dir in $PATH; do
10035 test -z "$ac_dir" && ac_dir=.
10036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10037 lt_cv_path_LD="$ac_dir/$ac_prog"
10038 # Check to see if the program is GNU ld. I'd rather use --version,
10039 # but apparently some variants of GNU ld only accept -v.
10040 # Break only if it was the GNU/non-GNU ld that we prefer.
10041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10042 *GNU* | *'with BFD'*)
10043 test "$with_gnu_ld" != no && break
10046 test "$with_gnu_ld" != yes && break
10053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10057 LD="$lt_cv_path_LD"
10058 if test -n "$LD"; then
10059 echo "$as_me:$LINENO: result: $LD" >&5
10060 echo "${ECHO_T}$LD" >&6
10062 echo "$as_me:$LINENO: result: no" >&5
10063 echo "${ECHO_T}no" >&6
10065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10067 { (exit 1); exit 1; }; }
10068 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10070 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10074 case `$LD -v 2>&1 </dev/null` in
10075 *GNU* | *'with BFD'*)
10076 lt_cv_prog_gnu_ld=yes
10079 lt_cv_prog_gnu_ld=no
10083 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10084 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10085 with_gnu_ld=$lt_cv_prog_gnu_ld
10089 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10090 # archiving commands below assume that GNU ld is being used.
10091 if test "$with_gnu_ld" = yes; then
10092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10093 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'
10095 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10098 # If archive_cmds runs LD, not CC, wlarc should be empty
10099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10100 # investigate it a little bit more. (MM)
10103 # ancient GNU ld didn't support --whole-archive et. al.
10104 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10105 grep 'no-whole-archive' > /dev/null; then
10106 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10108 whole_archive_flag_spec_CXX=
10114 # A generic and very simple default shared library creation
10115 # command for GNU C++ for the case where it uses the native
10116 # linker, instead of GNU ld. If possible, this setting should
10117 # overridden to take advantage of the native linker features on
10118 # the platform it is being used on.
10119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10122 # Commands to make compiler produce verbose output that lists
10123 # what "hidden" libraries, object files and flags are used when
10124 # linking a shared library.
10125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10133 # PORTME: fill in a description of your system's C++ link characteristics
10134 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10135 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10139 # FIXME: insert proper C++ library support
10143 if test "$host_cpu" = ia64; then
10144 # On IA64, the linker does run time linking by default, so we don't
10145 # have to do anything special.
10146 aix_use_runtimelinking=no
10147 exp_sym_flag='-Bexport'
10150 aix_use_runtimelinking=no
10152 # Test if we are trying to use run time linking or normal
10153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10154 # need to do runtime linking.
10155 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10156 for ld_flag in $LDFLAGS; do
10159 aix_use_runtimelinking=yes
10167 exp_sym_flag='-bexport'
10168 no_entry_flag='-bnoentry'
10171 # When large executables or shared objects are built, AIX ld can
10172 # have problems creating the table of contents. If linking a library
10173 # or program results in "error TOC overflow" add -mminimal-toc to
10174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10177 archive_cmds_CXX=''
10178 hardcode_direct_CXX=yes
10179 hardcode_libdir_separator_CXX=':'
10180 link_all_deplibs_CXX=yes
10182 if test "$GXX" = yes; then
10183 case $host_os in aix4.[012]|aix4.[012].*)
10184 # We only want to do this on AIX 4.2 and lower, the check
10185 # below for broken collect2 doesn't work under 4.3+
10186 collect2name=`${CC} -print-prog-name=collect2`
10187 if test -f "$collect2name" && \
10188 strings "$collect2name" | grep resolve_lib_name >/dev/null
10190 # We have reworked collect2
10191 hardcode_direct_CXX=yes
10193 # We have old collect2
10194 hardcode_direct_CXX=unsupported
10195 # It fails to find uninstalled libraries when the uninstalled
10196 # path is not listed in the libpath. Setting hardcode_minus_L
10197 # to unsupported forces relinking
10198 hardcode_minus_L_CXX=yes
10199 hardcode_libdir_flag_spec_CXX='-L$libdir'
10200 hardcode_libdir_separator_CXX=
10204 shared_flag='-shared'
10205 if test "$aix_use_runtimelinking" = yes; then
10206 shared_flag="$shared_flag "'${wl}-G'
10210 if test "$host_cpu" = ia64; then
10211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10212 # chokes on -Wl,-G. The following line is correct:
10215 if test "$aix_use_runtimelinking" = yes; then
10216 shared_flag='${wl}-G'
10218 shared_flag='${wl}-bM:SRE'
10223 # It seems that -bexpall does not export symbols beginning with
10224 # underscore (_), so it is better to generate a list of symbols to export.
10225 always_export_symbols_CXX=yes
10226 if test "$aix_use_runtimelinking" = yes; then
10227 # Warning - without using the other runtime loading flags (-brtl),
10228 # -berok will link without error, but may produce a broken library.
10229 allow_undefined_flag_CXX='-berok'
10230 # Determine the default libpath from the value encoded in an empty executable.
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248 (eval $ac_link) 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10270 # Check for a 64-bit object if we didn't find anything.
10271 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; }
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10278 rm -f conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10282 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10284 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"
10286 if test "$host_cpu" = ia64; then
10287 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10288 allow_undefined_flag_CXX="-z nodefs"
10289 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"
10291 # Determine the default libpath from the value encoded in an empty executable.
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10311 grep -v '^ *+' conftest.er1 >conftest.err
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try='test -s conftest$ac_exeext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10331 # Check for a 64-bit object if we didn't find anything.
10332 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; }
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10339 rm -f conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10343 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10344 # Warning - without using the other run time loading flags,
10345 # -berok will link without error, but may produce a broken library.
10346 no_undefined_flag_CXX=' ${wl}-bernotok'
10347 allow_undefined_flag_CXX=' ${wl}-berok'
10348 # Exported symbols can be pulled into shared objects from archives
10349 whole_archive_flag_spec_CXX='$convenience'
10350 archive_cmds_need_lc_CXX=yes
10351 # This is similar to how AIX traditionally builds its shared libraries.
10352 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'
10358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10359 allow_undefined_flag_CXX=unsupported
10360 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10361 # support --undefined. This deserves some investigation. FIXME
10362 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369 case $cc_basename in
10371 # FIXME: insert proper C++ library support
10377 cygwin* | mingw* | pw32*)
10378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10379 # as there is no search path for DLLs.
10380 hardcode_libdir_flag_spec_CXX='-L$libdir'
10381 allow_undefined_flag_CXX=unsupported
10382 always_export_symbols_CXX=no
10383 enable_shared_with_static_runtimes_CXX=yes
10385 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10386 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'
10387 # If the export-symbols file already is a .def file (1st line
10388 # is EXPORTS), use it as is; otherwise, prepend...
10389 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10390 cp $export_symbols $output_objdir/$soname.def;
10392 echo EXPORTS > $output_objdir/$soname.def;
10393 cat $export_symbols >> $output_objdir/$soname.def;
10395 $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'
10400 darwin* | rhapsody*)
10402 rhapsody* | darwin1.[012])
10403 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10407 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10409 case ${MACOSX_DEPLOYMENT_TARGET} in
10411 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10414 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10420 archive_cmds_need_lc_CXX=no
10421 hardcode_direct_CXX=no
10422 hardcode_automatic_CXX=yes
10423 hardcode_shlibpath_var_CXX=unsupported
10424 whole_archive_flag_spec_CXX=''
10425 link_all_deplibs_CXX=yes
10427 if test "$GXX" = yes ; then
10428 lt_int_apple_cc_single_mod=no
10429 output_verbose_link_cmd='echo'
10430 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10431 lt_int_apple_cc_single_mod=yes
10433 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10434 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10436 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'
10438 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10440 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10441 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}'
10443 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}'
10445 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 output_verbose_link_cmd='echo'
10450 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'
10451 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10453 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}'
10454 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}'
10464 case $cc_basename in
10466 # FIXME: insert proper C++ library support
10470 # Green Hills C++ Compiler
10471 # FIXME: insert proper C++ library support
10475 # FIXME: insert proper C++ library support
10481 # C++ shared libraries reported to be fairly broken before switch to ELF
10485 archive_cmds_need_lc_CXX=no
10487 freebsd* | kfreebsd*-gnu | dragonfly*)
10488 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10495 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10496 hardcode_libdir_separator_CXX=:
10497 export_dynamic_flag_spec_CXX='${wl}-E'
10498 hardcode_direct_CXX=yes
10499 hardcode_minus_L_CXX=yes # Not in the search PATH,
10500 # but as the default
10501 # location of the library.
10503 case $cc_basename in
10505 # FIXME: insert proper C++ library support
10509 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'
10510 # Commands to make compiler produce verbose output that lists
10511 # what "hidden" libraries, object files and flags are used when
10512 # linking a shared library.
10514 # There doesn't appear to be a way to prevent this compiler from
10515 # explicitly linking system object files so we need to strip them
10516 # from the output so that they don't get included in the library
10518 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'
10521 if test "$GXX" = yes; then
10522 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'
10524 # FIXME: insert proper C++ library support
10531 if test $with_gnu_ld = no; then
10532 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10533 hardcode_libdir_separator_CXX=:
10537 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10540 export_dynamic_flag_spec_CXX='${wl}-E'
10546 hardcode_direct_CXX=no
10547 hardcode_shlibpath_var_CXX=no
10550 hardcode_direct_CXX=yes
10551 hardcode_minus_L_CXX=yes # Not in the search PATH,
10552 # but as the default
10553 # location of the library.
10557 case $cc_basename in
10559 # FIXME: insert proper C++ library support
10565 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10568 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10574 # Commands to make compiler produce verbose output that lists
10575 # what "hidden" libraries, object files and flags are used when
10576 # linking a shared library.
10578 # There doesn't appear to be a way to prevent this compiler from
10579 # explicitly linking system object files so we need to strip them
10580 # from the output so that they don't get included in the library
10582 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'
10585 if test "$GXX" = yes; then
10586 if test $with_gnu_ld = no; then
10589 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10592 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10595 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'
10600 # FIXME: insert proper C++ library support
10607 hardcode_direct_CXX=no
10608 hardcode_shlibpath_var_CXX=no
10609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10610 export_dynamic_flag_spec_CXX='${wl}-E'
10611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10612 # Instead, shared libraries are loaded at an image base (0x10000000 by
10613 # default) and relocated if they conflict, which is a slow very memory
10614 # consuming and fragmenting process. To avoid this, we pick a random,
10615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10617 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'
10618 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'
10621 case $cc_basename in
10624 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'
10626 # Archives containing C++ object files must be created using
10627 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10628 # necessary to make sure instantiated templates are included
10630 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10633 if test "$GXX" = yes; then
10634 if test "$with_gnu_ld" = no; then
10635 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'
10637 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'
10640 link_all_deplibs_CXX=yes
10643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10644 hardcode_libdir_separator_CXX=:
10647 case $cc_basename in
10649 # Kuck and Associates, Inc. (KAI) C++ Compiler
10651 # KCC will only create a shared library if the output file
10652 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10653 # to its proper name (with version) after linking.
10654 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'
10655 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'
10656 # Commands to make compiler produce verbose output that lists
10657 # what "hidden" libraries, object files and flags are used when
10658 # linking a shared library.
10660 # There doesn't appear to be a way to prevent this compiler from
10661 # explicitly linking system object files so we need to strip them
10662 # from the output so that they don't get included in the library
10664 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'
10666 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10669 # Archives containing C++ object files must be created using
10670 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10671 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10676 # version 8.0 and above of icpc choke on multiply defined symbols
10677 # if we add $predep_objects and $postdep_objects, however 7.1 and
10678 # earlier do not add the objects themselves.
10679 case `$CC -V 2>&1` in
10681 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10682 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'
10684 *) # Version 8.0 or newer
10687 ia64*) tmp_idyn=' -i_dynamic';;
10689 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10690 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'
10693 archive_cmds_need_lc_CXX=no
10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10695 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10696 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10699 # Portland Group C++ compiler
10700 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10701 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'
10703 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10705 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'
10709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10710 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'
10712 runpath_var=LD_RUN_PATH
10713 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10714 hardcode_libdir_separator_CXX=:
10716 # Commands to make compiler produce verbose output that lists
10717 # what "hidden" libraries, object files and flags are used when
10718 # linking a shared library.
10720 # There doesn't appear to be a way to prevent this compiler from
10721 # explicitly linking system object files so we need to strip them
10722 # from the output so that they don't get included in the library
10724 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'
10729 # FIXME: insert proper C++ library support
10733 # FIXME: insert proper C++ library support
10737 case $cc_basename in
10739 # FIXME: insert proper C++ library support
10743 # FIXME: insert proper C++ library support
10748 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10750 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10752 hardcode_libdir_flag_spec_CXX='-R$libdir'
10753 hardcode_direct_CXX=yes
10754 hardcode_shlibpath_var_CXX=no
10756 # Workaround some broken pre-1.5 toolchains
10757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10760 # C++ shared libraries are fairly broken
10764 hardcode_direct_CXX=yes
10765 hardcode_shlibpath_var_CXX=no
10766 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10769 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10770 export_dynamic_flag_spec_CXX='${wl}-E'
10771 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10773 output_verbose_link_cmd='echo'
10776 case $cc_basename in
10778 # Kuck and Associates, Inc. (KAI) C++ Compiler
10780 # KCC will only create a shared library if the output file
10781 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10782 # to its proper name (with version) after linking.
10783 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'
10785 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10786 hardcode_libdir_separator_CXX=:
10788 # Archives containing C++ object files must be created using
10789 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10790 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10794 # Rational C++ 2.4.1
10795 # FIXME: insert proper C++ library support
10799 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10800 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'
10802 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10803 hardcode_libdir_separator_CXX=:
10805 # Commands to make compiler produce verbose output that lists
10806 # what "hidden" libraries, object files and flags are used when
10807 # linking a shared library.
10809 # There doesn't appear to be a way to prevent this compiler from
10810 # explicitly linking system object files so we need to strip them
10811 # from the output so that they don't get included in the library
10813 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'
10816 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10817 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10818 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'
10820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10821 hardcode_libdir_separator_CXX=:
10823 # Commands to make compiler produce verbose output that lists
10824 # what "hidden" libraries, object files and flags are used when
10825 # linking a shared library.
10826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10829 # FIXME: insert proper C++ library support
10836 case $cc_basename in
10838 # Kuck and Associates, Inc. (KAI) C++ Compiler
10840 # KCC will only create a shared library if the output file
10841 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10842 # to its proper name (with version) after linking.
10843 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'
10845 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10846 hardcode_libdir_separator_CXX=:
10848 # Archives containing C++ object files must be created using
10849 # the KAI C++ compiler.
10850 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10853 # Rational C++ 2.4.1
10854 # FIXME: insert proper C++ library support
10858 allow_undefined_flag_CXX=' -expect_unresolved \*'
10859 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'
10860 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10861 echo "-hidden">> $lib.exp~
10862 $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~
10865 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10866 hardcode_libdir_separator_CXX=:
10868 # Commands to make compiler produce verbose output that lists
10869 # what "hidden" libraries, object files and flags are used when
10870 # linking a shared library.
10872 # There doesn't appear to be a way to prevent this compiler from
10873 # explicitly linking system object files so we need to strip them
10874 # from the output so that they don't get included in the library
10876 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'
10879 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10881 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'
10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10884 hardcode_libdir_separator_CXX=:
10886 # Commands to make compiler produce verbose output that lists
10887 # what "hidden" libraries, object files and flags are used when
10888 # linking a shared library.
10889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10892 # FIXME: insert proper C++ library support
10899 # FIXME: insert proper C++ library support
10903 case $cc_basename in
10906 # FIXME: insert proper C++ library support
10911 # FIXME: insert proper C++ library support
10915 # FIXME: insert proper C++ library support
10921 case $cc_basename in
10923 # Sun C++ 4.2, 5.x and Centerline C++
10924 archive_cmds_need_lc_CXX=yes
10925 no_undefined_flag_CXX=' -zdefs'
10926 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10927 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10928 $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'
10930 hardcode_libdir_flag_spec_CXX='-R$libdir'
10931 hardcode_shlibpath_var_CXX=no
10933 solaris2.[0-5] | solaris2.[0-5].*) ;;
10935 # The C++ compiler is used as linker so we must use $wl
10936 # flag to pass the commands to the underlying system
10937 # linker. We must also pass each convience library through
10938 # to the system linker between allextract/defaultextract.
10939 # The C++ compiler will combine linker options so we
10940 # cannot just pass the convience library names through
10942 # Supported since Solaris 2.6 (maybe 2.5.1?)
10943 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'
10946 link_all_deplibs_CXX=yes
10948 output_verbose_link_cmd='echo'
10950 # Archives containing C++ object files must be created using
10951 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10952 # necessary to make sure instantiated templates are included
10954 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10957 # Green Hills C++ Compiler
10958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10960 # The C++ compiler must be used to create the archive.
10961 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10964 # GNU C++ compiler with Solaris linker
10965 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10966 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10967 if $CC --version | grep -v '^2\.7' > /dev/null; then
10968 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10969 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10970 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10972 # Commands to make compiler produce verbose output that lists
10973 # what "hidden" libraries, object files and flags are used when
10974 # linking a shared library.
10975 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10977 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10979 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10980 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10981 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10983 # Commands to make compiler produce verbose output that lists
10984 # what "hidden" libraries, object files and flags are used when
10985 # linking a shared library.
10986 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10989 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10995 no_undefined_flag_CXX='${wl}-z,text'
10996 archive_cmds_need_lc_CXX=no
10997 hardcode_shlibpath_var_CXX=no
10998 runpath_var='LD_RUN_PATH'
11000 case $cc_basename in
11002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011 sysv5* | sco3.2v5* | sco5v6*)
11012 # Note: We can NOT use -z defs as we might desire, because we do not
11013 # link with -lc, and that would cause any symbols used from libc to
11014 # always be unresolved, which means just about no library would
11015 # ever link correctly. If we're not using GNU ld we use -z text
11016 # though, which does catch some bad symbols but isn't as heavy-handed
11018 # For security reasons, it is highly recommended that you always
11019 # use absolute paths for naming shared libraries, and exclude the
11020 # DT_RUNPATH tag from executables and libraries. But doing so
11021 # requires that you compile everything twice, which is a pain.
11022 # So that behaviour is only enabled if SCOABSPATH is set to a
11023 # non-empty value in the environment. Most likely only useful for
11024 # creating official distributions of packages.
11025 # This is a hack until libtool officially supports absolute path
11026 # names for shared libraries.
11027 no_undefined_flag_CXX='${wl}-z,text'
11028 allow_undefined_flag_CXX='${wl}-z,nodefs'
11029 archive_cmds_need_lc_CXX=no
11030 hardcode_shlibpath_var_CXX=no
11031 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11032 hardcode_libdir_separator_CXX=':'
11033 link_all_deplibs_CXX=yes
11034 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11035 runpath_var='LD_RUN_PATH'
11037 case $cc_basename in
11039 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 case $cc_basename in
11051 # NonStop-UX NCC 3.20
11052 # FIXME: insert proper C++ library support
11056 # FIXME: insert proper C++ library support
11062 # FIXME: insert proper C++ library support
11066 # FIXME: insert proper C++ library support
11070 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11071 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11072 test "$ld_shlibs_CXX" = no && can_build_shared=no
11078 cat > conftest.$ac_ext <<EOF
11082 Foo (void) { a = 0; }
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; then
11093 # Parse the compiler output and extract the necessary
11094 # objects, libraries and library flags.
11096 # Sentinel used to keep track of whether or not we are before
11097 # the conftest object file.
11098 pre_test_object_deps_done=no
11100 # The `*' in the case matches for architectures that use `case' in
11101 # $output_verbose_cmd can trigger glob expansion during the loop
11102 # eval without this substitution.
11103 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11105 for p in `eval $output_verbose_link_cmd`; do
11109 # Some compilers place space between "-{L,R}" and the path.
11110 # Remove the space.
11111 if test $p = "-L" \
11112 || test $p = "-R"; then
11119 if test "$pre_test_object_deps_done" = no; then
11122 # Internal compiler library paths should come after those
11123 # provided the user. The postdeps already come after the
11124 # user supplied libs so there is no need to process them.
11125 if test -z "$compiler_lib_search_path_CXX"; then
11126 compiler_lib_search_path_CXX="${prev}${p}"
11128 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11131 # The "-l" case would never come before the object being
11132 # linked, so don't bother handling this case.
11135 if test -z "$postdeps_CXX"; then
11136 postdeps_CXX="${prev}${p}"
11138 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11144 # This assumes that the test object file only shows up
11145 # once in the compiler output.
11146 if test "$p" = "conftest.$objext"; then
11147 pre_test_object_deps_done=yes
11151 if test "$pre_test_object_deps_done" = no; then
11152 if test -z "$predep_objects_CXX"; then
11153 predep_objects_CXX="$p"
11155 predep_objects_CXX="$predep_objects_CXX $p"
11158 if test -z "$postdep_objects_CXX"; then
11159 postdep_objects_CXX="$p"
11161 postdep_objects_CXX="$postdep_objects_CXX $p"
11166 *) ;; # Ignore the rest.
11174 echo "libtool.m4: error: problem compiling CXX test program"
11177 $rm -f confest.$objext
11179 # PORTME: override above test on systems where it is broken
11182 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11183 # hack all around it, let's just trust "g++" to DTRT.
11184 predep_objects_CXX=
11185 postdep_objects_CXX=
11190 case $cc_basename in
11192 # Adding this requires a known-good setup of shared libraries for
11193 # Sun compiler versions before 5.6, else PIC objects from an old
11194 # archive will be linked into the output, leading to subtle bugs.
11195 postdeps_CXX='-lCstd -lCrun'
11202 case " $postdeps_CXX " in
11203 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11206 lt_prog_compiler_wl_CXX=
11207 lt_prog_compiler_pic_CXX=
11208 lt_prog_compiler_static_CXX=
11210 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11213 # C++ specific cases for pic, static, wl, etc.
11214 if test "$GXX" = yes; then
11215 lt_prog_compiler_wl_CXX='-Wl,'
11216 lt_prog_compiler_static_CXX='-static'
11220 # All AIX code is PIC.
11221 if test "$host_cpu" = ia64; then
11222 # AIX 5 now supports IA64 processor
11223 lt_prog_compiler_static_CXX='-Bstatic'
11227 # FIXME: we need at least 68020 code to build shared libraries, but
11228 # adding the `-m68020' flag to GCC prevents building anything better,
11230 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11233 # PIC is the default for these OSes.
11235 mingw* | os2* | pw32*)
11236 # This hack is so that the source file can tell whether it is being
11237 # built for inclusion in a dll (and should export symbols for example).
11238 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11240 darwin* | rhapsody*)
11241 # PIC is the default on this platform
11242 # Common symbols not allowed in MH_DYLIB files
11243 lt_prog_compiler_pic_CXX='-fno-common'
11246 # DJGPP does not support shared libraries at all
11247 lt_prog_compiler_pic_CXX=
11250 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11251 # Instead, we relocate shared libraries at runtime.
11254 if test -d /usr/nec; then
11255 lt_prog_compiler_pic_CXX=-Kconform_pic
11259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11260 # not for PA HP-UX.
11265 lt_prog_compiler_pic_CXX='-fPIC'
11270 lt_prog_compiler_pic_CXX='-fPIC'
11276 # All AIX code is PIC.
11277 if test "$host_cpu" = ia64; then
11278 # AIX 5 now supports IA64 processor
11279 lt_prog_compiler_static_CXX='-Bstatic'
11281 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11285 case $cc_basename in
11287 # Green Hills C++ Compiler
11288 # _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"
11293 # PIC is the default on this platform
11294 # Common symbols not allowed in MH_DYLIB files
11295 case $cc_basename in
11297 lt_prog_compiler_pic_CXX='-qnocommon'
11298 lt_prog_compiler_wl_CXX='-Wl,'
11303 case $cc_basename in
11305 lt_prog_compiler_pic_CXX='-KPIC'
11308 # Green Hills C++ Compiler
11309 lt_prog_compiler_pic_CXX='-pic'
11315 freebsd* | kfreebsd*-gnu | dragonfly*)
11316 # FreeBSD uses GNU C++
11318 hpux9* | hpux10* | hpux11*)
11319 case $cc_basename in
11321 lt_prog_compiler_wl_CXX='-Wl,'
11322 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11323 if test "$host_cpu" != ia64; then
11324 lt_prog_compiler_pic_CXX='+Z'
11328 lt_prog_compiler_wl_CXX='-Wl,'
11329 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11335 lt_prog_compiler_pic_CXX='+Z'
11344 # This is c89, which is MS Visual C++ (no shared libs)
11345 # Anyone wants to do a port?
11347 irix5* | irix6* | nonstopux*)
11348 case $cc_basename in
11350 lt_prog_compiler_wl_CXX='-Wl,'
11351 lt_prog_compiler_static_CXX='-non_shared'
11352 # CC pic flag -KPIC is the default.
11359 case $cc_basename in
11362 lt_prog_compiler_wl_CXX='--backend -Wl,'
11363 lt_prog_compiler_pic_CXX='-fPIC'
11367 lt_prog_compiler_wl_CXX='-Wl,'
11368 lt_prog_compiler_pic_CXX='-KPIC'
11369 lt_prog_compiler_static_CXX='-static'
11372 # Portland Group C++ compiler.
11373 lt_prog_compiler_wl_CXX='-Wl,'
11374 lt_prog_compiler_pic_CXX='-fpic'
11375 lt_prog_compiler_static_CXX='-Bstatic'
11379 # Make sure the PIC flag is empty. It appears that all Alpha
11380 # Linux and Compaq Tru64 Unix objects are PIC.
11381 lt_prog_compiler_pic_CXX=
11382 lt_prog_compiler_static_CXX='-non_shared'
11393 case $cc_basename in
11395 lt_prog_compiler_pic_CXX='-W c,exportall'
11401 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11403 osf3* | osf4* | osf5*)
11404 case $cc_basename in
11406 lt_prog_compiler_wl_CXX='--backend -Wl,'
11409 # Rational C++ 2.4.1
11410 lt_prog_compiler_pic_CXX='-pic'
11413 # Digital/Compaq C++
11414 lt_prog_compiler_wl_CXX='-Wl,'
11415 # Make sure the PIC flag is empty. It appears that all Alpha
11416 # Linux and Compaq Tru64 Unix objects are PIC.
11417 lt_prog_compiler_pic_CXX=
11418 lt_prog_compiler_static_CXX='-non_shared'
11427 case $cc_basename in
11429 # Sun C++ 4.2, 5.x and Centerline C++
11430 lt_prog_compiler_pic_CXX='-KPIC'
11431 lt_prog_compiler_static_CXX='-Bstatic'
11432 lt_prog_compiler_wl_CXX='-Qoption ld '
11435 # Green Hills C++ Compiler
11436 lt_prog_compiler_pic_CXX='-PIC'
11443 case $cc_basename in
11446 lt_prog_compiler_pic_CXX='-pic'
11447 lt_prog_compiler_static_CXX='-Bstatic'
11451 lt_prog_compiler_pic_CXX='-pic'
11458 case $cc_basename in
11460 # NonStop-UX NCC 3.20
11461 lt_prog_compiler_pic_CXX='-KPIC'
11467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11468 case $cc_basename in
11470 lt_prog_compiler_wl_CXX='-Wl,'
11471 lt_prog_compiler_pic_CXX='-KPIC'
11472 lt_prog_compiler_static_CXX='-Bstatic'
11479 lt_prog_compiler_can_build_shared_CXX=no
11484 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11485 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11488 # Check to make sure the PIC flag actually works.
11490 if test -n "$lt_prog_compiler_pic_CXX"; then
11492 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11493 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11494 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 lt_prog_compiler_pic_works_CXX=no
11498 ac_outfile=conftest.$ac_objext
11499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11500 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11501 # Insert the option either (1) after the last *FLAGS variable, or
11502 # (2) before a word containing "conftest.", or (3) at the end.
11503 # Note that $ac_compile itself does not contain backslashes and begins
11504 # with a dollar sign (not a hyphen), so the echo should work correctly.
11505 # The option is referenced via a variable to avoid confusing sed.
11506 lt_compile=`echo "$ac_compile" | $SED \
11507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11509 -e 's:$: $lt_compiler_flag:'`
11510 (eval echo "\"\$as_me:11510: $lt_compile\"" >&5)
11511 (eval "$lt_compile" 2>conftest.err)
11513 cat conftest.err >&5
11514 echo "$as_me:11514: \$? = $ac_status" >&5
11515 if (exit $ac_status) && test -s "$ac_outfile"; then
11516 # The compiler can only warn and ignore the option if not recognized
11517 # So say no if there are warnings other than the usual output.
11518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11521 lt_prog_compiler_pic_works_CXX=yes
11527 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11528 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11530 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11531 case $lt_prog_compiler_pic_CXX in
11533 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11536 lt_prog_compiler_pic_CXX=
11537 lt_prog_compiler_can_build_shared_CXX=no
11542 # For platforms which do not support PIC, -DPIC is meaningless:
11544 lt_prog_compiler_pic_CXX=
11547 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11552 # Check to make sure the static flag actually works.
11554 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11555 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11556 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11557 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 lt_prog_compiler_static_works_CXX=no
11561 save_LDFLAGS="$LDFLAGS"
11562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11563 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11565 # The linker can only warn and ignore the option if not recognized
11566 # So say no if there are warnings
11567 if test -s conftest.err; then
11568 # Append any errors to the config.log.
11569 cat conftest.err 1>&5
11570 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11572 if diff conftest.exp conftest.er2 >/dev/null; then
11573 lt_prog_compiler_static_works_CXX=yes
11576 lt_prog_compiler_static_works_CXX=yes
11580 LDFLAGS="$save_LDFLAGS"
11583 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11584 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11586 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11589 lt_prog_compiler_static_CXX=
11593 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11594 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11595 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 lt_cv_prog_compiler_c_o_CXX=no
11599 $rm -r conftest 2>/dev/null
11603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11605 lt_compiler_flag="-o out/conftest2.$ac_objext"
11606 # Insert the option either (1) after the last *FLAGS variable, or
11607 # (2) before a word containing "conftest.", or (3) at the end.
11608 # Note that $ac_compile itself does not contain backslashes and begins
11609 # with a dollar sign (not a hyphen), so the echo should work correctly.
11610 lt_compile=`echo "$ac_compile" | $SED \
11611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11613 -e 's:$: $lt_compiler_flag:'`
11614 (eval echo "\"\$as_me:11614: $lt_compile\"" >&5)
11615 (eval "$lt_compile" 2>out/conftest.err)
11617 cat out/conftest.err >&5
11618 echo "$as_me:11618: \$? = $ac_status" >&5
11619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11621 # The compiler can only warn and ignore the option if not recognized
11622 # So say no if there are warnings
11623 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11626 lt_cv_prog_compiler_c_o_CXX=yes
11631 # SGI C++ compiler will create directory out/ii_files/ for
11632 # template instantiation
11633 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11634 $rm out/* && rmdir out
11640 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11641 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11644 hard_links="nottested"
11645 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11646 # do not overwrite the value of need_locks provided by the user
11647 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11648 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11653 ln conftest.a conftest.b 2>&5 || hard_links=no
11654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11655 echo "$as_me:$LINENO: result: $hard_links" >&5
11656 echo "${ECHO_T}$hard_links" >&6
11657 if test "$hard_links" = no; then
11658 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11659 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11666 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11667 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11669 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11672 # If we're using GNU nm, then we don't want the "-C" option.
11673 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11674 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11675 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'
11677 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'
11681 export_symbols_cmds_CXX="$ltdll_cmds"
11684 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'
11687 link_all_deplibs_CXX=no
11690 link_all_deplibs_CXX=no
11693 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11697 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11698 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11699 test "$ld_shlibs_CXX" = no && can_build_shared=no
11702 # Do we need to explicitly link libc?
11704 case "x$archive_cmds_need_lc_CXX" in
11706 # Assume -lc should be added
11707 archive_cmds_need_lc_CXX=yes
11709 if test "$enable_shared" = yes && test "$GCC" = yes; then
11710 case $archive_cmds_CXX in
11712 # FIXME: we may have to deal with multi-command sequences.
11715 # Test whether the compiler implicitly links with -lc since on some
11716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11717 # to ld, don't add -lc before -lgcc.
11718 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11719 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724 (eval $ac_compile) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } 2>conftest.err; then
11730 libobjs=conftest.$ac_objext
11732 wl=$lt_prog_compiler_wl_CXX
11733 pic_flag=$lt_prog_compiler_pic_CXX
11739 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11740 allow_undefined_flag_CXX=
11741 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11742 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }
11747 archive_cmds_need_lc_CXX=no
11749 archive_cmds_need_lc_CXX=yes
11751 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11753 cat conftest.err 1>&5
11756 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11757 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11764 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11766 library_names_spec=
11767 libname_spec='lib$name'
11771 postuninstall_cmds=
11775 shlibpath_overrides_runpath=unknown
11777 dynamic_linker="$host_os ld.so"
11778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11779 if test "$GCC" = yes; then
11780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11781 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11782 # if the path contains ";" then we assume it to be the separator
11783 # otherwise default to the standard path separator (i.e. ":") - it is
11784 # assumed that no part of a normal pathname contains ";" but that should
11785 # okay in the real world where ";" in dirpaths is itself problematic.
11786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11793 need_lib_prefix=unknown
11794 hardcode_into_libs=no
11796 # when you set need_version to no, make sure it does not cause -set_version
11797 # flags to be left without arguments
11798 need_version=unknown
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11804 shlibpath_var=LIBPATH
11806 # AIX 3 has no versioning support, so we append a major version to the name.
11807 soname_spec='${libname}${release}${shared_ext}$major'
11814 hardcode_into_libs=yes
11815 if test "$host_cpu" = ia64; then
11816 # AIX 5 supports IA64
11817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11818 shlibpath_var=LD_LIBRARY_PATH
11820 # With GCC up to 2.95.x, collect2 would create an import file
11821 # for dependence libraries. The import file would start with
11822 # the line `#! .'. This would cause the generated library to
11823 # depend on `.', always an invalid library. This was fixed in
11824 # development snapshots of GCC prior to 3.0.
11826 aix4 | aix4.[01] | aix4.[01].*)
11827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11832 can_build_shared=no
11836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11837 # soname into executable. Probably we can add versioning support to
11838 # collect2, so additional links can be useful in future.
11839 if test "$aix_use_runtimelinking" = yes; then
11840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11841 # instead of lib<name>.a to let people know that these are not
11842 # typical AIX shared libraries.
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845 # We preserve .a as extension for shared libraries through AIX4.2
11846 # and later when we are not doing run time linking.
11847 library_names_spec='${libname}${release}.a $libname.a'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11850 shlibpath_var=LIBPATH
11855 library_names_spec='$libname.ixlibrary $libname.a'
11856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11857 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'
11861 library_names_spec='${libname}${shared_ext}'
11862 dynamic_linker="$host_os ld.so"
11863 shlibpath_var=LIBRARY_PATH
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11875 # the default ld.so.conf also contains /usr/contrib/lib and
11876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11877 # libtool to hard-code these into programs
11880 cygwin* | mingw* | pw32*)
11881 version_type=windows
11886 case $GCC,$host_os in
11887 yes,cygwin* | yes,mingw* | yes,pw32*)
11888 library_names_spec='$libname.dll.a'
11889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11890 postinstall_cmds='base_file=`basename \${file}`~
11891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11892 dldir=$destdir/`dirname \$dlpath`~
11893 test -d \$dldir || mkdir -p \$dldir~
11894 $install_prog $dir/$dlname \$dldir/$dlname~
11895 chmod a+x \$dldir/$dlname'
11896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11897 dlpath=$dir/\$dldll~
11899 shlibpath_overrides_runpath=yes
11903 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11904 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11905 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11908 # MinGW DLLs use traditional 'lib' prefix
11909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11911 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11912 # It is most probably a Windows format PATH printed by
11913 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11914 # path with ; separators, and with drive letters. We can handle the
11915 # drive letters (cygwin fileutils understands them), so leave them,
11916 # especially as we might pass files found there to a mingw objdump,
11917 # which wouldn't understand a cygwinified path. Ahh.
11918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11924 # pw32 DLLs use 'pw' prefix rather than 'lib'
11925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11934 dynamic_linker='Win32 ld.exe'
11935 # FIXME: first we should search . and the directory the executable is in
11939 darwin* | rhapsody*)
11940 dynamic_linker="$host_os dyld"
11941 version_type=darwin
11944 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11945 soname_spec='${libname}${release}${major}$shared_ext'
11946 shlibpath_overrides_runpath=yes
11947 shlibpath_var=DYLD_LIBRARY_PATH
11948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11949 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11950 if test "$GCC" = yes; then
11951 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"`
11953 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 shlibpath_var=LD_LIBRARY_PATH
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11976 soname_spec='${libname}${release}${shared_ext}$major'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 shlibpath_overrides_runpath=no
11979 hardcode_into_libs=yes
11980 dynamic_linker='GNU ld.so'
11983 freebsd* | dragonfly*)
11984 # DragonFly does not have aout. When/if they implement a new
11985 # versioning mechanism, adjust this.
11986 if test -x /usr/bin/objformat; then
11987 objformat=`/usr/bin/objformat`
11990 freebsd[123]*) objformat=aout ;;
11991 *) objformat=elf ;;
11994 version_type=freebsd-$objformat
11995 case $version_type in
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12006 shlibpath_var=LD_LIBRARY_PATH
12009 shlibpath_overrides_runpath=yes
12011 freebsd3.[01]* | freebsdelf3.[01]*)
12012 shlibpath_overrides_runpath=yes
12013 hardcode_into_libs=yes
12015 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12016 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12017 shlibpath_overrides_runpath=no
12018 hardcode_into_libs=yes
12020 freebsd*) # from 4.6 on
12021 shlibpath_overrides_runpath=yes
12022 hardcode_into_libs=yes
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 hardcode_into_libs=yes
12037 hpux9* | hpux10* | hpux11*)
12038 # Give a soname corresponding to the major version so that dld.sl refuses to
12039 # link against other versions.
12046 hardcode_into_libs=yes
12047 dynamic_linker="$host_os dld.so"
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051 soname_spec='${libname}${release}${shared_ext}$major'
12052 if test "X$HPUX_IA64_MODE" = X32; then
12053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12061 hardcode_into_libs=yes
12062 dynamic_linker="$host_os dld.sl"
12063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066 soname_spec='${libname}${release}${shared_ext}$major'
12067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12072 dynamic_linker="$host_os dld.sl"
12073 shlibpath_var=SHLIB_PATH
12074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076 soname_spec='${libname}${release}${shared_ext}$major'
12079 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12080 postinstall_cmds='chmod 555 $lib'
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12088 soname_spec='${libname}${release}${shared_ext}$major'
12089 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=no
12092 hardcode_into_libs=yes
12095 irix5* | irix6* | nonstopux*)
12097 nonstopux*) version_type=nonstopux ;;
12099 if test "$lt_cv_prog_gnu_ld" = yes; then
12107 soname_spec='${libname}${release}${shared_ext}$major'
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12110 irix5* | nonstopux*)
12111 libsuff= shlibsuff=
12114 case $LD in # libtool.m4 will add one of these switches to LD
12115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12116 libsuff= shlibsuff= libmagic=32-bit;;
12117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12118 libsuff=32 shlibsuff=N32 libmagic=N32;;
12119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12121 *) libsuff= shlibsuff= libmagic=never-match;;
12125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12126 shlibpath_overrides_runpath=no
12127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12129 hardcode_into_libs=yes
12132 # No shared lib support for Linux oldld, aout, or coff.
12133 linux*oldld* | linux*aout* | linux*coff*)
12137 # This must be Linux ELF.
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143 soname_spec='${libname}${release}${shared_ext}$major'
12144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=no
12147 # This implies no fast_install, which is unacceptable.
12148 # Some rework will be needed to allow for fast_install
12149 # before this can be enabled.
12150 hardcode_into_libs=yes
12152 # Append ld.so.conf contents to the search path
12153 if test -f /etc/ld.so.conf; then
12154 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' ' '`
12155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12158 # We used to test for /lib/ld.so.1 and disable shared libraries on
12159 # powerpc, because MkLinux only supported shared libraries with the
12160 # GNU dynamic linker. Since this was broken with cross compilers,
12161 # most powerpc-linux boxes support dynamic linking these days and
12162 # people can always --disable-shared, the test was removed, and we
12163 # assume the GNU/Linux dynamic linker is in use.
12164 dynamic_linker='GNU/Linux ld.so'
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12172 soname_spec='${libname}${release}${shared_ext}$major'
12173 shlibpath_var=LD_LIBRARY_PATH
12174 shlibpath_overrides_runpath=no
12175 hardcode_into_libs=yes
12176 dynamic_linker='NetBSD ld.elf_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 shlibpath_var=LD_LIBRARY_PATH
12186 shlibpath_overrides_runpath=no
12187 hardcode_into_libs=yes
12188 dynamic_linker='GNU ld.so'
12195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12198 dynamic_linker='NetBSD (a.out) ld.so'
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 dynamic_linker='NetBSD ld.elf_so'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 shlibpath_overrides_runpath=yes
12206 hardcode_into_libs=yes
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=yes
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221 soname_spec='${libname}${release}${shared_ext}$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=yes
12228 sys_lib_dlsearch_path_spec="/usr/lib"
12230 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12232 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12233 *) need_version=no ;;
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12240 openbsd2.[89] | openbsd2.[89].*)
12241 shlibpath_overrides_runpath=no
12244 shlibpath_overrides_runpath=yes
12248 shlibpath_overrides_runpath=yes
12253 libname_spec='$name'
12256 library_names_spec='$libname${shared_ext} $libname.a'
12257 dynamic_linker='OS/2 ld.exe'
12258 shlibpath_var=LIBPATH
12261 osf3* | osf4* | osf5*)
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277 soname_spec='${libname}${release}${shared_ext}$major'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=yes
12280 hardcode_into_libs=yes
12281 # ldd complains unless libraries are executable
12282 postinstall_cmds='chmod +x $lib'
12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12288 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12289 shlibpath_var=LD_LIBRARY_PATH
12290 shlibpath_overrides_runpath=yes
12291 if test "$with_gnu_ld" = yes; then
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12300 soname_spec='${libname}${release}${shared_ext}$major'
12301 shlibpath_var=LD_LIBRARY_PATH
12302 case $host_vendor in
12304 shlibpath_overrides_runpath=no
12306 export_dynamic_flag_spec='${wl}-Blargedynsym'
12307 runpath_var=LD_RUN_PATH
12315 shlibpath_overrides_runpath=no
12316 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12322 if test -d /usr/nec ;then
12324 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12325 soname_spec='$libname${shared_ext}.$major'
12326 shlibpath_var=LD_LIBRARY_PATH
12330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12331 version_type=freebsd-elf
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12335 soname_spec='${libname}${release}${shared_ext}$major'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 hardcode_into_libs=yes
12338 if test "$with_gnu_ld" = yes; then
12339 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12340 shlibpath_overrides_runpath=no
12342 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12343 shlibpath_overrides_runpath=yes
12346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12350 sys_lib_dlsearch_path_spec='/usr/lib'
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 soname_spec='${libname}${release}${shared_ext}$major'
12357 shlibpath_var=LD_LIBRARY_PATH
12364 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12365 echo "${ECHO_T}$dynamic_linker" >&6
12366 test "$dynamic_linker" = no && can_build_shared=no
12368 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12369 if test "$GCC" = yes; then
12370 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12373 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12374 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12375 hardcode_action_CXX=
12376 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12377 test -n "$runpath_var_CXX" || \
12378 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12380 # We can hardcode non-existant directories.
12381 if test "$hardcode_direct_CXX" != no &&
12382 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12383 # have to relink, otherwise we might link with an installed library
12384 # when we should be linking with a yet-to-be-installed one
12385 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12386 test "$hardcode_minus_L_CXX" != no; then
12387 # Linking always hardcodes the temporary library directory.
12388 hardcode_action_CXX=relink
12390 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12391 hardcode_action_CXX=immediate
12394 # We cannot hardcode anything, or else we can only hardcode existing
12396 hardcode_action_CXX=unsupported
12398 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12399 echo "${ECHO_T}$hardcode_action_CXX" >&6
12401 if test "$hardcode_action_CXX" = relink; then
12402 # Fast installation is not supported
12403 enable_fast_install=no
12404 elif test "$shlibpath_overrides_runpath" = yes ||
12405 test "$enable_shared" = no; then
12406 # Fast installation is not necessary
12407 enable_fast_install=needless
12411 # The else clause should only fire when bootstrapping the
12412 # libtool distribution, otherwise you forgot to ship ltmain.sh
12413 # with your package, and you will get complaints that there are
12414 # no rules to generate ltmain.sh.
12415 if test -f "$ltmain"; then
12416 # See if we are running on zsh, and set the options which allow our commands through
12417 # without removal of \ escapes.
12418 if test -n "${ZSH_VERSION+set}" ; then
12419 setopt NO_GLOB_SUBST
12421 # Now quote all the things that may contain metacharacters while being
12422 # careful not to overquote the AC_SUBSTed values. We take copies of the
12423 # variables and quote the copies for generation of the libtool script.
12424 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12426 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12427 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12428 deplibs_check_method reload_flag reload_cmds need_locks \
12429 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12430 lt_cv_sys_global_symbol_to_c_name_address \
12431 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12432 old_postinstall_cmds old_postuninstall_cmds \
12436 lt_prog_compiler_wl_CXX \
12437 lt_prog_compiler_pic_CXX \
12438 lt_prog_compiler_static_CXX \
12439 lt_prog_compiler_no_builtin_flag_CXX \
12440 export_dynamic_flag_spec_CXX \
12441 thread_safe_flag_spec_CXX \
12442 whole_archive_flag_spec_CXX \
12443 enable_shared_with_static_runtimes_CXX \
12444 old_archive_cmds_CXX \
12445 old_archive_from_new_cmds_CXX \
12446 predep_objects_CXX \
12447 postdep_objects_CXX \
12450 compiler_lib_search_path_CXX \
12452 archive_expsym_cmds_CXX \
12453 postinstall_cmds_CXX \
12454 postuninstall_cmds_CXX \
12455 old_archive_from_expsyms_cmds_CXX \
12456 allow_undefined_flag_CXX \
12457 no_undefined_flag_CXX \
12458 export_symbols_cmds_CXX \
12459 hardcode_libdir_flag_spec_CXX \
12460 hardcode_libdir_flag_spec_ld_CXX \
12461 hardcode_libdir_separator_CXX \
12462 hardcode_automatic_CXX \
12464 module_expsym_cmds_CXX \
12465 lt_cv_prog_compiler_c_o_CXX \
12466 exclude_expsyms_CXX \
12467 include_expsyms_CXX; do
12470 old_archive_cmds_CXX | \
12471 old_archive_from_new_cmds_CXX | \
12472 archive_cmds_CXX | \
12473 archive_expsym_cmds_CXX | \
12474 module_cmds_CXX | \
12475 module_expsym_cmds_CXX | \
12476 old_archive_from_expsyms_cmds_CXX | \
12477 export_symbols_cmds_CXX | \
12478 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12479 postinstall_cmds | postuninstall_cmds | \
12480 old_postinstall_cmds | old_postuninstall_cmds | \
12481 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12482 # Double-quote double-evaled strings.
12483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12492 *'\$0 --fallback-echo"')
12493 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12499 cat <<__EOF__ >> "$cfgfile"
12500 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12502 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12504 # Shell to use when invoking shell scripts.
12507 # Whether or not to build shared libraries.
12508 build_libtool_libs=$enable_shared
12510 # Whether or not to build static libraries.
12511 build_old_libs=$enable_static
12513 # Whether or not to add -lc for building shared libraries.
12514 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12516 # Whether or not to disallow shared libs when runtime libs are static
12517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12519 # Whether or not to optimize for fast installation.
12520 fast_install=$enable_fast_install
12523 host_alias=$host_alias
12527 # The build system.
12528 build_alias=$build_alias
12532 # An echo program that does not interpret backslashes.
12537 AR_FLAGS=$lt_AR_FLAGS
12542 # LTCC compiler flags.
12543 LTCFLAGS=$lt_LTCFLAGS
12545 # A language-specific compiler.
12546 CC=$lt_compiler_CXX
12548 # Is the compiler the GNU C compiler?
12554 # The linker used to build libraries.
12557 # Whether we need hard or soft links.
12560 # A BSD-compatible nm program.
12563 # A symbol stripping program
12566 # Used to examine libraries when file_magic_cmd begins "file"
12567 MAGIC_CMD=$MAGIC_CMD
12569 # Used on cygwin: DLL creation program.
12572 # Used on cygwin: object dumper.
12575 # Used on cygwin: assembler.
12578 # The name of the directory that contains temporary libtool files.
12581 # How to create reloadable object files.
12582 reload_flag=$lt_reload_flag
12583 reload_cmds=$lt_reload_cmds
12585 # How to pass a linker flag through the compiler.
12586 wl=$lt_lt_prog_compiler_wl_CXX
12588 # Object file suffix (normally "o").
12589 objext="$ac_objext"
12591 # Old archive suffix (normally "a").
12594 # Shared library suffix (normally ".so").
12595 shrext_cmds='$shrext_cmds'
12597 # Executable file suffix (normally "").
12600 # Additional compiler flags for building library objects.
12601 pic_flag=$lt_lt_prog_compiler_pic_CXX
12604 # What is the maximum length of a command?
12605 max_cmd_len=$lt_cv_sys_max_cmd_len
12607 # Does compiler simultaneously support -c and -o options?
12608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12610 # Must we lock files when doing compilation?
12611 need_locks=$lt_need_locks
12613 # Do we need the lib prefix for modules?
12614 need_lib_prefix=$need_lib_prefix
12616 # Do we need a version for libraries?
12617 need_version=$need_version
12619 # Whether dlopen is supported.
12620 dlopen_support=$enable_dlopen
12622 # Whether dlopen of programs is supported.
12623 dlopen_self=$enable_dlopen_self
12625 # Whether dlopen of statically linked programs is supported.
12626 dlopen_self_static=$enable_dlopen_self_static
12628 # Compiler flag to prevent dynamic linking.
12629 link_static_flag=$lt_lt_prog_compiler_static_CXX
12631 # Compiler flag to turn off builtin functions.
12632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12634 # Compiler flag to allow reflexive dlopens.
12635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12637 # Compiler flag to generate shared objects directly from archives.
12638 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12640 # Compiler flag to generate thread-safe objects.
12641 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12643 # Library versioning type.
12644 version_type=$version_type
12646 # Format of library name prefix.
12647 libname_spec=$lt_libname_spec
12649 # List of archive names. First name is the real one, the rest are links.
12650 # The last name is the one that the linker finds with -lNAME.
12651 library_names_spec=$lt_library_names_spec
12653 # The coded name of the library, if different from the real name.
12654 soname_spec=$lt_soname_spec
12656 # Commands used to build and install an old-style archive.
12658 old_archive_cmds=$lt_old_archive_cmds_CXX
12659 old_postinstall_cmds=$lt_old_postinstall_cmds
12660 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12662 # Create an old-style archive from a shared archive.
12663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12665 # Create a temporary old-style archive to link instead of a shared archive.
12666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12668 # Commands used to build and install a shared archive.
12669 archive_cmds=$lt_archive_cmds_CXX
12670 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12671 postinstall_cmds=$lt_postinstall_cmds
12672 postuninstall_cmds=$lt_postuninstall_cmds
12674 # Commands used to build a loadable module (assumed same as above if empty)
12675 module_cmds=$lt_module_cmds_CXX
12676 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12678 # Commands to strip libraries.
12679 old_striplib=$lt_old_striplib
12680 striplib=$lt_striplib
12682 # Dependencies to place before the objects being linked to create a
12684 predep_objects=$lt_predep_objects_CXX
12686 # Dependencies to place after the objects being linked to create a
12688 postdep_objects=$lt_postdep_objects_CXX
12690 # Dependencies to place before the objects being linked to create a
12692 predeps=$lt_predeps_CXX
12694 # Dependencies to place after the objects being linked to create a
12696 postdeps=$lt_postdeps_CXX
12698 # The library search path used internally by the compiler when linking
12699 # a shared library.
12700 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12702 # Method to check whether dependent libraries are shared objects.
12703 deplibs_check_method=$lt_deplibs_check_method
12705 # Command to use when deplibs_check_method == file_magic.
12706 file_magic_cmd=$lt_file_magic_cmd
12708 # Flag that allows shared libraries with undefined symbols to be built.
12709 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12711 # Flag that forces no undefined symbols.
12712 no_undefined_flag=$lt_no_undefined_flag_CXX
12714 # Commands used to finish a libtool library installation in a directory.
12715 finish_cmds=$lt_finish_cmds
12717 # Same as above, but a single script fragment to be evaled but not shown.
12718 finish_eval=$lt_finish_eval
12720 # Take the output of nm and produce a listing of raw symbols and C names.
12721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12723 # Transform the output of nm in a proper C declaration
12724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12726 # Transform the output of nm in a C name address pair
12727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12729 # This is the shared library runtime path variable.
12730 runpath_var=$runpath_var
12732 # This is the shared library path variable.
12733 shlibpath_var=$shlibpath_var
12735 # Is shlibpath searched before the hard-coded library search path?
12736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12738 # How to hardcode a shared library path into an executable.
12739 hardcode_action=$hardcode_action_CXX
12741 # Whether we should hardcode library paths into libraries.
12742 hardcode_into_libs=$hardcode_into_libs
12744 # Flag to hardcode \$libdir into a binary during linking.
12745 # This must work even if \$libdir does not exist.
12746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12748 # If ld is used when linking, flag to hardcode \$libdir into
12749 # a binary during linking. This must work even if \$libdir does
12751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12753 # Whether we need a single -rpath flag with a separated argument.
12754 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12756 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12757 # resulting binary.
12758 hardcode_direct=$hardcode_direct_CXX
12760 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12761 # resulting binary.
12762 hardcode_minus_L=$hardcode_minus_L_CXX
12764 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12765 # the resulting binary.
12766 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12768 # Set to yes if building a shared library automatically hardcodes DIR into the library
12769 # and all subsequent libraries and executables linked against it.
12770 hardcode_automatic=$hardcode_automatic_CXX
12772 # Variables whose values should be saved in libtool wrapper scripts and
12773 # restored at relink time.
12774 variables_saved_for_relink="$variables_saved_for_relink"
12776 # Whether libtool must link a program against all its dependency libraries.
12777 link_all_deplibs=$link_all_deplibs_CXX
12779 # Compile-time system search path for libraries
12780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12782 # Run-time system search path for libraries
12783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12785 # Fix the shell variable \$srcfile for the compiler.
12786 fix_srcfile_path="$fix_srcfile_path_CXX"
12788 # Set to yes if exported symbols are required.
12789 always_export_symbols=$always_export_symbols_CXX
12791 # The commands to list exported symbols.
12792 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12794 # The commands to extract the exported symbol list from a shared archive.
12795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12797 # Symbols that should not be listed in the preloaded symbols.
12798 exclude_expsyms=$lt_exclude_expsyms_CXX
12800 # Symbols that must always be exported.
12801 include_expsyms=$lt_include_expsyms_CXX
12803 # ### END LIBTOOL TAG CONFIG: $tagname
12809 # If there is no Makefile yet, we rely on a make rule to execute
12810 # `config.status --recheck' to rerun these tests and create the
12811 # libtool script then.
12812 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12813 if test -f "$ltmain_in"; then
12814 test -f Makefile && make "$ltmain"
12820 ac_cpp='$CPP $CPPFLAGS'
12821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829 with_gnu_ldcxx=$with_gnu_ld
12830 with_gnu_ld=$lt_save_with_gnu_ld
12831 lt_cv_path_LDCXX=$lt_cv_path_LD
12832 lt_cv_path_LD=$lt_save_path_LD
12833 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12834 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12842 if test -n "$F77" && test "X$F77" != "Xno"; then
12845 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12846 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12850 archive_cmds_need_lc_F77=no
12851 allow_undefined_flag_F77=
12852 always_export_symbols_F77=no
12853 archive_expsym_cmds_F77=
12854 export_dynamic_flag_spec_F77=
12855 hardcode_direct_F77=no
12856 hardcode_libdir_flag_spec_F77=
12857 hardcode_libdir_flag_spec_ld_F77=
12858 hardcode_libdir_separator_F77=
12859 hardcode_minus_L_F77=no
12860 hardcode_automatic_F77=no
12862 module_expsym_cmds_F77=
12863 link_all_deplibs_F77=unknown
12864 old_archive_cmds_F77=$old_archive_cmds
12865 no_undefined_flag_F77=
12866 whole_archive_flag_spec_F77=
12867 enable_shared_with_static_runtimes_F77=no
12869 # Source file extension for f77 test sources.
12872 # Object file extension for compiled f77 test sources.
12876 # Code to be used in simple compile tests
12877 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12879 # Code to be used in simple link tests
12880 lt_simple_link_test_code=" program t\n end\n"
12882 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12884 # If no C compiler was specified, use CC.
12887 # If no C compiler flags were specified, use CFLAGS.
12888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12890 # Allow CC to be a program name with arguments.
12894 # save warnings/boilerplate of simple test code
12895 ac_outfile=conftest.$ac_objext
12896 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12898 _lt_compiler_boilerplate=`cat conftest.err`
12901 ac_outfile=conftest.$ac_objext
12902 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12904 _lt_linker_boilerplate=`cat conftest.err`
12908 # Allow CC to be a program name with arguments.
12913 for cc_temp in $compiler""; do
12915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12924 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12925 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12926 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12927 echo "${ECHO_T}$can_build_shared" >&6
12929 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12930 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12931 test "$can_build_shared" = "no" && enable_shared=no
12933 # On AIX, shared libraries and static libraries use the same namespace, and
12934 # are all built from PIC.
12937 test "$enable_shared" = yes && enable_static=no
12938 if test -n "$RANLIB"; then
12939 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12940 postinstall_cmds='$RANLIB $lib'
12944 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12945 test "$enable_shared" = yes && enable_static=no
12949 echo "$as_me:$LINENO: result: $enable_shared" >&5
12950 echo "${ECHO_T}$enable_shared" >&6
12952 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12953 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12954 # Make sure either enable_shared or enable_static is yes.
12955 test "$enable_shared" = yes || enable_static=yes
12956 echo "$as_me:$LINENO: result: $enable_static" >&5
12957 echo "${ECHO_T}$enable_static" >&6
12962 lt_prog_compiler_wl_F77=
12963 lt_prog_compiler_pic_F77=
12964 lt_prog_compiler_static_F77=
12966 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12967 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12969 if test "$GCC" = yes; then
12970 lt_prog_compiler_wl_F77='-Wl,'
12971 lt_prog_compiler_static_F77='-static'
12975 # All AIX code is PIC.
12976 if test "$host_cpu" = ia64; then
12977 # AIX 5 now supports IA64 processor
12978 lt_prog_compiler_static_F77='-Bstatic'
12983 # FIXME: we need at least 68020 code to build shared libraries, but
12984 # adding the `-m68020' flag to GCC prevents building anything better,
12986 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12989 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12990 # PIC is the default for these OSes.
12993 mingw* | pw32* | os2*)
12994 # This hack is so that the source file can tell whether it is being
12995 # built for inclusion in a dll (and should export symbols for example).
12996 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12999 darwin* | rhapsody*)
13000 # PIC is the default on this platform
13001 # Common symbols not allowed in MH_DYLIB files
13002 lt_prog_compiler_pic_F77='-fno-common'
13006 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13007 # Instead, we relocate shared libraries at runtime.
13011 # Just because we use GCC doesn't mean we suddenly get shared libraries
13012 # on systems that don't support them.
13013 lt_prog_compiler_can_build_shared_F77=no
13018 if test -d /usr/nec; then
13019 lt_prog_compiler_pic_F77=-Kconform_pic
13024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13025 # not for PA HP-UX.
13031 lt_prog_compiler_pic_F77='-fPIC'
13037 lt_prog_compiler_pic_F77='-fPIC'
13041 # PORTME Check for flag to pass linker flags through the system compiler.
13044 lt_prog_compiler_wl_F77='-Wl,'
13045 if test "$host_cpu" = ia64; then
13046 # AIX 5 now supports IA64 processor
13047 lt_prog_compiler_static_F77='-Bstatic'
13049 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13053 # PIC is the default on this platform
13054 # Common symbols not allowed in MH_DYLIB files
13055 case $cc_basename in
13057 lt_prog_compiler_pic_F77='-qnocommon'
13058 lt_prog_compiler_wl_F77='-Wl,'
13063 mingw* | pw32* | os2*)
13064 # This hack is so that the source file can tell whether it is being
13065 # built for inclusion in a dll (and should export symbols for example).
13066 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13069 hpux9* | hpux10* | hpux11*)
13070 lt_prog_compiler_wl_F77='-Wl,'
13071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13072 # not for PA HP-UX.
13078 lt_prog_compiler_pic_F77='+Z'
13081 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13082 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13085 irix5* | irix6* | nonstopux*)
13086 lt_prog_compiler_wl_F77='-Wl,'
13087 # PIC (with -KPIC) is the default.
13088 lt_prog_compiler_static_F77='-non_shared'
13092 lt_prog_compiler_pic_F77='-KPIC'
13093 lt_prog_compiler_static_F77='-Bstatic'
13097 case $cc_basename in
13099 lt_prog_compiler_wl_F77='-Wl,'
13100 lt_prog_compiler_pic_F77='-KPIC'
13101 lt_prog_compiler_static_F77='-static'
13103 pgcc* | pgf77* | pgf90* | pgf95*)
13104 # Portland Group compilers (*not* the Pentium gcc compiler,
13105 # which looks to be a dead project)
13106 lt_prog_compiler_wl_F77='-Wl,'
13107 lt_prog_compiler_pic_F77='-fpic'
13108 lt_prog_compiler_static_F77='-Bstatic'
13111 lt_prog_compiler_wl_F77='-Wl,'
13112 # All Alpha code is PIC.
13113 lt_prog_compiler_static_F77='-non_shared'
13118 osf3* | osf4* | osf5*)
13119 lt_prog_compiler_wl_F77='-Wl,'
13120 # All OSF/1 code is PIC.
13121 lt_prog_compiler_static_F77='-non_shared'
13125 lt_prog_compiler_pic_F77='-KPIC'
13126 lt_prog_compiler_static_F77='-Bstatic'
13127 case $cc_basename in
13128 f77* | f90* | f95*)
13129 lt_prog_compiler_wl_F77='-Qoption ld ';;
13131 lt_prog_compiler_wl_F77='-Wl,';;
13136 lt_prog_compiler_wl_F77='-Qoption ld '
13137 lt_prog_compiler_pic_F77='-PIC'
13138 lt_prog_compiler_static_F77='-Bstatic'
13141 sysv4 | sysv4.2uw2* | sysv4.3*)
13142 lt_prog_compiler_wl_F77='-Wl,'
13143 lt_prog_compiler_pic_F77='-KPIC'
13144 lt_prog_compiler_static_F77='-Bstatic'
13148 if test -d /usr/nec ;then
13149 lt_prog_compiler_pic_F77='-Kconform_pic'
13150 lt_prog_compiler_static_F77='-Bstatic'
13154 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13155 lt_prog_compiler_wl_F77='-Wl,'
13156 lt_prog_compiler_pic_F77='-KPIC'
13157 lt_prog_compiler_static_F77='-Bstatic'
13161 lt_prog_compiler_wl_F77='-Wl,'
13162 lt_prog_compiler_can_build_shared_F77=no
13166 lt_prog_compiler_pic_F77='-pic'
13167 lt_prog_compiler_static_F77='-Bstatic'
13171 lt_prog_compiler_can_build_shared_F77=no
13176 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13177 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13180 # Check to make sure the PIC flag actually works.
13182 if test -n "$lt_prog_compiler_pic_F77"; then
13184 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13185 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13186 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 lt_prog_compiler_pic_works_F77=no
13190 ac_outfile=conftest.$ac_objext
13191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13192 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13193 # Insert the option either (1) after the last *FLAGS variable, or
13194 # (2) before a word containing "conftest.", or (3) at the end.
13195 # Note that $ac_compile itself does not contain backslashes and begins
13196 # with a dollar sign (not a hyphen), so the echo should work correctly.
13197 # The option is referenced via a variable to avoid confusing sed.
13198 lt_compile=`echo "$ac_compile" | $SED \
13199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13201 -e 's:$: $lt_compiler_flag:'`
13202 (eval echo "\"\$as_me:13202: $lt_compile\"" >&5)
13203 (eval "$lt_compile" 2>conftest.err)
13205 cat conftest.err >&5
13206 echo "$as_me:13206: \$? = $ac_status" >&5
13207 if (exit $ac_status) && test -s "$ac_outfile"; then
13208 # The compiler can only warn and ignore the option if not recognized
13209 # So say no if there are warnings other than the usual output.
13210 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13213 lt_prog_compiler_pic_works_F77=yes
13219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13220 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13222 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13223 case $lt_prog_compiler_pic_F77 in
13225 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13228 lt_prog_compiler_pic_F77=
13229 lt_prog_compiler_can_build_shared_F77=no
13234 # For platforms which do not support PIC, -DPIC is meaningless:
13236 lt_prog_compiler_pic_F77=
13239 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13244 # Check to make sure the static flag actually works.
13246 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13247 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13248 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13249 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 lt_prog_compiler_static_works_F77=no
13253 save_LDFLAGS="$LDFLAGS"
13254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13255 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13257 # The linker can only warn and ignore the option if not recognized
13258 # So say no if there are warnings
13259 if test -s conftest.err; then
13260 # Append any errors to the config.log.
13261 cat conftest.err 1>&5
13262 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13264 if diff conftest.exp conftest.er2 >/dev/null; then
13265 lt_prog_compiler_static_works_F77=yes
13268 lt_prog_compiler_static_works_F77=yes
13272 LDFLAGS="$save_LDFLAGS"
13275 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13276 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13278 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13281 lt_prog_compiler_static_F77=
13285 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13287 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 lt_cv_prog_compiler_c_o_F77=no
13291 $rm -r conftest 2>/dev/null
13295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13297 lt_compiler_flag="-o out/conftest2.$ac_objext"
13298 # Insert the option either (1) after the last *FLAGS variable, or
13299 # (2) before a word containing "conftest.", or (3) at the end.
13300 # Note that $ac_compile itself does not contain backslashes and begins
13301 # with a dollar sign (not a hyphen), so the echo should work correctly.
13302 lt_compile=`echo "$ac_compile" | $SED \
13303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13305 -e 's:$: $lt_compiler_flag:'`
13306 (eval echo "\"\$as_me:13306: $lt_compile\"" >&5)
13307 (eval "$lt_compile" 2>out/conftest.err)
13309 cat out/conftest.err >&5
13310 echo "$as_me:13310: \$? = $ac_status" >&5
13311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13313 # The compiler can only warn and ignore the option if not recognized
13314 # So say no if there are warnings
13315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13318 lt_cv_prog_compiler_c_o_F77=yes
13323 # SGI C++ compiler will create directory out/ii_files/ for
13324 # template instantiation
13325 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13326 $rm out/* && rmdir out
13332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13336 hard_links="nottested"
13337 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13338 # do not overwrite the value of need_locks provided by the user
13339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13345 ln conftest.a conftest.b 2>&5 || hard_links=no
13346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13347 echo "$as_me:$LINENO: result: $hard_links" >&5
13348 echo "${ECHO_T}$hard_links" >&6
13349 if test "$hard_links" = no; then
13350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13362 allow_undefined_flag_F77=
13363 enable_shared_with_static_runtimes_F77=no
13365 archive_expsym_cmds_F77=
13366 old_archive_From_new_cmds_F77=
13367 old_archive_from_expsyms_cmds_F77=
13368 export_dynamic_flag_spec_F77=
13369 whole_archive_flag_spec_F77=
13370 thread_safe_flag_spec_F77=
13371 hardcode_libdir_flag_spec_F77=
13372 hardcode_libdir_flag_spec_ld_F77=
13373 hardcode_libdir_separator_F77=
13374 hardcode_direct_F77=no
13375 hardcode_minus_L_F77=no
13376 hardcode_shlibpath_var_F77=unsupported
13377 link_all_deplibs_F77=unknown
13378 hardcode_automatic_F77=no
13380 module_expsym_cmds_F77=
13381 always_export_symbols_F77=no
13382 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13383 # include_expsyms should be a list of space-separated symbols to be *always*
13384 # included in the symbol list
13385 include_expsyms_F77=
13386 # exclude_expsyms can be an extended regexp of symbols to exclude
13387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13389 # as well as any symbol that contains `d'.
13390 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13392 # platforms (ab)use it in PIC code, but their linkers get confused if
13393 # the symbol is explicitly referenced. Since portable code cannot
13394 # rely on this symbol name, it's probably fine to never include it in
13395 # preloaded symbol tables.
13396 extract_expsyms_cmds=
13397 # Just being paranoid about ensuring that cc_basename is set.
13398 for cc_temp in $compiler""; do
13400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13409 cygwin* | mingw* | pw32*)
13410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13411 # When not using gcc, we currently assume that we are using
13412 # Microsoft Visual C++.
13413 if test "$GCC" != yes; then
13418 # we just hope/assume this is gcc and not c89 (= MSVC++)
13427 if test "$with_gnu_ld" = yes; then
13428 # If archive_cmds runs LD, not CC, wlarc should be empty
13431 # Set some defaults for GNU ld with shared library support. These
13432 # are reset later if shared libraries are not supported. Putting them
13433 # here allows them to be overridden if necessary.
13434 runpath_var=LD_RUN_PATH
13435 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13436 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13437 # ancient GNU ld didn't support --whole-archive et. al.
13438 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13439 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13441 whole_archive_flag_spec_F77=
13443 supports_anon_versioning=no
13444 case `$LD -v 2>/dev/null` in
13445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13448 *\ 2.11.*) ;; # other 2.11 versions
13449 *) supports_anon_versioning=yes ;;
13452 # See if GNU ld supports shared libraries.
13454 aix3* | aix4* | aix5*)
13455 # On AIX/PPC, the GNU linker is very broken
13456 if test "$host_cpu" != ia64; then
13460 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13461 *** to be unable to reliably create shared libraries on AIX.
13462 *** Therefore, libtool is disabling shared libraries support. If you
13463 *** really care for shared libraries, you may want to modify your PATH
13464 *** so that a non-GNU linker is found, and then restart.
13471 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)'
13472 hardcode_libdir_flag_spec_F77='-L$libdir'
13473 hardcode_minus_L_F77=yes
13475 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13476 # that the semantics of dynamic libraries on AmigaOS, at least up
13477 # to version 4, is to share data among multiple programs linked
13478 # with the same dynamic library. Since this doesn't match the
13479 # behavior of shared libraries on other platforms, we can't use
13485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13486 allow_undefined_flag_F77=unsupported
13487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13488 # support --undefined. This deserves some investigation. FIXME
13489 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13495 cygwin* | mingw* | pw32*)
13496 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13497 # as there is no search path for DLLs.
13498 hardcode_libdir_flag_spec_F77='-L$libdir'
13499 allow_undefined_flag_F77=unsupported
13500 always_export_symbols_F77=no
13501 enable_shared_with_static_runtimes_F77=yes
13502 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13504 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13505 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13506 # If the export-symbols file already is a .def file (1st line
13507 # is EXPORTS), use it as is; otherwise, prepend...
13508 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13509 cp $export_symbols $output_objdir/$soname.def;
13511 echo EXPORTS > $output_objdir/$soname.def;
13512 cat $export_symbols >> $output_objdir/$soname.def;
13514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13521 hardcode_direct_F77=no
13522 hardcode_shlibpath_var_F77=no
13523 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13524 export_dynamic_flag_spec_F77='${wl}-E'
13525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13526 # Instead, shared libraries are loaded at an image base (0x10000000 by
13527 # default) and relocated if they conflict, which is a slow very memory
13528 # consuming and fragmenting process. To avoid this, we pick a random,
13529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13530 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13531 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'
13532 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'
13536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13538 case $cc_basename,$host_cpu in
13539 pgcc*) # Portland Group C compiler
13540 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'
13541 tmp_addflag=' $pic_flag'
13543 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13544 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'
13545 tmp_addflag=' $pic_flag -Mnomain' ;;
13546 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13547 tmp_addflag=' -i_dynamic' ;;
13548 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13549 tmp_addflag=' -i_dynamic -nofor_main' ;;
13550 ifc* | ifort*) # Intel Fortran compiler
13551 tmp_addflag=' -nofor_main' ;;
13553 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13555 if test $supports_anon_versioning = yes; then
13556 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13558 $echo "local: *; };" >> $output_objdir/$libname.ver~
13559 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13561 link_all_deplibs_F77=no
13567 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13569 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13572 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13573 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13578 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13582 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13583 *** create shared libraries on Solaris systems. Therefore, libtool
13584 *** is disabling shared libraries support. We urge you to upgrade GNU
13585 *** binutils to release 2.9.1 or newer. Another option is to modify
13586 *** your PATH or compiler configuration so that the native linker is
13587 *** used, and then restart.
13590 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13591 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13592 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13599 case `$LD -v 2>&1` in
13600 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13604 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13605 *** reliably create shared libraries on SCO systems. Therefore, libtool
13606 *** is disabling shared libraries support. We urge you to upgrade GNU
13607 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13608 *** your PATH or compiler configuration so that the native linker is
13609 *** used, and then restart.
13614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13616 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13617 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13626 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13628 hardcode_direct_F77=yes
13629 hardcode_shlibpath_var_F77=no
13633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13642 if test "$ld_shlibs_F77" = no; then
13644 hardcode_libdir_flag_spec_F77=
13645 export_dynamic_flag_spec_F77=
13646 whole_archive_flag_spec_F77=
13649 # PORTME fill in a description of your system's linker (not GNU ld)
13652 allow_undefined_flag_F77=unsupported
13653 always_export_symbols_F77=yes
13654 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'
13655 # Note: this linker hardcodes the directories in LIBPATH if there
13656 # are no directories specified by -L.
13657 hardcode_minus_L_F77=yes
13658 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13659 # Neither direct hardcoding nor static linking is supported with a
13661 hardcode_direct_F77=unsupported
13666 if test "$host_cpu" = ia64; then
13667 # On IA64, the linker does run time linking by default, so we don't
13668 # have to do anything special.
13669 aix_use_runtimelinking=no
13670 exp_sym_flag='-Bexport'
13673 # If we're using GNU nm, then we don't want the "-C" option.
13674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13675 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13676 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'
13678 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'
13680 aix_use_runtimelinking=no
13682 # Test if we are trying to use run time linking or normal
13683 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13684 # need to do runtime linking.
13685 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13686 for ld_flag in $LDFLAGS; do
13687 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13688 aix_use_runtimelinking=yes
13695 exp_sym_flag='-bexport'
13696 no_entry_flag='-bnoentry'
13699 # When large executables or shared objects are built, AIX ld can
13700 # have problems creating the table of contents. If linking a library
13701 # or program results in "error TOC overflow" add -mminimal-toc to
13702 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13703 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13705 archive_cmds_F77=''
13706 hardcode_direct_F77=yes
13707 hardcode_libdir_separator_F77=':'
13708 link_all_deplibs_F77=yes
13710 if test "$GCC" = yes; then
13711 case $host_os in aix4.[012]|aix4.[012].*)
13712 # We only want to do this on AIX 4.2 and lower, the check
13713 # below for broken collect2 doesn't work under 4.3+
13714 collect2name=`${CC} -print-prog-name=collect2`
13715 if test -f "$collect2name" && \
13716 strings "$collect2name" | grep resolve_lib_name >/dev/null
13718 # We have reworked collect2
13719 hardcode_direct_F77=yes
13721 # We have old collect2
13722 hardcode_direct_F77=unsupported
13723 # It fails to find uninstalled libraries when the uninstalled
13724 # path is not listed in the libpath. Setting hardcode_minus_L
13725 # to unsupported forces relinking
13726 hardcode_minus_L_F77=yes
13727 hardcode_libdir_flag_spec_F77='-L$libdir'
13728 hardcode_libdir_separator_F77=
13732 shared_flag='-shared'
13733 if test "$aix_use_runtimelinking" = yes; then
13734 shared_flag="$shared_flag "'${wl}-G'
13738 if test "$host_cpu" = ia64; then
13739 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13740 # chokes on -Wl,-G. The following line is correct:
13743 if test "$aix_use_runtimelinking" = yes; then
13744 shared_flag='${wl}-G'
13746 shared_flag='${wl}-bM:SRE'
13751 # It seems that -bexpall does not export symbols beginning with
13752 # underscore (_), so it is better to generate a list of symbols to export.
13753 always_export_symbols_F77=yes
13754 if test "$aix_use_runtimelinking" = yes; then
13755 # Warning - without using the other runtime loading flags (-brtl),
13756 # -berok will link without error, but may produce a broken library.
13757 allow_undefined_flag_F77='-berok'
13758 # Determine the default libpath from the value encoded in an empty executable.
13759 cat >conftest.$ac_ext <<_ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>conftest.er1
13768 grep -v '^ *+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13788 # Check for a 64-bit object if we didn't find anything.
13789 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; }
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13796 rm -f conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
13798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13800 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13801 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"
13803 if test "$host_cpu" = ia64; then
13804 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13805 allow_undefined_flag_F77="-z nodefs"
13806 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"
13808 # Determine the default libpath from the value encoded in an empty executable.
13809 cat >conftest.$ac_ext <<_ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13838 # Check for a 64-bit object if we didn't find anything.
13839 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; }
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13846 rm -f conftest.err conftest.$ac_objext \
13847 conftest$ac_exeext conftest.$ac_ext
13848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13850 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13851 # Warning - without using the other run time loading flags,
13852 # -berok will link without error, but may produce a broken library.
13853 no_undefined_flag_F77=' ${wl}-bernotok'
13854 allow_undefined_flag_F77=' ${wl}-berok'
13855 # Exported symbols can be pulled into shared objects from archives
13856 whole_archive_flag_spec_F77='$convenience'
13857 archive_cmds_need_lc_F77=yes
13858 # This is similar to how AIX traditionally builds its shared libraries.
13859 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'
13865 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)'
13866 hardcode_libdir_flag_spec_F77='-L$libdir'
13867 hardcode_minus_L_F77=yes
13868 # see comment about different semantics on the GNU ld section
13873 export_dynamic_flag_spec_F77=-rdynamic
13876 cygwin* | mingw* | pw32*)
13877 # When not using gcc, we currently assume that we are using
13878 # Microsoft Visual C++.
13879 # hardcode_libdir_flag_spec is actually meaningless, as there is
13880 # no search path for DLLs.
13881 hardcode_libdir_flag_spec_F77=' '
13882 allow_undefined_flag_F77=unsupported
13883 # Tell ltmain to make .lib files, not .a files.
13885 # Tell ltmain to make .dll files, not .so files.
13887 # FIXME: Setting linknames here is a bad hack.
13888 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13889 # The linker will automatically build a .lib file if we build a DLL.
13890 old_archive_From_new_cmds_F77='true'
13891 # FIXME: Should let the user specify the lib program.
13892 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13893 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13894 enable_shared_with_static_runtimes_F77=yes
13897 darwin* | rhapsody*)
13899 rhapsody* | darwin1.[012])
13900 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13903 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13904 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13906 case ${MACOSX_DEPLOYMENT_TARGET} in
13908 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13911 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13917 archive_cmds_need_lc_F77=no
13918 hardcode_direct_F77=no
13919 hardcode_automatic_F77=yes
13920 hardcode_shlibpath_var_F77=unsupported
13921 whole_archive_flag_spec_F77=''
13922 link_all_deplibs_F77=yes
13923 if test "$GCC" = yes ; then
13924 output_verbose_link_cmd='echo'
13925 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13926 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13927 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13928 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}'
13929 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 case $cc_basename in
13933 output_verbose_link_cmd='echo'
13934 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13935 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13936 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13937 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}'
13938 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}'
13948 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13949 hardcode_libdir_flag_spec_F77='-L$libdir'
13950 hardcode_shlibpath_var_F77=no
13957 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13958 # support. Future versions do this automatically, but an explicit c++rt0.o
13959 # does not break anything, and helps significantly (at the cost of a little
13962 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13963 hardcode_libdir_flag_spec_F77='-R$libdir'
13964 hardcode_direct_F77=yes
13965 hardcode_shlibpath_var_F77=no
13968 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13970 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13971 hardcode_direct_F77=yes
13972 hardcode_minus_L_F77=yes
13973 hardcode_shlibpath_var_F77=no
13976 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13977 freebsd* | dragonfly*)
13978 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13979 hardcode_libdir_flag_spec_F77='-R$libdir'
13980 hardcode_direct_F77=yes
13981 hardcode_shlibpath_var_F77=no
13984 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13986 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13987 hardcode_libdir_flag_spec_F77='-R$libdir'
13988 hardcode_direct_F77=yes
13989 hardcode_shlibpath_var_F77=no
13990 link_all_deplibs_F77=no
13994 if test "$GCC" = yes; then
13995 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'
13997 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'
13999 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14000 hardcode_libdir_separator_F77=:
14001 hardcode_direct_F77=yes
14003 # hardcode_minus_L: Not really in the search PATH,
14004 # but as the default location of the library.
14005 hardcode_minus_L_F77=yes
14006 export_dynamic_flag_spec_F77='${wl}-E'
14010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14011 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14013 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14015 if test "$with_gnu_ld" = no; then
14016 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14017 hardcode_libdir_separator_F77=:
14019 hardcode_direct_F77=yes
14020 export_dynamic_flag_spec_F77='${wl}-E'
14022 # hardcode_minus_L: Not really in the search PATH,
14023 # but as the default location of the library.
14024 hardcode_minus_L_F77=yes
14029 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14032 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14035 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14038 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14044 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14047 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14050 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14054 if test "$with_gnu_ld" = no; then
14055 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14056 hardcode_libdir_separator_F77=:
14060 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14061 hardcode_direct_F77=no
14062 hardcode_shlibpath_var_F77=no
14065 hardcode_direct_F77=yes
14066 export_dynamic_flag_spec_F77='${wl}-E'
14068 # hardcode_minus_L: Not really in the search PATH,
14069 # but as the default location of the library.
14070 hardcode_minus_L_F77=yes
14076 irix5* | irix6* | nonstopux*)
14077 if test "$GCC" = yes; then
14078 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'
14080 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'
14081 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14084 hardcode_libdir_separator_F77=:
14085 link_all_deplibs_F77=yes
14088 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14092 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14094 hardcode_libdir_flag_spec_F77='-R$libdir'
14095 hardcode_direct_F77=yes
14096 hardcode_shlibpath_var_F77=no
14100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14101 hardcode_direct_F77=yes
14102 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14103 hardcode_libdir_separator_F77=:
14104 hardcode_shlibpath_var_F77=no
14108 hardcode_direct_F77=yes
14109 hardcode_shlibpath_var_F77=no
14110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14111 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14112 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14113 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14114 export_dynamic_flag_spec_F77='${wl}-E'
14117 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14118 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14119 hardcode_libdir_flag_spec_F77='-R$libdir'
14122 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14123 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14130 hardcode_libdir_flag_spec_F77='-L$libdir'
14131 hardcode_minus_L_F77=yes
14132 allow_undefined_flag_F77=unsupported
14133 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'
14134 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14138 if test "$GCC" = yes; then
14139 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14140 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'
14142 allow_undefined_flag_F77=' -expect_unresolved \*'
14143 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'
14145 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14146 hardcode_libdir_separator_F77=:
14149 osf4* | osf5*) # as osf3* with the addition of -msym flag
14150 if test "$GCC" = yes; then
14151 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14152 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'
14153 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14155 allow_undefined_flag_F77=' -expect_unresolved \*'
14156 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'
14157 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~
14158 $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'
14160 # Both c and cxx compiler support -rpath directly
14161 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14163 hardcode_libdir_separator_F77=:
14167 no_undefined_flag_F77=' -z text'
14168 if test "$GCC" = yes; then
14170 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14171 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14172 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14175 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14176 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14179 hardcode_libdir_flag_spec_F77='-R$libdir'
14180 hardcode_shlibpath_var_F77=no
14182 solaris2.[0-5] | solaris2.[0-5].*) ;;
14184 # The compiler driver will combine linker options so we
14185 # cannot just pass the convience library names through
14186 # without $wl, iff we do not link with $LD.
14187 # Luckily, gcc supports the same syntax we need for Sun Studio.
14188 # Supported since Solaris 2.6 (maybe 2.5.1?)
14191 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14193 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' ;;
14196 link_all_deplibs_F77=yes
14200 if test "x$host_vendor" = xsequent; then
14201 # Use $CC to link under sequent, because it throws in some extra .o
14202 # files that make .init and .fini sections work.
14203 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14205 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14207 hardcode_libdir_flag_spec_F77='-L$libdir'
14208 hardcode_direct_F77=yes
14209 hardcode_minus_L_F77=yes
14210 hardcode_shlibpath_var_F77=no
14214 case $host_vendor in
14216 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217 hardcode_direct_F77=yes # is this really true???
14220 ## LD is ld it makes a PLAMLIB
14221 ## CC just makes a GrossModule.
14222 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14223 reload_cmds_F77='$CC -r -o $output$reload_objs'
14224 hardcode_direct_F77=no
14227 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14231 runpath_var='LD_RUN_PATH'
14232 hardcode_shlibpath_var_F77=no
14236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237 hardcode_shlibpath_var_F77=no
14238 export_dynamic_flag_spec_F77='-Bexport'
14242 if test -d /usr/nec; then
14243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244 hardcode_shlibpath_var_F77=no
14245 runpath_var=LD_RUN_PATH
14246 hardcode_runpath_var=yes
14251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14252 no_undefined_flag_F77='${wl}-z,text'
14253 archive_cmds_need_lc_F77=no
14254 hardcode_shlibpath_var_F77=no
14255 runpath_var='LD_RUN_PATH'
14257 if test "$GCC" = yes; then
14258 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14259 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14261 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14262 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14266 sysv5* | sco3.2v5* | sco5v6*)
14267 # Note: We can NOT use -z defs as we might desire, because we do not
14268 # link with -lc, and that would cause any symbols used from libc to
14269 # always be unresolved, which means just about no library would
14270 # ever link correctly. If we're not using GNU ld we use -z text
14271 # though, which does catch some bad symbols but isn't as heavy-handed
14273 no_undefined_flag_F77='${wl}-z,text'
14274 allow_undefined_flag_F77='${wl}-z,nodefs'
14275 archive_cmds_need_lc_F77=no
14276 hardcode_shlibpath_var_F77=no
14277 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14278 hardcode_libdir_separator_F77=':'
14279 link_all_deplibs_F77=yes
14280 export_dynamic_flag_spec_F77='${wl}-Bexport'
14281 runpath_var='LD_RUN_PATH'
14283 if test "$GCC" = yes; then
14284 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14285 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14287 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14288 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14294 hardcode_libdir_flag_spec_F77='-L$libdir'
14295 hardcode_shlibpath_var_F77=no
14304 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14305 echo "${ECHO_T}$ld_shlibs_F77" >&6
14306 test "$ld_shlibs_F77" = no && can_build_shared=no
14309 # Do we need to explicitly link libc?
14311 case "x$archive_cmds_need_lc_F77" in
14313 # Assume -lc should be added
14314 archive_cmds_need_lc_F77=yes
14316 if test "$enable_shared" = yes && test "$GCC" = yes; then
14317 case $archive_cmds_F77 in
14319 # FIXME: we may have to deal with multi-command sequences.
14322 # Test whether the compiler implicitly links with -lc since on some
14323 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14324 # to ld, don't add -lc before -lgcc.
14325 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14326 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14331 (eval $ac_compile) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } 2>conftest.err; then
14337 libobjs=conftest.$ac_objext
14339 wl=$lt_prog_compiler_wl_F77
14340 pic_flag=$lt_prog_compiler_pic_F77
14346 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14347 allow_undefined_flag_F77=
14348 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14349 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }
14354 archive_cmds_need_lc_F77=no
14356 archive_cmds_need_lc_F77=yes
14358 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14360 cat conftest.err 1>&5
14363 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14364 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14371 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14372 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14373 library_names_spec=
14374 libname_spec='lib$name'
14378 postuninstall_cmds=
14382 shlibpath_overrides_runpath=unknown
14384 dynamic_linker="$host_os ld.so"
14385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14386 if test "$GCC" = yes; then
14387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14388 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14389 # if the path contains ";" then we assume it to be the separator
14390 # otherwise default to the standard path separator (i.e. ":") - it is
14391 # assumed that no part of a normal pathname contains ";" but that should
14392 # okay in the real world where ";" in dirpaths is itself problematic.
14393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14400 need_lib_prefix=unknown
14401 hardcode_into_libs=no
14403 # when you set need_version to no, make sure it does not cause -set_version
14404 # flags to be left without arguments
14405 need_version=unknown
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14411 shlibpath_var=LIBPATH
14413 # AIX 3 has no versioning support, so we append a major version to the name.
14414 soname_spec='${libname}${release}${shared_ext}$major'
14421 hardcode_into_libs=yes
14422 if test "$host_cpu" = ia64; then
14423 # AIX 5 supports IA64
14424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14425 shlibpath_var=LD_LIBRARY_PATH
14427 # With GCC up to 2.95.x, collect2 would create an import file
14428 # for dependence libraries. The import file would start with
14429 # the line `#! .'. This would cause the generated library to
14430 # depend on `.', always an invalid library. This was fixed in
14431 # development snapshots of GCC prior to 3.0.
14433 aix4 | aix4.[01] | aix4.[01].*)
14434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14436 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14439 can_build_shared=no
14443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14444 # soname into executable. Probably we can add versioning support to
14445 # collect2, so additional links can be useful in future.
14446 if test "$aix_use_runtimelinking" = yes; then
14447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14448 # instead of lib<name>.a to let people know that these are not
14449 # typical AIX shared libraries.
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14452 # We preserve .a as extension for shared libraries through AIX4.2
14453 # and later when we are not doing run time linking.
14454 library_names_spec='${libname}${release}.a $libname.a'
14455 soname_spec='${libname}${release}${shared_ext}$major'
14457 shlibpath_var=LIBPATH
14462 library_names_spec='$libname.ixlibrary $libname.a'
14463 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14464 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'
14468 library_names_spec='${libname}${shared_ext}'
14469 dynamic_linker="$host_os ld.so"
14470 shlibpath_var=LIBRARY_PATH
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 soname_spec='${libname}${release}${shared_ext}$major'
14478 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14481 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14482 # the default ld.so.conf also contains /usr/contrib/lib and
14483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14484 # libtool to hard-code these into programs
14487 cygwin* | mingw* | pw32*)
14488 version_type=windows
14493 case $GCC,$host_os in
14494 yes,cygwin* | yes,mingw* | yes,pw32*)
14495 library_names_spec='$libname.dll.a'
14496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14497 postinstall_cmds='base_file=`basename \${file}`~
14498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14499 dldir=$destdir/`dirname \$dlpath`~
14500 test -d \$dldir || mkdir -p \$dldir~
14501 $install_prog $dir/$dlname \$dldir/$dlname~
14502 chmod a+x \$dldir/$dlname'
14503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14504 dlpath=$dir/\$dldll~
14506 shlibpath_overrides_runpath=yes
14510 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14511 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14512 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14515 # MinGW DLLs use traditional 'lib' prefix
14516 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14518 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14519 # It is most probably a Windows format PATH printed by
14520 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14521 # path with ; separators, and with drive letters. We can handle the
14522 # drive letters (cygwin fileutils understands them), so leave them,
14523 # especially as we might pass files found there to a mingw objdump,
14524 # which wouldn't understand a cygwinified path. Ahh.
14525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14531 # pw32 DLLs use 'pw' prefix rather than 'lib'
14532 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14538 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14541 dynamic_linker='Win32 ld.exe'
14542 # FIXME: first we should search . and the directory the executable is in
14546 darwin* | rhapsody*)
14547 dynamic_linker="$host_os dyld"
14548 version_type=darwin
14551 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14552 soname_spec='${libname}${release}${major}$shared_ext'
14553 shlibpath_overrides_runpath=yes
14554 shlibpath_var=DYLD_LIBRARY_PATH
14555 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14556 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14557 if test "$GCC" = yes; then
14558 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"`
14560 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 shlibpath_overrides_runpath=no
14586 hardcode_into_libs=yes
14587 dynamic_linker='GNU ld.so'
14590 freebsd* | dragonfly*)
14591 # DragonFly does not have aout. When/if they implement a new
14592 # versioning mechanism, adjust this.
14593 if test -x /usr/bin/objformat; then
14594 objformat=`/usr/bin/objformat`
14597 freebsd[123]*) objformat=aout ;;
14598 *) objformat=elf ;;
14601 version_type=freebsd-$objformat
14602 case $version_type in
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14613 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=yes
14618 freebsd3.[01]* | freebsdelf3.[01]*)
14619 shlibpath_overrides_runpath=yes
14620 hardcode_into_libs=yes
14622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14624 shlibpath_overrides_runpath=no
14625 hardcode_into_libs=yes
14627 freebsd*) # from 4.6 on
14628 shlibpath_overrides_runpath=yes
14629 hardcode_into_libs=yes
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 shlibpath_var=LD_LIBRARY_PATH
14641 hardcode_into_libs=yes
14644 hpux9* | hpux10* | hpux11*)
14645 # Give a soname corresponding to the major version so that dld.sl refuses to
14646 # link against other versions.
14653 hardcode_into_libs=yes
14654 dynamic_linker="$host_os dld.so"
14655 shlibpath_var=LD_LIBRARY_PATH
14656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 if test "X$HPUX_IA64_MODE" = X32; then
14660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14668 hardcode_into_libs=yes
14669 dynamic_linker="$host_os dld.sl"
14670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14679 dynamic_linker="$host_os dld.sl"
14680 shlibpath_var=SHLIB_PATH
14681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14686 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14687 postinstall_cmds='chmod 555 $lib'
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 shlibpath_overrides_runpath=no
14699 hardcode_into_libs=yes
14702 irix5* | irix6* | nonstopux*)
14704 nonstopux*) version_type=nonstopux ;;
14706 if test "$lt_cv_prog_gnu_ld" = yes; then
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14717 irix5* | nonstopux*)
14718 libsuff= shlibsuff=
14721 case $LD in # libtool.m4 will add one of these switches to LD
14722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14723 libsuff= shlibsuff= libmagic=32-bit;;
14724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14725 libsuff=32 shlibsuff=N32 libmagic=N32;;
14726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14728 *) libsuff= shlibsuff= libmagic=never-match;;
14732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14733 shlibpath_overrides_runpath=no
14734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14736 hardcode_into_libs=yes
14739 # No shared lib support for Linux oldld, aout, or coff.
14740 linux*oldld* | linux*aout* | linux*coff*)
14744 # This must be Linux ELF.
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 shlibpath_overrides_runpath=no
14754 # This implies no fast_install, which is unacceptable.
14755 # Some rework will be needed to allow for fast_install
14756 # before this can be enabled.
14757 hardcode_into_libs=yes
14759 # Append ld.so.conf contents to the search path
14760 if test -f /etc/ld.so.conf; then
14761 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' ' '`
14762 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14765 # We used to test for /lib/ld.so.1 and disable shared libraries on
14766 # powerpc, because MkLinux only supported shared libraries with the
14767 # GNU dynamic linker. Since this was broken with cross compilers,
14768 # most powerpc-linux boxes support dynamic linking these days and
14769 # people can always --disable-shared, the test was removed, and we
14770 # assume the GNU/Linux dynamic linker is in use.
14771 dynamic_linker='GNU/Linux ld.so'
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14779 soname_spec='${libname}${release}${shared_ext}$major'
14780 shlibpath_var=LD_LIBRARY_PATH
14781 shlibpath_overrides_runpath=no
14782 hardcode_into_libs=yes
14783 dynamic_linker='NetBSD ld.elf_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 shlibpath_var=LD_LIBRARY_PATH
14793 shlibpath_overrides_runpath=no
14794 hardcode_into_libs=yes
14795 dynamic_linker='GNU ld.so'
14802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14805 dynamic_linker='NetBSD (a.out) ld.so'
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 dynamic_linker='NetBSD ld.elf_so'
14811 shlibpath_var=LD_LIBRARY_PATH
14812 shlibpath_overrides_runpath=yes
14813 hardcode_into_libs=yes
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 shlibpath_overrides_runpath=yes
14835 sys_lib_dlsearch_path_spec="/usr/lib"
14837 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14839 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14840 *) need_version=no ;;
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14847 openbsd2.[89] | openbsd2.[89].*)
14848 shlibpath_overrides_runpath=no
14851 shlibpath_overrides_runpath=yes
14855 shlibpath_overrides_runpath=yes
14860 libname_spec='$name'
14863 library_names_spec='$libname${shared_ext} $libname.a'
14864 dynamic_linker='OS/2 ld.exe'
14865 shlibpath_var=LIBPATH
14868 osf3* | osf4* | osf5*)
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14876 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 shlibpath_overrides_runpath=yes
14887 hardcode_into_libs=yes
14888 # ldd complains unless libraries are executable
14889 postinstall_cmds='chmod +x $lib'
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14898 if test "$with_gnu_ld" = yes; then
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 shlibpath_var=LD_LIBRARY_PATH
14909 case $host_vendor in
14911 shlibpath_overrides_runpath=no
14913 export_dynamic_flag_spec='${wl}-Blargedynsym'
14914 runpath_var=LD_RUN_PATH
14922 shlibpath_overrides_runpath=no
14923 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14929 if test -d /usr/nec ;then
14931 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14932 soname_spec='$libname${shared_ext}.$major'
14933 shlibpath_var=LD_LIBRARY_PATH
14937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14938 version_type=freebsd-elf
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 hardcode_into_libs=yes
14945 if test "$with_gnu_ld" = yes; then
14946 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14947 shlibpath_overrides_runpath=no
14949 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14950 shlibpath_overrides_runpath=yes
14953 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14957 sys_lib_dlsearch_path_spec='/usr/lib'
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14971 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14972 echo "${ECHO_T}$dynamic_linker" >&6
14973 test "$dynamic_linker" = no && can_build_shared=no
14975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14976 if test "$GCC" = yes; then
14977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14980 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14981 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14982 hardcode_action_F77=
14983 if test -n "$hardcode_libdir_flag_spec_F77" || \
14984 test -n "$runpath_var_F77" || \
14985 test "X$hardcode_automatic_F77" = "Xyes" ; then
14987 # We can hardcode non-existant directories.
14988 if test "$hardcode_direct_F77" != no &&
14989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14990 # have to relink, otherwise we might link with an installed library
14991 # when we should be linking with a yet-to-be-installed one
14992 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14993 test "$hardcode_minus_L_F77" != no; then
14994 # Linking always hardcodes the temporary library directory.
14995 hardcode_action_F77=relink
14997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14998 hardcode_action_F77=immediate
15001 # We cannot hardcode anything, or else we can only hardcode existing
15003 hardcode_action_F77=unsupported
15005 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15006 echo "${ECHO_T}$hardcode_action_F77" >&6
15008 if test "$hardcode_action_F77" = relink; then
15009 # Fast installation is not supported
15010 enable_fast_install=no
15011 elif test "$shlibpath_overrides_runpath" = yes ||
15012 test "$enable_shared" = no; then
15013 # Fast installation is not necessary
15014 enable_fast_install=needless
15018 # The else clause should only fire when bootstrapping the
15019 # libtool distribution, otherwise you forgot to ship ltmain.sh
15020 # with your package, and you will get complaints that there are
15021 # no rules to generate ltmain.sh.
15022 if test -f "$ltmain"; then
15023 # See if we are running on zsh, and set the options which allow our commands through
15024 # without removal of \ escapes.
15025 if test -n "${ZSH_VERSION+set}" ; then
15026 setopt NO_GLOB_SUBST
15028 # Now quote all the things that may contain metacharacters while being
15029 # careful not to overquote the AC_SUBSTed values. We take copies of the
15030 # variables and quote the copies for generation of the libtool script.
15031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15035 deplibs_check_method reload_flag reload_cmds need_locks \
15036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15037 lt_cv_sys_global_symbol_to_c_name_address \
15038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15039 old_postinstall_cmds old_postuninstall_cmds \
15043 lt_prog_compiler_wl_F77 \
15044 lt_prog_compiler_pic_F77 \
15045 lt_prog_compiler_static_F77 \
15046 lt_prog_compiler_no_builtin_flag_F77 \
15047 export_dynamic_flag_spec_F77 \
15048 thread_safe_flag_spec_F77 \
15049 whole_archive_flag_spec_F77 \
15050 enable_shared_with_static_runtimes_F77 \
15051 old_archive_cmds_F77 \
15052 old_archive_from_new_cmds_F77 \
15053 predep_objects_F77 \
15054 postdep_objects_F77 \
15057 compiler_lib_search_path_F77 \
15059 archive_expsym_cmds_F77 \
15060 postinstall_cmds_F77 \
15061 postuninstall_cmds_F77 \
15062 old_archive_from_expsyms_cmds_F77 \
15063 allow_undefined_flag_F77 \
15064 no_undefined_flag_F77 \
15065 export_symbols_cmds_F77 \
15066 hardcode_libdir_flag_spec_F77 \
15067 hardcode_libdir_flag_spec_ld_F77 \
15068 hardcode_libdir_separator_F77 \
15069 hardcode_automatic_F77 \
15071 module_expsym_cmds_F77 \
15072 lt_cv_prog_compiler_c_o_F77 \
15073 exclude_expsyms_F77 \
15074 include_expsyms_F77; do
15077 old_archive_cmds_F77 | \
15078 old_archive_from_new_cmds_F77 | \
15079 archive_cmds_F77 | \
15080 archive_expsym_cmds_F77 | \
15081 module_cmds_F77 | \
15082 module_expsym_cmds_F77 | \
15083 old_archive_from_expsyms_cmds_F77 | \
15084 export_symbols_cmds_F77 | \
15085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15086 postinstall_cmds | postuninstall_cmds | \
15087 old_postinstall_cmds | old_postuninstall_cmds | \
15088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15089 # Double-quote double-evaled strings.
15090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15099 *'\$0 --fallback-echo"')
15100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15106 cat <<__EOF__ >> "$cfgfile"
15107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15111 # Shell to use when invoking shell scripts.
15114 # Whether or not to build shared libraries.
15115 build_libtool_libs=$enable_shared
15117 # Whether or not to build static libraries.
15118 build_old_libs=$enable_static
15120 # Whether or not to add -lc for building shared libraries.
15121 build_libtool_need_lc=$archive_cmds_need_lc_F77
15123 # Whether or not to disallow shared libs when runtime libs are static
15124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15126 # Whether or not to optimize for fast installation.
15127 fast_install=$enable_fast_install
15130 host_alias=$host_alias
15134 # The build system.
15135 build_alias=$build_alias
15139 # An echo program that does not interpret backslashes.
15144 AR_FLAGS=$lt_AR_FLAGS
15149 # LTCC compiler flags.
15150 LTCFLAGS=$lt_LTCFLAGS
15152 # A language-specific compiler.
15153 CC=$lt_compiler_F77
15155 # Is the compiler the GNU C compiler?
15161 # The linker used to build libraries.
15164 # Whether we need hard or soft links.
15167 # A BSD-compatible nm program.
15170 # A symbol stripping program
15173 # Used to examine libraries when file_magic_cmd begins "file"
15174 MAGIC_CMD=$MAGIC_CMD
15176 # Used on cygwin: DLL creation program.
15179 # Used on cygwin: object dumper.
15182 # Used on cygwin: assembler.
15185 # The name of the directory that contains temporary libtool files.
15188 # How to create reloadable object files.
15189 reload_flag=$lt_reload_flag
15190 reload_cmds=$lt_reload_cmds
15192 # How to pass a linker flag through the compiler.
15193 wl=$lt_lt_prog_compiler_wl_F77
15195 # Object file suffix (normally "o").
15196 objext="$ac_objext"
15198 # Old archive suffix (normally "a").
15201 # Shared library suffix (normally ".so").
15202 shrext_cmds='$shrext_cmds'
15204 # Executable file suffix (normally "").
15207 # Additional compiler flags for building library objects.
15208 pic_flag=$lt_lt_prog_compiler_pic_F77
15211 # What is the maximum length of a command?
15212 max_cmd_len=$lt_cv_sys_max_cmd_len
15214 # Does compiler simultaneously support -c and -o options?
15215 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15217 # Must we lock files when doing compilation?
15218 need_locks=$lt_need_locks
15220 # Do we need the lib prefix for modules?
15221 need_lib_prefix=$need_lib_prefix
15223 # Do we need a version for libraries?
15224 need_version=$need_version
15226 # Whether dlopen is supported.
15227 dlopen_support=$enable_dlopen
15229 # Whether dlopen of programs is supported.
15230 dlopen_self=$enable_dlopen_self
15232 # Whether dlopen of statically linked programs is supported.
15233 dlopen_self_static=$enable_dlopen_self_static
15235 # Compiler flag to prevent dynamic linking.
15236 link_static_flag=$lt_lt_prog_compiler_static_F77
15238 # Compiler flag to turn off builtin functions.
15239 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15241 # Compiler flag to allow reflexive dlopens.
15242 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15244 # Compiler flag to generate shared objects directly from archives.
15245 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15247 # Compiler flag to generate thread-safe objects.
15248 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15250 # Library versioning type.
15251 version_type=$version_type
15253 # Format of library name prefix.
15254 libname_spec=$lt_libname_spec
15256 # List of archive names. First name is the real one, the rest are links.
15257 # The last name is the one that the linker finds with -lNAME.
15258 library_names_spec=$lt_library_names_spec
15260 # The coded name of the library, if different from the real name.
15261 soname_spec=$lt_soname_spec
15263 # Commands used to build and install an old-style archive.
15265 old_archive_cmds=$lt_old_archive_cmds_F77
15266 old_postinstall_cmds=$lt_old_postinstall_cmds
15267 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15269 # Create an old-style archive from a shared archive.
15270 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15272 # Create a temporary old-style archive to link instead of a shared archive.
15273 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15275 # Commands used to build and install a shared archive.
15276 archive_cmds=$lt_archive_cmds_F77
15277 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15278 postinstall_cmds=$lt_postinstall_cmds
15279 postuninstall_cmds=$lt_postuninstall_cmds
15281 # Commands used to build a loadable module (assumed same as above if empty)
15282 module_cmds=$lt_module_cmds_F77
15283 module_expsym_cmds=$lt_module_expsym_cmds_F77
15285 # Commands to strip libraries.
15286 old_striplib=$lt_old_striplib
15287 striplib=$lt_striplib
15289 # Dependencies to place before the objects being linked to create a
15291 predep_objects=$lt_predep_objects_F77
15293 # Dependencies to place after the objects being linked to create a
15295 postdep_objects=$lt_postdep_objects_F77
15297 # Dependencies to place before the objects being linked to create a
15299 predeps=$lt_predeps_F77
15301 # Dependencies to place after the objects being linked to create a
15303 postdeps=$lt_postdeps_F77
15305 # The library search path used internally by the compiler when linking
15306 # a shared library.
15307 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15309 # Method to check whether dependent libraries are shared objects.
15310 deplibs_check_method=$lt_deplibs_check_method
15312 # Command to use when deplibs_check_method == file_magic.
15313 file_magic_cmd=$lt_file_magic_cmd
15315 # Flag that allows shared libraries with undefined symbols to be built.
15316 allow_undefined_flag=$lt_allow_undefined_flag_F77
15318 # Flag that forces no undefined symbols.
15319 no_undefined_flag=$lt_no_undefined_flag_F77
15321 # Commands used to finish a libtool library installation in a directory.
15322 finish_cmds=$lt_finish_cmds
15324 # Same as above, but a single script fragment to be evaled but not shown.
15325 finish_eval=$lt_finish_eval
15327 # Take the output of nm and produce a listing of raw symbols and C names.
15328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15330 # Transform the output of nm in a proper C declaration
15331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15333 # Transform the output of nm in a C name address pair
15334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15336 # This is the shared library runtime path variable.
15337 runpath_var=$runpath_var
15339 # This is the shared library path variable.
15340 shlibpath_var=$shlibpath_var
15342 # Is shlibpath searched before the hard-coded library search path?
15343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15345 # How to hardcode a shared library path into an executable.
15346 hardcode_action=$hardcode_action_F77
15348 # Whether we should hardcode library paths into libraries.
15349 hardcode_into_libs=$hardcode_into_libs
15351 # Flag to hardcode \$libdir into a binary during linking.
15352 # This must work even if \$libdir does not exist.
15353 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15355 # If ld is used when linking, flag to hardcode \$libdir into
15356 # a binary during linking. This must work even if \$libdir does
15358 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15360 # Whether we need a single -rpath flag with a separated argument.
15361 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15363 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15364 # resulting binary.
15365 hardcode_direct=$hardcode_direct_F77
15367 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15368 # resulting binary.
15369 hardcode_minus_L=$hardcode_minus_L_F77
15371 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15372 # the resulting binary.
15373 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15375 # Set to yes if building a shared library automatically hardcodes DIR into the library
15376 # and all subsequent libraries and executables linked against it.
15377 hardcode_automatic=$hardcode_automatic_F77
15379 # Variables whose values should be saved in libtool wrapper scripts and
15380 # restored at relink time.
15381 variables_saved_for_relink="$variables_saved_for_relink"
15383 # Whether libtool must link a program against all its dependency libraries.
15384 link_all_deplibs=$link_all_deplibs_F77
15386 # Compile-time system search path for libraries
15387 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15389 # Run-time system search path for libraries
15390 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15392 # Fix the shell variable \$srcfile for the compiler.
15393 fix_srcfile_path="$fix_srcfile_path_F77"
15395 # Set to yes if exported symbols are required.
15396 always_export_symbols=$always_export_symbols_F77
15398 # The commands to list exported symbols.
15399 export_symbols_cmds=$lt_export_symbols_cmds_F77
15401 # The commands to extract the exported symbol list from a shared archive.
15402 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15404 # Symbols that should not be listed in the preloaded symbols.
15405 exclude_expsyms=$lt_exclude_expsyms_F77
15407 # Symbols that must always be exported.
15408 include_expsyms=$lt_include_expsyms_F77
15410 # ### END LIBTOOL TAG CONFIG: $tagname
15416 # If there is no Makefile yet, we rely on a make rule to execute
15417 # `config.status --recheck' to rerun these tests and create the
15418 # libtool script then.
15419 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15420 if test -f "$ltmain_in"; then
15421 test -f Makefile && make "$ltmain"
15427 ac_cpp='$CPP $CPPFLAGS'
15428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15440 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15444 # Source file extension for Java test sources.
15447 # Object file extension for compiled Java test sources.
15451 # Code to be used in simple compile tests
15452 lt_simple_compile_test_code="class foo {}\n"
15454 # Code to be used in simple link tests
15455 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15457 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15459 # If no C compiler was specified, use CC.
15462 # If no C compiler flags were specified, use CFLAGS.
15463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15465 # Allow CC to be a program name with arguments.
15469 # save warnings/boilerplate of simple test code
15470 ac_outfile=conftest.$ac_objext
15471 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15473 _lt_compiler_boilerplate=`cat conftest.err`
15476 ac_outfile=conftest.$ac_objext
15477 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15479 _lt_linker_boilerplate=`cat conftest.err`
15483 # Allow CC to be a program name with arguments.
15488 for cc_temp in $compiler""; do
15490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15496 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15499 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15500 archive_cmds_need_lc_GCJ=no
15502 old_archive_cmds_GCJ=$old_archive_cmds
15505 lt_prog_compiler_no_builtin_flag_GCJ=
15507 if test "$GCC" = yes; then
15508 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15511 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15512 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15513 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 lt_cv_prog_compiler_rtti_exceptions=no
15517 ac_outfile=conftest.$ac_objext
15518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15519 lt_compiler_flag="-fno-rtti -fno-exceptions"
15520 # Insert the option either (1) after the last *FLAGS variable, or
15521 # (2) before a word containing "conftest.", or (3) at the end.
15522 # Note that $ac_compile itself does not contain backslashes and begins
15523 # with a dollar sign (not a hyphen), so the echo should work correctly.
15524 # The option is referenced via a variable to avoid confusing sed.
15525 lt_compile=`echo "$ac_compile" | $SED \
15526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15528 -e 's:$: $lt_compiler_flag:'`
15529 (eval echo "\"\$as_me:15529: $lt_compile\"" >&5)
15530 (eval "$lt_compile" 2>conftest.err)
15532 cat conftest.err >&5
15533 echo "$as_me:15533: \$? = $ac_status" >&5
15534 if (exit $ac_status) && test -s "$ac_outfile"; then
15535 # The compiler can only warn and ignore the option if not recognized
15536 # So say no if there are warnings other than the usual output.
15537 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15540 lt_cv_prog_compiler_rtti_exceptions=yes
15546 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15547 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15549 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15550 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15557 lt_prog_compiler_wl_GCJ=
15558 lt_prog_compiler_pic_GCJ=
15559 lt_prog_compiler_static_GCJ=
15561 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15562 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15564 if test "$GCC" = yes; then
15565 lt_prog_compiler_wl_GCJ='-Wl,'
15566 lt_prog_compiler_static_GCJ='-static'
15570 # All AIX code is PIC.
15571 if test "$host_cpu" = ia64; then
15572 # AIX 5 now supports IA64 processor
15573 lt_prog_compiler_static_GCJ='-Bstatic'
15578 # FIXME: we need at least 68020 code to build shared libraries, but
15579 # adding the `-m68020' flag to GCC prevents building anything better,
15581 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15584 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15585 # PIC is the default for these OSes.
15588 mingw* | pw32* | os2*)
15589 # This hack is so that the source file can tell whether it is being
15590 # built for inclusion in a dll (and should export symbols for example).
15591 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15594 darwin* | rhapsody*)
15595 # PIC is the default on this platform
15596 # Common symbols not allowed in MH_DYLIB files
15597 lt_prog_compiler_pic_GCJ='-fno-common'
15601 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15602 # Instead, we relocate shared libraries at runtime.
15606 # Just because we use GCC doesn't mean we suddenly get shared libraries
15607 # on systems that don't support them.
15608 lt_prog_compiler_can_build_shared_GCJ=no
15613 if test -d /usr/nec; then
15614 lt_prog_compiler_pic_GCJ=-Kconform_pic
15619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15620 # not for PA HP-UX.
15626 lt_prog_compiler_pic_GCJ='-fPIC'
15632 lt_prog_compiler_pic_GCJ='-fPIC'
15636 # PORTME Check for flag to pass linker flags through the system compiler.
15639 lt_prog_compiler_wl_GCJ='-Wl,'
15640 if test "$host_cpu" = ia64; then
15641 # AIX 5 now supports IA64 processor
15642 lt_prog_compiler_static_GCJ='-Bstatic'
15644 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15648 # PIC is the default on this platform
15649 # Common symbols not allowed in MH_DYLIB files
15650 case $cc_basename in
15652 lt_prog_compiler_pic_GCJ='-qnocommon'
15653 lt_prog_compiler_wl_GCJ='-Wl,'
15658 mingw* | pw32* | os2*)
15659 # This hack is so that the source file can tell whether it is being
15660 # built for inclusion in a dll (and should export symbols for example).
15661 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15664 hpux9* | hpux10* | hpux11*)
15665 lt_prog_compiler_wl_GCJ='-Wl,'
15666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15667 # not for PA HP-UX.
15673 lt_prog_compiler_pic_GCJ='+Z'
15676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15677 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15680 irix5* | irix6* | nonstopux*)
15681 lt_prog_compiler_wl_GCJ='-Wl,'
15682 # PIC (with -KPIC) is the default.
15683 lt_prog_compiler_static_GCJ='-non_shared'
15687 lt_prog_compiler_pic_GCJ='-KPIC'
15688 lt_prog_compiler_static_GCJ='-Bstatic'
15692 case $cc_basename in
15694 lt_prog_compiler_wl_GCJ='-Wl,'
15695 lt_prog_compiler_pic_GCJ='-KPIC'
15696 lt_prog_compiler_static_GCJ='-static'
15698 pgcc* | pgf77* | pgf90* | pgf95*)
15699 # Portland Group compilers (*not* the Pentium gcc compiler,
15700 # which looks to be a dead project)
15701 lt_prog_compiler_wl_GCJ='-Wl,'
15702 lt_prog_compiler_pic_GCJ='-fpic'
15703 lt_prog_compiler_static_GCJ='-Bstatic'
15706 lt_prog_compiler_wl_GCJ='-Wl,'
15707 # All Alpha code is PIC.
15708 lt_prog_compiler_static_GCJ='-non_shared'
15713 osf3* | osf4* | osf5*)
15714 lt_prog_compiler_wl_GCJ='-Wl,'
15715 # All OSF/1 code is PIC.
15716 lt_prog_compiler_static_GCJ='-non_shared'
15720 lt_prog_compiler_pic_GCJ='-KPIC'
15721 lt_prog_compiler_static_GCJ='-Bstatic'
15722 case $cc_basename in
15723 f77* | f90* | f95*)
15724 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15726 lt_prog_compiler_wl_GCJ='-Wl,';;
15731 lt_prog_compiler_wl_GCJ='-Qoption ld '
15732 lt_prog_compiler_pic_GCJ='-PIC'
15733 lt_prog_compiler_static_GCJ='-Bstatic'
15736 sysv4 | sysv4.2uw2* | sysv4.3*)
15737 lt_prog_compiler_wl_GCJ='-Wl,'
15738 lt_prog_compiler_pic_GCJ='-KPIC'
15739 lt_prog_compiler_static_GCJ='-Bstatic'
15743 if test -d /usr/nec ;then
15744 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15745 lt_prog_compiler_static_GCJ='-Bstatic'
15749 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15750 lt_prog_compiler_wl_GCJ='-Wl,'
15751 lt_prog_compiler_pic_GCJ='-KPIC'
15752 lt_prog_compiler_static_GCJ='-Bstatic'
15756 lt_prog_compiler_wl_GCJ='-Wl,'
15757 lt_prog_compiler_can_build_shared_GCJ=no
15761 lt_prog_compiler_pic_GCJ='-pic'
15762 lt_prog_compiler_static_GCJ='-Bstatic'
15766 lt_prog_compiler_can_build_shared_GCJ=no
15771 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15772 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15775 # Check to make sure the PIC flag actually works.
15777 if test -n "$lt_prog_compiler_pic_GCJ"; then
15779 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15780 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15781 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 lt_prog_compiler_pic_works_GCJ=no
15785 ac_outfile=conftest.$ac_objext
15786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15787 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15788 # Insert the option either (1) after the last *FLAGS variable, or
15789 # (2) before a word containing "conftest.", or (3) at the end.
15790 # Note that $ac_compile itself does not contain backslashes and begins
15791 # with a dollar sign (not a hyphen), so the echo should work correctly.
15792 # The option is referenced via a variable to avoid confusing sed.
15793 lt_compile=`echo "$ac_compile" | $SED \
15794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15796 -e 's:$: $lt_compiler_flag:'`
15797 (eval echo "\"\$as_me:15797: $lt_compile\"" >&5)
15798 (eval "$lt_compile" 2>conftest.err)
15800 cat conftest.err >&5
15801 echo "$as_me:15801: \$? = $ac_status" >&5
15802 if (exit $ac_status) && test -s "$ac_outfile"; then
15803 # The compiler can only warn and ignore the option if not recognized
15804 # So say no if there are warnings other than the usual output.
15805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15808 lt_prog_compiler_pic_works_GCJ=yes
15814 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15815 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15817 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15818 case $lt_prog_compiler_pic_GCJ in
15820 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15823 lt_prog_compiler_pic_GCJ=
15824 lt_prog_compiler_can_build_shared_GCJ=no
15829 # For platforms which do not support PIC, -DPIC is meaningless:
15831 lt_prog_compiler_pic_GCJ=
15834 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15839 # Check to make sure the static flag actually works.
15841 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15842 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15843 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15844 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 lt_prog_compiler_static_works_GCJ=no
15848 save_LDFLAGS="$LDFLAGS"
15849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15850 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15852 # The linker can only warn and ignore the option if not recognized
15853 # So say no if there are warnings
15854 if test -s conftest.err; then
15855 # Append any errors to the config.log.
15856 cat conftest.err 1>&5
15857 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15859 if diff conftest.exp conftest.er2 >/dev/null; then
15860 lt_prog_compiler_static_works_GCJ=yes
15863 lt_prog_compiler_static_works_GCJ=yes
15867 LDFLAGS="$save_LDFLAGS"
15870 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15871 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15873 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15876 lt_prog_compiler_static_GCJ=
15880 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15882 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 lt_cv_prog_compiler_c_o_GCJ=no
15886 $rm -r conftest 2>/dev/null
15890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15892 lt_compiler_flag="-o out/conftest2.$ac_objext"
15893 # Insert the option either (1) after the last *FLAGS variable, or
15894 # (2) before a word containing "conftest.", or (3) at the end.
15895 # Note that $ac_compile itself does not contain backslashes and begins
15896 # with a dollar sign (not a hyphen), so the echo should work correctly.
15897 lt_compile=`echo "$ac_compile" | $SED \
15898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15900 -e 's:$: $lt_compiler_flag:'`
15901 (eval echo "\"\$as_me:15901: $lt_compile\"" >&5)
15902 (eval "$lt_compile" 2>out/conftest.err)
15904 cat out/conftest.err >&5
15905 echo "$as_me:15905: \$? = $ac_status" >&5
15906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15908 # The compiler can only warn and ignore the option if not recognized
15909 # So say no if there are warnings
15910 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15913 lt_cv_prog_compiler_c_o_GCJ=yes
15918 # SGI C++ compiler will create directory out/ii_files/ for
15919 # template instantiation
15920 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15921 $rm out/* && rmdir out
15927 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15928 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15931 hard_links="nottested"
15932 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15933 # do not overwrite the value of need_locks provided by the user
15934 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15935 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15940 ln conftest.a conftest.b 2>&5 || hard_links=no
15941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15942 echo "$as_me:$LINENO: result: $hard_links" >&5
15943 echo "${ECHO_T}$hard_links" >&6
15944 if test "$hard_links" = no; then
15945 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15946 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15953 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15954 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15957 allow_undefined_flag_GCJ=
15958 enable_shared_with_static_runtimes_GCJ=no
15960 archive_expsym_cmds_GCJ=
15961 old_archive_From_new_cmds_GCJ=
15962 old_archive_from_expsyms_cmds_GCJ=
15963 export_dynamic_flag_spec_GCJ=
15964 whole_archive_flag_spec_GCJ=
15965 thread_safe_flag_spec_GCJ=
15966 hardcode_libdir_flag_spec_GCJ=
15967 hardcode_libdir_flag_spec_ld_GCJ=
15968 hardcode_libdir_separator_GCJ=
15969 hardcode_direct_GCJ=no
15970 hardcode_minus_L_GCJ=no
15971 hardcode_shlibpath_var_GCJ=unsupported
15972 link_all_deplibs_GCJ=unknown
15973 hardcode_automatic_GCJ=no
15975 module_expsym_cmds_GCJ=
15976 always_export_symbols_GCJ=no
15977 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15978 # include_expsyms should be a list of space-separated symbols to be *always*
15979 # included in the symbol list
15980 include_expsyms_GCJ=
15981 # exclude_expsyms can be an extended regexp of symbols to exclude
15982 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15983 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15984 # as well as any symbol that contains `d'.
15985 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15987 # platforms (ab)use it in PIC code, but their linkers get confused if
15988 # the symbol is explicitly referenced. Since portable code cannot
15989 # rely on this symbol name, it's probably fine to never include it in
15990 # preloaded symbol tables.
15991 extract_expsyms_cmds=
15992 # Just being paranoid about ensuring that cc_basename is set.
15993 for cc_temp in $compiler""; do
15995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16001 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16004 cygwin* | mingw* | pw32*)
16005 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16006 # When not using gcc, we currently assume that we are using
16007 # Microsoft Visual C++.
16008 if test "$GCC" != yes; then
16013 # we just hope/assume this is gcc and not c89 (= MSVC++)
16022 if test "$with_gnu_ld" = yes; then
16023 # If archive_cmds runs LD, not CC, wlarc should be empty
16026 # Set some defaults for GNU ld with shared library support. These
16027 # are reset later if shared libraries are not supported. Putting them
16028 # here allows them to be overridden if necessary.
16029 runpath_var=LD_RUN_PATH
16030 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16031 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16032 # ancient GNU ld didn't support --whole-archive et. al.
16033 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16034 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16036 whole_archive_flag_spec_GCJ=
16038 supports_anon_versioning=no
16039 case `$LD -v 2>/dev/null` in
16040 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16041 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16042 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16043 *\ 2.11.*) ;; # other 2.11 versions
16044 *) supports_anon_versioning=yes ;;
16047 # See if GNU ld supports shared libraries.
16049 aix3* | aix4* | aix5*)
16050 # On AIX/PPC, the GNU linker is very broken
16051 if test "$host_cpu" != ia64; then
16055 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16056 *** to be unable to reliably create shared libraries on AIX.
16057 *** Therefore, libtool is disabling shared libraries support. If you
16058 *** really care for shared libraries, you may want to modify your PATH
16059 *** so that a non-GNU linker is found, and then restart.
16066 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)'
16067 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16068 hardcode_minus_L_GCJ=yes
16070 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16071 # that the semantics of dynamic libraries on AmigaOS, at least up
16072 # to version 4, is to share data among multiple programs linked
16073 # with the same dynamic library. Since this doesn't match the
16074 # behavior of shared libraries on other platforms, we can't use
16080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16081 allow_undefined_flag_GCJ=unsupported
16082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16083 # support --undefined. This deserves some investigation. FIXME
16084 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16090 cygwin* | mingw* | pw32*)
16091 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16092 # as there is no search path for DLLs.
16093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16094 allow_undefined_flag_GCJ=unsupported
16095 always_export_symbols_GCJ=no
16096 enable_shared_with_static_runtimes_GCJ=yes
16097 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16099 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16100 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16101 # If the export-symbols file already is a .def file (1st line
16102 # is EXPORTS), use it as is; otherwise, prepend...
16103 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16104 cp $export_symbols $output_objdir/$soname.def;
16106 echo EXPORTS > $output_objdir/$soname.def;
16107 cat $export_symbols >> $output_objdir/$soname.def;
16109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16116 hardcode_direct_GCJ=no
16117 hardcode_shlibpath_var_GCJ=no
16118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16119 export_dynamic_flag_spec_GCJ='${wl}-E'
16120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16121 # Instead, shared libraries are loaded at an image base (0x10000000 by
16122 # default) and relocated if they conflict, which is a slow very memory
16123 # consuming and fragmenting process. To avoid this, we pick a random,
16124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16126 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'
16127 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'
16131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16133 case $cc_basename,$host_cpu in
16134 pgcc*) # Portland Group C compiler
16135 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'
16136 tmp_addflag=' $pic_flag'
16138 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16139 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'
16140 tmp_addflag=' $pic_flag -Mnomain' ;;
16141 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16142 tmp_addflag=' -i_dynamic' ;;
16143 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16144 tmp_addflag=' -i_dynamic -nofor_main' ;;
16145 ifc* | ifort*) # Intel Fortran compiler
16146 tmp_addflag=' -nofor_main' ;;
16148 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16150 if test $supports_anon_versioning = yes; then
16151 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16153 $echo "local: *; };" >> $output_objdir/$libname.ver~
16154 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16156 link_all_deplibs_GCJ=no
16162 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16164 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16167 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16173 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16177 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16178 *** create shared libraries on Solaris systems. Therefore, libtool
16179 *** is disabling shared libraries support. We urge you to upgrade GNU
16180 *** binutils to release 2.9.1 or newer. Another option is to modify
16181 *** your PATH or compiler configuration so that the native linker is
16182 *** used, and then restart.
16185 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16187 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16194 case `$LD -v 2>&1` in
16195 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16199 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16200 *** reliably create shared libraries on SCO systems. Therefore, libtool
16201 *** is disabling shared libraries support. We urge you to upgrade GNU
16202 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16203 *** your PATH or compiler configuration so that the native linker is
16204 *** used, and then restart.
16209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16210 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16211 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16212 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16221 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16223 hardcode_direct_GCJ=yes
16224 hardcode_shlibpath_var_GCJ=no
16228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16229 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16230 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16237 if test "$ld_shlibs_GCJ" = no; then
16239 hardcode_libdir_flag_spec_GCJ=
16240 export_dynamic_flag_spec_GCJ=
16241 whole_archive_flag_spec_GCJ=
16244 # PORTME fill in a description of your system's linker (not GNU ld)
16247 allow_undefined_flag_GCJ=unsupported
16248 always_export_symbols_GCJ=yes
16249 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'
16250 # Note: this linker hardcodes the directories in LIBPATH if there
16251 # are no directories specified by -L.
16252 hardcode_minus_L_GCJ=yes
16253 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16254 # Neither direct hardcoding nor static linking is supported with a
16256 hardcode_direct_GCJ=unsupported
16261 if test "$host_cpu" = ia64; then
16262 # On IA64, the linker does run time linking by default, so we don't
16263 # have to do anything special.
16264 aix_use_runtimelinking=no
16265 exp_sym_flag='-Bexport'
16268 # If we're using GNU nm, then we don't want the "-C" option.
16269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16270 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16271 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'
16273 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'
16275 aix_use_runtimelinking=no
16277 # Test if we are trying to use run time linking or normal
16278 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16279 # need to do runtime linking.
16280 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16281 for ld_flag in $LDFLAGS; do
16282 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16283 aix_use_runtimelinking=yes
16290 exp_sym_flag='-bexport'
16291 no_entry_flag='-bnoentry'
16294 # When large executables or shared objects are built, AIX ld can
16295 # have problems creating the table of contents. If linking a library
16296 # or program results in "error TOC overflow" add -mminimal-toc to
16297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16300 archive_cmds_GCJ=''
16301 hardcode_direct_GCJ=yes
16302 hardcode_libdir_separator_GCJ=':'
16303 link_all_deplibs_GCJ=yes
16305 if test "$GCC" = yes; then
16306 case $host_os in aix4.[012]|aix4.[012].*)
16307 # We only want to do this on AIX 4.2 and lower, the check
16308 # below for broken collect2 doesn't work under 4.3+
16309 collect2name=`${CC} -print-prog-name=collect2`
16310 if test -f "$collect2name" && \
16311 strings "$collect2name" | grep resolve_lib_name >/dev/null
16313 # We have reworked collect2
16314 hardcode_direct_GCJ=yes
16316 # We have old collect2
16317 hardcode_direct_GCJ=unsupported
16318 # It fails to find uninstalled libraries when the uninstalled
16319 # path is not listed in the libpath. Setting hardcode_minus_L
16320 # to unsupported forces relinking
16321 hardcode_minus_L_GCJ=yes
16322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323 hardcode_libdir_separator_GCJ=
16327 shared_flag='-shared'
16328 if test "$aix_use_runtimelinking" = yes; then
16329 shared_flag="$shared_flag "'${wl}-G'
16333 if test "$host_cpu" = ia64; then
16334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16335 # chokes on -Wl,-G. The following line is correct:
16338 if test "$aix_use_runtimelinking" = yes; then
16339 shared_flag='${wl}-G'
16341 shared_flag='${wl}-bM:SRE'
16346 # It seems that -bexpall does not export symbols beginning with
16347 # underscore (_), so it is better to generate a list of symbols to export.
16348 always_export_symbols_GCJ=yes
16349 if test "$aix_use_runtimelinking" = yes; then
16350 # Warning - without using the other runtime loading flags (-brtl),
16351 # -berok will link without error, but may produce a broken library.
16352 allow_undefined_flag_GCJ='-berok'
16353 # Determine the default libpath from the value encoded in an empty executable.
16354 cat >conftest.$ac_ext <<_ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371 (eval $ac_link) 2>conftest.er1
16373 grep -v '^ *+' conftest.er1 >conftest.err
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try='test -s conftest$ac_exeext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16393 # Check for a 64-bit object if we didn't find anything.
16394 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; }
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16401 rm -f conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16405 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16406 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"
16408 if test "$host_cpu" = ia64; then
16409 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16410 allow_undefined_flag_GCJ="-z nodefs"
16411 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"
16413 # Determine the default libpath from the value encoded in an empty executable.
16414 cat >conftest.$ac_ext <<_ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16429 rm -f conftest.$ac_objext conftest$ac_exeext
16430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16431 (eval $ac_link) 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } &&
16438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16453 # Check for a 64-bit object if we didn't find anything.
16454 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; }
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16461 rm -f conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16465 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16466 # Warning - without using the other run time loading flags,
16467 # -berok will link without error, but may produce a broken library.
16468 no_undefined_flag_GCJ=' ${wl}-bernotok'
16469 allow_undefined_flag_GCJ=' ${wl}-berok'
16470 # Exported symbols can be pulled into shared objects from archives
16471 whole_archive_flag_spec_GCJ='$convenience'
16472 archive_cmds_need_lc_GCJ=yes
16473 # This is similar to how AIX traditionally builds its shared libraries.
16474 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'
16480 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)'
16481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16482 hardcode_minus_L_GCJ=yes
16483 # see comment about different semantics on the GNU ld section
16488 export_dynamic_flag_spec_GCJ=-rdynamic
16491 cygwin* | mingw* | pw32*)
16492 # When not using gcc, we currently assume that we are using
16493 # Microsoft Visual C++.
16494 # hardcode_libdir_flag_spec is actually meaningless, as there is
16495 # no search path for DLLs.
16496 hardcode_libdir_flag_spec_GCJ=' '
16497 allow_undefined_flag_GCJ=unsupported
16498 # Tell ltmain to make .lib files, not .a files.
16500 # Tell ltmain to make .dll files, not .so files.
16502 # FIXME: Setting linknames here is a bad hack.
16503 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16504 # The linker will automatically build a .lib file if we build a DLL.
16505 old_archive_From_new_cmds_GCJ='true'
16506 # FIXME: Should let the user specify the lib program.
16507 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16508 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16509 enable_shared_with_static_runtimes_GCJ=yes
16512 darwin* | rhapsody*)
16514 rhapsody* | darwin1.[012])
16515 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16518 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16519 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16521 case ${MACOSX_DEPLOYMENT_TARGET} in
16523 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16526 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16532 archive_cmds_need_lc_GCJ=no
16533 hardcode_direct_GCJ=no
16534 hardcode_automatic_GCJ=yes
16535 hardcode_shlibpath_var_GCJ=unsupported
16536 whole_archive_flag_spec_GCJ=''
16537 link_all_deplibs_GCJ=yes
16538 if test "$GCC" = yes ; then
16539 output_verbose_link_cmd='echo'
16540 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16541 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16543 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}'
16544 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 case $cc_basename in
16548 output_verbose_link_cmd='echo'
16549 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16550 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16551 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16552 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}'
16553 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}'
16563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16565 hardcode_shlibpath_var_GCJ=no
16572 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16573 # support. Future versions do this automatically, but an explicit c++rt0.o
16574 # does not break anything, and helps significantly (at the cost of a little
16577 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16578 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16579 hardcode_direct_GCJ=yes
16580 hardcode_shlibpath_var_GCJ=no
16583 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16585 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16586 hardcode_direct_GCJ=yes
16587 hardcode_minus_L_GCJ=yes
16588 hardcode_shlibpath_var_GCJ=no
16591 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16592 freebsd* | dragonfly*)
16593 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16594 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16595 hardcode_direct_GCJ=yes
16596 hardcode_shlibpath_var_GCJ=no
16599 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16601 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16602 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16603 hardcode_direct_GCJ=yes
16604 hardcode_shlibpath_var_GCJ=no
16605 link_all_deplibs_GCJ=no
16609 if test "$GCC" = yes; then
16610 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'
16612 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'
16614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16615 hardcode_libdir_separator_GCJ=:
16616 hardcode_direct_GCJ=yes
16618 # hardcode_minus_L: Not really in the search PATH,
16619 # but as the default location of the library.
16620 hardcode_minus_L_GCJ=yes
16621 export_dynamic_flag_spec_GCJ='${wl}-E'
16625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16626 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16628 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16630 if test "$with_gnu_ld" = no; then
16631 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16632 hardcode_libdir_separator_GCJ=:
16634 hardcode_direct_GCJ=yes
16635 export_dynamic_flag_spec_GCJ='${wl}-E'
16637 # hardcode_minus_L: Not really in the search PATH,
16638 # but as the default location of the library.
16639 hardcode_minus_L_GCJ=yes
16644 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16647 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16650 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16659 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16662 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16669 if test "$with_gnu_ld" = no; then
16670 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16671 hardcode_libdir_separator_GCJ=:
16675 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16676 hardcode_direct_GCJ=no
16677 hardcode_shlibpath_var_GCJ=no
16680 hardcode_direct_GCJ=yes
16681 export_dynamic_flag_spec_GCJ='${wl}-E'
16683 # hardcode_minus_L: Not really in the search PATH,
16684 # but as the default location of the library.
16685 hardcode_minus_L_GCJ=yes
16691 irix5* | irix6* | nonstopux*)
16692 if test "$GCC" = yes; then
16693 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'
16695 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'
16696 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16699 hardcode_libdir_separator_GCJ=:
16700 link_all_deplibs_GCJ=yes
16703 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16705 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16707 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16710 hardcode_direct_GCJ=yes
16711 hardcode_shlibpath_var_GCJ=no
16715 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716 hardcode_direct_GCJ=yes
16717 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16718 hardcode_libdir_separator_GCJ=:
16719 hardcode_shlibpath_var_GCJ=no
16723 hardcode_direct_GCJ=yes
16724 hardcode_shlibpath_var_GCJ=no
16725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16726 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16727 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16729 export_dynamic_flag_spec_GCJ='${wl}-E'
16732 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16733 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16734 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16737 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16746 hardcode_minus_L_GCJ=yes
16747 allow_undefined_flag_GCJ=unsupported
16748 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'
16749 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16753 if test "$GCC" = yes; then
16754 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16755 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'
16757 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16758 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'
16760 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16761 hardcode_libdir_separator_GCJ=:
16764 osf4* | osf5*) # as osf3* with the addition of -msym flag
16765 if test "$GCC" = yes; then
16766 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16767 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'
16768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16770 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16771 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'
16772 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~
16773 $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'
16775 # Both c and cxx compiler support -rpath directly
16776 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16778 hardcode_libdir_separator_GCJ=:
16782 no_undefined_flag_GCJ=' -z text'
16783 if test "$GCC" = yes; then
16785 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16787 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16790 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16791 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16792 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16795 hardcode_shlibpath_var_GCJ=no
16797 solaris2.[0-5] | solaris2.[0-5].*) ;;
16799 # The compiler driver will combine linker options so we
16800 # cannot just pass the convience library names through
16801 # without $wl, iff we do not link with $LD.
16802 # Luckily, gcc supports the same syntax we need for Sun Studio.
16803 # Supported since Solaris 2.6 (maybe 2.5.1?)
16806 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16808 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' ;;
16811 link_all_deplibs_GCJ=yes
16815 if test "x$host_vendor" = xsequent; then
16816 # Use $CC to link under sequent, because it throws in some extra .o
16817 # files that make .init and .fini sections work.
16818 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16820 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16823 hardcode_direct_GCJ=yes
16824 hardcode_minus_L_GCJ=yes
16825 hardcode_shlibpath_var_GCJ=no
16829 case $host_vendor in
16831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 hardcode_direct_GCJ=yes # is this really true???
16835 ## LD is ld it makes a PLAMLIB
16836 ## CC just makes a GrossModule.
16837 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16838 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16839 hardcode_direct_GCJ=no
16842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16846 runpath_var='LD_RUN_PATH'
16847 hardcode_shlibpath_var_GCJ=no
16851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852 hardcode_shlibpath_var_GCJ=no
16853 export_dynamic_flag_spec_GCJ='-Bexport'
16857 if test -d /usr/nec; then
16858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859 hardcode_shlibpath_var_GCJ=no
16860 runpath_var=LD_RUN_PATH
16861 hardcode_runpath_var=yes
16866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16867 no_undefined_flag_GCJ='${wl}-z,text'
16868 archive_cmds_need_lc_GCJ=no
16869 hardcode_shlibpath_var_GCJ=no
16870 runpath_var='LD_RUN_PATH'
16872 if test "$GCC" = yes; then
16873 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16874 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16876 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16877 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16881 sysv5* | sco3.2v5* | sco5v6*)
16882 # Note: We can NOT use -z defs as we might desire, because we do not
16883 # link with -lc, and that would cause any symbols used from libc to
16884 # always be unresolved, which means just about no library would
16885 # ever link correctly. If we're not using GNU ld we use -z text
16886 # though, which does catch some bad symbols but isn't as heavy-handed
16888 no_undefined_flag_GCJ='${wl}-z,text'
16889 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16890 archive_cmds_need_lc_GCJ=no
16891 hardcode_shlibpath_var_GCJ=no
16892 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16893 hardcode_libdir_separator_GCJ=':'
16894 link_all_deplibs_GCJ=yes
16895 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16896 runpath_var='LD_RUN_PATH'
16898 if test "$GCC" = yes; then
16899 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16900 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16902 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16908 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16910 hardcode_shlibpath_var_GCJ=no
16919 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16920 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16921 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16924 # Do we need to explicitly link libc?
16926 case "x$archive_cmds_need_lc_GCJ" in
16928 # Assume -lc should be added
16929 archive_cmds_need_lc_GCJ=yes
16931 if test "$enable_shared" = yes && test "$GCC" = yes; then
16932 case $archive_cmds_GCJ in
16934 # FIXME: we may have to deal with multi-command sequences.
16937 # Test whether the compiler implicitly links with -lc since on some
16938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16939 # to ld, don't add -lc before -lgcc.
16940 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } 2>conftest.err; then
16952 libobjs=conftest.$ac_objext
16954 wl=$lt_prog_compiler_wl_GCJ
16955 pic_flag=$lt_prog_compiler_pic_GCJ
16961 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16962 allow_undefined_flag_GCJ=
16963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16964 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }
16969 archive_cmds_need_lc_GCJ=no
16971 archive_cmds_need_lc_GCJ=yes
16973 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16975 cat conftest.err 1>&5
16978 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16979 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16986 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16988 library_names_spec=
16989 libname_spec='lib$name'
16993 postuninstall_cmds=
16997 shlibpath_overrides_runpath=unknown
16999 dynamic_linker="$host_os ld.so"
17000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17001 if test "$GCC" = yes; then
17002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17003 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17004 # if the path contains ";" then we assume it to be the separator
17005 # otherwise default to the standard path separator (i.e. ":") - it is
17006 # assumed that no part of a normal pathname contains ";" but that should
17007 # okay in the real world where ";" in dirpaths is itself problematic.
17008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17015 need_lib_prefix=unknown
17016 hardcode_into_libs=no
17018 # when you set need_version to no, make sure it does not cause -set_version
17019 # flags to be left without arguments
17020 need_version=unknown
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17026 shlibpath_var=LIBPATH
17028 # AIX 3 has no versioning support, so we append a major version to the name.
17029 soname_spec='${libname}${release}${shared_ext}$major'
17036 hardcode_into_libs=yes
17037 if test "$host_cpu" = ia64; then
17038 # AIX 5 supports IA64
17039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17040 shlibpath_var=LD_LIBRARY_PATH
17042 # With GCC up to 2.95.x, collect2 would create an import file
17043 # for dependence libraries. The import file would start with
17044 # the line `#! .'. This would cause the generated library to
17045 # depend on `.', always an invalid library. This was fixed in
17046 # development snapshots of GCC prior to 3.0.
17048 aix4 | aix4.[01] | aix4.[01].*)
17049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17051 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17054 can_build_shared=no
17058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17059 # soname into executable. Probably we can add versioning support to
17060 # collect2, so additional links can be useful in future.
17061 if test "$aix_use_runtimelinking" = yes; then
17062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17063 # instead of lib<name>.a to let people know that these are not
17064 # typical AIX shared libraries.
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 # We preserve .a as extension for shared libraries through AIX4.2
17068 # and later when we are not doing run time linking.
17069 library_names_spec='${libname}${release}.a $libname.a'
17070 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LIBPATH
17077 library_names_spec='$libname.ixlibrary $libname.a'
17078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17079 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'
17083 library_names_spec='${libname}${shared_ext}'
17084 dynamic_linker="$host_os ld.so"
17085 shlibpath_var=LIBRARY_PATH
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17097 # the default ld.so.conf also contains /usr/contrib/lib and
17098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17099 # libtool to hard-code these into programs
17102 cygwin* | mingw* | pw32*)
17103 version_type=windows
17108 case $GCC,$host_os in
17109 yes,cygwin* | yes,mingw* | yes,pw32*)
17110 library_names_spec='$libname.dll.a'
17111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17112 postinstall_cmds='base_file=`basename \${file}`~
17113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17114 dldir=$destdir/`dirname \$dlpath`~
17115 test -d \$dldir || mkdir -p \$dldir~
17116 $install_prog $dir/$dlname \$dldir/$dlname~
17117 chmod a+x \$dldir/$dlname'
17118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17119 dlpath=$dir/\$dldll~
17121 shlibpath_overrides_runpath=yes
17125 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17126 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17127 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17130 # MinGW DLLs use traditional 'lib' prefix
17131 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17133 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17134 # It is most probably a Windows format PATH printed by
17135 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17136 # path with ; separators, and with drive letters. We can handle the
17137 # drive letters (cygwin fileutils understands them), so leave them,
17138 # especially as we might pass files found there to a mingw objdump,
17139 # which wouldn't understand a cygwinified path. Ahh.
17140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17146 # pw32 DLLs use 'pw' prefix rather than 'lib'
17147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17156 dynamic_linker='Win32 ld.exe'
17157 # FIXME: first we should search . and the directory the executable is in
17161 darwin* | rhapsody*)
17162 dynamic_linker="$host_os dyld"
17163 version_type=darwin
17166 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17167 soname_spec='${libname}${release}${major}$shared_ext'
17168 shlibpath_overrides_runpath=yes
17169 shlibpath_var=DYLD_LIBRARY_PATH
17170 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17171 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17172 if test "$GCC" = yes; then
17173 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"`
17175 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 shlibpath_var=LD_LIBRARY_PATH
17200 shlibpath_overrides_runpath=no
17201 hardcode_into_libs=yes
17202 dynamic_linker='GNU ld.so'
17205 freebsd* | dragonfly*)
17206 # DragonFly does not have aout. When/if they implement a new
17207 # versioning mechanism, adjust this.
17208 if test -x /usr/bin/objformat; then
17209 objformat=`/usr/bin/objformat`
17212 freebsd[123]*) objformat=aout ;;
17213 *) objformat=elf ;;
17216 version_type=freebsd-$objformat
17217 case $version_type in
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17228 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=yes
17233 freebsd3.[01]* | freebsdelf3.[01]*)
17234 shlibpath_overrides_runpath=yes
17235 hardcode_into_libs=yes
17237 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17238 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17239 shlibpath_overrides_runpath=no
17240 hardcode_into_libs=yes
17242 freebsd*) # from 4.6 on
17243 shlibpath_overrides_runpath=yes
17244 hardcode_into_libs=yes
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 hardcode_into_libs=yes
17259 hpux9* | hpux10* | hpux11*)
17260 # Give a soname corresponding to the major version so that dld.sl refuses to
17261 # link against other versions.
17268 hardcode_into_libs=yes
17269 dynamic_linker="$host_os dld.so"
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 if test "X$HPUX_IA64_MODE" = X32; then
17275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17283 hardcode_into_libs=yes
17284 dynamic_linker="$host_os dld.sl"
17285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17294 dynamic_linker="$host_os dld.sl"
17295 shlibpath_var=SHLIB_PATH
17296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17302 postinstall_cmds='chmod 555 $lib'
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=no
17314 hardcode_into_libs=yes
17317 irix5* | irix6* | nonstopux*)
17319 nonstopux*) version_type=nonstopux ;;
17321 if test "$lt_cv_prog_gnu_ld" = yes; then
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17332 irix5* | nonstopux*)
17333 libsuff= shlibsuff=
17336 case $LD in # libtool.m4 will add one of these switches to LD
17337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17338 libsuff= shlibsuff= libmagic=32-bit;;
17339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17340 libsuff=32 shlibsuff=N32 libmagic=N32;;
17341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17343 *) libsuff= shlibsuff= libmagic=never-match;;
17347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17348 shlibpath_overrides_runpath=no
17349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17351 hardcode_into_libs=yes
17354 # No shared lib support for Linux oldld, aout, or coff.
17355 linux*oldld* | linux*aout* | linux*coff*)
17359 # This must be Linux ELF.
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=no
17369 # This implies no fast_install, which is unacceptable.
17370 # Some rework will be needed to allow for fast_install
17371 # before this can be enabled.
17372 hardcode_into_libs=yes
17374 # Append ld.so.conf contents to the search path
17375 if test -f /etc/ld.so.conf; then
17376 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' ' '`
17377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17380 # We used to test for /lib/ld.so.1 and disable shared libraries on
17381 # powerpc, because MkLinux only supported shared libraries with the
17382 # GNU dynamic linker. Since this was broken with cross compilers,
17383 # most powerpc-linux boxes support dynamic linking these days and
17384 # people can always --disable-shared, the test was removed, and we
17385 # assume the GNU/Linux dynamic linker is in use.
17386 dynamic_linker='GNU/Linux ld.so'
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath=no
17397 hardcode_into_libs=yes
17398 dynamic_linker='NetBSD ld.elf_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 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=no
17409 hardcode_into_libs=yes
17410 dynamic_linker='GNU ld.so'
17417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17420 dynamic_linker='NetBSD (a.out) ld.so'
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 dynamic_linker='NetBSD ld.elf_so'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 shlibpath_overrides_runpath=yes
17428 hardcode_into_libs=yes
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17434 shlibpath_var=LD_LIBRARY_PATH
17435 shlibpath_overrides_runpath=yes
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17450 sys_lib_dlsearch_path_spec="/usr/lib"
17452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17454 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17455 *) need_version=no ;;
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17459 shlibpath_var=LD_LIBRARY_PATH
17460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17462 openbsd2.[89] | openbsd2.[89].*)
17463 shlibpath_overrides_runpath=no
17466 shlibpath_overrides_runpath=yes
17470 shlibpath_overrides_runpath=yes
17475 libname_spec='$name'
17478 library_names_spec='$libname${shared_ext} $libname.a'
17479 dynamic_linker='OS/2 ld.exe'
17480 shlibpath_var=LIBPATH
17483 osf3* | osf4* | osf5*)
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=yes
17502 hardcode_into_libs=yes
17503 # ldd complains unless libraries are executable
17504 postinstall_cmds='chmod +x $lib'
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17511 shlibpath_var=LD_LIBRARY_PATH
17512 shlibpath_overrides_runpath=yes
17513 if test "$with_gnu_ld" = yes; then
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 case $host_vendor in
17526 shlibpath_overrides_runpath=no
17528 export_dynamic_flag_spec='${wl}-Blargedynsym'
17529 runpath_var=LD_RUN_PATH
17537 shlibpath_overrides_runpath=no
17538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17544 if test -d /usr/nec ;then
17546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17547 soname_spec='$libname${shared_ext}.$major'
17548 shlibpath_var=LD_LIBRARY_PATH
17552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17553 version_type=freebsd-elf
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17557 soname_spec='${libname}${release}${shared_ext}$major'
17558 shlibpath_var=LD_LIBRARY_PATH
17559 hardcode_into_libs=yes
17560 if test "$with_gnu_ld" = yes; then
17561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17562 shlibpath_overrides_runpath=no
17564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17565 shlibpath_overrides_runpath=yes
17568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17572 sys_lib_dlsearch_path_spec='/usr/lib'
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17587 echo "${ECHO_T}$dynamic_linker" >&6
17588 test "$dynamic_linker" = no && can_build_shared=no
17590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17591 if test "$GCC" = yes; then
17592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17596 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17597 hardcode_action_GCJ=
17598 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17599 test -n "$runpath_var_GCJ" || \
17600 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17602 # We can hardcode non-existant directories.
17603 if test "$hardcode_direct_GCJ" != no &&
17604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17605 # have to relink, otherwise we might link with an installed library
17606 # when we should be linking with a yet-to-be-installed one
17607 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17608 test "$hardcode_minus_L_GCJ" != no; then
17609 # Linking always hardcodes the temporary library directory.
17610 hardcode_action_GCJ=relink
17612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17613 hardcode_action_GCJ=immediate
17616 # We cannot hardcode anything, or else we can only hardcode existing
17618 hardcode_action_GCJ=unsupported
17620 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17621 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17623 if test "$hardcode_action_GCJ" = relink; then
17624 # Fast installation is not supported
17625 enable_fast_install=no
17626 elif test "$shlibpath_overrides_runpath" = yes ||
17627 test "$enable_shared" = no; then
17628 # Fast installation is not necessary
17629 enable_fast_install=needless
17633 # The else clause should only fire when bootstrapping the
17634 # libtool distribution, otherwise you forgot to ship ltmain.sh
17635 # with your package, and you will get complaints that there are
17636 # no rules to generate ltmain.sh.
17637 if test -f "$ltmain"; then
17638 # See if we are running on zsh, and set the options which allow our commands through
17639 # without removal of \ escapes.
17640 if test -n "${ZSH_VERSION+set}" ; then
17641 setopt NO_GLOB_SUBST
17643 # Now quote all the things that may contain metacharacters while being
17644 # careful not to overquote the AC_SUBSTed values. We take copies of the
17645 # variables and quote the copies for generation of the libtool script.
17646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17650 deplibs_check_method reload_flag reload_cmds need_locks \
17651 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17652 lt_cv_sys_global_symbol_to_c_name_address \
17653 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17654 old_postinstall_cmds old_postuninstall_cmds \
17658 lt_prog_compiler_wl_GCJ \
17659 lt_prog_compiler_pic_GCJ \
17660 lt_prog_compiler_static_GCJ \
17661 lt_prog_compiler_no_builtin_flag_GCJ \
17662 export_dynamic_flag_spec_GCJ \
17663 thread_safe_flag_spec_GCJ \
17664 whole_archive_flag_spec_GCJ \
17665 enable_shared_with_static_runtimes_GCJ \
17666 old_archive_cmds_GCJ \
17667 old_archive_from_new_cmds_GCJ \
17668 predep_objects_GCJ \
17669 postdep_objects_GCJ \
17672 compiler_lib_search_path_GCJ \
17674 archive_expsym_cmds_GCJ \
17675 postinstall_cmds_GCJ \
17676 postuninstall_cmds_GCJ \
17677 old_archive_from_expsyms_cmds_GCJ \
17678 allow_undefined_flag_GCJ \
17679 no_undefined_flag_GCJ \
17680 export_symbols_cmds_GCJ \
17681 hardcode_libdir_flag_spec_GCJ \
17682 hardcode_libdir_flag_spec_ld_GCJ \
17683 hardcode_libdir_separator_GCJ \
17684 hardcode_automatic_GCJ \
17686 module_expsym_cmds_GCJ \
17687 lt_cv_prog_compiler_c_o_GCJ \
17688 exclude_expsyms_GCJ \
17689 include_expsyms_GCJ; do
17692 old_archive_cmds_GCJ | \
17693 old_archive_from_new_cmds_GCJ | \
17694 archive_cmds_GCJ | \
17695 archive_expsym_cmds_GCJ | \
17696 module_cmds_GCJ | \
17697 module_expsym_cmds_GCJ | \
17698 old_archive_from_expsyms_cmds_GCJ | \
17699 export_symbols_cmds_GCJ | \
17700 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17701 postinstall_cmds | postuninstall_cmds | \
17702 old_postinstall_cmds | old_postuninstall_cmds | \
17703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17704 # Double-quote double-evaled strings.
17705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17714 *'\$0 --fallback-echo"')
17715 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17721 cat <<__EOF__ >> "$cfgfile"
17722 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17726 # Shell to use when invoking shell scripts.
17729 # Whether or not to build shared libraries.
17730 build_libtool_libs=$enable_shared
17732 # Whether or not to build static libraries.
17733 build_old_libs=$enable_static
17735 # Whether or not to add -lc for building shared libraries.
17736 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17738 # Whether or not to disallow shared libs when runtime libs are static
17739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17741 # Whether or not to optimize for fast installation.
17742 fast_install=$enable_fast_install
17745 host_alias=$host_alias
17749 # The build system.
17750 build_alias=$build_alias
17754 # An echo program that does not interpret backslashes.
17759 AR_FLAGS=$lt_AR_FLAGS
17764 # LTCC compiler flags.
17765 LTCFLAGS=$lt_LTCFLAGS
17767 # A language-specific compiler.
17768 CC=$lt_compiler_GCJ
17770 # Is the compiler the GNU C compiler?
17776 # The linker used to build libraries.
17779 # Whether we need hard or soft links.
17782 # A BSD-compatible nm program.
17785 # A symbol stripping program
17788 # Used to examine libraries when file_magic_cmd begins "file"
17789 MAGIC_CMD=$MAGIC_CMD
17791 # Used on cygwin: DLL creation program.
17794 # Used on cygwin: object dumper.
17797 # Used on cygwin: assembler.
17800 # The name of the directory that contains temporary libtool files.
17803 # How to create reloadable object files.
17804 reload_flag=$lt_reload_flag
17805 reload_cmds=$lt_reload_cmds
17807 # How to pass a linker flag through the compiler.
17808 wl=$lt_lt_prog_compiler_wl_GCJ
17810 # Object file suffix (normally "o").
17811 objext="$ac_objext"
17813 # Old archive suffix (normally "a").
17816 # Shared library suffix (normally ".so").
17817 shrext_cmds='$shrext_cmds'
17819 # Executable file suffix (normally "").
17822 # Additional compiler flags for building library objects.
17823 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17826 # What is the maximum length of a command?
17827 max_cmd_len=$lt_cv_sys_max_cmd_len
17829 # Does compiler simultaneously support -c and -o options?
17830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17832 # Must we lock files when doing compilation?
17833 need_locks=$lt_need_locks
17835 # Do we need the lib prefix for modules?
17836 need_lib_prefix=$need_lib_prefix
17838 # Do we need a version for libraries?
17839 need_version=$need_version
17841 # Whether dlopen is supported.
17842 dlopen_support=$enable_dlopen
17844 # Whether dlopen of programs is supported.
17845 dlopen_self=$enable_dlopen_self
17847 # Whether dlopen of statically linked programs is supported.
17848 dlopen_self_static=$enable_dlopen_self_static
17850 # Compiler flag to prevent dynamic linking.
17851 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17853 # Compiler flag to turn off builtin functions.
17854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17856 # Compiler flag to allow reflexive dlopens.
17857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17859 # Compiler flag to generate shared objects directly from archives.
17860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17862 # Compiler flag to generate thread-safe objects.
17863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17865 # Library versioning type.
17866 version_type=$version_type
17868 # Format of library name prefix.
17869 libname_spec=$lt_libname_spec
17871 # List of archive names. First name is the real one, the rest are links.
17872 # The last name is the one that the linker finds with -lNAME.
17873 library_names_spec=$lt_library_names_spec
17875 # The coded name of the library, if different from the real name.
17876 soname_spec=$lt_soname_spec
17878 # Commands used to build and install an old-style archive.
17880 old_archive_cmds=$lt_old_archive_cmds_GCJ
17881 old_postinstall_cmds=$lt_old_postinstall_cmds
17882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17884 # Create an old-style archive from a shared archive.
17885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17887 # Create a temporary old-style archive to link instead of a shared archive.
17888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17890 # Commands used to build and install a shared archive.
17891 archive_cmds=$lt_archive_cmds_GCJ
17892 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17893 postinstall_cmds=$lt_postinstall_cmds
17894 postuninstall_cmds=$lt_postuninstall_cmds
17896 # Commands used to build a loadable module (assumed same as above if empty)
17897 module_cmds=$lt_module_cmds_GCJ
17898 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17900 # Commands to strip libraries.
17901 old_striplib=$lt_old_striplib
17902 striplib=$lt_striplib
17904 # Dependencies to place before the objects being linked to create a
17906 predep_objects=$lt_predep_objects_GCJ
17908 # Dependencies to place after the objects being linked to create a
17910 postdep_objects=$lt_postdep_objects_GCJ
17912 # Dependencies to place before the objects being linked to create a
17914 predeps=$lt_predeps_GCJ
17916 # Dependencies to place after the objects being linked to create a
17918 postdeps=$lt_postdeps_GCJ
17920 # The library search path used internally by the compiler when linking
17921 # a shared library.
17922 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17924 # Method to check whether dependent libraries are shared objects.
17925 deplibs_check_method=$lt_deplibs_check_method
17927 # Command to use when deplibs_check_method == file_magic.
17928 file_magic_cmd=$lt_file_magic_cmd
17930 # Flag that allows shared libraries with undefined symbols to be built.
17931 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17933 # Flag that forces no undefined symbols.
17934 no_undefined_flag=$lt_no_undefined_flag_GCJ
17936 # Commands used to finish a libtool library installation in a directory.
17937 finish_cmds=$lt_finish_cmds
17939 # Same as above, but a single script fragment to be evaled but not shown.
17940 finish_eval=$lt_finish_eval
17942 # Take the output of nm and produce a listing of raw symbols and C names.
17943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17945 # Transform the output of nm in a proper C declaration
17946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17948 # Transform the output of nm in a C name address pair
17949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17951 # This is the shared library runtime path variable.
17952 runpath_var=$runpath_var
17954 # This is the shared library path variable.
17955 shlibpath_var=$shlibpath_var
17957 # Is shlibpath searched before the hard-coded library search path?
17958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17960 # How to hardcode a shared library path into an executable.
17961 hardcode_action=$hardcode_action_GCJ
17963 # Whether we should hardcode library paths into libraries.
17964 hardcode_into_libs=$hardcode_into_libs
17966 # Flag to hardcode \$libdir into a binary during linking.
17967 # This must work even if \$libdir does not exist.
17968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17970 # If ld is used when linking, flag to hardcode \$libdir into
17971 # a binary during linking. This must work even if \$libdir does
17973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17975 # Whether we need a single -rpath flag with a separated argument.
17976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17979 # resulting binary.
17980 hardcode_direct=$hardcode_direct_GCJ
17982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17983 # resulting binary.
17984 hardcode_minus_L=$hardcode_minus_L_GCJ
17986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17987 # the resulting binary.
17988 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17990 # Set to yes if building a shared library automatically hardcodes DIR into the library
17991 # and all subsequent libraries and executables linked against it.
17992 hardcode_automatic=$hardcode_automatic_GCJ
17994 # Variables whose values should be saved in libtool wrapper scripts and
17995 # restored at relink time.
17996 variables_saved_for_relink="$variables_saved_for_relink"
17998 # Whether libtool must link a program against all its dependency libraries.
17999 link_all_deplibs=$link_all_deplibs_GCJ
18001 # Compile-time system search path for libraries
18002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18004 # Run-time system search path for libraries
18005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18007 # Fix the shell variable \$srcfile for the compiler.
18008 fix_srcfile_path="$fix_srcfile_path_GCJ"
18010 # Set to yes if exported symbols are required.
18011 always_export_symbols=$always_export_symbols_GCJ
18013 # The commands to list exported symbols.
18014 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18016 # The commands to extract the exported symbol list from a shared archive.
18017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18019 # Symbols that should not be listed in the preloaded symbols.
18020 exclude_expsyms=$lt_exclude_expsyms_GCJ
18022 # Symbols that must always be exported.
18023 include_expsyms=$lt_include_expsyms_GCJ
18025 # ### END LIBTOOL TAG CONFIG: $tagname
18031 # If there is no Makefile yet, we rely on a make rule to execute
18032 # `config.status --recheck' to rerun these tests and create the
18033 # libtool script then.
18034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18035 if test -f "$ltmain_in"; then
18036 test -f Makefile && make "$ltmain"
18042 ac_cpp='$CPP $CPPFLAGS'
18043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18058 # Source file extension for RC test sources.
18061 # Object file extension for compiled RC test sources.
18065 # Code to be used in simple compile tests
18066 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18068 # Code to be used in simple link tests
18069 lt_simple_link_test_code="$lt_simple_compile_test_code"
18071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18073 # If no C compiler was specified, use CC.
18076 # If no C compiler flags were specified, use CFLAGS.
18077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18079 # Allow CC to be a program name with arguments.
18083 # save warnings/boilerplate of simple test code
18084 ac_outfile=conftest.$ac_objext
18085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18087 _lt_compiler_boilerplate=`cat conftest.err`
18090 ac_outfile=conftest.$ac_objext
18091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18093 _lt_linker_boilerplate=`cat conftest.err`
18097 # Allow CC to be a program name with arguments.
18102 for cc_temp in $compiler""; do
18104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18112 lt_cv_prog_compiler_c_o_RC=yes
18114 # The else clause should only fire when bootstrapping the
18115 # libtool distribution, otherwise you forgot to ship ltmain.sh
18116 # with your package, and you will get complaints that there are
18117 # no rules to generate ltmain.sh.
18118 if test -f "$ltmain"; then
18119 # See if we are running on zsh, and set the options which allow our commands through
18120 # without removal of \ escapes.
18121 if test -n "${ZSH_VERSION+set}" ; then
18122 setopt NO_GLOB_SUBST
18124 # Now quote all the things that may contain metacharacters while being
18125 # careful not to overquote the AC_SUBSTed values. We take copies of the
18126 # variables and quote the copies for generation of the libtool script.
18127 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18129 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18130 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18131 deplibs_check_method reload_flag reload_cmds need_locks \
18132 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18133 lt_cv_sys_global_symbol_to_c_name_address \
18134 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18135 old_postinstall_cmds old_postuninstall_cmds \
18139 lt_prog_compiler_wl_RC \
18140 lt_prog_compiler_pic_RC \
18141 lt_prog_compiler_static_RC \
18142 lt_prog_compiler_no_builtin_flag_RC \
18143 export_dynamic_flag_spec_RC \
18144 thread_safe_flag_spec_RC \
18145 whole_archive_flag_spec_RC \
18146 enable_shared_with_static_runtimes_RC \
18147 old_archive_cmds_RC \
18148 old_archive_from_new_cmds_RC \
18149 predep_objects_RC \
18150 postdep_objects_RC \
18153 compiler_lib_search_path_RC \
18155 archive_expsym_cmds_RC \
18156 postinstall_cmds_RC \
18157 postuninstall_cmds_RC \
18158 old_archive_from_expsyms_cmds_RC \
18159 allow_undefined_flag_RC \
18160 no_undefined_flag_RC \
18161 export_symbols_cmds_RC \
18162 hardcode_libdir_flag_spec_RC \
18163 hardcode_libdir_flag_spec_ld_RC \
18164 hardcode_libdir_separator_RC \
18165 hardcode_automatic_RC \
18167 module_expsym_cmds_RC \
18168 lt_cv_prog_compiler_c_o_RC \
18169 exclude_expsyms_RC \
18170 include_expsyms_RC; do
18173 old_archive_cmds_RC | \
18174 old_archive_from_new_cmds_RC | \
18175 archive_cmds_RC | \
18176 archive_expsym_cmds_RC | \
18178 module_expsym_cmds_RC | \
18179 old_archive_from_expsyms_cmds_RC | \
18180 export_symbols_cmds_RC | \
18181 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18182 postinstall_cmds | postuninstall_cmds | \
18183 old_postinstall_cmds | old_postuninstall_cmds | \
18184 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18185 # Double-quote double-evaled strings.
18186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18195 *'\$0 --fallback-echo"')
18196 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18202 cat <<__EOF__ >> "$cfgfile"
18203 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18205 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18207 # Shell to use when invoking shell scripts.
18210 # Whether or not to build shared libraries.
18211 build_libtool_libs=$enable_shared
18213 # Whether or not to build static libraries.
18214 build_old_libs=$enable_static
18216 # Whether or not to add -lc for building shared libraries.
18217 build_libtool_need_lc=$archive_cmds_need_lc_RC
18219 # Whether or not to disallow shared libs when runtime libs are static
18220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18222 # Whether or not to optimize for fast installation.
18223 fast_install=$enable_fast_install
18226 host_alias=$host_alias
18230 # The build system.
18231 build_alias=$build_alias
18235 # An echo program that does not interpret backslashes.
18240 AR_FLAGS=$lt_AR_FLAGS
18245 # LTCC compiler flags.
18246 LTCFLAGS=$lt_LTCFLAGS
18248 # A language-specific compiler.
18251 # Is the compiler the GNU C compiler?
18257 # The linker used to build libraries.
18260 # Whether we need hard or soft links.
18263 # A BSD-compatible nm program.
18266 # A symbol stripping program
18269 # Used to examine libraries when file_magic_cmd begins "file"
18270 MAGIC_CMD=$MAGIC_CMD
18272 # Used on cygwin: DLL creation program.
18275 # Used on cygwin: object dumper.
18278 # Used on cygwin: assembler.
18281 # The name of the directory that contains temporary libtool files.
18284 # How to create reloadable object files.
18285 reload_flag=$lt_reload_flag
18286 reload_cmds=$lt_reload_cmds
18288 # How to pass a linker flag through the compiler.
18289 wl=$lt_lt_prog_compiler_wl_RC
18291 # Object file suffix (normally "o").
18292 objext="$ac_objext"
18294 # Old archive suffix (normally "a").
18297 # Shared library suffix (normally ".so").
18298 shrext_cmds='$shrext_cmds'
18300 # Executable file suffix (normally "").
18303 # Additional compiler flags for building library objects.
18304 pic_flag=$lt_lt_prog_compiler_pic_RC
18307 # What is the maximum length of a command?
18308 max_cmd_len=$lt_cv_sys_max_cmd_len
18310 # Does compiler simultaneously support -c and -o options?
18311 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18313 # Must we lock files when doing compilation?
18314 need_locks=$lt_need_locks
18316 # Do we need the lib prefix for modules?
18317 need_lib_prefix=$need_lib_prefix
18319 # Do we need a version for libraries?
18320 need_version=$need_version
18322 # Whether dlopen is supported.
18323 dlopen_support=$enable_dlopen
18325 # Whether dlopen of programs is supported.
18326 dlopen_self=$enable_dlopen_self
18328 # Whether dlopen of statically linked programs is supported.
18329 dlopen_self_static=$enable_dlopen_self_static
18331 # Compiler flag to prevent dynamic linking.
18332 link_static_flag=$lt_lt_prog_compiler_static_RC
18334 # Compiler flag to turn off builtin functions.
18335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18337 # Compiler flag to allow reflexive dlopens.
18338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18340 # Compiler flag to generate shared objects directly from archives.
18341 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18343 # Compiler flag to generate thread-safe objects.
18344 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18346 # Library versioning type.
18347 version_type=$version_type
18349 # Format of library name prefix.
18350 libname_spec=$lt_libname_spec
18352 # List of archive names. First name is the real one, the rest are links.
18353 # The last name is the one that the linker finds with -lNAME.
18354 library_names_spec=$lt_library_names_spec
18356 # The coded name of the library, if different from the real name.
18357 soname_spec=$lt_soname_spec
18359 # Commands used to build and install an old-style archive.
18361 old_archive_cmds=$lt_old_archive_cmds_RC
18362 old_postinstall_cmds=$lt_old_postinstall_cmds
18363 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18365 # Create an old-style archive from a shared archive.
18366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18368 # Create a temporary old-style archive to link instead of a shared archive.
18369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18371 # Commands used to build and install a shared archive.
18372 archive_cmds=$lt_archive_cmds_RC
18373 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18374 postinstall_cmds=$lt_postinstall_cmds
18375 postuninstall_cmds=$lt_postuninstall_cmds
18377 # Commands used to build a loadable module (assumed same as above if empty)
18378 module_cmds=$lt_module_cmds_RC
18379 module_expsym_cmds=$lt_module_expsym_cmds_RC
18381 # Commands to strip libraries.
18382 old_striplib=$lt_old_striplib
18383 striplib=$lt_striplib
18385 # Dependencies to place before the objects being linked to create a
18387 predep_objects=$lt_predep_objects_RC
18389 # Dependencies to place after the objects being linked to create a
18391 postdep_objects=$lt_postdep_objects_RC
18393 # Dependencies to place before the objects being linked to create a
18395 predeps=$lt_predeps_RC
18397 # Dependencies to place after the objects being linked to create a
18399 postdeps=$lt_postdeps_RC
18401 # The library search path used internally by the compiler when linking
18402 # a shared library.
18403 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18405 # Method to check whether dependent libraries are shared objects.
18406 deplibs_check_method=$lt_deplibs_check_method
18408 # Command to use when deplibs_check_method == file_magic.
18409 file_magic_cmd=$lt_file_magic_cmd
18411 # Flag that allows shared libraries with undefined symbols to be built.
18412 allow_undefined_flag=$lt_allow_undefined_flag_RC
18414 # Flag that forces no undefined symbols.
18415 no_undefined_flag=$lt_no_undefined_flag_RC
18417 # Commands used to finish a libtool library installation in a directory.
18418 finish_cmds=$lt_finish_cmds
18420 # Same as above, but a single script fragment to be evaled but not shown.
18421 finish_eval=$lt_finish_eval
18423 # Take the output of nm and produce a listing of raw symbols and C names.
18424 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18426 # Transform the output of nm in a proper C declaration
18427 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18429 # Transform the output of nm in a C name address pair
18430 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18432 # This is the shared library runtime path variable.
18433 runpath_var=$runpath_var
18435 # This is the shared library path variable.
18436 shlibpath_var=$shlibpath_var
18438 # Is shlibpath searched before the hard-coded library search path?
18439 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18441 # How to hardcode a shared library path into an executable.
18442 hardcode_action=$hardcode_action_RC
18444 # Whether we should hardcode library paths into libraries.
18445 hardcode_into_libs=$hardcode_into_libs
18447 # Flag to hardcode \$libdir into a binary during linking.
18448 # This must work even if \$libdir does not exist.
18449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18451 # If ld is used when linking, flag to hardcode \$libdir into
18452 # a binary during linking. This must work even if \$libdir does
18454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18456 # Whether we need a single -rpath flag with a separated argument.
18457 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18459 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18460 # resulting binary.
18461 hardcode_direct=$hardcode_direct_RC
18463 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18464 # resulting binary.
18465 hardcode_minus_L=$hardcode_minus_L_RC
18467 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18468 # the resulting binary.
18469 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18471 # Set to yes if building a shared library automatically hardcodes DIR into the library
18472 # and all subsequent libraries and executables linked against it.
18473 hardcode_automatic=$hardcode_automatic_RC
18475 # Variables whose values should be saved in libtool wrapper scripts and
18476 # restored at relink time.
18477 variables_saved_for_relink="$variables_saved_for_relink"
18479 # Whether libtool must link a program against all its dependency libraries.
18480 link_all_deplibs=$link_all_deplibs_RC
18482 # Compile-time system search path for libraries
18483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18485 # Run-time system search path for libraries
18486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18488 # Fix the shell variable \$srcfile for the compiler.
18489 fix_srcfile_path="$fix_srcfile_path_RC"
18491 # Set to yes if exported symbols are required.
18492 always_export_symbols=$always_export_symbols_RC
18494 # The commands to list exported symbols.
18495 export_symbols_cmds=$lt_export_symbols_cmds_RC
18497 # The commands to extract the exported symbol list from a shared archive.
18498 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18500 # Symbols that should not be listed in the preloaded symbols.
18501 exclude_expsyms=$lt_exclude_expsyms_RC
18503 # Symbols that must always be exported.
18504 include_expsyms=$lt_include_expsyms_RC
18506 # ### END LIBTOOL TAG CONFIG: $tagname
18512 # If there is no Makefile yet, we rely on a make rule to execute
18513 # `config.status --recheck' to rerun these tests and create the
18514 # libtool script then.
18515 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18516 if test -f "$ltmain_in"; then
18517 test -f Makefile && make "$ltmain"
18523 ac_cpp='$CPP $CPPFLAGS'
18524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18533 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18534 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18535 { (exit 1); exit 1; }; }
18539 # Append the new tag name to the list of available tags.
18540 if test -n "$tagname" ; then
18541 available_tags="$available_tags $tagname"
18547 # Now substitute the updated list of available tags.
18548 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18549 mv "${ofile}T" "$ofile"
18553 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18554 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18555 { (exit 1); exit 1; }; }
18561 # This can be used to rebuild libtool when needed
18562 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18564 # Always use our own libtool.
18565 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18567 # Prevent multiple expansion
18590 # Check whether some low-level functions/files are available
18591 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18592 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18593 if test "${ac_cv_header_stdc+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 cat >conftest.$ac_ext <<_ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18602 #include <stdlib.h>
18603 #include <stdarg.h>
18604 #include <string.h>
18615 rm -f conftest.$ac_objext
18616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18617 (eval $ac_compile) 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; } &&
18630 { ac_try='test -s conftest.$ac_objext'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_cv_header_stdc=yes
18638 echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 ac_cv_header_stdc=no
18643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18645 if test $ac_cv_header_stdc = yes; then
18646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18653 #include <string.h>
18656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18657 $EGREP "memchr" >/dev/null 2>&1; then
18660 ac_cv_header_stdc=no
18666 if test $ac_cv_header_stdc = yes; then
18667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 #include <stdlib.h>
18677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18678 $EGREP "free" >/dev/null 2>&1; then
18681 ac_cv_header_stdc=no
18687 if test $ac_cv_header_stdc = yes; then
18688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18689 if test "$cross_compiling" = yes; then
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18699 #if ((' ' & 0x0FF) == 0x020)
18700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18703 # define ISLOWER(c) \
18704 (('a' <= (c) && (c) <= 'i') \
18705 || ('j' <= (c) && (c) <= 'r') \
18706 || ('s' <= (c) && (c) <= 'z'))
18707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18715 for (i = 0; i < 256; i++)
18716 if (XOR (islower (i), ISLOWER (i))
18717 || toupper (i) != TOUPPER (i))
18722 rm -f conftest$ac_exeext
18723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18724 (eval $ac_link) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18735 echo "$as_me: program exited with status $ac_status" >&5
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 ( exit $ac_status )
18740 ac_cv_header_stdc=no
18742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18746 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18747 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18748 if test $ac_cv_header_stdc = yes; then
18750 cat >>confdefs.h <<\_ACEOF
18751 #define STDC_HEADERS 1
18757 # Here are some examples of how to check for the existence of a fn or file
18758 ##AC_CHECK_FUNCS(memmove)
18759 ##AC_CHECK_HEADERS(sys/resource.h)
18761 for ac_func in setjmp
18763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18764 echo "$as_me:$LINENO: checking for $ac_func" >&5
18765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18766 if eval "test \"\${$as_ac_var+set}\" = set"; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 cat >conftest.$ac_ext <<_ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18777 #define $ac_func innocuous_$ac_func
18779 /* System header to define __stub macros and hopefully few prototypes,
18780 which can conflict with char $ac_func (); below.
18781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18782 <limits.h> exists even on freestanding compilers. */
18785 # include <limits.h>
18787 # include <assert.h>
18792 /* Override any gcc2 internal prototype to avoid an error. */
18797 /* We use char because int might match the return type of a gcc2
18798 builtin and then its argument prototype would still apply. */
18800 /* The GNU C library defines this for functions which it implements
18801 to always fail with ENOSYS. Some functions are actually named
18802 something starting with __ and the normal name is an alias. */
18803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18806 char (*f) () = $ac_func;
18815 return f != $ac_func;
18820 rm -f conftest.$ac_objext conftest$ac_exeext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18822 (eval $ac_link) 2>conftest.er1
18824 grep -v '^ *+' conftest.er1 >conftest.err
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
18829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest$ac_exeext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 eval "$as_ac_var=yes"
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 eval "$as_ac_var=no"
18848 rm -f conftest.err conftest.$ac_objext \
18849 conftest$ac_exeext conftest.$ac_ext
18851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18853 if test `eval echo '${'$as_ac_var'}'` = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18862 for ac_func in longjmp
18864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18865 echo "$as_me:$LINENO: checking for $ac_func" >&5
18866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18867 if eval "test \"\${$as_ac_var+set}\" = set"; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18878 #define $ac_func innocuous_$ac_func
18880 /* System header to define __stub macros and hopefully few prototypes,
18881 which can conflict with char $ac_func (); below.
18882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18883 <limits.h> exists even on freestanding compilers. */
18886 # include <limits.h>
18888 # include <assert.h>
18893 /* Override any gcc2 internal prototype to avoid an error. */
18898 /* We use char because int might match the return type of a gcc2
18899 builtin and then its argument prototype would still apply. */
18901 /* The GNU C library defines this for functions which it implements
18902 to always fail with ENOSYS. Some functions are actually named
18903 something starting with __ and the normal name is an alias. */
18904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18907 char (*f) () = $ac_func;
18916 return f != $ac_func;
18921 rm -f conftest.$ac_objext conftest$ac_exeext
18922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18923 (eval $ac_link) 2>conftest.er1
18925 grep -v '^ *+' conftest.er1 >conftest.err
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; } &&
18936 { ac_try='test -s conftest$ac_exeext'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 eval "$as_ac_var=yes"
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 eval "$as_ac_var=no"
18949 rm -f conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18954 if test `eval echo '${'$as_ac_var'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18963 for ac_func in strcmp
18965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18966 echo "$as_me:$LINENO: checking for $ac_func" >&5
18967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18968 if eval "test \"\${$as_ac_var+set}\" = set"; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18979 #define $ac_func innocuous_$ac_func
18981 /* System header to define __stub macros and hopefully few prototypes,
18982 which can conflict with char $ac_func (); below.
18983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18984 <limits.h> exists even on freestanding compilers. */
18987 # include <limits.h>
18989 # include <assert.h>
18994 /* Override any gcc2 internal prototype to avoid an error. */
18999 /* We use char because int might match the return type of a gcc2
19000 builtin and then its argument prototype would still apply. */
19002 /* The GNU C library defines this for functions which it implements
19003 to always fail with ENOSYS. Some functions are actually named
19004 something starting with __ and the normal name is an alias. */
19005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19008 char (*f) () = $ac_func;
19017 return f != $ac_func;
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19024 (eval $ac_link) 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
19031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 eval "$as_ac_var=yes"
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 eval "$as_ac_var=no"
19050 rm -f conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19055 if test `eval echo '${'$as_ac_var'}'` = yes; then
19056 cat >>confdefs.h <<_ACEOF
19057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19064 for ac_func in strcpy
19066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19067 echo "$as_me:$LINENO: checking for $ac_func" >&5
19068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19069 if eval "test \"\${$as_ac_var+set}\" = set"; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19080 #define $ac_func innocuous_$ac_func
19082 /* System header to define __stub macros and hopefully few prototypes,
19083 which can conflict with char $ac_func (); below.
19084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19085 <limits.h> exists even on freestanding compilers. */
19088 # include <limits.h>
19090 # include <assert.h>
19095 /* Override any gcc2 internal prototype to avoid an error. */
19100 /* We use char because int might match the return type of a gcc2
19101 builtin and then its argument prototype would still apply. */
19103 /* The GNU C library defines this for functions which it implements
19104 to always fail with ENOSYS. Some functions are actually named
19105 something starting with __ and the normal name is an alias. */
19106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19109 char (*f) () = $ac_func;
19118 return f != $ac_func;
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19125 (eval $ac_link) 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 eval "$as_ac_var=yes"
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19149 eval "$as_ac_var=no"
19151 rm -f conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19156 if test `eval echo '${'$as_ac_var'}'` = yes; then
19157 cat >>confdefs.h <<_ACEOF
19158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19165 for ac_func in memcpy
19167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19168 echo "$as_me:$LINENO: checking for $ac_func" >&5
19169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19170 if eval "test \"\${$as_ac_var+set}\" = set"; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19181 #define $ac_func innocuous_$ac_func
19183 /* System header to define __stub macros and hopefully few prototypes,
19184 which can conflict with char $ac_func (); below.
19185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19186 <limits.h> exists even on freestanding compilers. */
19189 # include <limits.h>
19191 # include <assert.h>
19196 /* Override any gcc2 internal prototype to avoid an error. */
19201 /* We use char because int might match the return type of a gcc2
19202 builtin and then its argument prototype would still apply. */
19204 /* The GNU C library defines this for functions which it implements
19205 to always fail with ENOSYS. Some functions are actually named
19206 something starting with __ and the normal name is an alias. */
19207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19210 char (*f) () = $ac_func;
19219 return f != $ac_func;
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19226 (eval $ac_link) 2>conftest.er1
19228 grep -v '^ *+' conftest.er1 >conftest.err
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19245 eval "$as_ac_var=yes"
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 eval "$as_ac_var=no"
19252 rm -f conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19257 if test `eval echo '${'$as_ac_var'}'` = yes; then
19258 cat >>confdefs.h <<_ACEOF
19259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19266 for ac_func in memset
19268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269 echo "$as_me:$LINENO: checking for $ac_func" >&5
19270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19271 if eval "test \"\${$as_ac_var+set}\" = set"; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19282 #define $ac_func innocuous_$ac_func
19284 /* System header to define __stub macros and hopefully few prototypes,
19285 which can conflict with char $ac_func (); below.
19286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19287 <limits.h> exists even on freestanding compilers. */
19290 # include <limits.h>
19292 # include <assert.h>
19297 /* Override any gcc2 internal prototype to avoid an error. */
19302 /* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19305 /* The GNU C library defines this for functions which it implements
19306 to always fail with ENOSYS. Some functions are actually named
19307 something starting with __ and the normal name is an alias. */
19308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19311 char (*f) () = $ac_func;
19320 return f != $ac_func;
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest$ac_exeext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 eval "$as_ac_var=yes"
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19351 eval "$as_ac_var=no"
19353 rm -f conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
19356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19358 if test `eval echo '${'$as_ac_var'}'` = yes; then
19359 cat >>confdefs.h <<_ACEOF
19360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19367 for ac_func in malloc
19369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19370 echo "$as_me:$LINENO: checking for $ac_func" >&5
19371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19372 if eval "test \"\${$as_ac_var+set}\" = set"; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 cat >conftest.$ac_ext <<_ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19383 #define $ac_func innocuous_$ac_func
19385 /* System header to define __stub macros and hopefully few prototypes,
19386 which can conflict with char $ac_func (); below.
19387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19388 <limits.h> exists even on freestanding compilers. */
19391 # include <limits.h>
19393 # include <assert.h>
19398 /* Override any gcc2 internal prototype to avoid an error. */
19403 /* We use char because int might match the return type of a gcc2
19404 builtin and then its argument prototype would still apply. */
19406 /* The GNU C library defines this for functions which it implements
19407 to always fail with ENOSYS. Some functions are actually named
19408 something starting with __ and the normal name is an alias. */
19409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19412 char (*f) () = $ac_func;
19421 return f != $ac_func;
19426 rm -f conftest.$ac_objext conftest$ac_exeext
19427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19428 (eval $ac_link) 2>conftest.er1
19430 grep -v '^ *+' conftest.er1 >conftest.err
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
19435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest$ac_exeext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 eval "$as_ac_var=yes"
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 eval "$as_ac_var=no"
19454 rm -f conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
19457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19459 if test `eval echo '${'$as_ac_var'}'` = yes; then
19460 cat >>confdefs.h <<_ACEOF
19461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19468 for ac_func in calloc
19470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19471 echo "$as_me:$LINENO: checking for $ac_func" >&5
19472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19473 if eval "test \"\${$as_ac_var+set}\" = set"; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19484 #define $ac_func innocuous_$ac_func
19486 /* System header to define __stub macros and hopefully few prototypes,
19487 which can conflict with char $ac_func (); below.
19488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19489 <limits.h> exists even on freestanding compilers. */
19492 # include <limits.h>
19494 # include <assert.h>
19499 /* Override any gcc2 internal prototype to avoid an error. */
19504 /* We use char because int might match the return type of a gcc2
19505 builtin and then its argument prototype would still apply. */
19507 /* The GNU C library defines this for functions which it implements
19508 to always fail with ENOSYS. Some functions are actually named
19509 something starting with __ and the normal name is an alias. */
19510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19513 char (*f) () = $ac_func;
19522 return f != $ac_func;
19527 rm -f conftest.$ac_objext conftest$ac_exeext
19528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19529 (eval $ac_link) 2>conftest.er1
19531 grep -v '^ *+' conftest.er1 >conftest.err
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
19536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest$ac_exeext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 eval "$as_ac_var=yes"
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 eval "$as_ac_var=no"
19555 rm -f conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19560 if test `eval echo '${'$as_ac_var'}'` = yes; then
19561 cat >>confdefs.h <<_ACEOF
19562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19569 for ac_func in free
19571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19572 echo "$as_me:$LINENO: checking for $ac_func" >&5
19573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19574 if eval "test \"\${$as_ac_var+set}\" = set"; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 cat >conftest.$ac_ext <<_ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19585 #define $ac_func innocuous_$ac_func
19587 /* System header to define __stub macros and hopefully few prototypes,
19588 which can conflict with char $ac_func (); below.
19589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19590 <limits.h> exists even on freestanding compilers. */
19593 # include <limits.h>
19595 # include <assert.h>
19600 /* Override any gcc2 internal prototype to avoid an error. */
19605 /* We use char because int might match the return type of a gcc2
19606 builtin and then its argument prototype would still apply. */
19608 /* The GNU C library defines this for functions which it implements
19609 to always fail with ENOSYS. Some functions are actually named
19610 something starting with __ and the normal name is an alias. */
19611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19614 char (*f) () = $ac_func;
19623 return f != $ac_func;
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 eval "$as_ac_var=yes"
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 eval "$as_ac_var=no"
19656 rm -f conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19661 if test `eval echo '${'$as_ac_var'}'` = yes; then
19662 cat >>confdefs.h <<_ACEOF
19663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19670 for ac_func in exit
19672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19673 echo "$as_me:$LINENO: checking for $ac_func" >&5
19674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19675 if eval "test \"\${$as_ac_var+set}\" = set"; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19686 #define $ac_func innocuous_$ac_func
19688 /* System header to define __stub macros and hopefully few prototypes,
19689 which can conflict with char $ac_func (); below.
19690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19691 <limits.h> exists even on freestanding compilers. */
19694 # include <limits.h>
19696 # include <assert.h>
19701 /* Override any gcc2 internal prototype to avoid an error. */
19706 /* We use char because int might match the return type of a gcc2
19707 builtin and then its argument prototype would still apply. */
19709 /* The GNU C library defines this for functions which it implements
19710 to always fail with ENOSYS. Some functions are actually named
19711 something starting with __ and the normal name is an alias. */
19712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19715 char (*f) () = $ac_func;
19724 return f != $ac_func;
19729 rm -f conftest.$ac_objext conftest$ac_exeext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19731 (eval $ac_link) 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } &&
19744 { ac_try='test -s conftest$ac_exeext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 eval "$as_ac_var=yes"
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 eval "$as_ac_var=no"
19757 rm -f conftest.err conftest.$ac_objext \
19758 conftest$ac_exeext conftest.$ac_ext
19760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19762 if test `eval echo '${'$as_ac_var'}'` = yes; then
19763 cat >>confdefs.h <<_ACEOF
19764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19771 for ac_func in signal
19773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19774 echo "$as_me:$LINENO: checking for $ac_func" >&5
19775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19776 if eval "test \"\${$as_ac_var+set}\" = set"; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19787 #define $ac_func innocuous_$ac_func
19789 /* System header to define __stub macros and hopefully few prototypes,
19790 which can conflict with char $ac_func (); below.
19791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19792 <limits.h> exists even on freestanding compilers. */
19795 # include <limits.h>
19797 # include <assert.h>
19802 /* Override any gcc2 internal prototype to avoid an error. */
19807 /* We use char because int might match the return type of a gcc2
19808 builtin and then its argument prototype would still apply. */
19810 /* The GNU C library defines this for functions which it implements
19811 to always fail with ENOSYS. Some functions are actually named
19812 something starting with __ and the normal name is an alias. */
19813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19816 char (*f) () = $ac_func;
19825 return f != $ac_func;
19830 rm -f conftest.$ac_objext conftest$ac_exeext
19831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19832 (eval $ac_link) 2>conftest.er1
19834 grep -v '^ *+' conftest.er1 >conftest.err
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
19839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest$ac_exeext'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; }; then
19851 eval "$as_ac_var=yes"
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 eval "$as_ac_var=no"
19858 rm -f conftest.err conftest.$ac_objext \
19859 conftest$ac_exeext conftest.$ac_ext
19861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19863 if test `eval echo '${'$as_ac_var'}'` = yes; then
19864 cat >>confdefs.h <<_ACEOF
19865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19872 for ac_func in printf
19874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19875 echo "$as_me:$LINENO: checking for $ac_func" >&5
19876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19877 if eval "test \"\${$as_ac_var+set}\" = set"; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19888 #define $ac_func innocuous_$ac_func
19890 /* System header to define __stub macros and hopefully few prototypes,
19891 which can conflict with char $ac_func (); below.
19892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19893 <limits.h> exists even on freestanding compilers. */
19896 # include <limits.h>
19898 # include <assert.h>
19903 /* Override any gcc2 internal prototype to avoid an error. */
19908 /* We use char because int might match the return type of a gcc2
19909 builtin and then its argument prototype would still apply. */
19911 /* The GNU C library defines this for functions which it implements
19912 to always fail with ENOSYS. Some functions are actually named
19913 something starting with __ and the normal name is an alias. */
19914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19917 char (*f) () = $ac_func;
19926 return f != $ac_func;
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19933 (eval $ac_link) 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest$ac_exeext'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 eval "$as_ac_var=yes"
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 eval "$as_ac_var=no"
19959 rm -f conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19964 if test `eval echo '${'$as_ac_var'}'` = yes; then
19965 cat >>confdefs.h <<_ACEOF
19966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19973 for ac_func in fprintf
19975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19976 echo "$as_me:$LINENO: checking for $ac_func" >&5
19977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19978 if eval "test \"\${$as_ac_var+set}\" = set"; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19989 #define $ac_func innocuous_$ac_func
19991 /* System header to define __stub macros and hopefully few prototypes,
19992 which can conflict with char $ac_func (); below.
19993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19994 <limits.h> exists even on freestanding compilers. */
19997 # include <limits.h>
19999 # include <assert.h>
20004 /* Override any gcc2 internal prototype to avoid an error. */
20009 /* We use char because int might match the return type of a gcc2
20010 builtin and then its argument prototype would still apply. */
20012 /* The GNU C library defines this for functions which it implements
20013 to always fail with ENOSYS. Some functions are actually named
20014 something starting with __ and the normal name is an alias. */
20015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20018 char (*f) () = $ac_func;
20027 return f != $ac_func;
20032 rm -f conftest.$ac_objext conftest$ac_exeext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20034 (eval $ac_link) 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest$ac_exeext'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 eval "$as_ac_var=yes"
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 eval "$as_ac_var=no"
20060 rm -f conftest.err conftest.$ac_objext \
20061 conftest$ac_exeext conftest.$ac_ext
20063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20065 if test `eval echo '${'$as_ac_var'}'` = yes; then
20066 cat >>confdefs.h <<_ACEOF
20067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20074 for ac_func in snprintf
20076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20077 echo "$as_me:$LINENO: checking for $ac_func" >&5
20078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20079 if eval "test \"\${$as_ac_var+set}\" = set"; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20090 #define $ac_func innocuous_$ac_func
20092 /* System header to define __stub macros and hopefully few prototypes,
20093 which can conflict with char $ac_func (); below.
20094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20095 <limits.h> exists even on freestanding compilers. */
20098 # include <limits.h>
20100 # include <assert.h>
20105 /* Override any gcc2 internal prototype to avoid an error. */
20110 /* We use char because int might match the return type of a gcc2
20111 builtin and then its argument prototype would still apply. */
20113 /* The GNU C library defines this for functions which it implements
20114 to always fail with ENOSYS. Some functions are actually named
20115 something starting with __ and the normal name is an alias. */
20116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20119 char (*f) () = $ac_func;
20128 return f != $ac_func;
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 eval "$as_ac_var=yes"
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 eval "$as_ac_var=no"
20161 rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20166 if test `eval echo '${'$as_ac_var'}'` = yes; then
20167 cat >>confdefs.h <<_ACEOF
20168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20175 for ac_func in vsnprintf
20177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178 echo "$as_me:$LINENO: checking for $ac_func" >&5
20179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20180 if eval "test \"\${$as_ac_var+set}\" = set"; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191 #define $ac_func innocuous_$ac_func
20193 /* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20199 # include <limits.h>
20201 # include <assert.h>
20206 /* Override any gcc2 internal prototype to avoid an error. */
20211 /* We use char because int might match the return type of a gcc2
20212 builtin and then its argument prototype would still apply. */
20214 /* The GNU C library defines this for functions which it implements
20215 to always fail with ENOSYS. Some functions are actually named
20216 something starting with __ and the normal name is an alias. */
20217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20220 char (*f) () = $ac_func;
20229 return f != $ac_func;
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20236 (eval $ac_link) 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } &&
20243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest$ac_exeext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 eval "$as_ac_var=yes"
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20260 eval "$as_ac_var=no"
20262 rm -f conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
20265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20267 if test `eval echo '${'$as_ac_var'}'` = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20276 for ac_header in assert.h
20278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20280 echo "$as_me:$LINENO: checking for $ac_header" >&5
20281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20288 # Is the header compilable?
20289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20291 cat >conftest.$ac_ext <<_ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 $ac_includes_default
20298 #include <$ac_header>
20300 rm -f conftest.$ac_objext
20301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20302 (eval $ac_compile) 2>conftest.er1
20304 grep -v '^ *+' conftest.er1 >conftest.err
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest.$ac_objext'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_header_compiler=yes
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ac_header_compiler=no
20328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20330 echo "${ECHO_T}$ac_header_compiler" >&6
20332 # Is the header present?
20333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20335 cat >conftest.$ac_ext <<_ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 #include <$ac_header>
20343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } >/dev/null; then
20351 if test -s conftest.err; then
20352 ac_cpp_err=$ac_c_preproc_warn_flag
20353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20360 if test -z "$ac_cpp_err"; then
20361 ac_header_preproc=yes
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ac_header_preproc=no
20368 rm -f conftest.err conftest.$ac_ext
20369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20370 echo "${ECHO_T}$ac_header_preproc" >&6
20372 # So? What about this header?
20373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20379 ac_header_preproc=yes
20382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20396 ## ------------------------------------ ##
20397 ## Report this to opensource@google.com ##
20398 ## ------------------------------------ ##
20401 sed "s/^/$as_me: WARNING: /" >&2
20404 echo "$as_me:$LINENO: checking for $ac_header" >&5
20405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 eval "$as_ac_Header=\$ac_header_preproc"
20411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20416 cat >>confdefs.h <<_ACEOF
20417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20425 for ac_header in malloc.h
20427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20429 echo "$as_me:$LINENO: checking for $ac_header" >&5
20430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20437 # Is the header compilable?
20438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 $ac_includes_default
20447 #include <$ac_header>
20449 rm -f conftest.$ac_objext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451 (eval $ac_compile) 2>conftest.er1
20453 grep -v '^ *+' conftest.er1 >conftest.err
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
20458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest.$ac_objext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_header_compiler=yes
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_header_compiler=no
20477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20479 echo "${ECHO_T}$ac_header_compiler" >&6
20481 # Is the header present?
20482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20484 cat >conftest.$ac_ext <<_ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20490 #include <$ac_header>
20492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20495 grep -v '^ *+' conftest.er1 >conftest.err
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } >/dev/null; then
20500 if test -s conftest.err; then
20501 ac_cpp_err=$ac_c_preproc_warn_flag
20502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20509 if test -z "$ac_cpp_err"; then
20510 ac_header_preproc=yes
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 ac_header_preproc=no
20517 rm -f conftest.err conftest.$ac_ext
20518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20519 echo "${ECHO_T}$ac_header_preproc" >&6
20521 # So? What about this header?
20522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20528 ac_header_preproc=yes
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20545 ## ------------------------------------ ##
20546 ## Report this to opensource@google.com ##
20547 ## ------------------------------------ ##
20550 sed "s/^/$as_me: WARNING: /" >&2
20553 echo "$as_me:$LINENO: checking for $ac_header" >&5
20554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 eval "$as_ac_Header=\$ac_header_preproc"
20560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20574 for ac_header in setjmp.h
20576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20578 echo "$as_me:$LINENO: checking for $ac_header" >&5
20579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20586 # Is the header compilable?
20587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 $ac_includes_default
20596 #include <$ac_header>
20598 rm -f conftest.$ac_objext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600 (eval $ac_compile) 2>conftest.er1
20602 grep -v '^ *+' conftest.er1 >conftest.err
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; } &&
20613 { ac_try='test -s conftest.$ac_objext'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_header_compiler=yes
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_header_compiler=no
20626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628 echo "${ECHO_T}$ac_header_compiler" >&6
20630 # Is the header present?
20631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 #include <$ac_header>
20641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20644 grep -v '^ *+' conftest.er1 >conftest.err
20646 cat conftest.err >&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } >/dev/null; then
20649 if test -s conftest.err; then
20650 ac_cpp_err=$ac_c_preproc_warn_flag
20651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20658 if test -z "$ac_cpp_err"; then
20659 ac_header_preproc=yes
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_header_preproc=no
20666 rm -f conftest.err conftest.$ac_ext
20667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20668 echo "${ECHO_T}$ac_header_preproc" >&6
20670 # So? What about this header?
20671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20677 ac_header_preproc=yes
20680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20694 ## ------------------------------------ ##
20695 ## Report this to opensource@google.com ##
20696 ## ------------------------------------ ##
20699 sed "s/^/$as_me: WARNING: /" >&2
20702 echo "$as_me:$LINENO: checking for $ac_header" >&5
20703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 eval "$as_ac_Header=\$ac_header_preproc"
20709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20723 for ac_header in stdarg.h
20725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20727 echo "$as_me:$LINENO: checking for $ac_header" >&5
20728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20735 # Is the header compilable?
20736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 $ac_includes_default
20745 #include <$ac_header>
20747 rm -f conftest.$ac_objext
20748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20749 (eval $ac_compile) 2>conftest.er1
20751 grep -v '^ *+' conftest.er1 >conftest.err
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
20756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_header_compiler=yes
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ac_header_compiler=no
20775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6
20779 # Is the header present?
20780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <$ac_header>
20790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } >/dev/null; then
20798 if test -s conftest.err; then
20799 ac_cpp_err=$ac_c_preproc_warn_flag
20800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20807 if test -z "$ac_cpp_err"; then
20808 ac_header_preproc=yes
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_header_preproc=no
20815 rm -f conftest.err conftest.$ac_ext
20816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20817 echo "${ECHO_T}$ac_header_preproc" >&6
20819 # So? What about this header?
20820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20826 ac_header_preproc=yes
20829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20843 ## ------------------------------------ ##
20844 ## Report this to opensource@google.com ##
20845 ## ------------------------------------ ##
20848 sed "s/^/$as_me: WARNING: /" >&2
20851 echo "$as_me:$LINENO: checking for $ac_header" >&5
20852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 eval "$as_ac_Header=\$ac_header_preproc"
20858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20863 cat >>confdefs.h <<_ACEOF
20864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20872 for ac_header in stddef.h
20874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20876 echo "$as_me:$LINENO: checking for $ac_header" >&5
20877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20884 # Is the header compilable?
20885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20887 cat >conftest.$ac_ext <<_ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 $ac_includes_default
20894 #include <$ac_header>
20896 rm -f conftest.$ac_objext
20897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20898 (eval $ac_compile) 2>conftest.er1
20900 grep -v '^ *+' conftest.er1 >conftest.err
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try='test -s conftest.$ac_objext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 ac_header_compiler=yes
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_header_compiler=no
20924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20926 echo "${ECHO_T}$ac_header_compiler" >&6
20928 # Is the header present?
20929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 #include <$ac_header>
20939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } >/dev/null; then
20947 if test -s conftest.err; then
20948 ac_cpp_err=$ac_c_preproc_warn_flag
20949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20956 if test -z "$ac_cpp_err"; then
20957 ac_header_preproc=yes
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20962 ac_header_preproc=no
20964 rm -f conftest.err conftest.$ac_ext
20965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20966 echo "${ECHO_T}$ac_header_preproc" >&6
20968 # So? What about this header?
20969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20975 ac_header_preproc=yes
20978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20992 ## ------------------------------------ ##
20993 ## Report this to opensource@google.com ##
20994 ## ------------------------------------ ##
20997 sed "s/^/$as_me: WARNING: /" >&2
21000 echo "$as_me:$LINENO: checking for $ac_header" >&5
21001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 eval "$as_ac_Header=\$ac_header_preproc"
21007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21012 cat >>confdefs.h <<_ACEOF
21013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21021 for ac_header in stdio.h
21023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21025 echo "$as_me:$LINENO: checking for $ac_header" >&5
21026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21033 # Is the header compilable?
21034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 $ac_includes_default
21043 #include <$ac_header>
21045 rm -f conftest.$ac_objext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21047 (eval $ac_compile) 2>conftest.er1
21049 grep -v '^ *+' conftest.er1 >conftest.err
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } &&
21054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_header_compiler=yes
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 ac_header_compiler=no
21073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21075 echo "${ECHO_T}$ac_header_compiler" >&6
21077 # Is the header present?
21078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 #include <$ac_header>
21088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } >/dev/null; then
21096 if test -s conftest.err; then
21097 ac_cpp_err=$ac_c_preproc_warn_flag
21098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21105 if test -z "$ac_cpp_err"; then
21106 ac_header_preproc=yes
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 ac_header_preproc=no
21113 rm -f conftest.err conftest.$ac_ext
21114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21115 echo "${ECHO_T}$ac_header_preproc" >&6
21117 # So? What about this header?
21118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21124 ac_header_preproc=yes
21127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21141 ## ------------------------------------ ##
21142 ## Report this to opensource@google.com ##
21143 ## ------------------------------------ ##
21146 sed "s/^/$as_me: WARNING: /" >&2
21149 echo "$as_me:$LINENO: checking for $ac_header" >&5
21150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 eval "$as_ac_Header=\$ac_header_preproc"
21156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21161 cat >>confdefs.h <<_ACEOF
21162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21170 for ac_header in stdlib.h
21172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21174 echo "$as_me:$LINENO: checking for $ac_header" >&5
21175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21182 # Is the header compilable?
21183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 #include <$ac_header>
21194 rm -f conftest.$ac_objext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196 (eval $ac_compile) 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
21203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; } &&
21209 { ac_try='test -s conftest.$ac_objext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_header_compiler=yes
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_header_compiler=no
21222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21224 echo "${ECHO_T}$ac_header_compiler" >&6
21226 # Is the header present?
21227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 #include <$ac_header>
21237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21240 grep -v '^ *+' conftest.er1 >conftest.err
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } >/dev/null; then
21245 if test -s conftest.err; then
21246 ac_cpp_err=$ac_c_preproc_warn_flag
21247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21254 if test -z "$ac_cpp_err"; then
21255 ac_header_preproc=yes
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ac_header_preproc=no
21262 rm -f conftest.err conftest.$ac_ext
21263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21264 echo "${ECHO_T}$ac_header_preproc" >&6
21266 # So? What about this header?
21267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21273 ac_header_preproc=yes
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21290 ## ------------------------------------ ##
21291 ## Report this to opensource@google.com ##
21292 ## ------------------------------------ ##
21295 sed "s/^/$as_me: WARNING: /" >&2
21298 echo "$as_me:$LINENO: checking for $ac_header" >&5
21299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 eval "$as_ac_Header=\$ac_header_preproc"
21305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21310 cat >>confdefs.h <<_ACEOF
21311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21319 for ac_header in string.h
21321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21323 echo "$as_me:$LINENO: checking for $ac_header" >&5
21324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21331 # Is the header compilable?
21332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21334 cat >conftest.$ac_ext <<_ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 $ac_includes_default
21341 #include <$ac_header>
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345 (eval $ac_compile) 2>conftest.er1
21347 grep -v '^ *+' conftest.er1 >conftest.err
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; } &&
21358 { ac_try='test -s conftest.$ac_objext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_header_compiler=yes
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_header_compiler=no
21371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21373 echo "${ECHO_T}$ac_header_compiler" >&6
21375 # Is the header present?
21376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21378 cat >conftest.$ac_ext <<_ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 #include <$ac_header>
21386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21389 grep -v '^ *+' conftest.er1 >conftest.err
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } >/dev/null; then
21394 if test -s conftest.err; then
21395 ac_cpp_err=$ac_c_preproc_warn_flag
21396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21403 if test -z "$ac_cpp_err"; then
21404 ac_header_preproc=yes
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21409 ac_header_preproc=no
21411 rm -f conftest.err conftest.$ac_ext
21412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21413 echo "${ECHO_T}$ac_header_preproc" >&6
21415 # So? What about this header?
21416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21422 ac_header_preproc=yes
21425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21439 ## ------------------------------------ ##
21440 ## Report this to opensource@google.com ##
21441 ## ------------------------------------ ##
21444 sed "s/^/$as_me: WARNING: /" >&2
21447 echo "$as_me:$LINENO: checking for $ac_header" >&5
21448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 eval "$as_ac_Header=\$ac_header_preproc"
21454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21459 cat >>confdefs.h <<_ACEOF
21460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21468 for ac_header in signal.h
21470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21472 echo "$as_me:$LINENO: checking for $ac_header" >&5
21473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21480 # Is the header compilable?
21481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21483 cat >conftest.$ac_ext <<_ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h. */
21489 $ac_includes_default
21490 #include <$ac_header>
21492 rm -f conftest.$ac_objext
21493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21494 (eval $ac_compile) 2>conftest.er1
21496 grep -v '^ *+' conftest.er1 >conftest.err
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } &&
21501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; } &&
21507 { ac_try='test -s conftest.$ac_objext'
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513 ac_header_compiler=yes
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ac_header_compiler=no
21520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21522 echo "${ECHO_T}$ac_header_compiler" >&6
21524 # Is the header present?
21525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <$ac_header>
21535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21538 grep -v '^ *+' conftest.er1 >conftest.err
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } >/dev/null; then
21543 if test -s conftest.err; then
21544 ac_cpp_err=$ac_c_preproc_warn_flag
21545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21552 if test -z "$ac_cpp_err"; then
21553 ac_header_preproc=yes
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_header_preproc=no
21560 rm -f conftest.err conftest.$ac_ext
21561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21562 echo "${ECHO_T}$ac_header_preproc" >&6
21564 # So? What about this header?
21565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21571 ac_header_preproc=yes
21574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21588 ## ------------------------------------ ##
21589 ## Report this to opensource@google.com ##
21590 ## ------------------------------------ ##
21593 sed "s/^/$as_me: WARNING: /" >&2
21596 echo "$as_me:$LINENO: checking for $ac_header" >&5
21597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21601 eval "$as_ac_Header=\$ac_header_preproc"
21603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21608 cat >>confdefs.h <<_ACEOF
21609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21617 # Find out what namespace 'normal' STL code lives in, and also what namespace
21618 # the user wants our classes to be defined in
21619 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21620 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21621 if test "${ac_cv_cxx_namespaces+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 ac_cpp='$CXXCPP $CPPFLAGS'
21628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21632 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 namespace Inner { int i = 0; }}
21643 using namespace Outer::Inner; return i;
21648 rm -f conftest.$ac_objext
21649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21650 (eval $ac_compile) 2>conftest.er1
21652 grep -v '^ *+' conftest.er1 >conftest.err
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } &&
21657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; } &&
21663 { ac_try='test -s conftest.$ac_objext'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 ac_cv_cxx_namespaces=yes
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_cv_cxx_namespaces=no
21676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21678 ac_cpp='$CPP $CPPFLAGS'
21679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21684 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21685 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21686 if test "$ac_cv_cxx_namespaces" = yes; then
21688 cat >>confdefs.h <<\_ACEOF
21689 #define HAVE_NAMESPACES 1
21693 echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
21694 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6
21695 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 ac_cpp='$CXXCPP $CPPFLAGS'
21703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21707 cat >conftest.$ac_ext <<_ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21717 vector<int> t; return 0;
21722 rm -f conftest.$ac_objext
21723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21724 (eval $ac_compile) 2>conftest.er1
21726 grep -v '^ *+' conftest.er1 >conftest.err
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
21731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; } &&
21737 { ac_try='test -s conftest.$ac_objext'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743 ac_cv_cxx_stl_namespace=none
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21750 cat >conftest.$ac_ext <<_ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21760 std::vector<int> t; return 0;
21765 rm -f conftest.$ac_objext
21766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21767 (eval $ac_compile) 2>conftest.er1
21769 grep -v '^ *+' conftest.er1 >conftest.err
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
21774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; } &&
21780 { ac_try='test -s conftest.$ac_objext'
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 ac_cv_cxx_stl_namespace=std
21788 echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.$ac_ext >&5
21792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21794 ac_cpp='$CPP $CPPFLAGS'
21795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21800 echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
21801 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6
21802 if test "$ac_cv_cxx_stl_namespace" = none; then
21804 cat >>confdefs.h <<\_ACEOF
21805 #define STL_NAMESPACE
21809 if test "$ac_cv_cxx_stl_namespace" = std; then
21811 cat >>confdefs.h <<\_ACEOF
21812 #define STL_NAMESPACE std
21817 google_namespace_default=google
21818 # Check whether --enable-namespace or --disable-namespace was given.
21819 if test "${enable_namespace+set}" = set; then
21820 enableval="$enable_namespace"
21821 case "$enableval" in
21822 yes) google_namespace="$google_namespace_default" ;;
21823 no) google_namespace="" ;;
21824 *) google_namespace="$enableval" ;;
21827 google_namespace="$google_namespace_default"
21829 if test -n "$google_namespace"; then
21830 ac_google_namespace="::$google_namespace"
21831 ac_google_start_namespace="namespace $google_namespace {"
21832 ac_google_end_namespace="}"
21834 ac_google_namespace=""
21835 ac_google_start_namespace=""
21836 ac_google_end_namespace=""
21839 cat >>confdefs.h <<_ACEOF
21840 #define GOOGLE_NAMESPACE $ac_google_namespace
21844 cat >>confdefs.h <<_ACEOF
21845 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
21849 cat >>confdefs.h <<_ACEOF
21850 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
21855 ## Check out ../autoconf/ for other macros you can call to do useful stuff
21857 # Write generated configuration file
21858 ac_config_files="$ac_config_files Makefile"
21860 cat >confcache <<\_ACEOF
21861 # This file is a shell script that caches the results of configure
21862 # tests run on this system so they can be shared between configure
21863 # scripts and configure runs, see configure's option --config-cache.
21864 # It is not useful on other systems. If it contains results you don't
21865 # want to keep, you may remove or edit it.
21867 # config.status only pays attention to the cache file if you give it
21868 # the --recheck option to rerun configure.
21870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21872 # following values.
21876 # The following way of writing the cache mishandles newlines in values,
21877 # but we know of no workaround that is simple, portable, and efficient.
21878 # So, don't put newlines in cache variables' values.
21879 # Ultrix sh set writes to stderr and can't be redirected directly,
21880 # and sets the high bit in the cache file unless we assign to the vars.
21883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21885 # `set' does not quote correctly, so add quotes (double-quote
21886 # substitution turns \\\\ into \\, and sed turns \\ into \).
21889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21892 # `set' quotes correctly as required by POSIX, so do not add quotes.
21894 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21903 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21905 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21906 if test -w $cache_file; then
21907 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21908 cat confcache >$cache_file
21910 echo "not updating unwritable cache $cache_file"
21915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21916 # Let make expand exec_prefix.
21917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21919 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21920 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21921 # trailing colons and then remove the whole line if VPATH becomes empty
21922 # (actually we leave an empty line to preserve line numbers).
21923 if test "x$srcdir" = x.; then
21924 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21925 s/:*\$(srcdir):*/:/;
21926 s/:*\${srcdir}:*/:/;
21928 s/^\([^=]*=[ ]*\):*/\1/;
21934 DEFS=-DHAVE_CONFIG_H
21938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21939 # 1. Remove the extension, and $U if already installed.
21940 ac_i=`echo "$ac_i" |
21941 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21943 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21944 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21946 LIBOBJS=$ac_libobjs
21948 LTLIBOBJS=$ac_ltlibobjs
21951 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21952 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21953 Usually this means the macro was only invoked conditionally." >&5
21954 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21955 Usually this means the macro was only invoked conditionally." >&2;}
21956 { (exit 1); exit 1; }; }
21958 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21959 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21960 Usually this means the macro was only invoked conditionally." >&5
21961 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21962 Usually this means the macro was only invoked conditionally." >&2;}
21963 { (exit 1); exit 1; }; }
21965 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21966 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21967 Usually this means the macro was only invoked conditionally." >&5
21968 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21969 Usually this means the macro was only invoked conditionally." >&2;}
21970 { (exit 1); exit 1; }; }
21972 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
21973 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
21974 Usually this means the macro was only invoked conditionally." >&5
21975 echo "$as_me: error: conditional \"GCC\" was never defined.
21976 Usually this means the macro was only invoked conditionally." >&2;}
21977 { (exit 1); exit 1; }; }
21980 : ${CONFIG_STATUS=./config.status}
21981 ac_clean_files_save=$ac_clean_files
21982 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21983 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21984 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21985 cat >$CONFIG_STATUS <<_ACEOF
21987 # Generated by $as_me.
21988 # Run this file to recreate the current configuration.
21989 # Compiler output produced by configure, useful for debugging
21990 # configure, is in config.log if it exists.
21993 ac_cs_recheck=false
21995 SHELL=\${CONFIG_SHELL-$SHELL}
21998 cat >>$CONFIG_STATUS <<\_ACEOF
21999 ## --------------------- ##
22000 ## M4sh Initialization. ##
22001 ## --------------------- ##
22003 # Be Bourne compatible
22004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22007 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22008 # is contrary to our usage. Disable this feature.
22009 alias -g '${1+"$@"}'='"$@"'
22010 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22013 DUALCASE=1; export DUALCASE # for MKS sh
22015 # Support unset when possible.
22016 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22023 # Work around bugs in pre-3.0 UWIN ksh.
22024 $as_unset ENV MAIL MAILPATH
22031 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22032 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22033 LC_TELEPHONE LC_TIME
22035 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22036 eval $as_var=C; export $as_var
22042 # Required to use basename.
22043 if expr a : '\(a\)' >/dev/null 2>&1; then
22049 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22050 as_basename=basename
22056 # Name of the executable.
22057 as_me=`$as_basename "$0" ||
22058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22059 X"$0" : 'X\(//\)$' \| \
22060 X"$0" : 'X\(/\)$' \| \
22061 . : '\(.\)' 2>/dev/null ||
22063 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22064 /^X\/\(\/\/\)$/{ s//\1/; q; }
22065 /^X\/\(\/\).*/{ s//\1/; q; }
22069 # PATH needs CR, and LINENO needs CR and PATH.
22070 # Avoid depending upon Character Ranges.
22071 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22072 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22073 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22074 as_cr_digits='0123456789'
22075 as_cr_alnum=$as_cr_Letters$as_cr_digits
22077 # The user is always right.
22078 if test "${PATH_SEPARATOR+set}" != set; then
22079 echo "#! /bin/sh" >conf$$.sh
22080 echo "exit 0" >>conf$$.sh
22082 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22091 as_lineno_1=$LINENO
22092 as_lineno_2=$LINENO
22093 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22094 test "x$as_lineno_1" != "x$as_lineno_2" &&
22095 test "x$as_lineno_3" = "x$as_lineno_2" || {
22096 # Find who we are. Look in the path if we contain no path at all
22099 *[\\/]* ) as_myself=$0 ;;
22100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22101 for as_dir in $PATH
22104 test -z "$as_dir" && as_dir=.
22105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22110 # We did not find ourselves, most probably we were run as `sh COMMAND'
22111 # in which case we are not to be found in the path.
22112 if test "x$as_myself" = x; then
22115 if test ! -f "$as_myself"; then
22116 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22117 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22118 { (exit 1); exit 1; }; }
22120 case $CONFIG_SHELL in
22122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22123 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22126 test -z "$as_dir" && as_dir=.
22127 for as_base in sh bash ksh sh5; do
22130 if ("$as_dir/$as_base" -c '
22131 as_lineno_1=$LINENO
22132 as_lineno_2=$LINENO
22133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22134 test "x$as_lineno_1" != "x$as_lineno_2" &&
22135 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22136 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22137 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22138 CONFIG_SHELL=$as_dir/$as_base
22139 export CONFIG_SHELL
22140 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22148 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22149 # uniformly replaced by the line number. The first 'sed' inserts a
22150 # line-number line before each line; the second 'sed' does the real
22151 # work. The second script uses 'N' to pair each line-number line
22152 # with the numbered line, and appends trailing '-' during
22153 # substitution so that $LINENO is not a special case at line end.
22154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22155 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22156 sed '=' <$as_myself |
22161 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22164 s,^['$as_cr_digits']*\n,,
22165 ' >$as_me.lineno &&
22166 chmod +x $as_me.lineno ||
22167 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22168 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22169 { (exit 1); exit 1; }; }
22171 # Don't try to exec as it changes $[0], causing all sort of problems
22172 # (the dirname of $[0] is not the place where we might find the
22173 # original and so on. Autoconf is especially sensible to this).
22175 # Exit status is that of the last command.
22180 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22181 *c*,-n*) ECHO_N= ECHO_C='
22183 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22184 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22187 if expr a : '\(a\)' >/dev/null 2>&1; then
22193 rm -f conf$$ conf$$.exe conf$$.file
22195 if ln -s conf$$.file conf$$ 2>/dev/null; then
22196 # We could just check for DJGPP; but this test a) works b) is more generic
22197 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22198 if test -f conf$$.exe; then
22199 # Don't use ln at all; we don't have any links
22204 elif ln conf$$.file conf$$ 2>/dev/null; then
22209 rm -f conf$$ conf$$.exe conf$$.file
22211 if mkdir -p . 2>/dev/null; then
22214 test -d ./-p && rmdir ./-p
22218 as_executable_p="test -f"
22220 # Sed expression to map a string onto a valid CPP name.
22221 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22223 # Sed expression to map a string onto a valid variable name.
22224 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22228 # We need space, tab and new line, in precisely that order.
22238 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22239 # report actual input values of CONFIG_FILES etc. instead of their
22240 # values after options handling. Logging --version etc. is OK.
22244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22245 ## Running $as_me. ##
22250 This file was extended by cmockery $as_me 0.1.2, which was
22251 generated by GNU Autoconf 2.59. Invocation command line was
22253 CONFIG_FILES = $CONFIG_FILES
22254 CONFIG_HEADERS = $CONFIG_HEADERS
22255 CONFIG_LINKS = $CONFIG_LINKS
22256 CONFIG_COMMANDS = $CONFIG_COMMANDS
22260 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22264 # Files that config.status was made for.
22265 if test -n "$ac_config_files"; then
22266 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22269 if test -n "$ac_config_headers"; then
22270 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22273 if test -n "$ac_config_links"; then
22274 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22277 if test -n "$ac_config_commands"; then
22278 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22281 cat >>$CONFIG_STATUS <<\_ACEOF
22284 \`$as_me' instantiates files from templates according to the
22285 current configuration.
22287 Usage: $0 [OPTIONS] [FILE]...
22289 -h, --help print this help, then exit
22290 -V, --version print version number, then exit
22291 -q, --quiet do not print progress messages
22292 -d, --debug don't remove temporary files
22293 --recheck update $as_me by reconfiguring in the same conditions
22294 --file=FILE[:TEMPLATE]
22295 instantiate the configuration file FILE
22296 --header=FILE[:TEMPLATE]
22297 instantiate the configuration header FILE
22299 Configuration files:
22302 Configuration headers:
22305 Configuration commands:
22308 Report bugs to <bug-autoconf@gnu.org>."
22311 cat >>$CONFIG_STATUS <<_ACEOF
22313 cmockery config.status 0.1.2
22314 configured by $0, generated by GNU Autoconf 2.59,
22315 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22317 Copyright (C) 2003 Free Software Foundation, Inc.
22318 This config.status script is free software; the Free Software Foundation
22319 gives unlimited permission to copy, distribute and modify it."
22324 cat >>$CONFIG_STATUS <<\_ACEOF
22325 # If no file are specified by the user, then we need to provide default
22326 # value. By we need to know if files were specified by the user.
22332 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22333 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22341 *) # This is not an option, so the user has probably given explicit
22344 ac_need_defaults=false;;
22348 # Handling of the options.
22350 cat >>$CONFIG_STATUS <<\_ACEOF
22351 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22353 --version | --vers* | -V )
22354 echo "$ac_cs_version"; exit 0 ;;
22356 # Conflict between --help and --header
22357 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22358 Try \`$0 --help' for more information." >&5
22359 echo "$as_me: error: ambiguous option: $1
22360 Try \`$0 --help' for more information." >&2;}
22361 { (exit 1); exit 1; }; };;
22362 --help | --hel | -h )
22363 echo "$ac_cs_usage"; exit 0 ;;
22364 --debug | --d* | -d )
22366 --file | --fil | --fi | --f )
22368 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22369 ac_need_defaults=false;;
22370 --header | --heade | --head | --hea )
22372 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22373 ac_need_defaults=false;;
22374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22378 # This is an error.
22379 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22380 Try \`$0 --help' for more information." >&5
22381 echo "$as_me: error: unrecognized option: $1
22382 Try \`$0 --help' for more information." >&2;}
22383 { (exit 1); exit 1; }; } ;;
22385 *) ac_config_targets="$ac_config_targets $1" ;;
22391 ac_configure_extra_args=
22393 if $ac_cs_silent; then
22395 ac_configure_extra_args="$ac_configure_extra_args --silent"
22399 cat >>$CONFIG_STATUS <<_ACEOF
22400 if \$ac_cs_recheck; then
22401 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22402 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22407 cat >>$CONFIG_STATUS <<_ACEOF
22409 # INIT-COMMANDS section.
22412 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22418 cat >>$CONFIG_STATUS <<\_ACEOF
22419 for ac_config_target in $ac_config_targets
22421 case "$ac_config_target" in
22422 # Handling of arguments.
22423 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22424 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22425 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22426 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22427 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22428 { (exit 1); exit 1; }; };;
22432 # If the user did not use the arguments to specify the items to instantiate,
22433 # then the envvar interface is used. Set only those that are not.
22434 # We use the long form for the default assignment because of an extremely
22435 # bizarre bug on SunOS 4.1.3.
22436 if $ac_need_defaults; then
22437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22438 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22439 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22442 # Have a temporary directory for convenience. Make it in the build tree
22443 # simply because there is no reason to put it here, and in addition,
22444 # creating and moving files from /tmp can sometimes cause problems.
22445 # Create a temporary directory, and hook for its removal unless debugging.
22448 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22449 trap '{ (exit 1); exit 1; }' 1 2 13 15
22452 # Create a (secure) tmp directory for tmp files.
22455 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22456 test -n "$tmp" && test -d "$tmp"
22459 tmp=./confstat$$-$RANDOM
22460 (umask 077 && mkdir $tmp)
22463 echo "$me: cannot create a temporary directory in ." >&2
22464 { (exit 1); exit 1; }
22469 cat >>$CONFIG_STATUS <<_ACEOF
22472 # CONFIG_FILES section.
22475 # No need to generate the scripts if there are no CONFIG_FILES.
22476 # This happens for instance when ./config.status config.h
22477 if test -n "\$CONFIG_FILES"; then
22478 # Protect against being on the right side of a sed subst in config.status.
22479 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22480 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22481 s,@SHELL@,$SHELL,;t t
22482 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22483 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22484 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22485 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22486 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22487 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22488 s,@exec_prefix@,$exec_prefix,;t t
22489 s,@prefix@,$prefix,;t t
22490 s,@program_transform_name@,$program_transform_name,;t t
22491 s,@bindir@,$bindir,;t t
22492 s,@sbindir@,$sbindir,;t t
22493 s,@libexecdir@,$libexecdir,;t t
22494 s,@datadir@,$datadir,;t t
22495 s,@sysconfdir@,$sysconfdir,;t t
22496 s,@sharedstatedir@,$sharedstatedir,;t t
22497 s,@localstatedir@,$localstatedir,;t t
22498 s,@libdir@,$libdir,;t t
22499 s,@includedir@,$includedir,;t t
22500 s,@oldincludedir@,$oldincludedir,;t t
22501 s,@infodir@,$infodir,;t t
22502 s,@mandir@,$mandir,;t t
22503 s,@build_alias@,$build_alias,;t t
22504 s,@host_alias@,$host_alias,;t t
22505 s,@target_alias@,$target_alias,;t t
22506 s,@DEFS@,$DEFS,;t t
22507 s,@ECHO_C@,$ECHO_C,;t t
22508 s,@ECHO_N@,$ECHO_N,;t t
22509 s,@ECHO_T@,$ECHO_T,;t t
22510 s,@LIBS@,$LIBS,;t t
22511 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22512 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22513 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22514 s,@CYGPATH_W@,$CYGPATH_W,;t t
22515 s,@PACKAGE@,$PACKAGE,;t t
22516 s,@VERSION@,$VERSION,;t t
22517 s,@ACLOCAL@,$ACLOCAL,;t t
22518 s,@AUTOCONF@,$AUTOCONF,;t t
22519 s,@AUTOMAKE@,$AUTOMAKE,;t t
22520 s,@AUTOHEADER@,$AUTOHEADER,;t t
22521 s,@MAKEINFO@,$MAKEINFO,;t t
22522 s,@install_sh@,$install_sh,;t t
22523 s,@STRIP@,$STRIP,;t t
22524 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22525 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22526 s,@mkdir_p@,$mkdir_p,;t t
22528 s,@SET_MAKE@,$SET_MAKE,;t t
22529 s,@am__leading_dot@,$am__leading_dot,;t t
22530 s,@AMTAR@,$AMTAR,;t t
22531 s,@am__tar@,$am__tar,;t t
22532 s,@am__untar@,$am__untar,;t t
22534 s,@CFLAGS@,$CFLAGS,;t t
22535 s,@LDFLAGS@,$LDFLAGS,;t t
22536 s,@CPPFLAGS@,$CPPFLAGS,;t t
22537 s,@ac_ct_CC@,$ac_ct_CC,;t t
22538 s,@EXEEXT@,$EXEEXT,;t t
22539 s,@OBJEXT@,$OBJEXT,;t t
22540 s,@DEPDIR@,$DEPDIR,;t t
22541 s,@am__include@,$am__include,;t t
22542 s,@am__quote@,$am__quote,;t t
22543 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22544 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22545 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22546 s,@CCDEPMODE@,$CCDEPMODE,;t t
22547 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22548 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22551 s,@CXXFLAGS@,$CXXFLAGS,;t t
22552 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22553 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22554 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22555 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22556 s,@GCC_TRUE@,$GCC_TRUE,;t t
22557 s,@GCC_FALSE@,$GCC_FALSE,;t t
22558 s,@build@,$build,;t t
22559 s,@build_cpu@,$build_cpu,;t t
22560 s,@build_vendor@,$build_vendor,;t t
22561 s,@build_os@,$build_os,;t t
22562 s,@host@,$host,;t t
22563 s,@host_cpu@,$host_cpu,;t t
22564 s,@host_vendor@,$host_vendor,;t t
22565 s,@host_os@,$host_os,;t t
22566 s,@EGREP@,$EGREP,;t t
22567 s,@LN_S@,$LN_S,;t t
22568 s,@ECHO@,$ECHO,;t t
22570 s,@ac_ct_AR@,$ac_ct_AR,;t t
22571 s,@RANLIB@,$RANLIB,;t t
22572 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22573 s,@CXXCPP@,$CXXCPP,;t t
22575 s,@FFLAGS@,$FFLAGS,;t t
22576 s,@ac_ct_F77@,$ac_ct_F77,;t t
22577 s,@LIBTOOL@,$LIBTOOL,;t t
22578 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22579 s,@LIBOBJS@,$LIBOBJS,;t t
22580 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22585 cat >>$CONFIG_STATUS <<\_ACEOF
22586 # Split the substitutions into bite-sized pieces for seds with
22587 # small command number limits, like on Digital OSF/1 and HP-UX.
22588 ac_max_sed_lines=48
22589 ac_sed_frag=1 # Number of current file.
22590 ac_beg=1 # First line for current file.
22591 ac_end=$ac_max_sed_lines # Line after last line for current file.
22594 while $ac_more_lines; do
22595 if test $ac_beg -gt 1; then
22596 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22598 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22600 if test ! -s $tmp/subs.frag; then
22601 ac_more_lines=false
22603 # The purpose of the label and of the branching condition is to
22604 # speed up the sed processing (if there are no `@' at all, there
22605 # is no need to browse any of the substitutions).
22606 # These are the two extra sed commands mentioned above.
22608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22609 if test -z "$ac_sed_cmds"; then
22610 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22612 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22614 ac_sed_frag=`expr $ac_sed_frag + 1`
22616 ac_end=`expr $ac_end + $ac_max_sed_lines`
22619 if test -z "$ac_sed_cmds"; then
22622 fi # test -n "$CONFIG_FILES"
22625 cat >>$CONFIG_STATUS <<\_ACEOF
22626 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22629 - | *:- | *:-:* ) # input from stdin
22631 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22633 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22635 * ) ac_file_in=$ac_file.in ;;
22638 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22639 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22641 X"$ac_file" : 'X\(//\)[^/]' \| \
22642 X"$ac_file" : 'X\(//\)$' \| \
22643 X"$ac_file" : 'X\(/\)' \| \
22644 . : '\(.\)' 2>/dev/null ||
22646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22648 /^X\(\/\/\)$/{ s//\1/; q; }
22649 /^X\(\/\).*/{ s//\1/; q; }
22651 { if $as_mkdir_p; then
22656 while test ! -d "$as_dir"; do
22657 as_dirs="$as_dir $as_dirs"
22658 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22660 X"$as_dir" : 'X\(//\)[^/]' \| \
22661 X"$as_dir" : 'X\(//\)$' \| \
22662 X"$as_dir" : 'X\(/\)' \| \
22663 . : '\(.\)' 2>/dev/null ||
22665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22667 /^X\(\/\/\)$/{ s//\1/; q; }
22668 /^X\(\/\).*/{ s//\1/; q; }
22671 test ! -n "$as_dirs" || mkdir $as_dirs
22672 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22673 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22674 { (exit 1); exit 1; }; }; }
22678 if test "$ac_dir" != .; then
22679 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22680 # A "../" for each directory in $ac_dir_suffix.
22681 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22683 ac_dir_suffix= ac_top_builddir=
22687 .) # No --srcdir option. We are building in place.
22689 if test -z "$ac_top_builddir"; then
22692 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22694 [\\/]* | ?:[\\/]* ) # Absolute path.
22695 ac_srcdir=$srcdir$ac_dir_suffix;
22696 ac_top_srcdir=$srcdir ;;
22697 *) # Relative path.
22698 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22699 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22702 # Do not use `cd foo && pwd` to compute absolute paths, because
22703 # the directories may not exist.
22705 .) ac_abs_builddir="$ac_dir";;
22708 .) ac_abs_builddir=`pwd`;;
22709 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22710 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22713 case $ac_abs_builddir in
22714 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22716 case ${ac_top_builddir}. in
22717 .) ac_abs_top_builddir=$ac_abs_builddir;;
22718 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22719 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22722 case $ac_abs_builddir in
22723 .) ac_abs_srcdir=$ac_srcdir;;
22726 .) ac_abs_srcdir=$ac_abs_builddir;;
22727 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22728 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22731 case $ac_abs_builddir in
22732 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22734 case $ac_top_srcdir in
22735 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22736 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22737 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22744 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22747 # Let's still pretend it is `configure' which instantiates (i.e., don't
22748 # use $as_me), people would be surprised to read:
22749 # /* config.h. Generated by config.status. */
22750 if test x"$ac_file" = x-; then
22753 configure_input="$ac_file. "
22755 configure_input=$configure_input"Generated from `echo $ac_file_in |
22756 sed 's,.*/,,'` by configure."
22758 # First look for the input files in the build tree, otherwise in the
22760 ac_file_inputs=`IFS=:
22761 for f in $ac_file_in; do
22763 -) echo $tmp/stdin ;;
22765 # Absolute (can't be DOS-style, as IFS=:)
22766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22767 echo "$as_me: error: cannot find input file: $f" >&2;}
22768 { (exit 1); exit 1; }; }
22771 if test -f "$f"; then
22774 elif test -f "$srcdir/$f"; then
22779 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22780 echo "$as_me: error: cannot find input file: $f" >&2;}
22781 { (exit 1); exit 1; }; }
22784 done` || { (exit 1); exit 1; }
22786 if test x"$ac_file" != x-; then
22787 { echo "$as_me:$LINENO: creating $ac_file" >&5
22788 echo "$as_me: creating $ac_file" >&6;}
22792 cat >>$CONFIG_STATUS <<_ACEOF
22796 cat >>$CONFIG_STATUS <<\_ACEOF
22798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22799 s,@configure_input@,$configure_input,;t t
22800 s,@srcdir@,$ac_srcdir,;t t
22801 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22802 s,@top_srcdir@,$ac_top_srcdir,;t t
22803 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22804 s,@builddir@,$ac_builddir,;t t
22805 s,@abs_builddir@,$ac_abs_builddir,;t t
22806 s,@top_builddir@,$ac_top_builddir,;t t
22807 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22808 s,@INSTALL@,$ac_INSTALL,;t t
22809 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22811 if test x"$ac_file" != x-; then
22812 mv $tmp/out $ac_file
22820 cat >>$CONFIG_STATUS <<\_ACEOF
22823 # CONFIG_HEADER section.
22826 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22827 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22829 # ac_d sets the value in "#define NAME VALUE" lines.
22830 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22831 ac_dB='[ ].*$,\1#\2'
22834 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22835 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22836 ac_uB='$,\1#\2define\3'
22840 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22841 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22843 - | *:- | *:-:* ) # input from stdin
22845 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22847 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22849 * ) ac_file_in=$ac_file.in ;;
22852 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22853 echo "$as_me: creating $ac_file" >&6;}
22855 # First look for the input files in the build tree, otherwise in the
22857 ac_file_inputs=`IFS=:
22858 for f in $ac_file_in; do
22860 -) echo $tmp/stdin ;;
22862 # Absolute (can't be DOS-style, as IFS=:)
22863 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22864 echo "$as_me: error: cannot find input file: $f" >&2;}
22865 { (exit 1); exit 1; }; }
22866 # Do quote $f, to prevent DOS paths from being IFS'd.
22869 if test -f "$f"; then
22872 elif test -f "$srcdir/$f"; then
22877 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22878 echo "$as_me: error: cannot find input file: $f" >&2;}
22879 { (exit 1); exit 1; }; }
22882 done` || { (exit 1); exit 1; }
22883 # Remove the trailing spaces.
22884 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22888 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22889 # `conftest.undefs', that substitutes the proper values into
22890 # config.h.in to produce config.h. The first handles `#define'
22891 # templates, and the second `#undef' templates.
22892 # And first: Protect against being on the right side of a sed subst in
22893 # config.status. Protect against being in an unquoted here document
22894 # in config.status.
22895 rm -f conftest.defines conftest.undefs
22896 # Using a here document instead of a string reduces the quoting nightmare.
22897 # Putting comments in sed scripts is not portable.
22899 # `end' is used to avoid that the second main sed command (meant for
22900 # 0-ary CPP macros) applies to n-ary macro definitions.
22901 # See the Autoconf documentation for `clear'.
22902 cat >confdef2sed.sed <<\_ACEOF
22907 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22909 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22912 # If some macros were called several times there might be several times
22913 # the same #defines, which is useless. Nevertheless, we may not want to
22914 # sort them, since we want the *last* AC-DEFINE to be honored.
22915 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22916 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22917 rm -f confdef2sed.sed
22919 # This sed command replaces #undef with comments. This is necessary, for
22920 # example, in the case of _POSIX_SOURCE, which is predefined and required
22921 # on some systems where configure will not decide to define it.
22922 cat >>conftest.undefs <<\_ACEOF
22923 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22926 # Break up conftest.defines because some shells have a limit on the size
22927 # of here documents, and old seds have small limits too (100 cmds).
22928 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22929 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22930 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22931 echo ' :' >>$CONFIG_STATUS
22932 rm -f conftest.tail
22933 while grep . conftest.defines >/dev/null
22935 # Write a limited-size here document to $tmp/defines.sed.
22936 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22937 # Speed up: don't consider the non `#define' lines.
22938 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22939 # Work around the forget-to-reset-the-flag bug.
22940 echo 't clr' >>$CONFIG_STATUS
22941 echo ': clr' >>$CONFIG_STATUS
22942 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22944 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22946 mv $tmp/out $tmp/in
22948 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22949 rm -f conftest.defines
22950 mv conftest.tail conftest.defines
22952 rm -f conftest.defines
22953 echo ' fi # grep' >>$CONFIG_STATUS
22954 echo >>$CONFIG_STATUS
22956 # Break up conftest.undefs because some shells have a limit on the size
22957 # of here documents, and old seds have small limits too (100 cmds).
22958 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22959 rm -f conftest.tail
22960 while grep . conftest.undefs >/dev/null
22962 # Write a limited-size here document to $tmp/undefs.sed.
22963 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22964 # Speed up: don't consider the non `#undef'
22965 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22966 # Work around the forget-to-reset-the-flag bug.
22967 echo 't clr' >>$CONFIG_STATUS
22968 echo ': clr' >>$CONFIG_STATUS
22969 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22971 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22973 mv $tmp/out $tmp/in
22975 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22976 rm -f conftest.undefs
22977 mv conftest.tail conftest.undefs
22979 rm -f conftest.undefs
22981 cat >>$CONFIG_STATUS <<\_ACEOF
22982 # Let's still pretend it is `configure' which instantiates (i.e., don't
22983 # use $as_me), people would be surprised to read:
22984 # /* config.h. Generated by config.status. */
22985 if test x"$ac_file" = x-; then
22986 echo "/* Generated by configure. */" >$tmp/config.h
22988 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22990 cat $tmp/in >>$tmp/config.h
22992 if test x"$ac_file" != x-; then
22993 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22994 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22995 echo "$as_me: $ac_file is unchanged" >&6;}
22997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22999 X"$ac_file" : 'X\(//\)[^/]' \| \
23000 X"$ac_file" : 'X\(//\)$' \| \
23001 X"$ac_file" : 'X\(/\)' \| \
23002 . : '\(.\)' 2>/dev/null ||
23004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23006 /^X\(\/\/\)$/{ s//\1/; q; }
23007 /^X\(\/\).*/{ s//\1/; q; }
23009 { if $as_mkdir_p; then
23014 while test ! -d "$as_dir"; do
23015 as_dirs="$as_dir $as_dirs"
23016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X"$as_dir" : 'X\(//\)[^/]' \| \
23019 X"$as_dir" : 'X\(//\)$' \| \
23020 X"$as_dir" : 'X\(/\)' \| \
23021 . : '\(.\)' 2>/dev/null ||
23023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23025 /^X\(\/\/\)$/{ s//\1/; q; }
23026 /^X\(\/\).*/{ s//\1/; q; }
23029 test ! -n "$as_dirs" || mkdir $as_dirs
23030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23032 { (exit 1); exit 1; }; }; }
23035 mv $tmp/config.h $ac_file
23039 rm -f $tmp/config.h
23041 # Compute $ac_file's index in $config_headers.
23043 for _am_header in $config_headers :; do
23044 case $_am_header in
23045 $ac_file | $ac_file:* )
23048 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23051 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23052 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23053 X$ac_file : 'X\(//\)[^/]' \| \
23054 X$ac_file : 'X\(//\)$' \| \
23055 X$ac_file : 'X\(/\)' \| \
23056 . : '\(.\)' 2>/dev/null ||
23058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23060 /^X\(\/\/\)$/{ s//\1/; q; }
23061 /^X\(\/\).*/{ s//\1/; q; }
23062 s/.*/./; q'`/stamp-h$_am_stamp_count
23065 cat >>$CONFIG_STATUS <<\_ACEOF
23068 # CONFIG_COMMANDS section.
23070 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23071 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23072 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23073 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23074 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23075 X"$ac_dest" : 'X\(//\)[^/]' \| \
23076 X"$ac_dest" : 'X\(//\)$' \| \
23077 X"$ac_dest" : 'X\(/\)' \| \
23078 . : '\(.\)' 2>/dev/null ||
23080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23082 /^X\(\/\/\)$/{ s//\1/; q; }
23083 /^X\(\/\).*/{ s//\1/; q; }
23085 { if $as_mkdir_p; then
23090 while test ! -d "$as_dir"; do
23091 as_dirs="$as_dir $as_dirs"
23092 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23094 X"$as_dir" : 'X\(//\)[^/]' \| \
23095 X"$as_dir" : 'X\(//\)$' \| \
23096 X"$as_dir" : 'X\(/\)' \| \
23097 . : '\(.\)' 2>/dev/null ||
23099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23101 /^X\(\/\/\)$/{ s//\1/; q; }
23102 /^X\(\/\).*/{ s//\1/; q; }
23105 test ! -n "$as_dirs" || mkdir $as_dirs
23106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23107 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23108 { (exit 1); exit 1; }; }; }
23112 if test "$ac_dir" != .; then
23113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23114 # A "../" for each directory in $ac_dir_suffix.
23115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23117 ac_dir_suffix= ac_top_builddir=
23121 .) # No --srcdir option. We are building in place.
23123 if test -z "$ac_top_builddir"; then
23126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23128 [\\/]* | ?:[\\/]* ) # Absolute path.
23129 ac_srcdir=$srcdir$ac_dir_suffix;
23130 ac_top_srcdir=$srcdir ;;
23131 *) # Relative path.
23132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23136 # Do not use `cd foo && pwd` to compute absolute paths, because
23137 # the directories may not exist.
23139 .) ac_abs_builddir="$ac_dir";;
23142 .) ac_abs_builddir=`pwd`;;
23143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23147 case $ac_abs_builddir in
23148 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23150 case ${ac_top_builddir}. in
23151 .) ac_abs_top_builddir=$ac_abs_builddir;;
23152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23156 case $ac_abs_builddir in
23157 .) ac_abs_srcdir=$ac_srcdir;;
23160 .) ac_abs_srcdir=$ac_abs_builddir;;
23161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23165 case $ac_abs_builddir in
23166 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23168 case $ac_top_srcdir in
23169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23176 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23177 echo "$as_me: executing $ac_dest commands" >&6;}
23179 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23180 # Strip MF so we end up with the name of the file.
23181 mf=`echo "$mf" | sed -e 's/:.*$//'`
23182 # Check whether this is an Automake generated Makefile or not.
23183 # We used to match only the files named `Makefile.in', but
23184 # some people rename them; so instead we look at the file content.
23185 # Grep'ing the first line is not enough: some people post-process
23186 # each Makefile.in and add a new line on top of each file to say so.
23187 # So let's grep whole file.
23188 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23189 dirpart=`(dirname "$mf") 2>/dev/null ||
23190 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23191 X"$mf" : 'X\(//\)[^/]' \| \
23192 X"$mf" : 'X\(//\)$' \| \
23193 X"$mf" : 'X\(/\)' \| \
23194 . : '\(.\)' 2>/dev/null ||
23196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23198 /^X\(\/\/\)$/{ s//\1/; q; }
23199 /^X\(\/\).*/{ s//\1/; q; }
23204 # Extract the definition of DEPDIR, am__include, and am__quote
23205 # from the Makefile without running `make'.
23206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23207 test -z "$DEPDIR" && continue
23208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23209 test -z "am__include" && continue
23210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23211 # When using ansi2knr, U may be empty or an underscore; expand it
23212 U=`sed -n 's/^U = //p' < "$mf"`
23213 # Find all dependency output files, they are included files with
23214 # $(DEPDIR) in their names. We invoke sed twice because it is the
23215 # simplest approach to changing $(DEPDIR) to its actual value in the
23217 for file in `sed -n "
23218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23220 # Make sure the directory exists.
23221 test -f "$dirpart/$file" && continue
23222 fdir=`(dirname "$file") 2>/dev/null ||
23223 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23224 X"$file" : 'X\(//\)[^/]' \| \
23225 X"$file" : 'X\(//\)$' \| \
23226 X"$file" : 'X\(/\)' \| \
23227 . : '\(.\)' 2>/dev/null ||
23229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23231 /^X\(\/\/\)$/{ s//\1/; q; }
23232 /^X\(\/\).*/{ s//\1/; q; }
23234 { if $as_mkdir_p; then
23235 mkdir -p $dirpart/$fdir
23237 as_dir=$dirpart/$fdir
23239 while test ! -d "$as_dir"; do
23240 as_dirs="$as_dir $as_dirs"
23241 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23243 X"$as_dir" : 'X\(//\)[^/]' \| \
23244 X"$as_dir" : 'X\(//\)$' \| \
23245 X"$as_dir" : 'X\(/\)' \| \
23246 . : '\(.\)' 2>/dev/null ||
23248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23250 /^X\(\/\/\)$/{ s//\1/; q; }
23251 /^X\(\/\).*/{ s//\1/; q; }
23254 test ! -n "$as_dirs" || mkdir $as_dirs
23255 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23256 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23257 { (exit 1); exit 1; }; }; }
23259 # echo "creating $dirpart/$file"
23260 echo '# dummy' > "$dirpart/$file"
23268 cat >>$CONFIG_STATUS <<\_ACEOF
23270 { (exit 0); exit 0; }
23272 chmod +x $CONFIG_STATUS
23273 ac_clean_files=$ac_clean_files_save
23276 # configure is writing to config.log, and then calls config.status.
23277 # config.status does its own redirection, appending to config.log.
23278 # Unfortunately, on DOS this fails, as config.log is still kept open
23279 # by configure, so config.status won't be able to write to it; its
23280 # output is simply discarded. So we exec the FD to /dev/null,
23281 # effectively closing config.log, so it can be properly (re)opened and
23282 # appended to by config.status. When coming back to configure, we
23283 # need to make the FD available again.
23284 if test "$no_create" != yes; then
23286 ac_config_status_args=
23287 test "$silent" = yes &&
23288 ac_config_status_args="$ac_config_status_args --quiet"
23290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23293 # would make configure fail if this is the last instruction.
23294 $ac_cs_success || { (exit 1); exit 1; }