2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="src/syncevolution.cpp"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 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 MODIFY_SYNCCOMPARE 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 EGREP CPPUNIT_CXXFLAGS CPPUNIT_LDFLAGS CPPUNIT_TESTS CORE_LDADD_DEP CLEAN_CLIENT_SRC TRANSPORT_LDFLAGS TRANSPORT_CFLAGS CURL_LDFLAGS FUNAMBOL_CFLAGS FUNAMBOL_LIBS FUNAMBOL FUNAMBOL_SUBDIR FUNAMBOL_DEP FUNAMBOL_LIB FUNAMBOLSRC SYNCSOURCES BACKEND_DEFINES ADDRESSBOOK_CFLAGS ADDRESSBOOK_LIBS PKG_CONFIG ac_pt_PKG_CONFIG EPACKAGE_CFLAGS EPACKAGE_LIBS ECAL_CFLAGS ECAL_LIBS EBOOK_CFLAGS EBOOK_LIBS ENABLE_ECAL_TRUE ENABLE_ECAL_FALSE FILE_CFLAGS FILE_LIBS SQLITE_CFLAGS SQLITE_LIBS BACKEND_CPPFLAGS GLIB_CFLAGS GLIB_LIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ENABLE_MODULES_TRUE ENABLE_MODULES_FALSE SYNCEVOLUTION_LDADD SYNCEVOLUTION_CXXFLAGS LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
928 ac_env_PKG_CONFIG_value=$PKG_CONFIG
929 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
930 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
931 ac_env_EPACKAGE_CFLAGS_set=${EPACKAGE_CFLAGS+set}
932 ac_env_EPACKAGE_CFLAGS_value=$EPACKAGE_CFLAGS
933 ac_cv_env_EPACKAGE_CFLAGS_set=${EPACKAGE_CFLAGS+set}
934 ac_cv_env_EPACKAGE_CFLAGS_value=$EPACKAGE_CFLAGS
935 ac_env_EPACKAGE_LIBS_set=${EPACKAGE_LIBS+set}
936 ac_env_EPACKAGE_LIBS_value=$EPACKAGE_LIBS
937 ac_cv_env_EPACKAGE_LIBS_set=${EPACKAGE_LIBS+set}
938 ac_cv_env_EPACKAGE_LIBS_value=$EPACKAGE_LIBS
939 ac_env_ECAL_CFLAGS_set=${ECAL_CFLAGS+set}
940 ac_env_ECAL_CFLAGS_value=$ECAL_CFLAGS
941 ac_cv_env_ECAL_CFLAGS_set=${ECAL_CFLAGS+set}
942 ac_cv_env_ECAL_CFLAGS_value=$ECAL_CFLAGS
943 ac_env_ECAL_LIBS_set=${ECAL_LIBS+set}
944 ac_env_ECAL_LIBS_value=$ECAL_LIBS
945 ac_cv_env_ECAL_LIBS_set=${ECAL_LIBS+set}
946 ac_cv_env_ECAL_LIBS_value=$ECAL_LIBS
947 ac_env_EBOOK_CFLAGS_set=${EBOOK_CFLAGS+set}
948 ac_env_EBOOK_CFLAGS_value=$EBOOK_CFLAGS
949 ac_cv_env_EBOOK_CFLAGS_set=${EBOOK_CFLAGS+set}
950 ac_cv_env_EBOOK_CFLAGS_value=$EBOOK_CFLAGS
951 ac_env_EBOOK_LIBS_set=${EBOOK_LIBS+set}
952 ac_env_EBOOK_LIBS_value=$EBOOK_LIBS
953 ac_cv_env_EBOOK_LIBS_set=${EBOOK_LIBS+set}
954 ac_cv_env_EBOOK_LIBS_value=$EBOOK_LIBS
955 ac_env_SQLITE_CFLAGS_set=${SQLITE_CFLAGS+set}
956 ac_env_SQLITE_CFLAGS_value=$SQLITE_CFLAGS
957 ac_cv_env_SQLITE_CFLAGS_set=${SQLITE_CFLAGS+set}
958 ac_cv_env_SQLITE_CFLAGS_value=$SQLITE_CFLAGS
959 ac_env_SQLITE_LIBS_set=${SQLITE_LIBS+set}
960 ac_env_SQLITE_LIBS_value=$SQLITE_LIBS
961 ac_cv_env_SQLITE_LIBS_set=${SQLITE_LIBS+set}
962 ac_cv_env_SQLITE_LIBS_value=$SQLITE_LIBS
963 ac_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
964 ac_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
965 ac_cv_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
966 ac_cv_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
967 ac_env_GLIB_LIBS_set=${GLIB_LIBS+set}
968 ac_env_GLIB_LIBS_value=$GLIB_LIBS
969 ac_cv_env_GLIB_LIBS_set=${GLIB_LIBS+set}
970 ac_cv_env_GLIB_LIBS_value=$GLIB_LIBS
971 ac_env_CXX_set=${CXX+set}
972 ac_env_CXX_value=$CXX
973 ac_cv_env_CXX_set=${CXX+set}
974 ac_cv_env_CXX_value=$CXX
975 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
976 ac_env_CXXFLAGS_value=$CXXFLAGS
977 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
978 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
979 ac_env_CXXCPP_set=${CXXCPP+set}
980 ac_env_CXXCPP_value=$CXXCPP
981 ac_cv_env_CXXCPP_set=${CXXCPP+set}
982 ac_cv_env_CXXCPP_value=$CXXCPP
983 ac_env_F77_set=${F77+set}
984 ac_env_F77_value=$F77
985 ac_cv_env_F77_set=${F77+set}
986 ac_cv_env_F77_value=$F77
987 ac_env_FFLAGS_set=${FFLAGS+set}
988 ac_env_FFLAGS_value=$FFLAGS
989 ac_cv_env_FFLAGS_set=${FFLAGS+set}
990 ac_cv_env_FFLAGS_value=$FFLAGS
993 # Report the --help message.
995 if test "$ac_init_help" = "long"; then
996 # Omit some internal or obsolete options to make the list less imposing.
997 # This message is too long to be a string in the A/UX 3.1 sh.
999 \`configure' configures this package to adapt to many kinds of systems.
1001 Usage: $0 [OPTION]... [VAR=VALUE]...
1003 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1004 VAR=VALUE. See below for descriptions of some of the useful variables.
1006 Defaults for the options are specified in brackets.
1009 -h, --help display this help and exit
1010 --help=short display options specific to this package
1011 --help=recursive display the short help of all the included packages
1012 -V, --version display version information and exit
1013 -q, --quiet, --silent do not print \`checking...' messages
1014 --cache-file=FILE cache test results in FILE [disabled]
1015 -C, --config-cache alias for \`--cache-file=config.cache'
1016 -n, --no-create do not create output files
1017 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1022 Installation directories:
1023 --prefix=PREFIX install architecture-independent files in PREFIX
1024 [$ac_default_prefix]
1025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1028 By default, \`make install' will install all the files in
1029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1031 for instance \`--prefix=\$HOME'.
1033 For better control, use the options below.
1035 Fine tuning of the installation directories:
1036 --bindir=DIR user executables [EPREFIX/bin]
1037 --sbindir=DIR system admin executables [EPREFIX/sbin]
1038 --libexecdir=DIR program executables [EPREFIX/libexec]
1039 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1040 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1041 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1042 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1043 --libdir=DIR object code libraries [EPREFIX/lib]
1044 --includedir=DIR C header files [PREFIX/include]
1045 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1046 --infodir=DIR info documentation [PREFIX/info]
1047 --mandir=DIR man documentation [PREFIX/man]
1053 --program-prefix=PREFIX prepend PREFIX to installed program names
1054 --program-suffix=SUFFIX append SUFFIX to installed program names
1055 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1058 --build=BUILD configure for building on BUILD [guessed]
1059 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1063 if test -n "$ac_init_help"; then
1068 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1069 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1070 --enable-shared build backends as dynamically loadable modules
1071 --enable-static build backends also as static libraries
1072 --enable-unit-tests enables tests embedded in the source code of the
1073 library (changes content of executable)
1074 --enable-integration-tests
1075 enables tests outside of the library (can be used
1076 together with normal builds of the library)
1077 --enable-static-cxx build executables which contain libstdc++ instead of
1078 requiring suitable libstdc++.so to run
1079 --enable-maemo enables some hacks which work around problems with
1080 the Maemo 2.0 until at least 3.0 EDS-Dbus
1081 --disable-dependency-tracking speeds up one-time build
1082 --enable-dependency-tracking do not reject slow dependency extractors
1083 --enable-addressbook enable access to Mac OS X address book (default off)
1084 --disable-ebook disable access to Evolution addressbooks (default on
1086 --disable-ecal disable access to Evolution calendars and tasks
1087 (default on if available)
1088 --disable-file disable file-based backend which stores items in
1089 separate files in a fixed directory (default on)
1090 --enable-sqlite enable access to PIM data stored in SQLite files
1091 (experimental, default off)
1092 --enable-shared[=PKGS]
1093 build shared libraries [default=yes]
1094 --enable-static[=PKGS]
1095 build static libraries [default=yes]
1096 --enable-fast-install[=PKGS]
1097 optimize for fast installation [default=yes]
1098 --disable-libtool-lock avoid locking (might break parallel builds)
1101 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1102 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1103 --with-funambol=<base directory>
1104 specifies location of Funambol client library
1105 --with-funambol=<base directory>
1106 alias for --with-funambol
1107 --with-funambol-src=<base directory>
1108 specifies location of the Funambol
1109 '3x/client-api/native' source code
1110 --with-sync4j-src=<base directory>
1111 alias for --with-funambol-src
1112 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1113 --with-pic try to use only PIC/non-PIC objects [default=use
1116 include additional configurations [automatic]
1118 Some influential environment variables:
1119 CC C compiler command
1120 CFLAGS C compiler flags
1121 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1122 nonstandard directory <lib dir>
1123 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124 headers in a nonstandard directory <include dir>
1126 PKG_CONFIG path to pkg-config utility
1128 C compiler flags for EPACKAGE, overriding pkg-config
1130 linker flags for EPACKAGE, overriding pkg-config
1131 ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
1132 ECAL_LIBS linker flags for ECAL, overriding pkg-config
1134 C compiler flags for EBOOK, overriding pkg-config
1135 EBOOK_LIBS linker flags for EBOOK, overriding pkg-config
1137 C compiler flags for SQLITE, overriding pkg-config
1138 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1139 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1140 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1141 CXX C++ compiler command
1142 CXXFLAGS C++ compiler flags
1143 CXXCPP C++ preprocessor
1144 F77 Fortran 77 compiler command
1145 FFLAGS Fortran 77 compiler flags
1147 Use these variables to override the choices made by `configure' or to help
1148 it to find libraries and programs with nonstandard names/locations.
1153 if test "$ac_init_help" = "recursive"; then
1154 # If there are subdirs, report their specific --help.
1156 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1157 test -d $ac_dir || continue
1160 if test "$ac_dir" != .; then
1161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1162 # A "../" for each directory in $ac_dir_suffix.
1163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1165 ac_dir_suffix= ac_top_builddir=
1169 .) # No --srcdir option. We are building in place.
1171 if test -z "$ac_top_builddir"; then
1174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1176 [\\/]* | ?:[\\/]* ) # Absolute path.
1177 ac_srcdir=$srcdir$ac_dir_suffix;
1178 ac_top_srcdir=$srcdir ;;
1180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1184 # Do not use `cd foo && pwd` to compute absolute paths, because
1185 # the directories may not exist.
1187 .) ac_abs_builddir="$ac_dir";;
1190 .) ac_abs_builddir=`pwd`;;
1191 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1192 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1195 case $ac_abs_builddir in
1196 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1198 case ${ac_top_builddir}. in
1199 .) ac_abs_top_builddir=$ac_abs_builddir;;
1200 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1201 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1204 case $ac_abs_builddir in
1205 .) ac_abs_srcdir=$ac_srcdir;;
1208 .) ac_abs_srcdir=$ac_abs_builddir;;
1209 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1210 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1213 case $ac_abs_builddir in
1214 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1216 case $ac_top_srcdir in
1217 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1218 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1219 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1224 # Check for guested configure; otherwise get Cygnus style configure.
1225 if test -f $ac_srcdir/configure.gnu; then
1227 $SHELL $ac_srcdir/configure.gnu --help=recursive
1228 elif test -f $ac_srcdir/configure; then
1230 $SHELL $ac_srcdir/configure --help=recursive
1231 elif test -f $ac_srcdir/configure.ac ||
1232 test -f $ac_srcdir/configure.in; then
1234 $ac_configure --help
1236 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1242 test -n "$ac_init_help" && exit 0
1243 if $ac_init_version; then
1246 Copyright (C) 2003 Free Software Foundation, Inc.
1247 This configure script is free software; the Free Software Foundation
1248 gives unlimited permission to copy, distribute and modify it.
1254 This file contains any messages produced by compilers while
1255 running configure, to aid debugging if configure makes a mistake.
1257 It was created by $as_me, which was
1258 generated by GNU Autoconf 2.59. Invocation command line was
1269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1281 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1292 test -z "$as_dir" && as_dir=.
1293 echo "PATH: $as_dir"
1308 # Keep a trace of the command line.
1309 # Strip out --no-create and --no-recursion so they do not pile up.
1310 # Strip out --silent because we don't want to record it for future runs.
1311 # Also quote any args containing shell meta-characters.
1312 # Make two passes to allow for proper duplicate-argument suppression.
1317 ac_must_keep_next=false
1323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325 | -silent | --silent | --silen | --sile | --sil)
1327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1328 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1331 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1333 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1334 if test $ac_must_keep_next = true; then
1335 ac_must_keep_next=false # Got value, back to normal.
1338 *=* | --config-cache | -C | -disable-* | --disable-* \
1339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1341 | -with-* | --with-* | -without-* | --without-* | --x)
1342 case "$ac_configure_args0 " in
1343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1346 -* ) ac_must_keep_next=true ;;
1349 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1350 # Get rid of the leading space.
1356 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1357 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1359 # When interrupted or exit'd, cleanup temporary files, and complete
1360 # config.log. We remove comments because anyway the quotes in there
1361 # would cause problems or look ugly.
1362 # WARNING: Be sure not to use single quotes in there, as some shells,
1363 # such as our DU 5.0 friend, will then `close' the trap.
1364 trap 'exit_status=$?
1365 # Save into config.log some information that might help in debugging.
1370 ## ---------------- ##
1371 ## Cache variables. ##
1372 ## ---------------- ##
1375 # The following way of writing the cache mishandles newlines in values,
1378 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1381 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1386 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1393 ## ----------------- ##
1394 ## Output variables. ##
1395 ## ----------------- ##
1398 for ac_var in $ac_subst_vars
1400 eval ac_val=$`echo $ac_var`
1401 echo "$ac_var='"'"'$ac_val'"'"'"
1405 if test -n "$ac_subst_files"; then
1412 for ac_var in $ac_subst_files
1414 eval ac_val=$`echo $ac_var`
1415 echo "$ac_var='"'"'$ac_val'"'"'"
1420 if test -s confdefs.h; then
1427 sed "/^$/d" confdefs.h | sort
1430 test "$ac_signal" != 0 &&
1431 echo "$as_me: caught signal $ac_signal"
1432 echo "$as_me: exit $exit_status"
1434 rm -f core *.core &&
1435 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1438 for ac_signal in 1 2 13 15; do
1439 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1443 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1444 rm -rf conftest* confdefs.h
1445 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1448 # Predefined preprocessor variables.
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_NAME "$PACKAGE_NAME"
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1460 cat >>confdefs.h <<_ACEOF
1461 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1465 cat >>confdefs.h <<_ACEOF
1466 #define PACKAGE_STRING "$PACKAGE_STRING"
1470 cat >>confdefs.h <<_ACEOF
1471 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1475 # Let the site file select an alternate cache file if it wants to.
1476 # Prefer explicitly selected file to automatically selected ones.
1477 if test -z "$CONFIG_SITE"; then
1478 if test "x$prefix" != xNONE; then
1479 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1481 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1484 for ac_site_file in $CONFIG_SITE; do
1485 if test -r "$ac_site_file"; then
1486 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1487 echo "$as_me: loading site script $ac_site_file" >&6;}
1488 sed 's/^/| /' "$ac_site_file" >&5
1493 if test -r "$cache_file"; then
1494 # Some versions of bash will fail to source /dev/null (special
1495 # files actually), so we avoid doing that.
1496 if test -f "$cache_file"; then
1497 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1498 echo "$as_me: loading cache $cache_file" >&6;}
1500 [\\/]* | ?:[\\/]* ) . $cache_file;;
1501 *) . ./$cache_file;;
1505 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1506 echo "$as_me: creating cache $cache_file" >&6;}
1510 # Check that the precious variables saved in the cache have kept the same
1512 ac_cache_corrupted=false
1513 for ac_var in `(set) 2>&1 |
1514 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1515 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1516 eval ac_new_set=\$ac_env_${ac_var}_set
1517 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1518 eval ac_new_val="\$ac_env_${ac_var}_value"
1519 case $ac_old_set,$ac_new_set in
1521 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1522 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1523 ac_cache_corrupted=: ;;
1525 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1526 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1527 ac_cache_corrupted=: ;;
1530 if test "x$ac_old_val" != "x$ac_new_val"; then
1531 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1532 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1533 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1534 echo "$as_me: former value: $ac_old_val" >&2;}
1535 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1536 echo "$as_me: current value: $ac_new_val" >&2;}
1537 ac_cache_corrupted=:
1540 # Pass precious variables to config.status.
1541 if test "$ac_new_set" = set; then
1543 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1544 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1545 *) ac_arg=$ac_var=$ac_new_val ;;
1547 case " $ac_configure_args " in
1548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1549 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1553 if $ac_cache_corrupted; then
1554 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1555 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1556 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1557 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1558 { (exit 1); exit 1; }; }
1562 ac_cpp='$CPP $CPPFLAGS'
1563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1585 am__api_version="1.9"
1587 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1588 if test -f $ac_dir/install-sh; then
1590 ac_install_sh="$ac_aux_dir/install-sh -c"
1592 elif test -f $ac_dir/install.sh; then
1594 ac_install_sh="$ac_aux_dir/install.sh -c"
1596 elif test -f $ac_dir/shtool; then
1598 ac_install_sh="$ac_aux_dir/shtool install -c"
1602 if test -z "$ac_aux_dir"; then
1603 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1604 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1605 { (exit 1); exit 1; }; }
1607 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1608 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1609 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1611 # Find a good install program. We prefer a C program (faster),
1612 # so one script is as good as another. But avoid the broken or
1613 # incompatible versions:
1614 # SysV /etc/install, /usr/sbin/install
1615 # SunOS /usr/etc/install
1616 # IRIX /sbin/install
1618 # AmigaOS /C/install, which installs bootblocks on floppy discs
1619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1622 # OS/2's system install, which has a completely different semantic
1623 # ./install, which can be erroneously created by make from ./install.sh.
1624 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1625 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1626 if test -z "$INSTALL"; then
1627 if test "${ac_cv_path_install+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 # Account for people who put trailing slashes in PATH elements.
1637 ./ | .// | /cC/* | \
1638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1639 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1642 # OSF1 and SCO ODT 3.0 have their own names for install.
1643 # Don't use installbsd from OSF since it installs stuff as root
1645 for ac_prog in ginstall scoinst install; do
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1648 if test $ac_prog = install &&
1649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1650 # AIX install. It has an incompatible calling convention.
1652 elif test $ac_prog = install &&
1653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654 # program-specific install script used by HP pwplus--don't use.
1657 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 if test "${ac_cv_path_install+set}" = set; then
1670 INSTALL=$ac_cv_path_install
1672 # As a last resort, use the slow shell script. We don't cache a
1673 # path for INSTALL within a source directory, because that will
1674 # break other packages using the cache if that directory is
1675 # removed, or if the path is relative.
1676 INSTALL=$ac_install_sh
1679 echo "$as_me:$LINENO: result: $INSTALL" >&5
1680 echo "${ECHO_T}$INSTALL" >&6
1682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1683 # It thinks the first close brace ends the variable substitution.
1684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1690 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1691 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1694 echo timestamp > conftest.file
1695 # Do `set' in a subshell so we don't clobber the current shell's
1696 # arguments. Must try -L first in case configure is actually a
1697 # symlink; some systems play weird games with the mod time of symlinks
1698 # (eg FreeBSD returns the mod time of the symlink's containing
1701 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1702 if test "$*" = "X"; then
1704 set X `ls -t $srcdir/configure conftest.file`
1707 if test "$*" != "X $srcdir/configure conftest.file" \
1708 && test "$*" != "X conftest.file $srcdir/configure"; then
1710 # If neither matched, then we have a broken ls. This can happen
1711 # if, for instance, CONFIG_SHELL is bash and it inherits a
1712 # broken ls alias from the environment. This has actually
1713 # happened. Such a system could not be considered "sane".
1714 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1715 alias in your environment" >&5
1716 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1717 alias in your environment" >&2;}
1718 { (exit 1); exit 1; }; }
1721 test "$2" = conftest.file
1727 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1728 Check your system clock" >&5
1729 echo "$as_me: error: newly created file is older than distributed files!
1730 Check your system clock" >&2;}
1731 { (exit 1); exit 1; }; }
1733 echo "$as_me:$LINENO: result: yes" >&5
1734 echo "${ECHO_T}yes" >&6
1735 test "$program_prefix" != NONE &&
1736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1737 # Use a double $ so make ignores it.
1738 test "$program_suffix" != NONE &&
1739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1740 # Double any \ or $. echo might interpret backslashes.
1741 # By default was `s,x,x', remove it if useless.
1742 cat <<\_ACEOF >conftest.sed
1743 s/[\\$]/&&/g;s/;s,x,x,$//
1745 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1748 # expand $ac_aux_dir to an absolute path
1749 am_aux_dir=`cd $ac_aux_dir && pwd`
1751 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1752 # Use eval to expand $SHELL
1753 if eval "$MISSING --run true"; then
1754 am_missing_run="$MISSING --run "
1757 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1758 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1761 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1762 # We used to keeping the `.' as first argument, in order to
1763 # allow $(mkdir_p) to be used without argument. As in
1764 # $(mkdir_p) $(somedir)
1765 # where $(somedir) is conditionally defined. However this is wrong
1767 # 1. if the package is installed by a user who cannot write `.'
1768 # make install will fail,
1769 # 2. the above comment should most certainly read
1770 # $(mkdir_p) $(DESTDIR)$(somedir)
1771 # so it does not work when $(somedir) is undefined and
1772 # $(DESTDIR) is not.
1773 # To support the latter case, we have to write
1774 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1775 # so the `.' trick is pointless.
1776 mkdir_p='mkdir -p --'
1778 # On NextStep and OpenStep, the `mkdir' command does not
1779 # recognize any option. It will interpret all options as
1780 # directories to create, and then abort because `.' already
1782 for d in ./-p ./--version;
1784 test -d $d && rmdir $d
1786 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1787 if test -f "$ac_aux_dir/mkinstalldirs"; then
1788 mkdir_p='$(mkinstalldirs)'
1790 mkdir_p='$(install_sh) -d'
1794 for ac_prog in gawk mawk nawk awk
1796 # Extract the first word of "$ac_prog", so it can be a program name with args.
1797 set dummy $ac_prog; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_AWK+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$AWK"; then
1804 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_AWK="$ac_prog"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 if test -n "$AWK"; then
1824 echo "$as_me:$LINENO: result: $AWK" >&5
1825 echo "${ECHO_T}$AWK" >&6
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1831 test -n "$AWK" && break
1834 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1835 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1836 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1837 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 cat >conftest.make <<\_ACEOF
1842 @echo 'ac_maketemp="$(MAKE)"'
1844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1845 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1846 if test -n "$ac_maketemp"; then
1847 eval ac_cv_prog_make_${ac_make}_set=yes
1849 eval ac_cv_prog_make_${ac_make}_set=no
1853 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1854 echo "$as_me:$LINENO: result: yes" >&5
1855 echo "${ECHO_T}yes" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1860 SET_MAKE="MAKE=${MAKE-make}"
1863 rm -rf .tst 2>/dev/null
1864 mkdir .tst 2>/dev/null
1865 if test -d .tst; then
1870 rmdir .tst 2>/dev/null
1872 # test to see if srcdir already configured
1873 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1874 test -f $srcdir/config.status; then
1875 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1876 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1877 { (exit 1); exit 1; }; }
1880 # test whether we have cygpath
1881 if test -z "$CYGPATH_W"; then
1882 if (cygpath --version) >/dev/null 2>/dev/null; then
1883 CYGPATH_W='cygpath -w'
1890 # Define the identity of the package.
1891 PACKAGE=syncevolution
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE "$PACKAGE"
1900 cat >>confdefs.h <<_ACEOF
1901 #define VERSION "$VERSION"
1904 # Some tools Automake needs.
1906 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1909 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1912 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1915 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1918 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1920 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1922 # Installed binaries are usually stripped using `strip' when the user
1923 # run `make install-strip'. However `strip' might not be the right
1924 # tool to use in cross-compilation environments, therefore Automake
1925 # will honor the `STRIP' environment variable to overrule this program.
1926 if test "$cross_compiling" != no; then
1927 if test -n "$ac_tool_prefix"; then
1928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1929 set dummy ${ac_tool_prefix}strip; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_STRIP+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$STRIP"; then
1936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 STRIP=$ac_cv_prog_STRIP
1955 if test -n "$STRIP"; then
1956 echo "$as_me:$LINENO: result: $STRIP" >&5
1957 echo "${ECHO_T}$STRIP" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1964 if test -z "$ac_cv_prog_STRIP"; then
1966 # Extract the first word of "strip", so it can be a program name with args.
1967 set dummy strip; 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_ac_ct_STRIP+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$ac_ct_STRIP"; then
1974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1994 if test -n "$ac_ct_STRIP"; then
1995 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1996 echo "${ECHO_T}$ac_ct_STRIP" >&6
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2004 STRIP="$ac_cv_prog_STRIP"
2008 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2010 # We need awk for the "check" target. The system "awk" is bad on
2012 # Always define AMTAR for backward compatibility.
2014 AMTAR=${AMTAR-"${am_missing_run}tar"}
2016 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2022 ac_config_headers="$ac_config_headers config.h"
2029 # command used to configure client library, including options
2030 CLIENT_CONFIGURE=$PWD/src/client-api/build/autotools/configure
2033 # Check whether --with-funambol or --without-funambol was given.
2034 if test "${with_funambol+set}" = set; then
2035 withval="$with_funambol"
2040 # Check whether --with-sync4j or --without-sync4j was given.
2041 if test "${with_sync4j+set}" = set; then
2042 withval="$with_sync4j"
2047 # Check whether --with-funambol-src or --without-funambol-src was given.
2048 if test "${with_funambol_src+set}" = set; then
2049 withval="$with_funambol_src"
2050 FUNAMBOLSRC="$withval"
2054 # Check whether --with-sync4j-src or --without-sync4j-src was given.
2055 if test "${with_sync4j_src+set}" = set; then
2056 withval="$with_sync4j_src"
2057 FUNAMBOLSRC="$withval"
2060 # Check whether --enable-shared or --disable-shared was given.
2061 if test "${enable_shared+set}" = set; then
2062 enableval="$enable_shared"
2063 enable_shared="$enableval"
2068 # Check whether --enable-static or --disable-static was given.
2069 if test "${enable_static+set}" = set; then
2070 enableval="$enable_static"
2071 enable_static="$enableval"
2076 # Check whether --enable-unit-tests or --disable-unit-tests was given.
2077 if test "${enable_unit_tests+set}" = set; then
2078 enableval="$enable_unit_tests"
2079 enable_unit_tests="$enableval"
2081 enable_unit_tests="no"
2083 # Check whether --enable-integration-tests or --disable-integration-tests was given.
2084 if test "${enable_integration_tests+set}" = set; then
2085 enableval="$enable_integration_tests"
2086 enable_integration_tests="$enableval"
2088 enable_integration_tests="no"
2091 # Check whether --enable-static-cxx or --disable-static-cxx was given.
2092 if test "${enable_static_cxx+set}" = set; then
2093 enableval="$enable_static_cxx"
2094 enable_static_cxx="$enableval"
2096 enable_static_cxx="no"
2100 # - set the (non-standard!) DBUS_DEFAULT_TIMEOUT
2101 # - wrap e_book_from_string() to fix invalid parameter
2102 # - don't use UTF-8 encoding in Perl script
2103 # Check whether --enable-maemo or --disable-maemo was given.
2104 if test "${enable_maemo+set}" = set; then
2105 enableval="$enable_maemo"
2107 cat >>confdefs.h <<\_ACEOF
2108 #define ENABLE_MAEMO 1
2112 MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
2116 DEPDIR="${am__leading_dot}deps"
2118 ac_config_commands="$ac_config_commands depfiles"
2121 am_make=${MAKE-make}
2122 cat > confinc << 'END'
2127 # If we don't find an include directive, just comment out the code.
2128 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2129 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2133 # First try GNU make style include.
2134 echo "include confinc" > confmf
2135 # We grep out `Entering directory' and `Leaving directory'
2136 # messages which can occur if `w' ends up in MAKEFLAGS.
2137 # In particular we don't look at `^make:' because GNU make might
2138 # be invoked under some other name (usually "gmake"), in which
2139 # case it prints its new name instead of `make'.
2140 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2145 # Now try BSD make style include.
2146 if test "$am__include" = "#"; then
2147 echo '.include "confinc"' > confmf
2148 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2149 am__include=.include
2156 echo "$as_me:$LINENO: result: $_am_result" >&5
2157 echo "${ECHO_T}$_am_result" >&6
2158 rm -f confinc confmf
2160 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2161 if test "${enable_dependency_tracking+set}" = set; then
2162 enableval="$enable_dependency_tracking"
2165 if test "x$enable_dependency_tracking" != xno; then
2166 am_depcomp="$ac_aux_dir/depcomp"
2171 if test "x$enable_dependency_tracking" != xno; then
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 if test -n "$ac_tool_prefix"; then
2187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2189 echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191 if test "${ac_cv_prog_CC+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test -n "$CC"; then
2195 ac_cv_prog_CC="$CC" # Let the user override the test.
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 if test -n "$CC"; then
2215 echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6
2218 echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6
2223 if test -z "$ac_cv_prog_CC"; then
2225 # Extract the first word of "gcc", so it can be a program name with args.
2226 set dummy gcc; 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="gcc"
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
2265 if test -z "$CC"; then
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}cc; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_CC="${ac_tool_prefix}cc"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2298 echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2303 if test -z "$ac_cv_prog_CC"; then
2305 # Extract the first word of "cc", so it can be a program name with args.
2306 set dummy cc; ac_word=$2
2307 echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 if test -n "$ac_ct_CC"; then
2313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322 ac_cv_prog_ac_ct_CC="cc"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2332 if test -n "$ac_ct_CC"; then
2333 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2334 echo "${ECHO_T}$ac_ct_CC" >&6
2336 echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6
2346 if test -z "$CC"; then
2347 # Extract the first word of "cc", so it can be a program name with args.
2348 set dummy cc; ac_word=$2
2349 echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366 ac_prog_rejected=yes
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 if test $ac_prog_rejected = yes; then
2377 # We found a bogon in the path, so make sure we never use it.
2378 set dummy $ac_cv_prog_CC
2380 if test $# != 0; then
2381 # We chose a different compiler from the bogus one.
2382 # However, it has the same basename, so the bogon will be chosen
2383 # first if we set CC to just the basename; use the full file name.
2385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391 if test -n "$CC"; then
2392 echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6
2395 echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2400 if test -z "$CC"; then
2401 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 if test -n "$CC"; then
2432 echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6
2435 echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2439 test -n "$CC" && break
2442 if test -z "$CC"; then
2446 # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$ac_ct_CC"; then
2454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463 ac_cv_prog_ac_ct_CC="$ac_prog"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6
2477 echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6
2481 test -n "$ac_ct_CC" && break
2490 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details." >&2;}
2494 { (exit 1); exit 1; }; }
2496 # Provide some information about the compiler.
2497 echo "$as_me:$LINENO:" \
2498 "checking for C compiler version" >&5
2499 ac_compiler=`set X $ac_compile; echo $2`
2500 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2501 (eval $ac_compiler --version </dev/null >&5) 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2506 (eval $ac_compiler -v </dev/null >&5) 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2511 (eval $ac_compiler -V </dev/null >&5) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2516 cat >conftest.$ac_ext <<_ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 ac_clean_files_save=$ac_clean_files
2532 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2533 # Try to create an executable without -o first, disregard a.out.
2534 # It will help us diagnose broken compilers, and finding out an intuition
2536 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2537 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2540 (eval $ac_link_default) 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; then
2544 # Find the output, starting from the most likely. This scheme is
2545 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2548 # Be careful to initialize this variable, since it used to be cached.
2549 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2551 # b.out is created by i960 compilers.
2552 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2554 test -f "$ac_file" || continue
2556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2559 # This is the source file.
2562 # We found the default executable, but exeext='' is most
2566 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2567 # FIXME: I believe we export ac_cv_exeext for Libtool,
2568 # but it would be cool to find out if it's true. Does anybody
2569 # maintain Libtool? --akim.
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584 { (exit 77); exit 77; }; }
2587 ac_exeext=$ac_cv_exeext
2588 echo "$as_me:$LINENO: result: $ac_file" >&5
2589 echo "${ECHO_T}$ac_file" >&6
2591 # Check the compiler produces executables we can run. If not, either
2592 # the compiler is broken, or we cross compile.
2593 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2596 # If not cross compiling, check that we can run a simple program.
2597 if test "$cross_compiling" != yes; then
2598 if { ac_try='./$ac_file'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2606 if test "$cross_compiling" = maybe; then
2609 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot run C compiled programs.
2613 If you meant to cross compile, use \`--host'.
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2619 echo "$as_me:$LINENO: result: yes" >&5
2620 echo "${ECHO_T}yes" >&6
2622 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2623 ac_clean_files=$ac_clean_files_save
2624 # Check the compiler produces executables we can run. If not, either
2625 # the compiler is broken, or we cross compile.
2626 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2627 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2628 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2629 echo "${ECHO_T}$cross_compiling" >&6
2631 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2632 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2634 (eval $ac_link) 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; then
2638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2640 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 for ac_file in conftest.exe conftest conftest.*; do
2643 test -f "$ac_file" || continue
2645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2667 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2687 rm -f conftest.o conftest.obj
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; then
2693 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2696 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2704 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2707 See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2713 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2714 echo "${ECHO_T}$ac_cv_objext" >&6
2715 OBJEXT=$ac_cv_objext
2717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2775 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS=${CFLAGS+set}
2777 ac_save_CFLAGS=$CFLAGS
2779 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>conftest.er1
2803 grep -v '^ *+' conftest.er1 >conftest.err
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2832 if test "$ac_test_CFLAGS" = set; then
2833 CFLAGS=$ac_save_CFLAGS
2834 elif test $ac_cv_prog_cc_g = yes; then
2835 if test "$GCC" = yes; then
2841 if test "$GCC" = yes; then
2847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 ac_cv_prog_cc_stdc=no
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2862 #include <sys/types.h>
2863 #include <sys/stat.h>
2864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2865 struct buf { int x; };
2866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2867 static char *e (p, i)
2873 static char *f (char * (*g) (char **, int), char **p, ...)
2878 s = g (p, va_arg (v,int));
2883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2884 function prototypes and stuff, but not '\xHH' hex character constants.
2885 These don't provoke an error unfortunately, instead are silently treated
2886 as 'x'. The following induces an error, until -std1 is added to get
2887 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2888 array size at least. It's necessary to write '\x00'==0 to get something
2889 that's true only with -std1. */
2890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2892 int test (int i, double x);
2893 struct s1 {int (*f) (int a);};
2894 struct s2 {int (*f) (double a);};
2895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2906 # Don't try gcc -ansi; that turns off useful extensions and
2907 # breaks some systems' header files.
2908 # AIX -qlanglvl=ansi
2909 # Ultrix and OSF/1 -std1
2910 # HP-UX 10.20 and later -Ae
2911 # HP-UX older versions -Aa -D_HPUX_SOURCE
2912 # SVR4 -Xc -D__EXTENSIONS__
2913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2915 CC="$ac_save_CC $ac_arg"
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -z "$ac_c_werror_flag"
2926 || test ! -s conftest.err'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_prog_cc_stdc=$ac_arg
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2945 rm -f conftest.err conftest.$ac_objext
2947 rm -f conftest.$ac_ext conftest.$ac_objext
2952 case "x$ac_cv_prog_cc_stdc" in
2954 echo "$as_me:$LINENO: result: none needed" >&5
2955 echo "${ECHO_T}none needed" >&6 ;;
2957 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2959 CC="$CC $ac_cv_prog_cc_stdc" ;;
2962 # Some people use a C++ compiler to compile C. Since we use `exit',
2963 # in C++ we need to declare it. In case someone uses the same compiler
2964 # for both compiling C and C++ we need to have the C++ compiler decide
2965 # the declaration of exit, since it's the most demanding environment.
2966 cat >conftest.$ac_ext <<_ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_c_werror_flag"
2981 || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 for ac_declaration in \
2995 'extern "C" void std::exit (int) throw (); using std::exit;' \
2996 'extern "C" void std::exit (int); using std::exit;' \
2997 'extern "C" void exit (int) throw ();' \
2998 'extern "C" void exit (int);' \
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019 (eval $ac_compile) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_c_werror_flag"
3027 || test ! -s conftest.err'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag"
3072 || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3093 if test -n "$ac_declaration"; then
3094 echo '#ifdef __cplusplus' >>confdefs.h
3095 echo $ac_declaration >>confdefs.h
3096 echo '#endif' >>confdefs.h
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 depcc="$CC" am_compiler_list=
3113 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3114 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3115 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3119 # We make a subdir and do the tests there. Otherwise we can end up
3120 # making bogus files that we don't know about and never remove. For
3121 # instance it was reported that on HP-UX the gcc test will end up
3122 # making a dummy file named `D' -- because `-MD' means `put the output
3125 # Copy depcomp to subdir because otherwise we won't find it if we're
3126 # using a relative directory.
3127 cp "$am_depcomp" conftest.dir
3129 # We will build objects and dependencies in a subdirectory because
3130 # it helps to detect inapplicable dependency modes. For instance
3131 # both Tru64's cc and ICC support -MD to output dependencies as a
3132 # side effect of compilation, but ICC will put the dependencies in
3133 # the current directory while Tru64 will put them in the object
3137 am_cv_CC_dependencies_compiler_type=none
3138 if test "$am_compiler_list" = ""; then
3139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3141 for depmode in $am_compiler_list; do
3142 # Setup a source with many dependencies, because some compilers
3143 # like to wrap large dependency lists on column 80 (with \), and
3144 # we should not choose a depcomp mode which is confused by this.
3146 # We need to recreate these files for each test, as the compiler may
3147 # overwrite some of them when testing with obscure command lines.
3148 # This happens at least with the AIX C compiler.
3150 for i in 1 2 3 4 5 6; do
3151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3152 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3153 # Solaris 8's {/usr,}/bin/sh.
3154 touch sub/conftst$i.h
3156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3160 # after this tag, mechanisms are not by side-effect, so they'll
3161 # only be used when explicitly requested
3162 if test "x$enable_dependency_tracking" = xyes; then
3170 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3171 # mode. It turns out that the SunPro C++ compiler does not properly
3172 # handle `-M -o', and we need to detect this.
3173 if depmode=$depmode \
3174 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3176 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3177 >/dev/null 2>conftest.err &&
3178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3179 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3181 # icc doesn't choke on unknown options, it will just issue warnings
3182 # or remarks (even with -Werror). So we grep stderr for any message
3183 # that says an option was ignored or not supported.
3184 # When given -MP, icc 7.0 and 7.1 complain thusly:
3185 # icc: Command line warning: ignoring option '-M'; no argument required
3186 # The diagnosis changed in icc 8.0:
3187 # icc: Command line remark: option '-MP' not supported
3188 if (grep 'ignoring option' conftest.err ||
3189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3190 am_cv_CC_dependencies_compiler_type=$depmode
3199 am_cv_CC_dependencies_compiler_type=none
3203 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3204 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3205 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3210 test "x$enable_dependency_tracking" != xno \
3211 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3213 am__fastdepCC_FALSE='#'
3215 am__fastdepCC_TRUE='#'
3216 am__fastdepCC_FALSE=
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3227 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3228 # On Suns, sometimes $CPP names a directory.
3229 if test -n "$CPP" && test -d "$CPP"; then
3232 if test -z "$CPP"; then
3233 if test "${ac_cv_prog_CPP+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 # Double quotes because CPP needs to be expanded
3237 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3240 for ac_c_preproc_warn_flag in '' yes
3242 # Use a header file that comes with gcc, so configuring glibc
3243 # with a fresh cross-compiler works.
3244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3245 # <limits.h> exists even on freestanding compilers.
3246 # On the NeXT, cc -E runs the code through the compiler's parser,
3247 # not just through cpp. "Syntax error" is here to catch this case.
3248 cat >conftest.$ac_ext <<_ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3255 # include <limits.h>
3257 # include <assert.h>
3261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3264 grep -v '^ *+' conftest.er1 >conftest.err
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } >/dev/null; then
3269 if test -s conftest.err; then
3270 ac_cpp_err=$ac_c_preproc_warn_flag
3271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3278 if test -z "$ac_cpp_err"; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3284 # Broken: fails on valid input.
3287 rm -f conftest.err conftest.$ac_ext
3289 # OK, works on sane cases. Now check whether non-existent headers
3290 # can be detected and how.
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297 #include <ac_nonexistent.h>
3299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316 if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 # Passes both tests.
3327 rm -f conftest.err conftest.$ac_ext
3330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331 rm -f conftest.err conftest.$ac_ext
3332 if $ac_preproc_ok; then
3344 echo "$as_me:$LINENO: result: $CPP" >&5
3345 echo "${ECHO_T}$CPP" >&6
3347 for ac_c_preproc_warn_flag in '' yes
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3362 # include <limits.h>
3364 # include <assert.h>
3368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3371 grep -v '^ *+' conftest.er1 >conftest.err
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_c_preproc_warn_flag
3378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 if test -z "$ac_cpp_err"; then
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 # Broken: fails on valid input.
3394 rm -f conftest.err conftest.$ac_ext
3396 # OK, works on sane cases. Now check whether non-existent headers
3397 # can be detected and how.
3398 cat >conftest.$ac_ext <<_ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 #include <ac_nonexistent.h>
3406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423 if test -z "$ac_cpp_err"; then
3424 # Broken: success on invalid input.
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 # Passes both tests.
3434 rm -f conftest.err conftest.$ac_ext
3437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438 rm -f conftest.err conftest.$ac_ext
3439 if $ac_preproc_ok; then
3442 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 echo "$as_me:$LINENO: checking for egrep" >&5
3457 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3458 if test "${ac_cv_prog_egrep+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3462 then ac_cv_prog_egrep='grep -E'
3463 else ac_cv_prog_egrep='egrep'
3466 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3467 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3468 EGREP=$ac_cv_prog_egrep
3471 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3473 if test "${ac_cv_header_stdc+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3495 rm -f conftest.$ac_objext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497 (eval $ac_compile) 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -z "$ac_c_werror_flag"
3505 || test ! -s conftest.err'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; } &&
3511 { ac_try='test -s conftest.$ac_objext'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3517 ac_cv_header_stdc=yes
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 ac_cv_header_stdc=no
3524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3526 if test $ac_cv_header_stdc = yes; then
3527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3538 $EGREP "memchr" >/dev/null 2>&1; then
3541 ac_cv_header_stdc=no
3547 if test $ac_cv_header_stdc = yes; then
3548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 $EGREP "free" >/dev/null 2>&1; then
3562 ac_cv_header_stdc=no
3568 if test $ac_cv_header_stdc = yes; then
3569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3570 if test "$cross_compiling" = yes; then
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 #if ((' ' & 0x0FF) == 0x020)
3581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3584 # define ISLOWER(c) \
3585 (('a' <= (c) && (c) <= 'i') \
3586 || ('j' <= (c) && (c) <= 'r') \
3587 || ('s' <= (c) && (c) <= 'z'))
3588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3596 for (i = 0; i < 256; i++)
3597 if (XOR (islower (i), ISLOWER (i))
3598 || toupper (i) != TOUPPER (i))
3603 rm -f conftest$ac_exeext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605 (eval $ac_link) 2>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3616 echo "$as_me: program exited with status $ac_status" >&5
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3621 ac_cv_header_stdc=no
3623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3627 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3628 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3629 if test $ac_cv_header_stdc = yes; then
3631 cat >>confdefs.h <<\_ACEOF
3632 #define STDC_HEADERS 1
3637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3647 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3648 inttypes.h stdint.h unistd.h
3650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3651 echo "$as_me:$LINENO: checking for $ac_header" >&5
3652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 $ac_includes_default
3664 #include <$ac_header>
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 eval "$as_ac_Header=yes"
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 eval "$as_ac_Header=no"
3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3700 cat >>confdefs.h <<_ACEOF
3701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3711 for ac_header in signal.h dlfcn.h
3713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3715 echo "$as_me:$LINENO: checking for $ac_header" >&5
3716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3723 # Is the header compilable?
3724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3732 $ac_includes_default
3733 #include <$ac_header>
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>conftest.er1
3739 grep -v '^ *+' conftest.er1 >conftest.err
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_header_compiler=yes
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_header_compiler=no
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3766 echo "${ECHO_T}$ac_header_compiler" >&6
3768 # Is the header present?
3769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3777 #include <$ac_header>
3779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3782 grep -v '^ *+' conftest.er1 >conftest.err
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } >/dev/null; then
3787 if test -s conftest.err; then
3788 ac_cpp_err=$ac_c_preproc_warn_flag
3789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3796 if test -z "$ac_cpp_err"; then
3797 ac_header_preproc=yes
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 ac_header_preproc=no
3804 rm -f conftest.err conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3806 echo "${ECHO_T}$ac_header_preproc" >&6
3808 # So? What about this header?
3809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3815 ac_header_preproc=yes
3818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3832 ## ------------------------------------------ ##
3833 ## Report this to the AC_PACKAGE_NAME lists. ##
3834 ## ------------------------------------------ ##
3837 sed "s/^/$as_me: WARNING: /" >&2
3840 echo "$as_me:$LINENO: checking for $ac_header" >&5
3841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 eval "$as_ac_Header=\$ac_header_preproc"
3847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3852 cat >>confdefs.h <<_ACEOF
3853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3862 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
3863 CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
3864 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
3865 { (exit 1); exit 1; }; }
3866 CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
3867 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
3868 { (exit 1); exit 1; }; }
3869 CPPUNIT_TESTS=client-test
3875 if test $enable_unit_tests == "yes"; then
3876 CLIENT_CONFIGURE="$CLIENT_CONFIGURE --enable-unit-tests"
3878 cat >>confdefs.h <<\_ACEOF
3879 #define ENABLE_UNIT_TESTS 1
3883 if test $enable_integration_tests == "yes"; then
3884 CLIENT_CONFIGURE="$CLIENT_CONFIGURE --enable-integration-tests"
3886 cat >>confdefs.h <<\_ACEOF
3887 #define ENABLE_INTEGRATION_TESTS 1
3892 if test $enable_static_cxx == "yes"; then
3894 CORE_LDADD_DEP=libstdc++.a
3898 # preserve src/client-api by default
3900 FUNAMBOL_LIB=$PWD/src/client-api.build/src/libfunambol.la
3905 *apple-darwin*) use_mac_ta="yes" ;;
3906 *) use_libcurl="yes" ;;
3909 # Check for libcurl now instead of during make.
3910 # Strictly speaking, building libfunambol takes
3911 # care of that, but because we build it in a
3912 # slightly unusual way (build libfunambol.a with
3913 # -fPIC, include just the required object files
3914 # in libsyncevolution) libtool doesn't pick up
3915 # that dependency and we have to add libcurl to
3916 # out link flags ourselves.
3917 echo "$as_me:$LINENO: checking for libcurl" >&5
3918 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6
3919 if TRANSPORT_LDFLAGS=`sh -c 'curl-config --libs' 2>&5` && \
3920 TRANSPORT_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
3921 echo "$as_me:$LINENO: result: found" >&5
3922 echo "${ECHO_T}found" >&6
3924 echo "$as_me:$LINENO: result: missing" >&5
3925 echo "${ECHO_T}missing" >&6
3926 # FIXME: hard-coded check for Mac (same as in libfunambol)
3928 *apple-darwin*) TRANSPORT_LDFLAGS="-framework CoreServices" ;;
3929 *) { { echo "$as_me:$LINENO: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&5
3930 echo "$as_me: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&2;}
3931 { (exit 1); exit 1; }; } ;;
3937 if test "x$use_mac_ta" = "xyes"; then
3938 CURL_LDFLAGS="-framework CoreServices"
3943 if test ! "$FUNAMBOL"; then
3944 if test "$FUNAMBOLSRC"; then
3945 # make a copy of the sources, remove it during maintainer-clean and distclean
3946 CLEAN_CLIENT_SRC=client-api
3948 { echo "$as_me:$LINENO: updating the content of src/client-api from $FUNAMBOLSRC " >&5
3949 echo "$as_me: updating the content of src/client-api from $FUNAMBOLSRC " >&6;}
3950 mkdir -p src/client-api
3951 if cp --help 2>/dev/null | grep >/dev/null -e "--update"; then
3953 cp_opts="--update --archive"
3958 if cp $cp_opts $FUNAMBOLSRC/* src/client-api; then
3959 ( cd src/client-api/build/autotools && ( test -f configure || sh autogen.sh ) )
3961 { { echo "$as_me:$LINENO: error: copying $FUNAMBOLSRC into src/client-api failed " >&5
3962 echo "$as_me: error: copying $FUNAMBOLSRC into src/client-api failed " >&2;}
3963 { (exit 1); exit 1; }; }
3965 find src/client-api/build/autotools/win* -name output | xargs rm -rf
3966 find src/client-api/build/autotools/include/* src/client-api/build/autotools/src/* -type d | xargs rm -rf
3967 find src/client-api -name "*~*" -o -name ".#*" -o -name "*.orig" -o -name "stamp-*" -o -name "*.o" -o -name "*.lo" -o -name .libs -o -name autom4te.cache -o -name config.status | xargs rm -rf
3969 if test ! -d src/client-api; then
3970 if test -d $srcdir/src/client-api; then
3973 /*) ln -s $srcdir/src/client-api src/client-api;;
3974 *) ln -s $PWD/$srcdir/src/client-api src/client-api;;
3980 if test -f src/client-api/build/autotools/configure; then
3981 chmod u+x src/client-api/build/autotools/configure src/client-api/build/autotools/config.sub src/client-api/build/autotools/config.guess
3983 # use local copy of the sources, with dependencies
3984 # to trigger building the client library
3985 FUNAMBOL_SUBDIR=$PWD/src/client-api.build
3986 FUNAMBOL_DEP=$PWD/src/client-api.build/src/libfunambol.la
3988 FUNAMBOL_CFLAGS="-I$FUNAMBOL_SUBDIR/include/posix -I$FUNAMBOL_SUBDIR/include/common -I$FUNAMBOL_SUBDIR/include -I$FUNAMBOL_SUBDIR/test"
3989 FUNAMBOL_LIBS="-L$FUNAMBOL_SUBDIR/src -lfunambol"
3991 { echo "$as_me:$LINENO: configuring the client library " >&5
3992 echo "$as_me: configuring the client library " >&6;}
3993 # Passing some specific configure arguments to the client library's
3994 # configure makes sense (e.g., --enable-unit-tests) or is
3995 # required (--disable-dependency-tracking when compiling for
3996 # multiple architectures on Mac OS X).
3997 cxx_lib_args=`for i in --disable-dependency-tracking --enable-unit-tests; do
3998 if echo $ac_configure_args | grep -e $i >/dev/null; then
4002 if test "$enable_shared" == "yes"; then
4003 # Okay, this is a shortcut: strictly speaking we would have
4004 # to check with autoconf for the right flags...
4005 FUNAMBOL_LIB_SHARED_FLAGS="-DPIC -fPIC"
4007 if (set -x; mkdir -p $FUNAMBOL_SUBDIR && cd $FUNAMBOL_SUBDIR && $CLIENT_CONFIGURE --build=$build_alias --host=$host_alias --target=$target_alias --disable-shared CFLAGS="$CFLAGS $FUNAMBOL_LIB_SHARED_FLAGS" CXXFLAGS="$CXXFLAGS $FUNAMBOL_LIB_SHARED_FLAGS" $cxx_lib_args); then true; else
4008 { { echo "$as_me:$LINENO: error: configuring client library failed " >&5
4009 echo "$as_me: error: configuring client library failed " >&2;}
4010 { (exit 1); exit 1; }; }
4013 { { echo "$as_me:$LINENO: error: either --with-funambol or --with-funambol-src have to be used " >&5
4014 echo "$as_me: error: either --with-funambol or --with-funambol-src have to be used " >&2;}
4015 { (exit 1); exit 1; }; }
4018 if test -f $FUNAMBOL/include/funambol/common/spds/SyncItem.h; then
4019 FUNAMBOL_CFLAGS="-I$FUNAMBOL/include/funambol/posix -I$FUNAMBOL/include/funambol/common -I$FUNAMBOL/include/funambol"
4020 FUNAMBOL_LIBS="-L$FUNAMBOL/lib -lfunambol"
4022 { { echo "$as_me:$LINENO: error: $FUNAMBOL does seem to be valid (e.g. include/funambol/spds/common/SyncItem.h is missing) " >&5
4023 echo "$as_me: error: $FUNAMBOL does seem to be valid (e.g. include/funambol/spds/common/SyncItem.h is missing) " >&2;}
4024 { (exit 1); exit 1; }; }
4038 # AC_ARG_ENABLE_BACKEND(BACKEND, DIR, HELP-STRING, [ACTION-IF-GIVEN],
4039 # [ACTION-IF-NOT-GIVEN])
4041 # Same as AC_ARG_ENABLE(), but also tells configure that the
4044 # BACKEND = name of modules built in that dir as .la files without the
4045 # obligatory sync prefix, e.g. "ebook"
4046 # DIR = name of the directory inside src/backends, e.g., "evolution"
4051 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
4055 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
4058 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
4061 # Check whether --enable-addressbook or --disable-addressbook was given.
4062 if test "${enable_addressbook+set}" = set; then
4063 enableval="$enable_addressbook"
4064 enable_addressbook="$enableval"
4066 enable_addressbook="no"
4068 BACKENDS="$BACKENDS addressbook"
4069 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo addressbook | tr a-z A-Z`"
4070 for source in addressbook; do
4071 SYNCSOURCES="$SYNCSOURCES backends/addressbook/syncaddressbook.la"
4075 if test "$enable_addressbook" = "yes"; then
4077 cat >>confdefs.h <<\_ACEOF
4078 #define ENABLE_ADDRESSBOOK 1
4087 ac_config_files="$ac_config_files src/backends/addressbook/Makefile"
4089 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
4091 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
4093 pkg_emodules_10="libedataserver-1.0"
4094 pkg_emodules_11="libedataserver-1.1"
4095 pkg_emodules_12="libedataserver-1.2"
4096 pkg_ebook_10="libebook-1.0"
4097 pkg_ebook_11="libebook-1.1"
4098 pkg_ebook_12="libebook-1.2"
4099 pkg_ecal_10="libecal-1.0"
4100 pkg_ecal_11="libecal-1.1"
4101 pkg_ecal_12="libecal-1.2"
4104 Please install the development packages of Evolution and/or
4105 set the PKG_CONFIG_PATH variable so that it points towards
4106 the .pc files of libedataserver, libecal and libebook (the
4107 latter two are optional).
4109 You can check that these packages are available by running
4110 pkg-config --list-all."
4112 evomissing="No compatible evolution-data-server was found.
4117 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4150 if test -n "$PKG_CONFIG"; then
4151 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4152 echo "${ECHO_T}$PKG_CONFIG" >&6
4154 echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4159 if test -z "$ac_cv_path_PKG_CONFIG"; then
4160 ac_pt_PKG_CONFIG=$PKG_CONFIG
4161 # Extract the first word of "pkg-config", so it can be a program name with args.
4162 set dummy pkg-config; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 case $ac_pt_PKG_CONFIG in
4170 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4192 if test -n "$ac_pt_PKG_CONFIG"; then
4193 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4194 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4196 echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4200 PKG_CONFIG=$ac_pt_PKG_CONFIG
4202 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4206 if test -n "$PKG_CONFIG"; then
4207 _pkg_min_version=0.9.0
4208 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4209 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4210 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4211 echo "$as_me:$LINENO: result: yes" >&5
4212 echo "${ECHO_T}yes" >&6
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4222 echo "$as_me:$LINENO: checking for EPACKAGE" >&5
4223 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6
4225 if test -n "$PKG_CONFIG"; then
4226 if test -n "$EPACKAGE_CFLAGS"; then
4227 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
4229 if test -n "$PKG_CONFIG" && \
4230 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
4231 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; then
4235 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_12" 2>/dev/null`
4243 if test -n "$PKG_CONFIG"; then
4244 if test -n "$EPACKAGE_LIBS"; then
4245 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
4247 if test -n "$PKG_CONFIG" && \
4248 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
4249 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; then
4253 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_12" 2>/dev/null`
4264 if test $pkg_failed = yes; then
4266 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4267 _pkg_short_errors_supported=yes
4269 _pkg_short_errors_supported=no
4271 if test $_pkg_short_errors_supported = yes; then
4272 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_12"`
4274 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_12"`
4276 # Put the nasty error message in config.log where it belongs
4277 echo "$EPACKAGE_PKG_ERRORS" >&5
4280 elif test $pkg_failed = untried; then
4283 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
4284 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
4285 echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6
4289 if test "x${EDSFOUND}" = "xno"; then
4292 echo "$as_me:$LINENO: checking for EPACKAGE" >&5
4293 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6
4295 if test -n "$PKG_CONFIG"; then
4296 if test -n "$EPACKAGE_CFLAGS"; then
4297 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
4299 if test -n "$PKG_CONFIG" && \
4300 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
4301 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; then
4305 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_11" 2>/dev/null`
4313 if test -n "$PKG_CONFIG"; then
4314 if test -n "$EPACKAGE_LIBS"; then
4315 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
4317 if test -n "$PKG_CONFIG" && \
4318 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
4319 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; then
4323 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_11" 2>/dev/null`
4334 if test $pkg_failed = yes; then
4336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4337 _pkg_short_errors_supported=yes
4339 _pkg_short_errors_supported=no
4341 if test $_pkg_short_errors_supported = yes; then
4342 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_11"`
4344 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_11"`
4346 # Put the nasty error message in config.log where it belongs
4347 echo "$EPACKAGE_PKG_ERRORS" >&5
4350 elif test $pkg_failed = untried; then
4353 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
4354 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
4355 echo "$as_me:$LINENO: result: yes" >&5
4356 echo "${ECHO_T}yes" >&6
4359 if test "x${EDSFOUND}" = "xno"; then
4362 echo "$as_me:$LINENO: checking for EPACKAGE" >&5
4363 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6
4365 if test -n "$PKG_CONFIG"; then
4366 if test -n "$EPACKAGE_CFLAGS"; then
4367 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
4369 if test -n "$PKG_CONFIG" && \
4370 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
4371 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; then
4375 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_10" 2>/dev/null`
4383 if test -n "$PKG_CONFIG"; then
4384 if test -n "$EPACKAGE_LIBS"; then
4385 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
4387 if test -n "$PKG_CONFIG" && \
4388 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
4389 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; then
4393 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_10" 2>/dev/null`
4404 if test $pkg_failed = yes; then
4406 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4407 _pkg_short_errors_supported=yes
4409 _pkg_short_errors_supported=no
4411 if test $_pkg_short_errors_supported = yes; then
4412 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_10"`
4414 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_10"`
4416 # Put the nasty error message in config.log where it belongs
4417 echo "$EPACKAGE_PKG_ERRORS" >&5
4420 elif test $pkg_failed = untried; then
4423 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
4424 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
4425 echo "$as_me:$LINENO: result: yes" >&5
4426 echo "${ECHO_T}yes" >&6
4433 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS"
4437 echo "$as_me:$LINENO: checking for ECAL" >&5
4438 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6
4440 if test -n "$PKG_CONFIG"; then
4441 if test -n "$ECAL_CFLAGS"; then
4442 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
4444 if test -n "$PKG_CONFIG" && \
4445 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
4446 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; then
4450 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_12" 2>/dev/null`
4458 if test -n "$PKG_CONFIG"; then
4459 if test -n "$ECAL_LIBS"; then
4460 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
4462 if test -n "$PKG_CONFIG" && \
4463 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
4464 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; then
4468 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_12" 2>/dev/null`
4479 if test $pkg_failed = yes; then
4481 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4482 _pkg_short_errors_supported=yes
4484 _pkg_short_errors_supported=no
4486 if test $_pkg_short_errors_supported = yes; then
4487 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_12"`
4489 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_12"`
4491 # Put the nasty error message in config.log where it belongs
4492 echo "$ECAL_PKG_ERRORS" >&5
4495 elif test $pkg_failed = untried; then
4498 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
4499 ECAL_LIBS=$pkg_cv_ECAL_LIBS
4500 echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6
4504 if test "x${ECALFOUND}" = "xno"; then
4507 echo "$as_me:$LINENO: checking for ECAL" >&5
4508 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6
4510 if test -n "$PKG_CONFIG"; then
4511 if test -n "$ECAL_CFLAGS"; then
4512 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
4514 if test -n "$PKG_CONFIG" && \
4515 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
4516 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; then
4520 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_11" 2>/dev/null`
4528 if test -n "$PKG_CONFIG"; then
4529 if test -n "$ECAL_LIBS"; then
4530 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
4532 if test -n "$PKG_CONFIG" && \
4533 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
4534 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; then
4538 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_11" 2>/dev/null`
4549 if test $pkg_failed = yes; then
4551 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4552 _pkg_short_errors_supported=yes
4554 _pkg_short_errors_supported=no
4556 if test $_pkg_short_errors_supported = yes; then
4557 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_11"`
4559 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_11"`
4561 # Put the nasty error message in config.log where it belongs
4562 echo "$ECAL_PKG_ERRORS" >&5
4565 elif test $pkg_failed = untried; then
4568 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
4569 ECAL_LIBS=$pkg_cv_ECAL_LIBS
4570 echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6
4574 if test "x${ECALFOUND}" = "xno"; then
4577 echo "$as_me:$LINENO: checking for ECAL" >&5
4578 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6
4580 if test -n "$PKG_CONFIG"; then
4581 if test -n "$ECAL_CFLAGS"; then
4582 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
4584 if test -n "$PKG_CONFIG" && \
4585 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
4586 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; then
4590 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_10" 2>/dev/null`
4598 if test -n "$PKG_CONFIG"; then
4599 if test -n "$ECAL_LIBS"; then
4600 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
4602 if test -n "$PKG_CONFIG" && \
4603 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
4604 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; then
4608 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_10" 2>/dev/null`
4619 if test $pkg_failed = yes; then
4621 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4622 _pkg_short_errors_supported=yes
4624 _pkg_short_errors_supported=no
4626 if test $_pkg_short_errors_supported = yes; then
4627 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_10"`
4629 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_10"`
4631 # Put the nasty error message in config.log where it belongs
4632 echo "$ECAL_PKG_ERRORS" >&5
4635 elif test $pkg_failed = untried; then
4638 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
4639 ECAL_LIBS=$pkg_cv_ECAL_LIBS
4640 echo "$as_me:$LINENO: result: yes" >&5
4641 echo "${ECHO_T}yes" >&6
4648 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ECAL_CFLAGS"
4652 echo "$as_me:$LINENO: checking for EBOOK" >&5
4653 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6
4655 if test -n "$PKG_CONFIG"; then
4656 if test -n "$EBOOK_CFLAGS"; then
4657 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
4659 if test -n "$PKG_CONFIG" && \
4660 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
4661 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; then
4665 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_12" 2>/dev/null`
4673 if test -n "$PKG_CONFIG"; then
4674 if test -n "$EBOOK_LIBS"; then
4675 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
4677 if test -n "$PKG_CONFIG" && \
4678 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
4679 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; then
4683 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_12" 2>/dev/null`
4694 if test $pkg_failed = yes; then
4696 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4697 _pkg_short_errors_supported=yes
4699 _pkg_short_errors_supported=no
4701 if test $_pkg_short_errors_supported = yes; then
4702 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_12"`
4704 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_12"`
4706 # Put the nasty error message in config.log where it belongs
4707 echo "$EBOOK_PKG_ERRORS" >&5
4710 elif test $pkg_failed = untried; then
4713 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
4714 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
4715 echo "$as_me:$LINENO: result: yes" >&5
4716 echo "${ECHO_T}yes" >&6
4719 if test "x${EBOOKFOUND}" = "xno"; then
4722 echo "$as_me:$LINENO: checking for EBOOK" >&5
4723 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6
4725 if test -n "$PKG_CONFIG"; then
4726 if test -n "$EBOOK_CFLAGS"; then
4727 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
4729 if test -n "$PKG_CONFIG" && \
4730 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
4731 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; then
4735 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_11" 2>/dev/null`
4743 if test -n "$PKG_CONFIG"; then
4744 if test -n "$EBOOK_LIBS"; then
4745 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
4747 if test -n "$PKG_CONFIG" && \
4748 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
4749 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; then
4753 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_11" 2>/dev/null`
4764 if test $pkg_failed = yes; then
4766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4767 _pkg_short_errors_supported=yes
4769 _pkg_short_errors_supported=no
4771 if test $_pkg_short_errors_supported = yes; then
4772 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_11"`
4774 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_11"`
4776 # Put the nasty error message in config.log where it belongs
4777 echo "$EBOOK_PKG_ERRORS" >&5
4780 elif test $pkg_failed = untried; then
4783 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
4784 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
4785 echo "$as_me:$LINENO: result: yes" >&5
4786 echo "${ECHO_T}yes" >&6
4789 if test "x${EBOOKFOUND}" = "xno"; then
4792 echo "$as_me:$LINENO: checking for EBOOK" >&5
4793 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6
4795 if test -n "$PKG_CONFIG"; then
4796 if test -n "$EBOOK_CFLAGS"; then
4797 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
4799 if test -n "$PKG_CONFIG" && \
4800 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
4801 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; then
4805 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_10" 2>/dev/null`
4813 if test -n "$PKG_CONFIG"; then
4814 if test -n "$EBOOK_LIBS"; then
4815 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
4817 if test -n "$PKG_CONFIG" && \
4818 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
4819 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; then
4823 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_10" 2>/dev/null`
4834 if test $pkg_failed = yes; then
4836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4837 _pkg_short_errors_supported=yes
4839 _pkg_short_errors_supported=no
4841 if test $_pkg_short_errors_supported = yes; then
4842 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_10"`
4844 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_10"`
4846 # Put the nasty error message in config.log where it belongs
4847 echo "$EBOOK_PKG_ERRORS" >&5
4850 elif test $pkg_failed = untried; then
4853 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
4854 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
4855 echo "$as_me:$LINENO: result: yes" >&5
4856 echo "${ECHO_T}yes" >&6
4863 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EBOOK_CFLAGS"
4866 # Check whether --enable-ebook or --disable-ebook was given.
4867 if test "${enable_ebook+set}" = set; then
4868 enableval="$enable_ebook"
4869 enable_ebook="$enableval"
4871 enable_ebook=$EBOOKFOUND
4873 BACKENDS="$BACKENDS ebook"
4874 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ebook | tr a-z A-Z`"
4875 for source in evolution; do
4876 SYNCSOURCES="$SYNCSOURCES backends/evolution/syncebook.la"
4880 # Check whether --enable-ecal or --disable-ecal was given.
4881 if test "${enable_ecal+set}" = set; then
4882 enableval="$enable_ecal"
4883 enable_ecal="$enableval"
4885 enable_ecal=$ECALFOUND
4887 BACKENDS="$BACKENDS ecal"
4888 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ecal | tr a-z A-Z`"
4889 for source in evolution; do
4890 SYNCSOURCES="$SYNCSOURCES backends/evolution/syncecal.la"
4895 if test "$enable_ebook" = "yes"; then
4896 test "x${EBOOKFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&5
4897 echo "$as_me: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&2;}
4898 { (exit 1); exit 1; }; }
4900 cat >>confdefs.h <<\_ACEOF
4901 #define ENABLE_EBOOK 1
4909 if test "$enable_ecal" == "yes"; then
4911 ENABLE_ECAL_FALSE='#'
4913 ENABLE_ECAL_TRUE='#'
4917 if test "$enable_ecal" = "yes"; then
4918 test "x${ECALFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&5
4919 echo "$as_me: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&2;}
4920 { (exit 1); exit 1; }; }
4922 cat >>confdefs.h <<\_ACEOF
4923 #define ENABLE_ECAL 1
4931 if test "$enable_evo" = "yes"; then
4932 if test "$EDSFOUND" = "yes"; then
4934 cat >>confdefs.h <<\_ACEOF
4939 { { echo "$as_me:$LINENO: error: $evomissing" >&5
4940 echo "$as_me: error: $evomissing" >&2;}
4941 { (exit 1); exit 1; }; }
4947 ac_config_files="$ac_config_files src/backends/evolution/Makefile"
4949 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
4951 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
4959 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
4962 # Check whether --enable-file or --disable-file was given.
4963 if test "${enable_file+set}" = set; then
4964 enableval="$enable_file"
4965 enable_file="$enableval"
4970 BACKENDS="$BACKENDS file"
4971 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo file | tr a-z A-Z`"
4972 for source in file; do
4973 SYNCSOURCES="$SYNCSOURCES backends/file/syncfile.la"
4977 if test "$enable_file" = "yes"; then
4979 cat >>confdefs.h <<\_ACEOF
4980 #define ENABLE_FILE 1
4984 ac_config_files="$ac_config_files src/backends/file/Makefile"
4986 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
4988 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
4992 echo "$as_me:$LINENO: checking for SQLITE" >&5
4993 echo $ECHO_N "checking for SQLITE... $ECHO_C" >&6
4995 if test -n "$PKG_CONFIG"; then
4996 if test -n "$SQLITE_CFLAGS"; then
4997 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
4999 if test -n "$PKG_CONFIG" && \
5000 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
5001 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; then
5005 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
5013 if test -n "$PKG_CONFIG"; then
5014 if test -n "$SQLITE_LIBS"; then
5015 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
5017 if test -n "$PKG_CONFIG" && \
5018 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
5019 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; then
5023 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
5034 if test $pkg_failed = yes; then
5036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5037 _pkg_short_errors_supported=yes
5039 _pkg_short_errors_supported=no
5041 if test $_pkg_short_errors_supported = yes; then
5042 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
5044 SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
5046 # Put the nasty error message in config.log where it belongs
5047 echo "$SQLITE_PKG_ERRORS" >&5
5050 elif test $pkg_failed = untried; then
5053 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
5054 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
5055 echo "$as_me:$LINENO: result: yes" >&5
5056 echo "${ECHO_T}yes" >&6
5061 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
5064 # Check whether --enable-sqlite or --disable-sqlite was given.
5065 if test "${enable_sqlite+set}" = set; then
5066 enableval="$enable_sqlite"
5067 enable_sqlite="$enableval"
5071 BACKENDS="$BACKENDS sqlite"
5072 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo sqlite | tr a-z A-Z`"
5073 for source in sqlite; do
5074 SYNCSOURCES="$SYNCSOURCES backends/sqlite/syncsqlite.la"
5078 if test "$enable_sqlite" = "yes"; then
5079 test "x${SQLITEFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&5
5080 echo "$as_me: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&2;}
5081 { (exit 1); exit 1; }; }
5083 cat >>confdefs.h <<\_ACEOF
5084 #define ENABLE_SQLITE 1
5088 # avoid linking against it if not needed
5092 ac_config_files="$ac_config_files src/backends/sqlite/Makefile"
5094 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
5100 backend_is_enabled () {
5101 eval echo \${enable_${1}}
5103 for backend in $BACKENDS; do
5104 if test `backend_is_enabled $backend` == "yes"; then
5106 SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
5110 if test "$enable_any" = "no"; then
5111 { { echo "$as_me:$LINENO: error: no backend enabled - refusing to continue: $anymissing" >&5
5112 echo "$as_me: error: no backend enabled - refusing to continue: $anymissing" >&2;}
5113 { (exit 1); exit 1; }; }
5118 echo "$as_me:$LINENO: checking for GLIB" >&5
5119 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
5121 if test -n "$PKG_CONFIG"; then
5122 if test -n "$GLIB_CFLAGS"; then
5123 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
5125 if test -n "$PKG_CONFIG" && \
5126 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
5127 ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; then
5131 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
5139 if test -n "$PKG_CONFIG"; then
5140 if test -n "$GLIB_LIBS"; then
5141 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
5143 if test -n "$PKG_CONFIG" && \
5144 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
5145 ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; then
5149 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
5160 if test $pkg_failed = yes; then
5162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5163 _pkg_short_errors_supported=yes
5165 _pkg_short_errors_supported=no
5167 if test $_pkg_short_errors_supported = yes; then
5168 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib-2.0""`
5170 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib-2.0""`
5172 # Put the nasty error message in config.log where it belongs
5173 echo "$GLIB_PKG_ERRORS" >&5
5176 elif test $pkg_failed = untried; then
5179 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
5180 GLIB_LIBS=$pkg_cv_GLIB_LIBS
5181 echo "$as_me:$LINENO: result: yes" >&5
5182 echo "${ECHO_T}yes" >&6
5185 if test "x${GLIBFOUND}" = "xno"; then
5188 echo "$as_me:$LINENO: checking for GLIB" >&5
5189 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
5191 if test -n "$PKG_CONFIG"; then
5192 if test -n "$GLIB_CFLAGS"; then
5193 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
5195 if test -n "$PKG_CONFIG" && \
5196 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib\"\"") >&5
5197 ($PKG_CONFIG --exists --print-errors ""glib"") 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; then
5201 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib"" 2>/dev/null`
5209 if test -n "$PKG_CONFIG"; then
5210 if test -n "$GLIB_LIBS"; then
5211 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
5213 if test -n "$PKG_CONFIG" && \
5214 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib\"\"") >&5
5215 ($PKG_CONFIG --exists --print-errors ""glib"") 2>&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; then
5219 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib"" 2>/dev/null`
5230 if test $pkg_failed = yes; then
5232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5233 _pkg_short_errors_supported=yes
5235 _pkg_short_errors_supported=no
5237 if test $_pkg_short_errors_supported = yes; then
5238 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib""`
5240 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib""`
5242 # Put the nasty error message in config.log where it belongs
5243 echo "$GLIB_PKG_ERRORS" >&5
5246 elif test $pkg_failed = untried; then
5249 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
5250 GLIB_LIBS=$pkg_cv_GLIB_LIBS
5251 echo "$as_me:$LINENO: result: yes" >&5
5252 echo "${ECHO_T}yes" >&6
5260 ac_cpp='$CXXCPP $CPPFLAGS'
5261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5264 if test -n "$ac_tool_prefix"; then
5265 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5271 if test "${ac_cv_prog_CXX+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test -n "$CXX"; then
5275 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 if test -n "$CXX"; then
5295 echo "$as_me:$LINENO: result: $CXX" >&5
5296 echo "${ECHO_T}$CXX" >&6
5298 echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6
5302 test -n "$CXX" && break
5305 if test -z "$CXX"; then
5307 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 if test -n "$ac_ct_CXX"; then
5317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_ac_ct_CXX="$ac_prog"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5336 if test -n "$ac_ct_CXX"; then
5337 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5338 echo "${ECHO_T}$ac_ct_CXX" >&6
5340 echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5344 test -n "$ac_ct_CXX" && break
5346 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5352 # Provide some information about the compiler.
5353 echo "$as_me:$LINENO:" \
5354 "checking for C++ compiler version" >&5
5355 ac_compiler=`set X $ac_compile; echo $2`
5356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5357 (eval $ac_compiler --version </dev/null >&5) 2>&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }
5361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5362 (eval $ac_compiler -v </dev/null >&5) 2>&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }
5366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5367 (eval $ac_compiler -V </dev/null >&5) 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }
5372 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5373 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5374 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_cxx_werror_flag"
5405 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5428 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5429 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5430 GXX=`test $ac_compiler_gnu = yes && echo yes`
5431 ac_test_CXXFLAGS=${CXXFLAGS+set}
5432 ac_save_CXXFLAGS=$CXXFLAGS
5434 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5435 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5436 if test "${ac_cv_prog_cxx_g+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5458 grep -v '^ *+' conftest.er1 >conftest.err
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -z "$ac_cxx_werror_flag"
5464 || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_prog_cxx_g=yes
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5486 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5487 if test "$ac_test_CXXFLAGS" = set; then
5488 CXXFLAGS=$ac_save_CXXFLAGS
5489 elif test $ac_cv_prog_cxx_g = yes; then
5490 if test "$GXX" = yes; then
5496 if test "$GXX" = yes; then
5502 for ac_declaration in \
5504 'extern "C" void std::exit (int) throw (); using std::exit;' \
5505 'extern "C" void std::exit (int); using std::exit;' \
5506 'extern "C" void exit (int) throw ();' \
5507 'extern "C" void exit (int);' \
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528 (eval $ac_compile) 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -z "$ac_cxx_werror_flag"
5536 || test ! -s conftest.err'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; } &&
5542 { ac_try='test -s conftest.$ac_objext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5571 rm -f conftest.$ac_objext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_cxx_werror_flag"
5581 || test ! -s conftest.err'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try='test -s conftest.$ac_objext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5602 if test -n "$ac_declaration"; then
5603 echo '#ifdef __cplusplus' >>confdefs.h
5604 echo $ac_declaration >>confdefs.h
5605 echo '#endif' >>confdefs.h
5609 ac_cpp='$CPP $CPPFLAGS'
5610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5614 depcc="$CXX" am_compiler_list=
5616 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5617 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5618 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5622 # We make a subdir and do the tests there. Otherwise we can end up
5623 # making bogus files that we don't know about and never remove. For
5624 # instance it was reported that on HP-UX the gcc test will end up
5625 # making a dummy file named `D' -- because `-MD' means `put the output
5628 # Copy depcomp to subdir because otherwise we won't find it if we're
5629 # using a relative directory.
5630 cp "$am_depcomp" conftest.dir
5632 # We will build objects and dependencies in a subdirectory because
5633 # it helps to detect inapplicable dependency modes. For instance
5634 # both Tru64's cc and ICC support -MD to output dependencies as a
5635 # side effect of compilation, but ICC will put the dependencies in
5636 # the current directory while Tru64 will put them in the object
5640 am_cv_CXX_dependencies_compiler_type=none
5641 if test "$am_compiler_list" = ""; then
5642 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5644 for depmode in $am_compiler_list; do
5645 # Setup a source with many dependencies, because some compilers
5646 # like to wrap large dependency lists on column 80 (with \), and
5647 # we should not choose a depcomp mode which is confused by this.
5649 # We need to recreate these files for each test, as the compiler may
5650 # overwrite some of them when testing with obscure command lines.
5651 # This happens at least with the AIX C compiler.
5653 for i in 1 2 3 4 5 6; do
5654 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5655 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5656 # Solaris 8's {/usr,}/bin/sh.
5657 touch sub/conftst$i.h
5659 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5663 # after this tag, mechanisms are not by side-effect, so they'll
5664 # only be used when explicitly requested
5665 if test "x$enable_dependency_tracking" = xyes; then
5673 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5674 # mode. It turns out that the SunPro C++ compiler does not properly
5675 # handle `-M -o', and we need to detect this.
5676 if depmode=$depmode \
5677 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5679 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5680 >/dev/null 2>conftest.err &&
5681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5682 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5684 # icc doesn't choke on unknown options, it will just issue warnings
5685 # or remarks (even with -Werror). So we grep stderr for any message
5686 # that says an option was ignored or not supported.
5687 # When given -MP, icc 7.0 and 7.1 complain thusly:
5688 # icc: Command line warning: ignoring option '-M'; no argument required
5689 # The diagnosis changed in icc 8.0:
5690 # icc: Command line remark: option '-MP' not supported
5691 if (grep 'ignoring option' conftest.err ||
5692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5693 am_cv_CXX_dependencies_compiler_type=$depmode
5702 am_cv_CXX_dependencies_compiler_type=none
5706 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5707 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5708 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5713 test "x$enable_dependency_tracking" != xno \
5714 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5715 am__fastdepCXX_TRUE=
5716 am__fastdepCXX_FALSE='#'
5718 am__fastdepCXX_TRUE='#'
5719 am__fastdepCXX_FALSE=
5723 # Check whether --enable-shared or --disable-shared was given.
5724 if test "${enable_shared+set}" = set; then
5725 enableval="$enable_shared"
5726 p=${PACKAGE-default}
5728 yes) enable_shared=yes ;;
5729 no) enable_shared=no ;;
5732 # Look at the argument we got. We use all the common list separators.
5733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5734 for pkg in $enableval; do
5736 if test "X$pkg" = "X$p"; then
5747 # Check whether --enable-static or --disable-static was given.
5748 if test "${enable_static+set}" = set; then
5749 enableval="$enable_static"
5750 p=${PACKAGE-default}
5752 yes) enable_static=yes ;;
5753 no) enable_static=no ;;
5756 # Look at the argument we got. We use all the common list separators.
5757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5758 for pkg in $enableval; do
5760 if test "X$pkg" = "X$p"; then
5771 # Check whether --enable-fast-install or --disable-fast-install was given.
5772 if test "${enable_fast_install+set}" = set; then
5773 enableval="$enable_fast_install"
5774 p=${PACKAGE-default}
5776 yes) enable_fast_install=yes ;;
5777 no) enable_fast_install=no ;;
5779 enable_fast_install=no
5780 # Look at the argument we got. We use all the common list separators.
5781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5782 for pkg in $enableval; do
5784 if test "X$pkg" = "X$p"; then
5785 enable_fast_install=yes
5792 enable_fast_install=yes
5795 # Make sure we can run config.sub.
5796 $ac_config_sub sun4 >/dev/null 2>&1 ||
5797 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5798 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5799 { (exit 1); exit 1; }; }
5801 echo "$as_me:$LINENO: checking build system type" >&5
5802 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5803 if test "${ac_cv_build+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_cv_build_alias=$build_alias
5807 test -z "$ac_cv_build_alias" &&
5808 ac_cv_build_alias=`$ac_config_guess`
5809 test -z "$ac_cv_build_alias" &&
5810 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5811 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5812 { (exit 1); exit 1; }; }
5813 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5814 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5815 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5816 { (exit 1); exit 1; }; }
5819 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5820 echo "${ECHO_T}$ac_cv_build" >&6
5822 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5823 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5824 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5827 echo "$as_me:$LINENO: checking host system type" >&5
5828 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5829 if test "${ac_cv_host+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_cv_host_alias=$host_alias
5833 test -z "$ac_cv_host_alias" &&
5834 ac_cv_host_alias=$ac_cv_build_alias
5835 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5836 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5837 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5838 { (exit 1); exit 1; }; }
5841 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5842 echo "${ECHO_T}$ac_cv_host" >&6
5844 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5845 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5846 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5849 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5850 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5851 if test "${lt_cv_path_SED+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 # Loop through the user's path and test for sed and gsed.
5855 # Then use that list of sed's as ones to test for truncation.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for lt_ac_prog in sed gsed; do
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5864 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5871 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5872 # along with /bin/sed that truncates output.
5873 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5874 test ! -f $lt_ac_sed && continue
5875 cat /dev/null > conftest.in
5877 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5878 # Check for GNU sed and select it if it is found.
5879 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5880 lt_cv_path_SED=$lt_ac_sed
5884 cat conftest.in conftest.in >conftest.tmp
5885 mv conftest.tmp conftest.in
5886 cp conftest.in conftest.nl
5888 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5889 cmp -s conftest.out conftest.nl || break
5890 # 10000 chars as input seems more than enough
5891 test $lt_ac_count -gt 10 && break
5892 lt_ac_count=`expr $lt_ac_count + 1`
5893 if test $lt_ac_count -gt $lt_ac_max; then
5894 lt_ac_max=$lt_ac_count
5895 lt_cv_path_SED=$lt_ac_sed
5903 echo "$as_me:$LINENO: result: $SED" >&5
5904 echo "${ECHO_T}$SED" >&6
5907 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5908 if test "${with_gnu_ld+set}" = set; then
5909 withval="$with_gnu_ld"
5910 test "$withval" = no || with_gnu_ld=yes
5915 if test "$GCC" = yes; then
5916 # Check if gcc -print-prog-name=ld gives a path.
5917 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5918 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5921 # gcc leaves a trailing carriage return which upsets mingw
5922 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5924 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5927 # Accept absolute paths.
5929 re_direlt='/[^/][^/]*/\.\./'
5930 # Canonicalize the pathname of ld
5931 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5932 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5933 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5935 test -z "$LD" && LD="$ac_prog"
5938 # If it fails, then pretend we aren't using GCC.
5942 # If it is relative, then search for the first ld in PATH.
5946 elif test "$with_gnu_ld" = yes; then
5947 echo "$as_me:$LINENO: checking for GNU ld" >&5
5948 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5950 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5951 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5953 if test "${lt_cv_path_LD+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 if test -z "$LD"; then
5957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5958 for ac_dir in $PATH; do
5960 test -z "$ac_dir" && ac_dir=.
5961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5962 lt_cv_path_LD="$ac_dir/$ac_prog"
5963 # Check to see if the program is GNU ld. I'd rather use --version,
5964 # but apparently some variants of GNU ld only accept -v.
5965 # Break only if it was the GNU/non-GNU ld that we prefer.
5966 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5967 *GNU* | *'with BFD'*)
5968 test "$with_gnu_ld" != no && break
5971 test "$with_gnu_ld" != yes && break
5978 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5983 if test -n "$LD"; then
5984 echo "$as_me:$LINENO: result: $LD" >&5
5985 echo "${ECHO_T}$LD" >&6
5987 echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5990 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5991 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5992 { (exit 1); exit 1; }; }
5993 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5994 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5995 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5999 case `$LD -v 2>&1 </dev/null` in
6000 *GNU* | *'with BFD'*)
6001 lt_cv_prog_gnu_ld=yes
6004 lt_cv_prog_gnu_ld=no
6008 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6009 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6010 with_gnu_ld=$lt_cv_prog_gnu_ld
6013 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6014 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6015 if test "${lt_cv_ld_reload_flag+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 lt_cv_ld_reload_flag='-r'
6020 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6021 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6022 reload_flag=$lt_cv_ld_reload_flag
6023 case $reload_flag in
6025 *) reload_flag=" $reload_flag" ;;
6027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030 if test "$GCC" = yes; then
6031 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6033 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6038 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6039 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6040 if test "${lt_cv_path_NM+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 if test -n "$NM"; then
6044 # Let the user override the test.
6047 lt_nm_to_check="${ac_tool_prefix}nm"
6048 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6049 lt_nm_to_check="$lt_nm_to_check nm"
6051 for lt_tmp_nm in $lt_nm_to_check; do
6052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6055 test -z "$ac_dir" && ac_dir=.
6056 tmp_nm="$ac_dir/$lt_tmp_nm"
6057 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6058 # Check to see if the nm accepts a BSD-compat flag.
6059 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6060 # nm: unknown option "B" ignored
6061 # Tru64's nm complains that /dev/null is an invalid object file
6062 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6063 */dev/null* | *'Invalid file or object type'*)
6064 lt_cv_path_NM="$tmp_nm -B"
6068 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6070 lt_cv_path_NM="$tmp_nm -p"
6074 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6075 continue # so that we can try to find one that supports BSD flags
6084 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6087 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6088 echo "${ECHO_T}$lt_cv_path_NM" >&6
6091 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6092 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6094 if test "$LN_S" = "ln -s"; then
6095 echo "$as_me:$LINENO: result: yes" >&5
6096 echo "${ECHO_T}yes" >&6
6098 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6099 echo "${ECHO_T}no, using $LN_S" >&6
6102 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6103 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6104 if test "${lt_cv_deplibs_check_method+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 lt_cv_file_magic_cmd='$MAGIC_CMD'
6108 lt_cv_file_magic_test_file=
6109 lt_cv_deplibs_check_method='unknown'
6110 # Need to set the preceding variable on all platforms that support
6111 # interlibrary dependencies.
6112 # 'none' -- dependencies not supported.
6113 # `unknown' -- same as none, but documents that we really don't know.
6114 # 'pass_all' -- all dependencies passed with no checks.
6115 # 'test_compile' -- check by making test program.
6116 # 'file_magic [[regex]]' -- check by looking for files in library path
6117 # which responds to the $file_magic_cmd with a given extended regex.
6118 # If you have `file' or equivalent on your system and you're not sure
6119 # whether `pass_all' will *always* work, you probably want this one.
6123 lt_cv_deplibs_check_method=pass_all
6127 lt_cv_deplibs_check_method=pass_all
6131 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6132 lt_cv_file_magic_cmd='/usr/bin/file -L'
6133 lt_cv_file_magic_test_file=/shlib/libc.so
6137 # func_win32_libid is a shell function defined in ltmain.sh
6138 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6139 lt_cv_file_magic_cmd='func_win32_libid'
6143 # Base MSYS/MinGW do not provide the 'file' command needed by
6144 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6145 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6146 lt_cv_file_magic_cmd='$OBJDUMP -f'
6149 darwin* | rhapsody*)
6150 lt_cv_deplibs_check_method=pass_all
6153 freebsd* | kfreebsd*-gnu | dragonfly*)
6154 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6157 # Not sure whether the presence of OpenBSD here was a mistake.
6158 # Let's accept both of them until this is cleared up.
6159 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6160 lt_cv_file_magic_cmd=/usr/bin/file
6161 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6165 lt_cv_deplibs_check_method=pass_all
6170 lt_cv_deplibs_check_method=pass_all
6173 hpux10.20* | hpux11*)
6174 lt_cv_file_magic_cmd=/usr/bin/file
6177 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6178 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6181 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]'
6182 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6185 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6186 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6192 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6196 irix5* | irix6* | nonstopux*)
6198 *-32|*"-32 ") libmagic=32-bit;;
6199 *-n32|*"-n32 ") libmagic=N32;;
6200 *-64|*"-64 ") libmagic=64-bit;;
6201 *) libmagic=never-match;;
6203 lt_cv_deplibs_check_method=pass_all
6206 # This must be Linux ELF.
6208 lt_cv_deplibs_check_method=pass_all
6212 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6221 lt_cv_file_magic_cmd=/usr/bin/file
6222 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6226 lt_cv_deplibs_check_method=unknown
6230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6237 osf3* | osf4* | osf5*)
6238 lt_cv_deplibs_check_method=pass_all
6242 lt_cv_deplibs_check_method=pass_all
6246 case $host_vendor in
6248 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]'
6249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6252 lt_cv_deplibs_check_method=pass_all
6255 lt_cv_file_magic_cmd='/bin/file'
6256 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6259 lt_cv_file_magic_cmd='/bin/file'
6260 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6261 lt_cv_file_magic_test_file=/lib/libc.so
6264 lt_cv_deplibs_check_method=pass_all
6267 lt_cv_deplibs_check_method=pass_all
6272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6273 lt_cv_deplibs_check_method=pass_all
6278 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6279 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6280 file_magic_cmd=$lt_cv_file_magic_cmd
6281 deplibs_check_method=$lt_cv_deplibs_check_method
6282 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6287 # If no C compiler was specified, use CC.
6290 # If no C compiler flags were specified, use CFLAGS.
6291 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6293 # Allow CC to be a program name with arguments.
6296 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6297 if test "${enable_libtool_lock+set}" = set; then
6298 enableval="$enable_libtool_lock"
6301 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6303 # Some flags need to be propagated to the compiler or linker for good
6307 # Find out which ABI we are using.
6308 echo 'int i;' > conftest.$ac_ext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; then
6314 case `/usr/bin/file conftest.$ac_objext` in
6326 # Find out which ABI we are using.
6327 echo '#line 6327 "configure"' > conftest.$ac_ext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329 (eval $ac_compile) 2>&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; then
6333 if test "$lt_cv_prog_gnu_ld" = yes; then
6334 case `/usr/bin/file conftest.$ac_objext` in
6336 LD="${LD-ld} -melf32bsmip"
6339 LD="${LD-ld} -melf32bmipn32"
6342 LD="${LD-ld} -melf64bmip"
6346 case `/usr/bin/file conftest.$ac_objext` in
6362 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6363 # Find out which ABI we are using.
6364 echo 'int i;' > conftest.$ac_ext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366 (eval $ac_compile) 2>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; then
6370 case `/usr/bin/file conftest.o` in
6374 LD="${LD-ld} -m elf_i386"
6376 ppc64-*linux*|powerpc64-*linux*)
6377 LD="${LD-ld} -m elf32ppclinux"
6380 LD="${LD-ld} -m elf_s390"
6383 LD="${LD-ld} -m elf32_sparc"
6390 LD="${LD-ld} -m elf_x86_64"
6392 ppc*-*linux*|powerpc*-*linux*)
6393 LD="${LD-ld} -m elf64ppc"
6396 LD="${LD-ld} -m elf64_s390"
6399 LD="${LD-ld} -m elf64_sparc"
6409 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6410 SAVE_CFLAGS="$CFLAGS"
6411 CFLAGS="$CFLAGS -belf"
6412 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6413 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6414 if test "${lt_cv_cc_needs_belf+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 ac_cpp='$CPP $CPPFLAGS'
6419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>conftest.er1
6442 grep -v '^ *+' conftest.er1 >conftest.err
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 lt_cv_cc_needs_belf=yes
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 lt_cv_cc_needs_belf=no
6467 rm -f conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6470 ac_cpp='$CPP $CPPFLAGS'
6471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6476 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6477 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6478 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6479 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6480 CFLAGS="$SAVE_CFLAGS"
6484 # Find out which ABI we are using.
6485 echo 'int i;' > conftest.$ac_ext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; then
6491 case `/usr/bin/file conftest.o` in
6493 case $lt_cv_prog_gnu_ld in
6494 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6495 *) LD="${LD-ld} -64" ;;
6506 need_locks="$enable_libtool_lock"
6510 for ac_header in dlfcn.h
6512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514 echo "$as_me:$LINENO: checking for $ac_header" >&5
6515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522 # Is the header compilable?
6523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6532 #include <$ac_header>
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1 >conftest.err
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_header_compiler=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_header_compiler=no
6563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565 echo "${ECHO_T}$ac_header_compiler" >&6
6567 # Is the header present?
6568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <$ac_header>
6578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null; then
6586 if test -s conftest.err; then
6587 ac_cpp_err=$ac_c_preproc_warn_flag
6588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6595 if test -z "$ac_cpp_err"; then
6596 ac_header_preproc=yes
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_header_preproc=no
6603 rm -f conftest.err conftest.$ac_ext
6604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605 echo "${ECHO_T}$ac_header_preproc" >&6
6607 # So? What about this header?
6608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614 ac_header_preproc=yes
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6631 ## ------------------------------------------ ##
6632 ## Report this to the AC_PACKAGE_NAME lists. ##
6633 ## ------------------------------------------ ##
6636 sed "s/^/$as_me: WARNING: /" >&2
6639 echo "$as_me:$LINENO: checking for $ac_header" >&5
6640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 eval "$as_ac_Header=\$ac_header_preproc"
6646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6651 cat >>confdefs.h <<_ACEOF
6652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6661 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6662 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6663 (test "X$CXX" != "Xg++"))) ; then
6665 ac_cpp='$CXXCPP $CPPFLAGS'
6666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6669 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6670 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6671 if test -z "$CXXCPP"; then
6672 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 # Double quotes because CXXCPP needs to be expanded
6676 for CXXCPP in "$CXX -E" "/lib/cpp"
6679 for ac_cxx_preproc_warn_flag in '' yes
6681 # Use a header file that comes with gcc, so configuring glibc
6682 # with a fresh cross-compiler works.
6683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6684 # <limits.h> exists even on freestanding compilers.
6685 # On the NeXT, cc -E runs the code through the compiler's parser,
6686 # not just through cpp. "Syntax error" is here to catch this case.
6687 cat >conftest.$ac_ext <<_ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6694 # include <limits.h>
6696 # include <assert.h>
6700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6703 grep -v '^ *+' conftest.er1 >conftest.err
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } >/dev/null; then
6708 if test -s conftest.err; then
6709 ac_cpp_err=$ac_cxx_preproc_warn_flag
6710 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6717 if test -z "$ac_cpp_err"; then
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 # Broken: fails on valid input.
6726 rm -f conftest.err conftest.$ac_ext
6728 # OK, works on sane cases. Now check whether non-existent headers
6729 # can be detected and how.
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #include <ac_nonexistent.h>
6738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } >/dev/null; then
6746 if test -s conftest.err; then
6747 ac_cpp_err=$ac_cxx_preproc_warn_flag
6748 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6755 if test -z "$ac_cpp_err"; then
6756 # Broken: success on invalid input.
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 # Passes both tests.
6766 rm -f conftest.err conftest.$ac_ext
6769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6770 rm -f conftest.err conftest.$ac_ext
6771 if $ac_preproc_ok; then
6776 ac_cv_prog_CXXCPP=$CXXCPP
6779 CXXCPP=$ac_cv_prog_CXXCPP
6781 ac_cv_prog_CXXCPP=$CXXCPP
6783 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6784 echo "${ECHO_T}$CXXCPP" >&6
6786 for ac_cxx_preproc_warn_flag in '' yes
6788 # Use a header file that comes with gcc, so configuring glibc
6789 # with a fresh cross-compiler works.
6790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6791 # <limits.h> exists even on freestanding compilers.
6792 # On the NeXT, cc -E runs the code through the compiler's parser,
6793 # not just through cpp. "Syntax error" is here to catch this case.
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6801 # include <limits.h>
6803 # include <assert.h>
6807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } >/dev/null; then
6815 if test -s conftest.err; then
6816 ac_cpp_err=$ac_cxx_preproc_warn_flag
6817 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6824 if test -z "$ac_cpp_err"; then
6827 echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 # Broken: fails on valid input.
6833 rm -f conftest.err conftest.$ac_ext
6835 # OK, works on sane cases. Now check whether non-existent headers
6836 # can be detected and how.
6837 cat >conftest.$ac_ext <<_ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 #include <ac_nonexistent.h>
6845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1 >conftest.err
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } >/dev/null; then
6853 if test -s conftest.err; then
6854 ac_cpp_err=$ac_cxx_preproc_warn_flag
6855 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6862 if test -z "$ac_cpp_err"; then
6863 # Broken: success on invalid input.
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6869 # Passes both tests.
6873 rm -f conftest.err conftest.$ac_ext
6876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6877 rm -f conftest.err conftest.$ac_ext
6878 if $ac_preproc_ok; then
6881 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6882 See \`config.log' for more details." >&5
6883 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6884 See \`config.log' for more details." >&2;}
6885 { (exit 1); exit 1; }; }
6889 ac_cpp='$CXXCPP $CPPFLAGS'
6890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6898 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6899 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6901 if test -n "$ac_tool_prefix"; then
6902 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6906 echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6908 if test "${ac_cv_prog_F77+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 if test -n "$F77"; then
6912 ac_cv_prog_F77="$F77" # Let the user override the test.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 if test -n "$F77"; then
6932 echo "$as_me:$LINENO: result: $F77" >&5
6933 echo "${ECHO_T}$F77" >&6
6935 echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6
6939 test -n "$F77" && break
6942 if test -z "$F77"; then
6944 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6946 # Extract the first word of "$ac_prog", so it can be a program name with args.
6947 set dummy $ac_prog; ac_word=$2
6948 echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6950 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 if test -n "$ac_ct_F77"; then
6954 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_ac_ct_F77="$ac_prog"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6973 if test -n "$ac_ct_F77"; then
6974 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6975 echo "${ECHO_T}$ac_ct_F77" >&6
6977 echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6
6981 test -n "$ac_ct_F77" && break
6988 # Provide some information about the compiler.
6989 echo "$as_me:6989:" \
6990 "checking for Fortran 77 compiler version" >&5
6991 ac_compiler=`set X $ac_compile; echo $2`
6992 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6993 (eval $ac_compiler --version </dev/null >&5) 2>&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }
6997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6998 (eval $ac_compiler -v </dev/null >&5) 2>&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }
7002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7003 (eval $ac_compiler -V </dev/null >&5) 2>&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }
7009 # If we don't use `.F' as extension, the preprocessor is not run on the
7010 # input file. (Note that this only needs to work for GNU compilers.)
7013 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7014 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7015 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 cat >conftest.$ac_ext <<_ACEOF
7026 rm -f conftest.$ac_objext
7027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>conftest.er1
7030 grep -v '^ *+' conftest.er1 >conftest.err
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -z "$ac_f77_werror_flag"
7036 || test ! -s conftest.err'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; } &&
7042 { ac_try='test -s conftest.$ac_objext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7059 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7060 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7062 ac_test_FFLAGS=${FFLAGS+set}
7063 ac_save_FFLAGS=$FFLAGS
7065 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7066 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7067 if test "${ac_cv_prog_f77_g+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 cat >conftest.$ac_ext <<_ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_f77_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_prog_f77_g=yes
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7108 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7109 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7110 if test "$ac_test_FFLAGS" = set; then
7111 FFLAGS=$ac_save_FFLAGS
7112 elif test $ac_cv_prog_f77_g = yes; then
7113 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7119 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7126 G77=`test $ac_compiler_gnu = yes && echo yes`
7128 ac_cpp='$CPP $CPPFLAGS'
7129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7135 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7137 # find the maximum length of command line arguments
7138 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7139 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7140 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 # On DJGPP, this test can blow up pretty badly due to problems in libc
7149 # (any single argument exceeding 2000 bytes causes a buffer overrun
7150 # during glob expansion). Even if it were fixed, the result of this
7151 # check would be larger than it should be.
7152 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7156 # Under GNU Hurd, this test is not required because there is
7157 # no limit to the length of command line arguments.
7158 # Libtool will interpret -1 as no limit whatsoever
7159 lt_cv_sys_max_cmd_len=-1;
7163 # On Win9x/ME, this test blows up -- it succeeds, but takes
7164 # about 5 minutes as the teststring grows exponentially.
7165 # Worse, since 9x/ME are not pre-emptively multitasking,
7166 # you end up with a "frozen" computer, even though with patience
7167 # the test eventually succeeds (with a max line length of 256k).
7168 # Instead, let's just punt: use the minimum linelength reported by
7169 # all of the supported platforms: 8192 (on NT/2K/XP).
7170 lt_cv_sys_max_cmd_len=8192;
7174 # On AmigaOS with pdksh, this test takes hours, literally.
7175 # So we just punt and use a minimum line length of 8192.
7176 lt_cv_sys_max_cmd_len=8192;
7179 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7180 # This has been around since 386BSD, at least. Likely further.
7181 if test -x /sbin/sysctl; then
7182 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7183 elif test -x /usr/sbin/sysctl; then
7184 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7186 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7188 # And add a safety zone
7189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7194 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7195 lt_cv_sys_max_cmd_len=196608
7199 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7200 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7201 # nice to cause kernel panics so lets avoid the loop below.
7202 # First set a reasonable default.
7203 lt_cv_sys_max_cmd_len=16384
7205 if test -x /sbin/sysconfig; then
7206 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7207 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7212 lt_cv_sys_max_cmd_len=102400
7214 sysv5* | sco5v6* | sysv4.2uw2*)
7215 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7216 if test -n "$kargmax"; then
7217 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7219 lt_cv_sys_max_cmd_len=32768
7223 # If test is not a shell built-in, we'll probably end up computing a
7224 # maximum length that is only half of the actual maximum length, but
7226 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7227 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7228 = "XX$teststring") >/dev/null 2>&1 &&
7229 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7230 lt_cv_sys_max_cmd_len=$new_result &&
7231 test $i != 17 # 1/2 MB should be enough
7234 teststring=$teststring$teststring
7237 # Add a significant safety factor because C++ compilers can tack on massive
7238 # amounts of additional arguments before passing them to the linker.
7239 # It appears as though 1/2 is a usable value.
7240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7246 if test -n $lt_cv_sys_max_cmd_len ; then
7247 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7248 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7250 echo "$as_me:$LINENO: result: none" >&5
7251 echo "${ECHO_T}none" >&6
7257 # Check for command to grab the raw symbol name followed by C symbol from nm.
7258 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7259 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7260 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 # These are sane defaults that work on at least a few old systems.
7265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7267 # Character class describing NM global symbol codes.
7268 symcode='[BCDEGRST]'
7270 # Regexp to match symbols that can be accessed directly from C.
7271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7273 # Transform an extracted symbol line into a proper C declaration
7274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7276 # Transform an extracted symbol line into symbol name and symbol address
7277 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'"
7279 # Define system-specific variables.
7284 cygwin* | mingw* | pw32*)
7285 symcode='[ABCDGISTW]'
7287 hpux*) # Its linker distinguishes data from code symbols
7288 if test "$host_cpu" = ia64; then
7289 symcode='[ABCDEGRST]'
7291 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7292 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'"
7295 if test "$host_cpu" = ia64; then
7296 symcode='[ABCDGIRSTW]'
7297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7298 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'"
7302 symcode='[BCDEGRST]'
7305 symcode='[BCDEGQRST]'
7316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7324 # Handle CRLF in mingw tool chain
7328 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7332 # If we're using GNU nm, then use its standard symbol codes.
7333 case `$NM -V 2>&1` in
7334 *GNU* | *'with BFD'*)
7335 symcode='[ABCDGIRSTW]' ;;
7338 # Try without a prefix undercore, then with it.
7339 for ac_symprfx in "" "_"; do
7341 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7342 symxfrm="\\1 $ac_symprfx\\2 \\2"
7344 # Write the raw and C identifiers.
7345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7347 # Check to see that the pipe works correctly.
7351 cat > conftest.$ac_ext <<EOF
7356 void nm_test_func(){}
7360 int main(){nm_test_var='a';nm_test_func();return(0);}
7363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; then
7368 # Now try to grab the symbols.
7370 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7371 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && test -s "$nlist"; then
7375 # Try sorting and uniquifying the output.
7376 if sort "$nlist" | uniq > "$nlist"T; then
7377 mv -f "$nlist"T "$nlist"
7382 # Make sure that we snagged all the symbols we need.
7383 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7384 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7385 cat <<EOF > conftest.$ac_ext
7391 # Now generate the symbol file.
7392 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7394 cat <<EOF >> conftest.$ac_ext
7395 #if defined (__STDC__) && __STDC__
7396 # define lt_ptr_t void *
7398 # define lt_ptr_t char *
7402 /* The mapping between symbol names and symbols. */
7407 lt_preloaded_symbols[] =
7410 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7411 cat <<\EOF >> conftest.$ac_ext
7419 # Now try linking the two files.
7420 mv conftest.$ac_objext conftstm.$ac_objext
7421 lt_save_LIBS="$LIBS"
7422 lt_save_CFLAGS="$CFLAGS"
7423 LIBS="conftstm.$ac_objext"
7424 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7432 LIBS="$lt_save_LIBS"
7433 CFLAGS="$lt_save_CFLAGS"
7435 echo "cannot find nm_test_func in $nlist" >&5
7438 echo "cannot find nm_test_var in $nlist" >&5
7441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7444 echo "$progname: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7447 rm -f conftest* conftst*
7449 # Do not use the global_symbol_pipe unless it works.
7450 if test "$pipe_works" = yes; then
7453 lt_cv_sys_global_symbol_pipe=
7459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7460 lt_cv_sys_global_symbol_to_cdecl=
7462 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7463 echo "$as_me:$LINENO: result: failed" >&5
7464 echo "${ECHO_T}failed" >&6
7466 echo "$as_me:$LINENO: result: ok" >&5
7467 echo "${ECHO_T}ok" >&6
7470 echo "$as_me:$LINENO: checking for objdir" >&5
7471 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7472 if test "${lt_cv_objdir+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 rm -f .libs 2>/dev/null
7476 mkdir .libs 2>/dev/null
7477 if test -d .libs; then
7480 # MS-DOS does not allow filenames that begin with a dot.
7483 rmdir .libs 2>/dev/null
7485 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7486 echo "${ECHO_T}$lt_cv_objdir" >&6
7487 objdir=$lt_cv_objdir
7495 # AIX sometimes has problems with the GCC collect2 program. For some
7496 # reason, if we set the COLLECT_NAMES environment variable, the problems
7497 # vanish in a puff of smoke.
7498 if test "X${COLLECT_NAMES+set}" != Xset; then
7500 export COLLECT_NAMES
7505 # Sed substitution that helps us do robust quoting. It backslashifies
7506 # metacharacters that are still active within double-quoted strings.
7507 Xsed='sed -e 1s/^X//'
7508 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7510 # Same as above, but do not quote variable references.
7511 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7513 # Sed substitution to delay expansion of an escaped shell variable in a
7514 # double_quote_subst'ed string.
7515 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7517 # Sed substitution to avoid accidental globbing in evaled expressions
7518 no_glob_subst='s/\*/\\\*/g'
7524 default_ofile=libtool
7525 can_build_shared=yes
7527 # All known linkers require a `.a' archive for static linking (except MSVC,
7528 # which needs '.lib').
7530 ltmain="$ac_aux_dir/ltmain.sh"
7531 ofile="$default_ofile"
7532 with_gnu_ld="$lt_cv_prog_gnu_ld"
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}ar; ac_word=$2
7537 echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7539 if test "${ac_cv_prog_AR+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 if test -n "$AR"; then
7543 ac_cv_prog_AR="$AR" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_AR="${ac_tool_prefix}ar"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 if test -n "$AR"; then
7563 echo "$as_me:$LINENO: result: $AR" >&5
7564 echo "${ECHO_T}$AR" >&6
7566 echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6
7571 if test -z "$ac_cv_prog_AR"; then
7573 # Extract the first word of "ar", so it can be a program name with args.
7574 set dummy ar; ac_word=$2
7575 echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7577 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 if test -n "$ac_ct_AR"; then
7581 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_ac_ct_AR="ar"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7600 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7601 if test -n "$ac_ct_AR"; then
7602 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7603 echo "${ECHO_T}$ac_ct_AR" >&6
7605 echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6
7614 if test -n "$ac_tool_prefix"; then
7615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7617 echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619 if test "${ac_cv_prog_RANLIB+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 if test -n "$RANLIB"; then
7623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 RANLIB=$ac_cv_prog_RANLIB
7642 if test -n "$RANLIB"; then
7643 echo "$as_me:$LINENO: result: $RANLIB" >&5
7644 echo "${ECHO_T}$RANLIB" >&6
7646 echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6
7651 if test -z "$ac_cv_prog_RANLIB"; then
7652 ac_ct_RANLIB=$RANLIB
7653 # Extract the first word of "ranlib", so it can be a program name with args.
7654 set dummy ranlib; ac_word=$2
7655 echo "$as_me:$LINENO: checking for $ac_word" >&5
7656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 if test -n "$ac_ct_RANLIB"; then
7661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_RANLIB="ranlib"
7671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7681 if test -n "$ac_ct_RANLIB"; then
7682 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7683 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7685 echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6
7689 RANLIB=$ac_ct_RANLIB
7691 RANLIB="$ac_cv_prog_RANLIB"
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}strip; ac_word=$2
7697 echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699 if test "${ac_cv_prog_STRIP+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 if test -n "$STRIP"; then
7703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 STRIP=$ac_cv_prog_STRIP
7722 if test -n "$STRIP"; then
7723 echo "$as_me:$LINENO: result: $STRIP" >&5
7724 echo "${ECHO_T}$STRIP" >&6
7726 echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6
7731 if test -z "$ac_cv_prog_STRIP"; then
7733 # Extract the first word of "strip", so it can be a program name with args.
7734 set dummy strip; ac_word=$2
7735 echo "$as_me:$LINENO: checking for $ac_word" >&5
7736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 if test -n "$ac_ct_STRIP"; then
7741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_ac_ct_STRIP="strip"
7751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7761 if test -n "$ac_ct_STRIP"; then
7762 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7763 echo "${ECHO_T}$ac_ct_STRIP" >&6
7765 echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7771 STRIP="$ac_cv_prog_STRIP"
7776 old_CFLAGS="$CFLAGS"
7778 # Set sane defaults for various variables
7779 test -z "$AR" && AR=ar
7780 test -z "$AR_FLAGS" && AR_FLAGS=cru
7781 test -z "$AS" && AS=as
7782 test -z "$CC" && CC=cc
7783 test -z "$LTCC" && LTCC=$CC
7784 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7785 test -z "$DLLTOOL" && DLLTOOL=dlltool
7786 test -z "$LD" && LD=ld
7787 test -z "$LN_S" && LN_S="ln -s"
7788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7789 test -z "$NM" && NM=nm
7790 test -z "$SED" && SED=sed
7791 test -z "$OBJDUMP" && OBJDUMP=objdump
7792 test -z "$RANLIB" && RANLIB=:
7793 test -z "$STRIP" && STRIP=:
7794 test -z "$ac_objext" && ac_objext=o
7796 # Determine commands to create old-style static archives.
7797 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7798 old_postinstall_cmds='chmod 644 $oldlib'
7799 old_postuninstall_cmds=
7801 if test -n "$RANLIB"; then
7804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7807 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7810 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7813 for cc_temp in $compiler""; do
7815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7821 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7824 # Only perform the check for file, if the check method requires it
7825 case $deplibs_check_method in
7827 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7828 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7829 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7830 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7838 lt_save_MAGIC_CMD="$MAGIC_CMD"
7839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7840 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7841 for ac_dir in $ac_dummy; do
7843 test -z "$ac_dir" && ac_dir=.
7844 if test -f $ac_dir/${ac_tool_prefix}file; then
7845 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7846 if test -n "$file_magic_test_file"; then
7847 case $deplibs_check_method in
7849 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7851 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7852 $EGREP "$file_magic_regex" > /dev/null; then
7857 *** Warning: the command libtool uses to detect shared libraries,
7858 *** $file_magic_cmd, produces output that libtool cannot recognize.
7859 *** The result is that libtool may fail to recognize shared libraries
7860 *** as such. This will affect the creation of libtool libraries that
7861 *** depend on shared libraries, but programs linked with such libtool
7862 *** libraries will work regardless of this problem. Nevertheless, you
7863 *** may want to report the problem to your system manager and/or to
7864 *** bug-libtool@gnu.org
7874 MAGIC_CMD="$lt_save_MAGIC_CMD"
7879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7880 if test -n "$MAGIC_CMD"; then
7881 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7882 echo "${ECHO_T}$MAGIC_CMD" >&6
7884 echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7888 if test -z "$lt_cv_path_MAGIC_CMD"; then
7889 if test -n "$ac_tool_prefix"; then
7890 echo "$as_me:$LINENO: checking for file" >&5
7891 echo $ECHO_N "checking for file... $ECHO_C" >&6
7892 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7900 lt_save_MAGIC_CMD="$MAGIC_CMD"
7901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7903 for ac_dir in $ac_dummy; do
7905 test -z "$ac_dir" && ac_dir=.
7906 if test -f $ac_dir/file; then
7907 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7908 if test -n "$file_magic_test_file"; then
7909 case $deplibs_check_method in
7911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7914 $EGREP "$file_magic_regex" > /dev/null; then
7919 *** Warning: the command libtool uses to detect shared libraries,
7920 *** $file_magic_cmd, produces output that libtool cannot recognize.
7921 *** The result is that libtool may fail to recognize shared libraries
7922 *** as such. This will affect the creation of libtool libraries that
7923 *** depend on shared libraries, but programs linked with such libtool
7924 *** libraries will work regardless of this problem. Nevertheless, you
7925 *** may want to report the problem to your system manager and/or to
7926 *** bug-libtool@gnu.org
7936 MAGIC_CMD="$lt_save_MAGIC_CMD"
7941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7942 if test -n "$MAGIC_CMD"; then
7943 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7944 echo "${ECHO_T}$MAGIC_CMD" >&6
7946 echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6
7962 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7963 if test "${enable_libtool_lock+set}" = set; then
7964 enableval="$enable_libtool_lock"
7967 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7970 # Check whether --with-pic or --without-pic was given.
7971 if test "${with_pic+set}" = set; then
7977 test -z "$pic_mode" && pic_mode=default
7979 # Use C for the default configuration in the libtool script
7983 ac_cpp='$CPP $CPPFLAGS'
7984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989 # Source file extension for C test sources.
7992 # Object file extension for compiled C test sources.
7996 # Code to be used in simple compile tests
7997 lt_simple_compile_test_code="int some_variable = 0;\n"
7999 # Code to be used in simple link tests
8000 lt_simple_link_test_code='int main(){return(0);}\n'
8003 # If no C compiler was specified, use CC.
8006 # If no C compiler flags were specified, use CFLAGS.
8007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8009 # Allow CC to be a program name with arguments.
8013 # save warnings/boilerplate of simple test code
8014 ac_outfile=conftest.$ac_objext
8015 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8017 _lt_compiler_boilerplate=`cat conftest.err`
8020 ac_outfile=conftest.$ac_objext
8021 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8023 _lt_linker_boilerplate=`cat conftest.err`
8028 lt_prog_compiler_no_builtin_flag=
8030 if test "$GCC" = yes; then
8031 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8034 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8035 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8036 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 lt_cv_prog_compiler_rtti_exceptions=no
8040 ac_outfile=conftest.$ac_objext
8041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8042 lt_compiler_flag="-fno-rtti -fno-exceptions"
8043 # Insert the option either (1) after the last *FLAGS variable, or
8044 # (2) before a word containing "conftest.", or (3) at the end.
8045 # Note that $ac_compile itself does not contain backslashes and begins
8046 # with a dollar sign (not a hyphen), so the echo should work correctly.
8047 # The option is referenced via a variable to avoid confusing sed.
8048 lt_compile=`echo "$ac_compile" | $SED \
8049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051 -e 's:$: $lt_compiler_flag:'`
8052 (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053 (eval "$lt_compile" 2>conftest.err)
8055 cat conftest.err >&5
8056 echo "$as_me:8056: \$? = $ac_status" >&5
8057 if (exit $ac_status) && test -s "$ac_outfile"; then
8058 # The compiler can only warn and ignore the option if not recognized
8059 # So say no if there are warnings other than the usual output.
8060 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8063 lt_cv_prog_compiler_rtti_exceptions=yes
8069 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8070 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8072 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8073 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8080 lt_prog_compiler_wl=
8081 lt_prog_compiler_pic=
8082 lt_prog_compiler_static=
8084 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8085 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8087 if test "$GCC" = yes; then
8088 lt_prog_compiler_wl='-Wl,'
8089 lt_prog_compiler_static='-static'
8093 # All AIX code is PIC.
8094 if test "$host_cpu" = ia64; then
8095 # AIX 5 now supports IA64 processor
8096 lt_prog_compiler_static='-Bstatic'
8101 # FIXME: we need at least 68020 code to build shared libraries, but
8102 # adding the `-m68020' flag to GCC prevents building anything better,
8104 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8107 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8108 # PIC is the default for these OSes.
8111 mingw* | pw32* | os2*)
8112 # This hack is so that the source file can tell whether it is being
8113 # built for inclusion in a dll (and should export symbols for example).
8114 lt_prog_compiler_pic='-DDLL_EXPORT'
8117 darwin* | rhapsody*)
8118 # PIC is the default on this platform
8119 # Common symbols not allowed in MH_DYLIB files
8120 lt_prog_compiler_pic='-fno-common'
8124 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8125 # Instead, we relocate shared libraries at runtime.
8129 # Just because we use GCC doesn't mean we suddenly get shared libraries
8130 # on systems that don't support them.
8131 lt_prog_compiler_can_build_shared=no
8136 if test -d /usr/nec; then
8137 lt_prog_compiler_pic=-Kconform_pic
8142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8149 lt_prog_compiler_pic='-fPIC'
8155 lt_prog_compiler_pic='-fPIC'
8159 # PORTME Check for flag to pass linker flags through the system compiler.
8162 lt_prog_compiler_wl='-Wl,'
8163 if test "$host_cpu" = ia64; then
8164 # AIX 5 now supports IA64 processor
8165 lt_prog_compiler_static='-Bstatic'
8167 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8171 # PIC is the default on this platform
8172 # Common symbols not allowed in MH_DYLIB files
8173 case $cc_basename in
8175 lt_prog_compiler_pic='-qnocommon'
8176 lt_prog_compiler_wl='-Wl,'
8181 mingw* | pw32* | os2*)
8182 # This hack is so that the source file can tell whether it is being
8183 # built for inclusion in a dll (and should export symbols for example).
8184 lt_prog_compiler_pic='-DDLL_EXPORT'
8187 hpux9* | hpux10* | hpux11*)
8188 lt_prog_compiler_wl='-Wl,'
8189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8196 lt_prog_compiler_pic='+Z'
8199 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8200 lt_prog_compiler_static='${wl}-a ${wl}archive'
8203 irix5* | irix6* | nonstopux*)
8204 lt_prog_compiler_wl='-Wl,'
8205 # PIC (with -KPIC) is the default.
8206 lt_prog_compiler_static='-non_shared'
8210 lt_prog_compiler_pic='-KPIC'
8211 lt_prog_compiler_static='-Bstatic'
8215 case $cc_basename in
8217 lt_prog_compiler_wl='-Wl,'
8218 lt_prog_compiler_pic='-KPIC'
8219 lt_prog_compiler_static='-static'
8221 pgcc* | pgf77* | pgf90* | pgf95*)
8222 # Portland Group compilers (*not* the Pentium gcc compiler,
8223 # which looks to be a dead project)
8224 lt_prog_compiler_wl='-Wl,'
8225 lt_prog_compiler_pic='-fpic'
8226 lt_prog_compiler_static='-Bstatic'
8229 lt_prog_compiler_wl='-Wl,'
8230 # All Alpha code is PIC.
8231 lt_prog_compiler_static='-non_shared'
8236 osf3* | osf4* | osf5*)
8237 lt_prog_compiler_wl='-Wl,'
8238 # All OSF/1 code is PIC.
8239 lt_prog_compiler_static='-non_shared'
8243 lt_prog_compiler_pic='-KPIC'
8244 lt_prog_compiler_static='-Bstatic'
8245 case $cc_basename in
8247 lt_prog_compiler_wl='-Qoption ld ';;
8249 lt_prog_compiler_wl='-Wl,';;
8254 lt_prog_compiler_wl='-Qoption ld '
8255 lt_prog_compiler_pic='-PIC'
8256 lt_prog_compiler_static='-Bstatic'
8259 sysv4 | sysv4.2uw2* | sysv4.3*)
8260 lt_prog_compiler_wl='-Wl,'
8261 lt_prog_compiler_pic='-KPIC'
8262 lt_prog_compiler_static='-Bstatic'
8266 if test -d /usr/nec ;then
8267 lt_prog_compiler_pic='-Kconform_pic'
8268 lt_prog_compiler_static='-Bstatic'
8272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-KPIC'
8275 lt_prog_compiler_static='-Bstatic'
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_can_build_shared=no
8284 lt_prog_compiler_pic='-pic'
8285 lt_prog_compiler_static='-Bstatic'
8289 lt_prog_compiler_can_build_shared=no
8294 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8295 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8298 # Check to make sure the PIC flag actually works.
8300 if test -n "$lt_prog_compiler_pic"; then
8302 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8303 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8304 if test "${lt_prog_compiler_pic_works+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 lt_prog_compiler_pic_works=no
8308 ac_outfile=conftest.$ac_objext
8309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8310 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8311 # Insert the option either (1) after the last *FLAGS variable, or
8312 # (2) before a word containing "conftest.", or (3) at the end.
8313 # Note that $ac_compile itself does not contain backslashes and begins
8314 # with a dollar sign (not a hyphen), so the echo should work correctly.
8315 # The option is referenced via a variable to avoid confusing sed.
8316 lt_compile=`echo "$ac_compile" | $SED \
8317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8319 -e 's:$: $lt_compiler_flag:'`
8320 (eval echo "\"\$as_me:8320: $lt_compile\"" >&5)
8321 (eval "$lt_compile" 2>conftest.err)
8323 cat conftest.err >&5
8324 echo "$as_me:8324: \$? = $ac_status" >&5
8325 if (exit $ac_status) && test -s "$ac_outfile"; then
8326 # The compiler can only warn and ignore the option if not recognized
8327 # So say no if there are warnings other than the usual output.
8328 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8331 lt_prog_compiler_pic_works=yes
8337 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8338 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8340 if test x"$lt_prog_compiler_pic_works" = xyes; then
8341 case $lt_prog_compiler_pic in
8343 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8346 lt_prog_compiler_pic=
8347 lt_prog_compiler_can_build_shared=no
8352 # For platforms which do not support PIC, -DPIC is meaningless:
8354 lt_prog_compiler_pic=
8357 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8362 # Check to make sure the static flag actually works.
8364 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8365 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8366 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8367 if test "${lt_prog_compiler_static_works+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 lt_prog_compiler_static_works=no
8371 save_LDFLAGS="$LDFLAGS"
8372 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8373 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8375 # The linker can only warn and ignore the option if not recognized
8376 # So say no if there are warnings
8377 if test -s conftest.err; then
8378 # Append any errors to the config.log.
8379 cat conftest.err 1>&5
8380 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8382 if diff conftest.exp conftest.er2 >/dev/null; then
8383 lt_prog_compiler_static_works=yes
8386 lt_prog_compiler_static_works=yes
8390 LDFLAGS="$save_LDFLAGS"
8393 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8394 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8396 if test x"$lt_prog_compiler_static_works" = xyes; then
8399 lt_prog_compiler_static=
8403 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 lt_cv_prog_compiler_c_o=no
8409 $rm -r conftest 2>/dev/null
8413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8415 lt_compiler_flag="-o out/conftest2.$ac_objext"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 lt_compile=`echo "$ac_compile" | $SED \
8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423 -e 's:$: $lt_compiler_flag:'`
8424 (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
8425 (eval "$lt_compile" 2>out/conftest.err)
8427 cat out/conftest.err >&5
8428 echo "$as_me:8428: \$? = $ac_status" >&5
8429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings
8433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_c_o=yes
8441 # SGI C++ compiler will create directory out/ii_files/ for
8442 # template instantiation
8443 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8444 $rm out/* && rmdir out
8450 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8451 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8454 hard_links="nottested"
8455 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8456 # do not overwrite the value of need_locks provided by the user
8457 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8458 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8463 ln conftest.a conftest.b 2>&5 || hard_links=no
8464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8465 echo "$as_me:$LINENO: result: $hard_links" >&5
8466 echo "${ECHO_T}$hard_links" >&6
8467 if test "$hard_links" = no; then
8468 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8469 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8476 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8477 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8480 allow_undefined_flag=
8481 enable_shared_with_static_runtimes=no
8483 archive_expsym_cmds=
8484 old_archive_From_new_cmds=
8485 old_archive_from_expsyms_cmds=
8486 export_dynamic_flag_spec=
8487 whole_archive_flag_spec=
8488 thread_safe_flag_spec=
8489 hardcode_libdir_flag_spec=
8490 hardcode_libdir_flag_spec_ld=
8491 hardcode_libdir_separator=
8494 hardcode_shlibpath_var=unsupported
8495 link_all_deplibs=unknown
8496 hardcode_automatic=no
8499 always_export_symbols=no
8500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8501 # include_expsyms should be a list of space-separated symbols to be *always*
8502 # included in the symbol list
8504 # exclude_expsyms can be an extended regexp of symbols to exclude
8505 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8506 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8507 # as well as any symbol that contains `d'.
8508 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8509 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8510 # platforms (ab)use it in PIC code, but their linkers get confused if
8511 # the symbol is explicitly referenced. Since portable code cannot
8512 # rely on this symbol name, it's probably fine to never include it in
8513 # preloaded symbol tables.
8514 extract_expsyms_cmds=
8515 # Just being paranoid about ensuring that cc_basename is set.
8516 for cc_temp in $compiler""; do
8518 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8519 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8524 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8527 cygwin* | mingw* | pw32*)
8528 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8529 # When not using gcc, we currently assume that we are using
8530 # Microsoft Visual C++.
8531 if test "$GCC" != yes; then
8536 # we just hope/assume this is gcc and not c89 (= MSVC++)
8545 if test "$with_gnu_ld" = yes; then
8546 # If archive_cmds runs LD, not CC, wlarc should be empty
8549 # Set some defaults for GNU ld with shared library support. These
8550 # are reset later if shared libraries are not supported. Putting them
8551 # here allows them to be overridden if necessary.
8552 runpath_var=LD_RUN_PATH
8553 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8554 export_dynamic_flag_spec='${wl}--export-dynamic'
8555 # ancient GNU ld didn't support --whole-archive et. al.
8556 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8557 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8559 whole_archive_flag_spec=
8561 supports_anon_versioning=no
8562 case `$LD -v 2>/dev/null` in
8563 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8564 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8565 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8566 *\ 2.11.*) ;; # other 2.11 versions
8567 *) supports_anon_versioning=yes ;;
8570 # See if GNU ld supports shared libraries.
8572 aix3* | aix4* | aix5*)
8573 # On AIX/PPC, the GNU linker is very broken
8574 if test "$host_cpu" != ia64; then
8578 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8579 *** to be unable to reliably create shared libraries on AIX.
8580 *** Therefore, libtool is disabling shared libraries support. If you
8581 *** really care for shared libraries, you may want to modify your PATH
8582 *** so that a non-GNU linker is found, and then restart.
8589 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)'
8590 hardcode_libdir_flag_spec='-L$libdir'
8591 hardcode_minus_L=yes
8593 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8594 # that the semantics of dynamic libraries on AmigaOS, at least up
8595 # to version 4, is to share data among multiple programs linked
8596 # with the same dynamic library. Since this doesn't match the
8597 # behavior of shared libraries on other platforms, we can't use
8603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8604 allow_undefined_flag=unsupported
8605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8606 # support --undefined. This deserves some investigation. FIXME
8607 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8613 cygwin* | mingw* | pw32*)
8614 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8615 # as there is no search path for DLLs.
8616 hardcode_libdir_flag_spec='-L$libdir'
8617 allow_undefined_flag=unsupported
8618 always_export_symbols=no
8619 enable_shared_with_static_runtimes=yes
8620 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8622 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624 # If the export-symbols file already is a .def file (1st line
8625 # is EXPORTS), use it as is; otherwise, prepend...
8626 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8627 cp $export_symbols $output_objdir/$soname.def;
8629 echo EXPORTS > $output_objdir/$soname.def;
8630 cat $export_symbols >> $output_objdir/$soname.def;
8632 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8640 hardcode_shlibpath_var=no
8641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8642 export_dynamic_flag_spec='${wl}-E'
8643 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8644 # Instead, shared libraries are loaded at an image base (0x10000000 by
8645 # default) and relocated if they conflict, which is a slow very memory
8646 # consuming and fragmenting process. To avoid this, we pick a random,
8647 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8648 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8650 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'
8654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8656 case $cc_basename,$host_cpu in
8657 pgcc*) # Portland Group C compiler
8658 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'
8659 tmp_addflag=' $pic_flag'
8661 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8662 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'
8663 tmp_addflag=' $pic_flag -Mnomain' ;;
8664 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8665 tmp_addflag=' -i_dynamic' ;;
8666 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8667 tmp_addflag=' -i_dynamic -nofor_main' ;;
8668 ifc* | ifort*) # Intel Fortran compiler
8669 tmp_addflag=' -nofor_main' ;;
8671 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673 if test $supports_anon_versioning = yes; then
8674 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8676 $echo "local: *; };" >> $output_objdir/$libname.ver~
8677 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8686 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8699 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8700 *** create shared libraries on Solaris systems. Therefore, libtool
8701 *** is disabling shared libraries support. We urge you to upgrade GNU
8702 *** binutils to release 2.9.1 or newer. Another option is to modify
8703 *** your PATH or compiler configuration so that the native linker is
8704 *** used, and then restart.
8707 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8716 case `$LD -v 2>&1` in
8717 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8721 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8722 *** reliably create shared libraries on SCO systems. Therefore, libtool
8723 *** is disabling shared libraries support. We urge you to upgrade GNU
8724 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8725 *** your PATH or compiler configuration so that the native linker is
8726 *** used, and then restart.
8731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8732 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8743 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8746 hardcode_shlibpath_var=no
8750 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8759 if test "$ld_shlibs" = no; then
8761 hardcode_libdir_flag_spec=
8762 export_dynamic_flag_spec=
8763 whole_archive_flag_spec=
8766 # PORTME fill in a description of your system's linker (not GNU ld)
8769 allow_undefined_flag=unsupported
8770 always_export_symbols=yes
8771 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'
8772 # Note: this linker hardcodes the directories in LIBPATH if there
8773 # are no directories specified by -L.
8774 hardcode_minus_L=yes
8775 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8776 # Neither direct hardcoding nor static linking is supported with a
8778 hardcode_direct=unsupported
8783 if test "$host_cpu" = ia64; then
8784 # On IA64, the linker does run time linking by default, so we don't
8785 # have to do anything special.
8786 aix_use_runtimelinking=no
8787 exp_sym_flag='-Bexport'
8790 # If we're using GNU nm, then we don't want the "-C" option.
8791 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8792 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8793 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'
8795 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'
8797 aix_use_runtimelinking=no
8799 # Test if we are trying to use run time linking or normal
8800 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8801 # need to do runtime linking.
8802 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8803 for ld_flag in $LDFLAGS; do
8804 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8805 aix_use_runtimelinking=yes
8812 exp_sym_flag='-bexport'
8813 no_entry_flag='-bnoentry'
8816 # When large executables or shared objects are built, AIX ld can
8817 # have problems creating the table of contents. If linking a library
8818 # or program results in "error TOC overflow" add -mminimal-toc to
8819 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8820 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8824 hardcode_libdir_separator=':'
8825 link_all_deplibs=yes
8827 if test "$GCC" = yes; then
8828 case $host_os in aix4.[012]|aix4.[012].*)
8829 # We only want to do this on AIX 4.2 and lower, the check
8830 # below for broken collect2 doesn't work under 4.3+
8831 collect2name=`${CC} -print-prog-name=collect2`
8832 if test -f "$collect2name" && \
8833 strings "$collect2name" | grep resolve_lib_name >/dev/null
8835 # We have reworked collect2
8838 # We have old collect2
8839 hardcode_direct=unsupported
8840 # It fails to find uninstalled libraries when the uninstalled
8841 # path is not listed in the libpath. Setting hardcode_minus_L
8842 # to unsupported forces relinking
8843 hardcode_minus_L=yes
8844 hardcode_libdir_flag_spec='-L$libdir'
8845 hardcode_libdir_separator=
8849 shared_flag='-shared'
8850 if test "$aix_use_runtimelinking" = yes; then
8851 shared_flag="$shared_flag "'${wl}-G'
8855 if test "$host_cpu" = ia64; then
8856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8857 # chokes on -Wl,-G. The following line is correct:
8860 if test "$aix_use_runtimelinking" = yes; then
8861 shared_flag='${wl}-G'
8863 shared_flag='${wl}-bM:SRE'
8868 # It seems that -bexpall does not export symbols beginning with
8869 # underscore (_), so it is better to generate a list of symbols to export.
8870 always_export_symbols=yes
8871 if test "$aix_use_runtimelinking" = yes; then
8872 # Warning - without using the other runtime loading flags (-brtl),
8873 # -berok will link without error, but may produce a broken library.
8874 allow_undefined_flag='-berok'
8875 # Determine the default libpath from the value encoded in an empty executable.
8876 cat >conftest.$ac_ext <<_ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8916 # Check for a 64-bit object if we didn't find anything.
8917 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; }
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8924 rm -f conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8928 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8929 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"
8931 if test "$host_cpu" = ia64; then
8932 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8933 allow_undefined_flag="-z nodefs"
8934 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"
8936 # Determine the default libpath from the value encoded in an empty executable.
8937 cat >conftest.$ac_ext <<_ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -z "$ac_c_werror_flag"
8962 || test ! -s conftest.err'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8977 # Check for a 64-bit object if we didn't find anything.
8978 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; }
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8985 rm -f conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext conftest.$ac_ext
8987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8989 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8990 # Warning - without using the other run time loading flags,
8991 # -berok will link without error, but may produce a broken library.
8992 no_undefined_flag=' ${wl}-bernotok'
8993 allow_undefined_flag=' ${wl}-berok'
8994 # Exported symbols can be pulled into shared objects from archives
8995 whole_archive_flag_spec='$convenience'
8996 archive_cmds_need_lc=yes
8997 # This is similar to how AIX traditionally builds its shared libraries.
8998 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'
9004 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)'
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_minus_L=yes
9007 # see comment about different semantics on the GNU ld section
9012 export_dynamic_flag_spec=-rdynamic
9015 cygwin* | mingw* | pw32*)
9016 # When not using gcc, we currently assume that we are using
9017 # Microsoft Visual C++.
9018 # hardcode_libdir_flag_spec is actually meaningless, as there is
9019 # no search path for DLLs.
9020 hardcode_libdir_flag_spec=' '
9021 allow_undefined_flag=unsupported
9022 # Tell ltmain to make .lib files, not .a files.
9024 # Tell ltmain to make .dll files, not .so files.
9026 # FIXME: Setting linknames here is a bad hack.
9027 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9028 # The linker will automatically build a .lib file if we build a DLL.
9029 old_archive_From_new_cmds='true'
9030 # FIXME: Should let the user specify the lib program.
9031 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9032 fix_srcfile_path='`cygpath -w "$srcfile"`'
9033 enable_shared_with_static_runtimes=yes
9036 darwin* | rhapsody*)
9038 rhapsody* | darwin1.[012])
9039 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9042 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9043 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9045 case ${MACOSX_DEPLOYMENT_TARGET} in
9047 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9050 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9056 archive_cmds_need_lc=no
9058 hardcode_automatic=yes
9059 hardcode_shlibpath_var=unsupported
9060 whole_archive_flag_spec=''
9061 link_all_deplibs=yes
9062 if test "$GCC" = yes ; then
9063 output_verbose_link_cmd='echo'
9064 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9065 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9066 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9067 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}'
9068 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}'
9070 case $cc_basename in
9072 output_verbose_link_cmd='echo'
9073 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9074 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9075 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9076 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}'
9077 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}'
9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_libdir_flag_spec='-L$libdir'
9089 hardcode_shlibpath_var=no
9096 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9097 # support. Future versions do this automatically, but an explicit c++rt0.o
9098 # does not break anything, and helps significantly (at the cost of a little
9101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9102 hardcode_libdir_flag_spec='-R$libdir'
9104 hardcode_shlibpath_var=no
9107 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9111 hardcode_minus_L=yes
9112 hardcode_shlibpath_var=no
9115 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9116 freebsd* | kfreebsd*-gnu | dragonfly*)
9117 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9118 hardcode_libdir_flag_spec='-R$libdir'
9120 hardcode_shlibpath_var=no
9124 if test "$GCC" = yes; then
9125 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'
9127 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'
9129 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9130 hardcode_libdir_separator=:
9133 # hardcode_minus_L: Not really in the search PATH,
9134 # but as the default location of the library.
9135 hardcode_minus_L=yes
9136 export_dynamic_flag_spec='${wl}-E'
9140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9141 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9143 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9145 if test "$with_gnu_ld" = no; then
9146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9147 hardcode_libdir_separator=:
9150 export_dynamic_flag_spec='${wl}-E'
9152 # hardcode_minus_L: Not really in the search PATH,
9153 # but as the default location of the library.
9154 hardcode_minus_L=yes
9159 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9162 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9177 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9180 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9184 if test "$with_gnu_ld" = no; then
9185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9186 hardcode_libdir_separator=:
9190 hardcode_libdir_flag_spec_ld='+b $libdir'
9192 hardcode_shlibpath_var=no
9196 export_dynamic_flag_spec='${wl}-E'
9198 # hardcode_minus_L: Not really in the search PATH,
9199 # but as the default location of the library.
9200 hardcode_minus_L=yes
9206 irix5* | irix6* | nonstopux*)
9207 if test "$GCC" = yes; then
9208 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'
9210 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'
9211 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214 hardcode_libdir_separator=:
9215 link_all_deplibs=yes
9219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9222 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9224 hardcode_libdir_flag_spec='-R$libdir'
9226 hardcode_shlibpath_var=no
9230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233 hardcode_libdir_separator=:
9234 hardcode_shlibpath_var=no
9239 hardcode_shlibpath_var=no
9240 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9242 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244 export_dynamic_flag_spec='${wl}-E'
9247 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9249 hardcode_libdir_flag_spec='-R$libdir'
9252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260 hardcode_libdir_flag_spec='-L$libdir'
9261 hardcode_minus_L=yes
9262 allow_undefined_flag=unsupported
9263 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'
9264 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9268 if test "$GCC" = yes; then
9269 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9270 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'
9272 allow_undefined_flag=' -expect_unresolved \*'
9273 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'
9275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276 hardcode_libdir_separator=:
9279 osf4* | osf5*) # as osf3* with the addition of -msym flag
9280 if test "$GCC" = yes; then
9281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282 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'
9283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 allow_undefined_flag=' -expect_unresolved \*'
9286 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'
9287 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9288 $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'
9290 # Both c and cxx compiler support -rpath directly
9291 hardcode_libdir_flag_spec='-rpath $libdir'
9293 hardcode_libdir_separator=:
9297 no_undefined_flag=' -z text'
9298 if test "$GCC" = yes; then
9300 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9301 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9302 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9305 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9307 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9309 hardcode_libdir_flag_spec='-R$libdir'
9310 hardcode_shlibpath_var=no
9312 solaris2.[0-5] | solaris2.[0-5].*) ;;
9314 # The compiler driver will combine linker options so we
9315 # cannot just pass the convience library names through
9316 # without $wl, iff we do not link with $LD.
9317 # Luckily, gcc supports the same syntax we need for Sun Studio.
9318 # Supported since Solaris 2.6 (maybe 2.5.1?)
9321 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9323 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' ;;
9326 link_all_deplibs=yes
9330 if test "x$host_vendor" = xsequent; then
9331 # Use $CC to link under sequent, because it throws in some extra .o
9332 # files that make .init and .fini sections work.
9333 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_libdir_flag_spec='-L$libdir'
9339 hardcode_minus_L=yes
9340 hardcode_shlibpath_var=no
9344 case $host_vendor in
9346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347 hardcode_direct=yes # is this really true???
9350 ## LD is ld it makes a PLAMLIB
9351 ## CC just makes a GrossModule.
9352 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9353 reload_cmds='$CC -r -o $output$reload_objs'
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9361 runpath_var='LD_RUN_PATH'
9362 hardcode_shlibpath_var=no
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_shlibpath_var=no
9368 export_dynamic_flag_spec='-Bexport'
9372 if test -d /usr/nec; then
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_shlibpath_var=no
9375 runpath_var=LD_RUN_PATH
9376 hardcode_runpath_var=yes
9381 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9382 no_undefined_flag='${wl}-z,text'
9383 archive_cmds_need_lc=no
9384 hardcode_shlibpath_var=no
9385 runpath_var='LD_RUN_PATH'
9387 if test "$GCC" = yes; then
9388 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 sysv5* | sco3.2v5* | sco5v6*)
9397 # Note: We can NOT use -z defs as we might desire, because we do not
9398 # link with -lc, and that would cause any symbols used from libc to
9399 # always be unresolved, which means just about no library would
9400 # ever link correctly. If we're not using GNU ld we use -z text
9401 # though, which does catch some bad symbols but isn't as heavy-handed
9403 no_undefined_flag='${wl}-z,text'
9404 allow_undefined_flag='${wl}-z,nodefs'
9405 archive_cmds_need_lc=no
9406 hardcode_shlibpath_var=no
9407 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9408 hardcode_libdir_separator=':'
9409 link_all_deplibs=yes
9410 export_dynamic_flag_spec='${wl}-Bexport'
9411 runpath_var='LD_RUN_PATH'
9413 if test "$GCC" = yes; then
9414 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_shlibpath_var=no
9434 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9435 echo "${ECHO_T}$ld_shlibs" >&6
9436 test "$ld_shlibs" = no && can_build_shared=no
9439 # Do we need to explicitly link libc?
9441 case "x$archive_cmds_need_lc" in
9443 # Assume -lc should be added
9444 archive_cmds_need_lc=yes
9446 if test "$enable_shared" = yes && test "$GCC" = yes; then
9447 case $archive_cmds in
9449 # FIXME: we may have to deal with multi-command sequences.
9452 # Test whether the compiler implicitly links with -lc since on some
9453 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9454 # to ld, don't add -lc before -lgcc.
9455 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9456 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461 (eval $ac_compile) 2>&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } 2>conftest.err; then
9467 libobjs=conftest.$ac_objext
9469 wl=$lt_prog_compiler_wl
9470 pic_flag=$lt_prog_compiler_pic
9476 lt_save_allow_undefined_flag=$allow_undefined_flag
9477 allow_undefined_flag=
9478 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9479 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }
9484 archive_cmds_need_lc=no
9486 archive_cmds_need_lc=yes
9488 allow_undefined_flag=$lt_save_allow_undefined_flag
9490 cat conftest.err 1>&5
9493 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9494 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9501 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9502 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9504 libname_spec='lib$name'
9512 shlibpath_overrides_runpath=unknown
9514 dynamic_linker="$host_os ld.so"
9515 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9516 if test "$GCC" = yes; then
9517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9518 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9519 # if the path contains ";" then we assume it to be the separator
9520 # otherwise default to the standard path separator (i.e. ":") - it is
9521 # assumed that no part of a normal pathname contains ";" but that should
9522 # okay in the real world where ";" in dirpaths is itself problematic.
9523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9530 need_lib_prefix=unknown
9531 hardcode_into_libs=no
9533 # when you set need_version to no, make sure it does not cause -set_version
9534 # flags to be left without arguments
9535 need_version=unknown
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9541 shlibpath_var=LIBPATH
9543 # AIX 3 has no versioning support, so we append a major version to the name.
9544 soname_spec='${libname}${release}${shared_ext}$major'
9551 hardcode_into_libs=yes
9552 if test "$host_cpu" = ia64; then
9553 # AIX 5 supports IA64
9554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9555 shlibpath_var=LD_LIBRARY_PATH
9557 # With GCC up to 2.95.x, collect2 would create an import file
9558 # for dependence libraries. The import file would start with
9559 # the line `#! .'. This would cause the generated library to
9560 # depend on `.', always an invalid library. This was fixed in
9561 # development snapshots of GCC prior to 3.0.
9563 aix4 | aix4.[01] | aix4.[01].*)
9564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9566 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9574 # soname into executable. Probably we can add versioning support to
9575 # collect2, so additional links can be useful in future.
9576 if test "$aix_use_runtimelinking" = yes; then
9577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9578 # instead of lib<name>.a to let people know that these are not
9579 # typical AIX shared libraries.
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 # We preserve .a as extension for shared libraries through AIX4.2
9583 # and later when we are not doing run time linking.
9584 library_names_spec='${libname}${release}.a $libname.a'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9587 shlibpath_var=LIBPATH
9592 library_names_spec='$libname.ixlibrary $libname.a'
9593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9594 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'
9598 library_names_spec='${libname}${shared_ext}'
9599 dynamic_linker="$host_os ld.so"
9600 shlibpath_var=LIBRARY_PATH
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9612 # the default ld.so.conf also contains /usr/contrib/lib and
9613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9614 # libtool to hard-code these into programs
9617 cygwin* | mingw* | pw32*)
9618 version_type=windows
9623 case $GCC,$host_os in
9624 yes,cygwin* | yes,mingw* | yes,pw32*)
9625 library_names_spec='$libname.dll.a'
9626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9627 postinstall_cmds='base_file=`basename \${file}`~
9628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9629 dldir=$destdir/`dirname \$dlpath`~
9630 test -d \$dldir || mkdir -p \$dldir~
9631 $install_prog $dir/$dlname \$dldir/$dlname~
9632 chmod a+x \$dldir/$dlname'
9633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9634 dlpath=$dir/\$dldll~
9636 shlibpath_overrides_runpath=yes
9640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9642 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9645 # MinGW DLLs use traditional 'lib' prefix
9646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9648 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9649 # It is most probably a Windows format PATH printed by
9650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9651 # path with ; separators, and with drive letters. We can handle the
9652 # drive letters (cygwin fileutils understands them), so leave them,
9653 # especially as we might pass files found there to a mingw objdump,
9654 # which wouldn't understand a cygwinified path. Ahh.
9655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661 # pw32 DLLs use 'pw' prefix rather than 'lib'
9662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9671 dynamic_linker='Win32 ld.exe'
9672 # FIXME: first we should search . and the directory the executable is in
9676 darwin* | rhapsody*)
9677 dynamic_linker="$host_os dyld"
9681 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9682 soname_spec='${libname}${release}${major}$shared_ext'
9683 shlibpath_overrides_runpath=yes
9684 shlibpath_var=DYLD_LIBRARY_PATH
9685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9686 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9687 if test "$GCC" = yes; then
9688 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"`
9690 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9700 soname_spec='${libname}${release}${shared_ext}$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 shlibpath_overrides_runpath=no
9716 hardcode_into_libs=yes
9717 dynamic_linker='GNU ld.so'
9720 freebsd* | dragonfly*)
9721 # DragonFly does not have aout. When/if they implement a new
9722 # versioning mechanism, adjust this.
9723 if test -x /usr/bin/objformat; then
9724 objformat=`/usr/bin/objformat`
9727 freebsd[123]*) objformat=aout ;;
9731 version_type=freebsd-$objformat
9732 case $version_type in
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9743 shlibpath_var=LD_LIBRARY_PATH
9746 shlibpath_overrides_runpath=yes
9748 freebsd3.[01]* | freebsdelf3.[01]*)
9749 shlibpath_overrides_runpath=yes
9750 hardcode_into_libs=yes
9752 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9753 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9754 shlibpath_overrides_runpath=no
9755 hardcode_into_libs=yes
9757 freebsd*) # from 4.6 on
9758 shlibpath_overrides_runpath=yes
9759 hardcode_into_libs=yes
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 shlibpath_var=LD_LIBRARY_PATH
9771 hardcode_into_libs=yes
9774 hpux9* | hpux10* | hpux11*)
9775 # Give a soname corresponding to the major version so that dld.sl refuses to
9776 # link against other versions.
9783 hardcode_into_libs=yes
9784 dynamic_linker="$host_os dld.so"
9785 shlibpath_var=LD_LIBRARY_PATH
9786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 if test "X$HPUX_IA64_MODE" = X32; then
9790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9798 hardcode_into_libs=yes
9799 dynamic_linker="$host_os dld.sl"
9800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9809 dynamic_linker="$host_os dld.sl"
9810 shlibpath_var=SHLIB_PATH
9811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9816 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9817 postinstall_cmds='chmod 555 $lib'
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9825 soname_spec='${libname}${release}${shared_ext}$major'
9826 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 shlibpath_overrides_runpath=no
9829 hardcode_into_libs=yes
9832 irix5* | irix6* | nonstopux*)
9834 nonstopux*) version_type=nonstopux ;;
9836 if test "$lt_cv_prog_gnu_ld" = yes; then
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9847 irix5* | nonstopux*)
9851 case $LD in # libtool.m4 will add one of these switches to LD
9852 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9853 libsuff= shlibsuff= libmagic=32-bit;;
9854 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9855 libsuff=32 shlibsuff=N32 libmagic=N32;;
9856 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9857 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9858 *) libsuff= shlibsuff= libmagic=never-match;;
9862 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9863 shlibpath_overrides_runpath=no
9864 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9865 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9866 hardcode_into_libs=yes
9869 # No shared lib support for Linux oldld, aout, or coff.
9870 linux*oldld* | linux*aout* | linux*coff*)
9874 # This must be Linux ELF.
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 shlibpath_overrides_runpath=no
9884 # This implies no fast_install, which is unacceptable.
9885 # Some rework will be needed to allow for fast_install
9886 # before this can be enabled.
9887 hardcode_into_libs=yes
9889 # find out which ABI we are using
9892 x86_64*|s390x*|powerpc64*)
9893 echo '#line 9893 "configure"' > conftest.$ac_ext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; then
9899 case `/usr/bin/file conftest.$ac_objext` in
9902 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9910 # Append ld.so.conf contents to the search path
9911 if test -f /etc/ld.so.conf; then
9912 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' ' '`
9913 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9916 # We used to test for /lib/ld.so.1 and disable shared libraries on
9917 # powerpc, because MkLinux only supported shared libraries with the
9918 # GNU dynamic linker. Since this was broken with cross compilers,
9919 # most powerpc-linux boxes support dynamic linking these days and
9920 # people can always --disable-shared, the test was removed, and we
9921 # assume the GNU/Linux dynamic linker is in use.
9922 dynamic_linker='GNU/Linux ld.so'
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 shlibpath_overrides_runpath=no
9933 hardcode_into_libs=yes
9934 dynamic_linker='GNU ld.so'
9941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9944 dynamic_linker='NetBSD (a.out) ld.so'
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 dynamic_linker='NetBSD ld.elf_so'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 shlibpath_overrides_runpath=yes
9952 hardcode_into_libs=yes
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 shlibpath_var=LD_LIBRARY_PATH
9959 shlibpath_overrides_runpath=yes
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 shlibpath_overrides_runpath=yes
9974 sys_lib_dlsearch_path_spec="/usr/lib"
9976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9978 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9979 *) need_version=no ;;
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9986 openbsd2.[89] | openbsd2.[89].*)
9987 shlibpath_overrides_runpath=no
9990 shlibpath_overrides_runpath=yes
9994 shlibpath_overrides_runpath=yes
9999 libname_spec='$name'
10002 library_names_spec='$libname${shared_ext} $libname.a'
10003 dynamic_linker='OS/2 ld.exe'
10004 shlibpath_var=LIBPATH
10007 osf3* | osf4* | osf5*)
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 shlibpath_overrides_runpath=yes
10026 hardcode_into_libs=yes
10027 # ldd complains unless libraries are executable
10028 postinstall_cmds='chmod +x $lib'
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10035 shlibpath_var=LD_LIBRARY_PATH
10036 shlibpath_overrides_runpath=yes
10037 if test "$with_gnu_ld" = yes; then
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 case $host_vendor in
10050 shlibpath_overrides_runpath=no
10052 export_dynamic_flag_spec='${wl}-Blargedynsym'
10053 runpath_var=LD_RUN_PATH
10061 shlibpath_overrides_runpath=no
10062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10068 if test -d /usr/nec ;then
10070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10071 soname_spec='$libname${shared_ext}.$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10077 version_type=freebsd-elf
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 hardcode_into_libs=yes
10084 if test "$with_gnu_ld" = yes; then
10085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10086 shlibpath_overrides_runpath=no
10088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10089 shlibpath_overrides_runpath=yes
10092 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10096 sys_lib_dlsearch_path_spec='/usr/lib'
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LD_LIBRARY_PATH
10110 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10111 echo "${ECHO_T}$dynamic_linker" >&6
10112 test "$dynamic_linker" = no && can_build_shared=no
10114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10115 if test "$GCC" = yes; then
10116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10119 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10120 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10122 if test -n "$hardcode_libdir_flag_spec" || \
10123 test -n "$runpath_var" || \
10124 test "X$hardcode_automatic" = "Xyes" ; then
10126 # We can hardcode non-existant directories.
10127 if test "$hardcode_direct" != no &&
10128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10129 # have to relink, otherwise we might link with an installed library
10130 # when we should be linking with a yet-to-be-installed one
10131 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10132 test "$hardcode_minus_L" != no; then
10133 # Linking always hardcodes the temporary library directory.
10134 hardcode_action=relink
10136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10137 hardcode_action=immediate
10140 # We cannot hardcode anything, or else we can only hardcode existing
10142 hardcode_action=unsupported
10144 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10145 echo "${ECHO_T}$hardcode_action" >&6
10147 if test "$hardcode_action" = relink; then
10148 # Fast installation is not supported
10149 enable_fast_install=no
10150 elif test "$shlibpath_overrides_runpath" = yes ||
10151 test "$enable_shared" = no; then
10152 # Fast installation is not necessary
10153 enable_fast_install=needless
10158 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10159 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10160 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10161 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10162 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10163 echo "$as_me:$LINENO: result: yes" >&5
10164 echo "${ECHO_T}yes" >&6
10166 # FIXME - insert some real tests, host_os isn't really good enough
10169 if test -n "$STRIP" ; then
10170 striplib="$STRIP -x"
10171 echo "$as_me:$LINENO: result: yes" >&5
10172 echo "${ECHO_T}yes" >&6
10174 echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6
10179 echo "$as_me:$LINENO: result: no" >&5
10180 echo "${ECHO_T}no" >&6
10185 if test "x$enable_dlopen" != xyes; then
10186 enable_dlopen=unknown
10187 enable_dlopen_self=unknown
10188 enable_dlopen_self_static=unknown
10195 lt_cv_dlopen="load_add_on"
10197 lt_cv_dlopen_self=yes
10201 lt_cv_dlopen="LoadLibrary"
10206 lt_cv_dlopen="dlopen"
10211 # if libdl is installed we need to link against it
10212 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10213 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10214 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 ac_check_lib_save_LIBS=$LIBS
10219 cat >conftest.$ac_ext <<_ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10226 /* Override any gcc2 internal prototype to avoid an error. */
10230 /* We use char because int might match the return type of a gcc2
10231 builtin and then its argument prototype would still apply. */
10241 rm -f conftest.$ac_objext conftest$ac_exeext
10242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10243 (eval $ac_link) 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_c_werror_flag"
10251 || test ! -s conftest.err'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; } &&
10257 { ac_try='test -s conftest$ac_exeext'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 ac_cv_lib_dl_dlopen=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_lib_dl_dlopen=no
10270 rm -f conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10274 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10276 if test $ac_cv_lib_dl_dlopen = yes; then
10277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10280 lt_cv_dlopen="dyld"
10282 lt_cv_dlopen_self=yes
10289 echo "$as_me:$LINENO: checking for shl_load" >&5
10290 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10291 if test "${ac_cv_func_shl_load+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 cat >conftest.$ac_ext <<_ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10300 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10302 #define shl_load innocuous_shl_load
10304 /* System header to define __stub macros and hopefully few prototypes,
10305 which can conflict with char shl_load (); below.
10306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10307 <limits.h> exists even on freestanding compilers. */
10310 # include <limits.h>
10312 # include <assert.h>
10317 /* Override any gcc2 internal prototype to avoid an error. */
10322 /* We use char because int might match the return type of a gcc2
10323 builtin and then its argument prototype would still apply. */
10325 /* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
10328 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10331 char (*f) () = shl_load;
10340 return f != shl_load;
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347 (eval $ac_link) 2>conftest.er1
10349 grep -v '^ *+' conftest.er1 >conftest.err
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag"
10355 || test ! -s conftest.err'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try='test -s conftest$ac_exeext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_cv_func_shl_load=yes
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_cv_func_shl_load=no
10374 rm -f conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10377 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10378 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10379 if test $ac_cv_func_shl_load = yes; then
10380 lt_cv_dlopen="shl_load"
10382 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10383 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10384 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_check_lib_save_LIBS=$LIBS
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10396 /* Override any gcc2 internal prototype to avoid an error. */
10400 /* We use char because int might match the return type of a gcc2
10401 builtin and then its argument prototype would still apply. */
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413 (eval $ac_link) 2>conftest.er1
10415 grep -v '^ *+' conftest.er1 >conftest.err
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } &&
10420 { ac_try='test -z "$ac_c_werror_flag"
10421 || test ! -s conftest.err'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; } &&
10427 { ac_try='test -s conftest$ac_exeext'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10433 ac_cv_lib_dld_shl_load=yes
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 ac_cv_lib_dld_shl_load=no
10440 rm -f conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10442 LIBS=$ac_check_lib_save_LIBS
10444 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10445 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10446 if test $ac_cv_lib_dld_shl_load = yes; then
10447 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10449 echo "$as_me:$LINENO: checking for dlopen" >&5
10450 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10451 if test "${ac_cv_func_dlopen+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10462 #define dlopen innocuous_dlopen
10464 /* System header to define __stub macros and hopefully few prototypes,
10465 which can conflict with char dlopen (); below.
10466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10467 <limits.h> exists even on freestanding compilers. */
10470 # include <limits.h>
10472 # include <assert.h>
10477 /* Override any gcc2 internal prototype to avoid an error. */
10482 /* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10485 /* The GNU C library defines this for functions which it implements
10486 to always fail with ENOSYS. Some functions are actually named
10487 something starting with __ and the normal name is an alias. */
10488 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10491 char (*f) () = dlopen;
10500 return f != dlopen;
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -z "$ac_c_werror_flag"
10515 || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_func_dlopen=yes
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_cv_func_dlopen=no
10534 rm -f conftest.err conftest.$ac_objext \
10535 conftest$ac_exeext conftest.$ac_ext
10537 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10538 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10539 if test $ac_cv_func_dlopen = yes; then
10540 lt_cv_dlopen="dlopen"
10542 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10543 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10544 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 ac_check_lib_save_LIBS=$LIBS
10549 cat >conftest.$ac_ext <<_ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10556 /* Override any gcc2 internal prototype to avoid an error. */
10560 /* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest$ac_exeext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_cv_lib_dl_dlopen=yes
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_lib_dl_dlopen=no
10600 rm -f conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10605 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10606 if test $ac_cv_lib_dl_dlopen = yes; then
10607 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10609 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10610 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10611 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 ac_check_lib_save_LIBS=$LIBS
10615 LIBS="-lsvld $LIBS"
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10623 /* Override any gcc2 internal prototype to avoid an error. */
10627 /* We use char because int might match the return type of a gcc2
10628 builtin and then its argument prototype would still apply. */
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10640 (eval $ac_link) 2>conftest.er1
10642 grep -v '^ *+' conftest.er1 >conftest.err
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -z "$ac_c_werror_flag"
10648 || test ! -s conftest.err'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest$ac_exeext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_lib_svld_dlopen=yes
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 ac_cv_lib_svld_dlopen=no
10667 rm -f conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LIBS=$ac_check_lib_save_LIBS
10671 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10672 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10673 if test $ac_cv_lib_svld_dlopen = yes; then
10674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10676 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10677 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10678 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 ac_check_lib_save_LIBS=$LIBS
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10690 /* Override any gcc2 internal prototype to avoid an error. */
10694 /* We use char because int might match the return type of a gcc2
10695 builtin and then its argument prototype would still apply. */
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10707 (eval $ac_link) 2>conftest.er1
10709 grep -v '^ *+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -z "$ac_c_werror_flag"
10715 || test ! -s conftest.err'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; } &&
10721 { ac_try='test -s conftest$ac_exeext'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10727 ac_cv_lib_dld_dld_link=yes
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10732 ac_cv_lib_dld_dld_link=no
10734 rm -f conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10738 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10739 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10740 if test $ac_cv_lib_dld_dld_link = yes; then
10741 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10762 if test "x$lt_cv_dlopen" != xno; then
10768 case $lt_cv_dlopen in
10770 save_CPPFLAGS="$CPPFLAGS"
10771 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10773 save_LDFLAGS="$LDFLAGS"
10774 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10777 LIBS="$lt_cv_dlopen_libs $LIBS"
10779 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10780 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10781 if test "${lt_cv_dlopen_self+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 if test "$cross_compiling" = yes; then :
10785 lt_cv_dlopen_self=cross
10787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10788 lt_status=$lt_dlunknown
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10790 "configure"
10791 #include "confdefs.h"
10800 # define LT_DLGLOBAL RTLD_GLOBAL
10803 # define LT_DLGLOBAL DL_GLOBAL
10805 # define LT_DLGLOBAL 0
10809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10810 find out it does not work in some platform. */
10811 #ifndef LT_DLLAZY_OR_NOW
10813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10816 # define LT_DLLAZY_OR_NOW DL_LAZY
10819 # define LT_DLLAZY_OR_NOW RTLD_NOW
10822 # define LT_DLLAZY_OR_NOW DL_NOW
10824 # define LT_DLLAZY_OR_NOW 0
10832 extern "C" void exit (int);
10835 void fnord() { int i=42;}
10838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10839 int status = $lt_dlunknown;
10843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10844 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10845 /* dlclose (self); */
10853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854 (eval $ac_link) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10858 (./conftest; exit; ) >&5 2>/dev/null
10860 case x$lt_status in
10861 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10862 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10863 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10866 # compilation failed
10867 lt_cv_dlopen_self=no
10874 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10875 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10877 if test "x$lt_cv_dlopen_self" = xyes; then
10878 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10879 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10880 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10881 if test "${lt_cv_dlopen_self_static+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 if test "$cross_compiling" = yes; then :
10885 lt_cv_dlopen_self_static=cross
10887 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10888 lt_status=$lt_dlunknown
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10890 "configure"
10891 #include "confdefs.h"
10900 # define LT_DLGLOBAL RTLD_GLOBAL
10903 # define LT_DLGLOBAL DL_GLOBAL
10905 # define LT_DLGLOBAL 0
10909 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10910 find out it does not work in some platform. */
10911 #ifndef LT_DLLAZY_OR_NOW
10913 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10916 # define LT_DLLAZY_OR_NOW DL_LAZY
10919 # define LT_DLLAZY_OR_NOW RTLD_NOW
10922 # define LT_DLLAZY_OR_NOW DL_NOW
10924 # define LT_DLLAZY_OR_NOW 0
10932 extern "C" void exit (int);
10935 void fnord() { int i=42;}
10938 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10939 int status = $lt_dlunknown;
10943 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10944 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10945 /* dlclose (self); */
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954 (eval $ac_link) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10958 (./conftest; exit; ) >&5 2>/dev/null
10960 case x$lt_status in
10961 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10962 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10963 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10966 # compilation failed
10967 lt_cv_dlopen_self_static=no
10974 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10975 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10978 CPPFLAGS="$save_CPPFLAGS"
10979 LDFLAGS="$save_LDFLAGS"
10984 case $lt_cv_dlopen_self in
10985 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10986 *) enable_dlopen_self=unknown ;;
10989 case $lt_cv_dlopen_self_static in
10990 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10991 *) enable_dlopen_self_static=unknown ;;
10996 # Report which library types will actually be built
10997 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10998 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10999 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11000 echo "${ECHO_T}$can_build_shared" >&6
11002 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11003 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11004 test "$can_build_shared" = "no" && enable_shared=no
11006 # On AIX, shared libraries and static libraries use the same namespace, and
11007 # are all built from PIC.
11010 test "$enable_shared" = yes && enable_static=no
11011 if test -n "$RANLIB"; then
11012 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11013 postinstall_cmds='$RANLIB $lib'
11018 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11019 test "$enable_shared" = yes && enable_static=no
11023 echo "$as_me:$LINENO: result: $enable_shared" >&5
11024 echo "${ECHO_T}$enable_shared" >&6
11026 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11027 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11028 # Make sure either enable_shared or enable_static is yes.
11029 test "$enable_shared" = yes || enable_static=yes
11030 echo "$as_me:$LINENO: result: $enable_static" >&5
11031 echo "${ECHO_T}$enable_static" >&6
11033 # The else clause should only fire when bootstrapping the
11034 # libtool distribution, otherwise you forgot to ship ltmain.sh
11035 # with your package, and you will get complaints that there are
11036 # no rules to generate ltmain.sh.
11037 if test -f "$ltmain"; then
11038 # See if we are running on zsh, and set the options which allow our commands through
11039 # without removal of \ escapes.
11040 if test -n "${ZSH_VERSION+set}" ; then
11041 setopt NO_GLOB_SUBST
11043 # Now quote all the things that may contain metacharacters while being
11044 # careful not to overquote the AC_SUBSTed values. We take copies of the
11045 # variables and quote the copies for generation of the libtool script.
11046 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11048 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11049 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11050 deplibs_check_method reload_flag reload_cmds need_locks \
11051 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11052 lt_cv_sys_global_symbol_to_c_name_address \
11053 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11054 old_postinstall_cmds old_postuninstall_cmds \
11058 lt_prog_compiler_wl \
11059 lt_prog_compiler_pic \
11060 lt_prog_compiler_static \
11061 lt_prog_compiler_no_builtin_flag \
11062 export_dynamic_flag_spec \
11063 thread_safe_flag_spec \
11064 whole_archive_flag_spec \
11065 enable_shared_with_static_runtimes \
11067 old_archive_from_new_cmds \
11072 compiler_lib_search_path \
11074 archive_expsym_cmds \
11076 postuninstall_cmds \
11077 old_archive_from_expsyms_cmds \
11078 allow_undefined_flag \
11079 no_undefined_flag \
11080 export_symbols_cmds \
11081 hardcode_libdir_flag_spec \
11082 hardcode_libdir_flag_spec_ld \
11083 hardcode_libdir_separator \
11084 hardcode_automatic \
11086 module_expsym_cmds \
11087 lt_cv_prog_compiler_c_o \
11089 include_expsyms; do
11092 old_archive_cmds | \
11093 old_archive_from_new_cmds | \
11095 archive_expsym_cmds | \
11097 module_expsym_cmds | \
11098 old_archive_from_expsyms_cmds | \
11099 export_symbols_cmds | \
11100 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11101 postinstall_cmds | postuninstall_cmds | \
11102 old_postinstall_cmds | old_postuninstall_cmds | \
11103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11104 # Double-quote double-evaled strings.
11105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11114 *'\$0 --fallback-echo"')
11115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11119 cfgfile="${ofile}T"
11120 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11122 { echo "$as_me:$LINENO: creating $ofile" >&5
11123 echo "$as_me: creating $ofile" >&6;}
11125 cat <<__EOF__ >> "$cfgfile"
11128 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11129 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11130 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11132 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11133 # Free Software Foundation, Inc.
11135 # This file is part of GNU Libtool:
11136 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11138 # This program is free software; you can redistribute it and/or modify
11139 # it under the terms of the GNU General Public License as published by
11140 # the Free Software Foundation; either version 2 of the License, or
11141 # (at your option) any later version.
11143 # This program is distributed in the hope that it will be useful, but
11144 # WITHOUT ANY WARRANTY; without even the implied warranty of
11145 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11146 # General Public License for more details.
11148 # You should have received a copy of the GNU General Public License
11149 # along with this program; if not, write to the Free Software
11150 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11152 # As a special exception to the GNU General Public License, if you
11153 # distribute this file as part of a program that contains a
11154 # configuration script generated by Autoconf, you may include it under
11155 # the same distribution terms that you use for the rest of that program.
11157 # A sed program that does not truncate output.
11160 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11161 Xsed="$SED -e 1s/^X//"
11163 # The HP-UX ksh and POSIX shell print the target directory to stdout
11164 # if CDPATH is set.
11165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11167 # The names of the tagged configurations supported by this script.
11170 # ### BEGIN LIBTOOL CONFIG
11172 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11174 # Shell to use when invoking shell scripts.
11177 # Whether or not to build shared libraries.
11178 build_libtool_libs=$enable_shared
11180 # Whether or not to build static libraries.
11181 build_old_libs=$enable_static
11183 # Whether or not to add -lc for building shared libraries.
11184 build_libtool_need_lc=$archive_cmds_need_lc
11186 # Whether or not to disallow shared libs when runtime libs are static
11187 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11189 # Whether or not to optimize for fast installation.
11190 fast_install=$enable_fast_install
11193 host_alias=$host_alias
11197 # The build system.
11198 build_alias=$build_alias
11202 # An echo program that does not interpret backslashes.
11207 AR_FLAGS=$lt_AR_FLAGS
11212 # LTCC compiler flags.
11213 LTCFLAGS=$lt_LTCFLAGS
11215 # A language-specific compiler.
11218 # Is the compiler the GNU C compiler?
11224 # The linker used to build libraries.
11227 # Whether we need hard or soft links.
11230 # A BSD-compatible nm program.
11233 # A symbol stripping program
11236 # Used to examine libraries when file_magic_cmd begins "file"
11237 MAGIC_CMD=$MAGIC_CMD
11239 # Used on cygwin: DLL creation program.
11242 # Used on cygwin: object dumper.
11245 # Used on cygwin: assembler.
11248 # The name of the directory that contains temporary libtool files.
11251 # How to create reloadable object files.
11252 reload_flag=$lt_reload_flag
11253 reload_cmds=$lt_reload_cmds
11255 # How to pass a linker flag through the compiler.
11256 wl=$lt_lt_prog_compiler_wl
11258 # Object file suffix (normally "o").
11259 objext="$ac_objext"
11261 # Old archive suffix (normally "a").
11264 # Shared library suffix (normally ".so").
11265 shrext_cmds='$shrext_cmds'
11267 # Executable file suffix (normally "").
11270 # Additional compiler flags for building library objects.
11271 pic_flag=$lt_lt_prog_compiler_pic
11274 # What is the maximum length of a command?
11275 max_cmd_len=$lt_cv_sys_max_cmd_len
11277 # Does compiler simultaneously support -c and -o options?
11278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11280 # Must we lock files when doing compilation?
11281 need_locks=$lt_need_locks
11283 # Do we need the lib prefix for modules?
11284 need_lib_prefix=$need_lib_prefix
11286 # Do we need a version for libraries?
11287 need_version=$need_version
11289 # Whether dlopen is supported.
11290 dlopen_support=$enable_dlopen
11292 # Whether dlopen of programs is supported.
11293 dlopen_self=$enable_dlopen_self
11295 # Whether dlopen of statically linked programs is supported.
11296 dlopen_self_static=$enable_dlopen_self_static
11298 # Compiler flag to prevent dynamic linking.
11299 link_static_flag=$lt_lt_prog_compiler_static
11301 # Compiler flag to turn off builtin functions.
11302 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11304 # Compiler flag to allow reflexive dlopens.
11305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11307 # Compiler flag to generate shared objects directly from archives.
11308 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11310 # Compiler flag to generate thread-safe objects.
11311 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11313 # Library versioning type.
11314 version_type=$version_type
11316 # Format of library name prefix.
11317 libname_spec=$lt_libname_spec
11319 # List of archive names. First name is the real one, the rest are links.
11320 # The last name is the one that the linker finds with -lNAME.
11321 library_names_spec=$lt_library_names_spec
11323 # The coded name of the library, if different from the real name.
11324 soname_spec=$lt_soname_spec
11326 # Commands used to build and install an old-style archive.
11328 old_archive_cmds=$lt_old_archive_cmds
11329 old_postinstall_cmds=$lt_old_postinstall_cmds
11330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11332 # Create an old-style archive from a shared archive.
11333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11335 # Create a temporary old-style archive to link instead of a shared archive.
11336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11338 # Commands used to build and install a shared archive.
11339 archive_cmds=$lt_archive_cmds
11340 archive_expsym_cmds=$lt_archive_expsym_cmds
11341 postinstall_cmds=$lt_postinstall_cmds
11342 postuninstall_cmds=$lt_postuninstall_cmds
11344 # Commands used to build a loadable module (assumed same as above if empty)
11345 module_cmds=$lt_module_cmds
11346 module_expsym_cmds=$lt_module_expsym_cmds
11348 # Commands to strip libraries.
11349 old_striplib=$lt_old_striplib
11350 striplib=$lt_striplib
11352 # Dependencies to place before the objects being linked to create a
11354 predep_objects=$lt_predep_objects
11356 # Dependencies to place after the objects being linked to create a
11358 postdep_objects=$lt_postdep_objects
11360 # Dependencies to place before the objects being linked to create a
11362 predeps=$lt_predeps
11364 # Dependencies to place after the objects being linked to create a
11366 postdeps=$lt_postdeps
11368 # The library search path used internally by the compiler when linking
11369 # a shared library.
11370 compiler_lib_search_path=$lt_compiler_lib_search_path
11372 # Method to check whether dependent libraries are shared objects.
11373 deplibs_check_method=$lt_deplibs_check_method
11375 # Command to use when deplibs_check_method == file_magic.
11376 file_magic_cmd=$lt_file_magic_cmd
11378 # Flag that allows shared libraries with undefined symbols to be built.
11379 allow_undefined_flag=$lt_allow_undefined_flag
11381 # Flag that forces no undefined symbols.
11382 no_undefined_flag=$lt_no_undefined_flag
11384 # Commands used to finish a libtool library installation in a directory.
11385 finish_cmds=$lt_finish_cmds
11387 # Same as above, but a single script fragment to be evaled but not shown.
11388 finish_eval=$lt_finish_eval
11390 # Take the output of nm and produce a listing of raw symbols and C names.
11391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11393 # Transform the output of nm in a proper C declaration
11394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11396 # Transform the output of nm in a C name address pair
11397 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11399 # This is the shared library runtime path variable.
11400 runpath_var=$runpath_var
11402 # This is the shared library path variable.
11403 shlibpath_var=$shlibpath_var
11405 # Is shlibpath searched before the hard-coded library search path?
11406 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11408 # How to hardcode a shared library path into an executable.
11409 hardcode_action=$hardcode_action
11411 # Whether we should hardcode library paths into libraries.
11412 hardcode_into_libs=$hardcode_into_libs
11414 # Flag to hardcode \$libdir into a binary during linking.
11415 # This must work even if \$libdir does not exist.
11416 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11418 # If ld is used when linking, flag to hardcode \$libdir into
11419 # a binary during linking. This must work even if \$libdir does
11421 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11423 # Whether we need a single -rpath flag with a separated argument.
11424 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11426 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11427 # resulting binary.
11428 hardcode_direct=$hardcode_direct
11430 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11431 # resulting binary.
11432 hardcode_minus_L=$hardcode_minus_L
11434 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11435 # the resulting binary.
11436 hardcode_shlibpath_var=$hardcode_shlibpath_var
11438 # Set to yes if building a shared library automatically hardcodes DIR into the library
11439 # and all subsequent libraries and executables linked against it.
11440 hardcode_automatic=$hardcode_automatic
11442 # Variables whose values should be saved in libtool wrapper scripts and
11443 # restored at relink time.
11444 variables_saved_for_relink="$variables_saved_for_relink"
11446 # Whether libtool must link a program against all its dependency libraries.
11447 link_all_deplibs=$link_all_deplibs
11449 # Compile-time system search path for libraries
11450 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11452 # Run-time system search path for libraries
11453 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11455 # Fix the shell variable \$srcfile for the compiler.
11456 fix_srcfile_path="$fix_srcfile_path"
11458 # Set to yes if exported symbols are required.
11459 always_export_symbols=$always_export_symbols
11461 # The commands to list exported symbols.
11462 export_symbols_cmds=$lt_export_symbols_cmds
11464 # The commands to extract the exported symbol list from a shared archive.
11465 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11467 # Symbols that should not be listed in the preloaded symbols.
11468 exclude_expsyms=$lt_exclude_expsyms
11470 # Symbols that must always be exported.
11471 include_expsyms=$lt_include_expsyms
11473 # ### END LIBTOOL CONFIG
11480 cat <<\EOF >> "$cfgfile"
11482 # AIX sometimes has problems with the GCC collect2 program. For some
11483 # reason, if we set the COLLECT_NAMES environment variable, the problems
11484 # vanish in a puff of smoke.
11485 if test "X${COLLECT_NAMES+set}" != Xset; then
11487 export COLLECT_NAMES
11493 # We use sed instead of cat because bash on DJGPP gets confused if
11494 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11495 # text mode, it properly converts lines to CR/LF. This bash problem
11496 # is reportedly fixed, but why not run on old versions too?
11497 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11499 mv -f "$cfgfile" "$ofile" || \
11500 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11504 # If there is no Makefile yet, we rely on a make rule to execute
11505 # `config.status --recheck' to rerun these tests and create the
11506 # libtool script then.
11507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11508 if test -f "$ltmain_in"; then
11509 test -f Makefile && make "$ltmain"
11515 ac_cpp='$CPP $CPPFLAGS'
11516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11523 # Check whether --with-tags or --without-tags was given.
11524 if test "${with_tags+set}" = set; then
11525 withval="$with_tags"
11526 tagnames="$withval"
11529 if test -f "$ltmain" && test -n "$tagnames"; then
11530 if test ! -f "${ofile}"; then
11531 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11532 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11535 if test -z "$LTCC"; then
11536 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11537 if test -z "$LTCC"; then
11538 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11539 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11542 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11545 if test -z "$LTCFLAGS"; then
11546 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11549 # Extract list of available tagged configurations in $ofile.
11550 # Note that this assumes the entire list is on one line.
11551 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11554 for tagname in $tagnames; do
11556 # Check whether tagname contains only valid characters
11557 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11559 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11560 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11561 { (exit 1); exit 1; }; }
11565 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11567 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11568 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11569 { (exit 1); exit 1; }; }
11572 # Update the list of available tags.
11573 if test -n "$tagname"; then
11574 echo appending configuration tag \"$tagname\" to $ofile
11578 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11579 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11580 (test "X$CXX" != "Xg++"))) ; then
11582 ac_cpp='$CXXCPP $CPPFLAGS'
11583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11590 archive_cmds_need_lc_CXX=no
11591 allow_undefined_flag_CXX=
11592 always_export_symbols_CXX=no
11593 archive_expsym_cmds_CXX=
11594 export_dynamic_flag_spec_CXX=
11595 hardcode_direct_CXX=no
11596 hardcode_libdir_flag_spec_CXX=
11597 hardcode_libdir_flag_spec_ld_CXX=
11598 hardcode_libdir_separator_CXX=
11599 hardcode_minus_L_CXX=no
11600 hardcode_shlibpath_var_CXX=unsupported
11601 hardcode_automatic_CXX=no
11603 module_expsym_cmds_CXX=
11604 link_all_deplibs_CXX=unknown
11605 old_archive_cmds_CXX=$old_archive_cmds
11606 no_undefined_flag_CXX=
11607 whole_archive_flag_spec_CXX=
11608 enable_shared_with_static_runtimes_CXX=no
11610 # Dependencies to place before and after the object being linked:
11611 predep_objects_CXX=
11612 postdep_objects_CXX=
11615 compiler_lib_search_path_CXX=
11617 # Source file extension for C++ test sources.
11620 # Object file extension for compiled C++ test sources.
11624 # Code to be used in simple compile tests
11625 lt_simple_compile_test_code="int some_variable = 0;\n"
11627 # Code to be used in simple link tests
11628 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11630 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11632 # If no C compiler was specified, use CC.
11635 # If no C compiler flags were specified, use CFLAGS.
11636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11638 # Allow CC to be a program name with arguments.
11642 # save warnings/boilerplate of simple test code
11643 ac_outfile=conftest.$ac_objext
11644 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11646 _lt_compiler_boilerplate=`cat conftest.err`
11649 ac_outfile=conftest.$ac_objext
11650 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11652 _lt_linker_boilerplate=`cat conftest.err`
11656 # Allow CC to be a program name with arguments.
11661 lt_save_with_gnu_ld=$with_gnu_ld
11662 lt_save_path_LD=$lt_cv_path_LD
11663 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11664 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11666 $as_unset lt_cv_prog_gnu_ld
11668 if test -n "${lt_cv_path_LDCXX+set}"; then
11669 lt_cv_path_LD=$lt_cv_path_LDCXX
11671 $as_unset lt_cv_path_LD
11673 test -z "${LDCXX+set}" || LD=$LDCXX
11677 for cc_temp in $compiler""; do
11679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11688 # We don't want -fno-exception wen compiling C++ code, so set the
11689 # no_builtin_flag separately
11690 if test "$GXX" = yes; then
11691 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11693 lt_prog_compiler_no_builtin_flag_CXX=
11696 if test "$GXX" = yes; then
11697 # Set up default GNU C++ configuration
11700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11701 if test "${with_gnu_ld+set}" = set; then
11702 withval="$with_gnu_ld"
11703 test "$withval" = no || with_gnu_ld=yes
11708 if test "$GCC" = yes; then
11709 # Check if gcc -print-prog-name=ld gives a path.
11710 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11714 # gcc leaves a trailing carriage return which upsets mingw
11715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11720 # Accept absolute paths.
11722 re_direlt='/[^/][^/]*/\.\./'
11723 # Canonicalize the pathname of ld
11724 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11725 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11726 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11728 test -z "$LD" && LD="$ac_prog"
11731 # If it fails, then pretend we aren't using GCC.
11735 # If it is relative, then search for the first ld in PATH.
11736 with_gnu_ld=unknown
11739 elif test "$with_gnu_ld" = yes; then
11740 echo "$as_me:$LINENO: checking for GNU ld" >&5
11741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11743 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11746 if test "${lt_cv_path_LD+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 if test -z "$LD"; then
11750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11751 for ac_dir in $PATH; do
11753 test -z "$ac_dir" && ac_dir=.
11754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11755 lt_cv_path_LD="$ac_dir/$ac_prog"
11756 # Check to see if the program is GNU ld. I'd rather use --version,
11757 # but apparently some variants of GNU ld only accept -v.
11758 # Break only if it was the GNU/non-GNU ld that we prefer.
11759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11760 *GNU* | *'with BFD'*)
11761 test "$with_gnu_ld" != no && break
11764 test "$with_gnu_ld" != yes && break
11771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11775 LD="$lt_cv_path_LD"
11776 if test -n "$LD"; then
11777 echo "$as_me:$LINENO: result: $LD" >&5
11778 echo "${ECHO_T}$LD" >&6
11780 echo "$as_me:$LINENO: result: no" >&5
11781 echo "${ECHO_T}no" >&6
11783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11785 { (exit 1); exit 1; }; }
11786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11792 case `$LD -v 2>&1 </dev/null` in
11793 *GNU* | *'with BFD'*)
11794 lt_cv_prog_gnu_ld=yes
11797 lt_cv_prog_gnu_ld=no
11801 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11803 with_gnu_ld=$lt_cv_prog_gnu_ld
11807 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11808 # archiving commands below assume that GNU ld is being used.
11809 if test "$with_gnu_ld" = yes; then
11810 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11811 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'
11813 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816 # If archive_cmds runs LD, not CC, wlarc should be empty
11817 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11818 # investigate it a little bit more. (MM)
11821 # ancient GNU ld didn't support --whole-archive et. al.
11822 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11823 grep 'no-whole-archive' > /dev/null; then
11824 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11826 whole_archive_flag_spec_CXX=
11832 # A generic and very simple default shared library creation
11833 # command for GNU C++ for the case where it uses the native
11834 # linker, instead of GNU ld. If possible, this setting should
11835 # overridden to take advantage of the native linker features on
11836 # the platform it is being used on.
11837 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11840 # Commands to make compiler produce verbose output that lists
11841 # what "hidden" libraries, object files and flags are used when
11842 # linking a shared library.
11843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11851 # PORTME: fill in a description of your system's C++ link characteristics
11852 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11857 # FIXME: insert proper C++ library support
11861 if test "$host_cpu" = ia64; then
11862 # On IA64, the linker does run time linking by default, so we don't
11863 # have to do anything special.
11864 aix_use_runtimelinking=no
11865 exp_sym_flag='-Bexport'
11868 aix_use_runtimelinking=no
11870 # Test if we are trying to use run time linking or normal
11871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11872 # need to do runtime linking.
11873 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11874 for ld_flag in $LDFLAGS; do
11877 aix_use_runtimelinking=yes
11885 exp_sym_flag='-bexport'
11886 no_entry_flag='-bnoentry'
11889 # When large executables or shared objects are built, AIX ld can
11890 # have problems creating the table of contents. If linking a library
11891 # or program results in "error TOC overflow" add -mminimal-toc to
11892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11895 archive_cmds_CXX=''
11896 hardcode_direct_CXX=yes
11897 hardcode_libdir_separator_CXX=':'
11898 link_all_deplibs_CXX=yes
11900 if test "$GXX" = yes; then
11901 case $host_os in aix4.[012]|aix4.[012].*)
11902 # We only want to do this on AIX 4.2 and lower, the check
11903 # below for broken collect2 doesn't work under 4.3+
11904 collect2name=`${CC} -print-prog-name=collect2`
11905 if test -f "$collect2name" && \
11906 strings "$collect2name" | grep resolve_lib_name >/dev/null
11908 # We have reworked collect2
11909 hardcode_direct_CXX=yes
11911 # We have old collect2
11912 hardcode_direct_CXX=unsupported
11913 # It fails to find uninstalled libraries when the uninstalled
11914 # path is not listed in the libpath. Setting hardcode_minus_L
11915 # to unsupported forces relinking
11916 hardcode_minus_L_CXX=yes
11917 hardcode_libdir_flag_spec_CXX='-L$libdir'
11918 hardcode_libdir_separator_CXX=
11922 shared_flag='-shared'
11923 if test "$aix_use_runtimelinking" = yes; then
11924 shared_flag="$shared_flag "'${wl}-G'
11928 if test "$host_cpu" = ia64; then
11929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11930 # chokes on -Wl,-G. The following line is correct:
11933 if test "$aix_use_runtimelinking" = yes; then
11934 shared_flag='${wl}-G'
11936 shared_flag='${wl}-bM:SRE'
11941 # It seems that -bexpall does not export symbols beginning with
11942 # underscore (_), so it is better to generate a list of symbols to export.
11943 always_export_symbols_CXX=yes
11944 if test "$aix_use_runtimelinking" = yes; then
11945 # Warning - without using the other runtime loading flags (-brtl),
11946 # -berok will link without error, but may produce a broken library.
11947 allow_undefined_flag_CXX='-berok'
11948 # Determine the default libpath from the value encoded in an empty executable.
11949 cat >conftest.$ac_ext <<_ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966 (eval $ac_link) 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_cxx_werror_flag"
11974 || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest$ac_exeext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11989 # Check for a 64-bit object if we didn't find anything.
11990 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; }
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11997 rm -f conftest.err conftest.$ac_objext \
11998 conftest$ac_exeext conftest.$ac_ext
11999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12001 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12003 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"
12005 if test "$host_cpu" = ia64; then
12006 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12007 allow_undefined_flag_CXX="-z nodefs"
12008 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"
12010 # Determine the default libpath from the value encoded in an empty executable.
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>conftest.er1
12030 grep -v '^ *+' conftest.er1 >conftest.err
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_cxx_werror_flag"
12036 || test ! -s conftest.err'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12051 # Check for a 64-bit object if we didn't find anything.
12052 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; }
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12059 rm -f conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12063 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12064 # Warning - without using the other run time loading flags,
12065 # -berok will link without error, but may produce a broken library.
12066 no_undefined_flag_CXX=' ${wl}-bernotok'
12067 allow_undefined_flag_CXX=' ${wl}-berok'
12068 # Exported symbols can be pulled into shared objects from archives
12069 whole_archive_flag_spec_CXX='$convenience'
12070 archive_cmds_need_lc_CXX=yes
12071 # This is similar to how AIX traditionally builds its shared libraries.
12072 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'
12078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12079 allow_undefined_flag_CXX=unsupported
12080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12081 # support --undefined. This deserves some investigation. FIXME
12082 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12089 case $cc_basename in
12091 # FIXME: insert proper C++ library support
12097 cygwin* | mingw* | pw32*)
12098 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12099 # as there is no search path for DLLs.
12100 hardcode_libdir_flag_spec_CXX='-L$libdir'
12101 allow_undefined_flag_CXX=unsupported
12102 always_export_symbols_CXX=no
12103 enable_shared_with_static_runtimes_CXX=yes
12105 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12106 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'
12107 # If the export-symbols file already is a .def file (1st line
12108 # is EXPORTS), use it as is; otherwise, prepend...
12109 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12110 cp $export_symbols $output_objdir/$soname.def;
12112 echo EXPORTS > $output_objdir/$soname.def;
12113 cat $export_symbols >> $output_objdir/$soname.def;
12115 $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'
12120 darwin* | rhapsody*)
12122 rhapsody* | darwin1.[012])
12123 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12126 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12127 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12129 case ${MACOSX_DEPLOYMENT_TARGET} in
12131 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12134 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12140 archive_cmds_need_lc_CXX=no
12141 hardcode_direct_CXX=no
12142 hardcode_automatic_CXX=yes
12143 hardcode_shlibpath_var_CXX=unsupported
12144 whole_archive_flag_spec_CXX=''
12145 link_all_deplibs_CXX=yes
12147 if test "$GXX" = yes ; then
12148 lt_int_apple_cc_single_mod=no
12149 output_verbose_link_cmd='echo'
12150 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12151 lt_int_apple_cc_single_mod=yes
12153 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12154 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12156 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'
12158 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12159 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12160 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12161 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}'
12163 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}'
12165 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}'
12167 case $cc_basename in
12169 output_verbose_link_cmd='echo'
12170 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'
12171 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12173 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}'
12174 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}'
12184 case $cc_basename in
12186 # FIXME: insert proper C++ library support
12190 # Green Hills C++ Compiler
12191 # FIXME: insert proper C++ library support
12195 # FIXME: insert proper C++ library support
12201 # C++ shared libraries reported to be fairly broken before switch to ELF
12205 archive_cmds_need_lc_CXX=no
12207 freebsd* | kfreebsd*-gnu | dragonfly*)
12208 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12215 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12216 hardcode_libdir_separator_CXX=:
12217 export_dynamic_flag_spec_CXX='${wl}-E'
12218 hardcode_direct_CXX=yes
12219 hardcode_minus_L_CXX=yes # Not in the search PATH,
12220 # but as the default
12221 # location of the library.
12223 case $cc_basename in
12225 # FIXME: insert proper C++ library support
12229 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'
12230 # Commands to make compiler produce verbose output that lists
12231 # what "hidden" libraries, object files and flags are used when
12232 # linking a shared library.
12234 # There doesn't appear to be a way to prevent this compiler from
12235 # explicitly linking system object files so we need to strip them
12236 # from the output so that they don't get included in the library
12238 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'
12241 if test "$GXX" = yes; then
12242 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'
12244 # FIXME: insert proper C++ library support
12251 if test $with_gnu_ld = no; then
12252 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12253 hardcode_libdir_separator_CXX=:
12257 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12260 export_dynamic_flag_spec_CXX='${wl}-E'
12266 hardcode_direct_CXX=no
12267 hardcode_shlibpath_var_CXX=no
12270 hardcode_direct_CXX=yes
12271 hardcode_minus_L_CXX=yes # Not in the search PATH,
12272 # but as the default
12273 # location of the library.
12277 case $cc_basename in
12279 # FIXME: insert proper C++ library support
12285 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12288 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12291 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12294 # Commands to make compiler produce verbose output that lists
12295 # what "hidden" libraries, object files and flags are used when
12296 # linking a shared library.
12298 # There doesn't appear to be a way to prevent this compiler from
12299 # explicitly linking system object files so we need to strip them
12300 # from the output so that they don't get included in the library
12302 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'
12305 if test "$GXX" = yes; then
12306 if test $with_gnu_ld = no; then
12309 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12312 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12315 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'
12320 # FIXME: insert proper C++ library support
12327 hardcode_direct_CXX=no
12328 hardcode_shlibpath_var_CXX=no
12329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12330 export_dynamic_flag_spec_CXX='${wl}-E'
12331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12332 # Instead, shared libraries are loaded at an image base (0x10000000 by
12333 # default) and relocated if they conflict, which is a slow very memory
12334 # consuming and fragmenting process. To avoid this, we pick a random,
12335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12337 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'
12338 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'
12341 case $cc_basename in
12344 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'
12346 # Archives containing C++ object files must be created using
12347 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12348 # necessary to make sure instantiated templates are included
12350 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12353 if test "$GXX" = yes; then
12354 if test "$with_gnu_ld" = no; then
12355 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'
12357 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'
12360 link_all_deplibs_CXX=yes
12363 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12364 hardcode_libdir_separator_CXX=:
12367 case $cc_basename in
12369 # Kuck and Associates, Inc. (KAI) C++ Compiler
12371 # KCC will only create a shared library if the output file
12372 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12373 # to its proper name (with version) after linking.
12374 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'
12375 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'
12376 # Commands to make compiler produce verbose output that lists
12377 # what "hidden" libraries, object files and flags are used when
12378 # linking a shared library.
12380 # There doesn't appear to be a way to prevent this compiler from
12381 # explicitly linking system object files so we need to strip them
12382 # from the output so that they don't get included in the library
12384 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'
12386 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12389 # Archives containing C++ object files must be created using
12390 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12391 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12396 # version 8.0 and above of icpc choke on multiply defined symbols
12397 # if we add $predep_objects and $postdep_objects, however 7.1 and
12398 # earlier do not add the objects themselves.
12399 case `$CC -V 2>&1` in
12401 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402 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'
12404 *) # Version 8.0 or newer
12407 ia64*) tmp_idyn=' -i_dynamic';;
12409 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410 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'
12413 archive_cmds_need_lc_CXX=no
12414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12415 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12416 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12419 # Portland Group C++ compiler
12420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12421 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'
12423 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12424 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12425 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'
12429 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430 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'
12432 runpath_var=LD_RUN_PATH
12433 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12434 hardcode_libdir_separator_CXX=:
12436 # Commands to make compiler produce verbose output that lists
12437 # what "hidden" libraries, object files and flags are used when
12438 # linking a shared library.
12440 # There doesn't appear to be a way to prevent this compiler from
12441 # explicitly linking system object files so we need to strip them
12442 # from the output so that they don't get included in the library
12444 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'
12449 # FIXME: insert proper C++ library support
12453 # FIXME: insert proper C++ library support
12457 case $cc_basename in
12459 # FIXME: insert proper C++ library support
12463 # FIXME: insert proper C++ library support
12469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12470 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12472 hardcode_libdir_flag_spec_CXX='-R$libdir'
12473 hardcode_direct_CXX=yes
12474 hardcode_shlibpath_var_CXX=no
12476 # Workaround some broken pre-1.5 toolchains
12477 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12480 # C++ shared libraries are fairly broken
12484 hardcode_direct_CXX=yes
12485 hardcode_shlibpath_var_CXX=no
12486 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12489 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12490 export_dynamic_flag_spec_CXX='${wl}-E'
12491 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12493 output_verbose_link_cmd='echo'
12496 case $cc_basename in
12498 # Kuck and Associates, Inc. (KAI) C++ Compiler
12500 # KCC will only create a shared library if the output file
12501 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12502 # to its proper name (with version) after linking.
12503 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'
12505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12506 hardcode_libdir_separator_CXX=:
12508 # Archives containing C++ object files must be created using
12509 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12510 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12514 # Rational C++ 2.4.1
12515 # FIXME: insert proper C++ library support
12519 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12520 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'
12522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12523 hardcode_libdir_separator_CXX=:
12525 # Commands to make compiler produce verbose output that lists
12526 # what "hidden" libraries, object files and flags are used when
12527 # linking a shared library.
12529 # There doesn't appear to be a way to prevent this compiler from
12530 # explicitly linking system object files so we need to strip them
12531 # from the output so that they don't get included in the library
12533 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'
12536 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12538 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'
12540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12541 hardcode_libdir_separator_CXX=:
12543 # Commands to make compiler produce verbose output that lists
12544 # what "hidden" libraries, object files and flags are used when
12545 # linking a shared library.
12546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12549 # FIXME: insert proper C++ library support
12556 case $cc_basename in
12558 # Kuck and Associates, Inc. (KAI) C++ Compiler
12560 # KCC will only create a shared library if the output file
12561 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12562 # to its proper name (with version) after linking.
12563 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'
12565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12566 hardcode_libdir_separator_CXX=:
12568 # Archives containing C++ object files must be created using
12569 # the KAI C++ compiler.
12570 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12573 # Rational C++ 2.4.1
12574 # FIXME: insert proper C++ library support
12578 allow_undefined_flag_CXX=' -expect_unresolved \*'
12579 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'
12580 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12581 echo "-hidden">> $lib.exp~
12582 $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~
12585 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12586 hardcode_libdir_separator_CXX=:
12588 # Commands to make compiler produce verbose output that lists
12589 # what "hidden" libraries, object files and flags are used when
12590 # linking a shared library.
12592 # There doesn't appear to be a way to prevent this compiler from
12593 # explicitly linking system object files so we need to strip them
12594 # from the output so that they don't get included in the library
12596 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'
12599 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12600 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12601 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'
12603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12604 hardcode_libdir_separator_CXX=:
12606 # Commands to make compiler produce verbose output that lists
12607 # what "hidden" libraries, object files and flags are used when
12608 # linking a shared library.
12609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12612 # FIXME: insert proper C++ library support
12619 # FIXME: insert proper C++ library support
12623 case $cc_basename in
12626 # FIXME: insert proper C++ library support
12631 # FIXME: insert proper C++ library support
12635 # FIXME: insert proper C++ library support
12641 case $cc_basename in
12643 # Sun C++ 4.2, 5.x and Centerline C++
12644 archive_cmds_need_lc_CXX=yes
12645 no_undefined_flag_CXX=' -zdefs'
12646 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12647 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12648 $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'
12650 hardcode_libdir_flag_spec_CXX='-R$libdir'
12651 hardcode_shlibpath_var_CXX=no
12653 solaris2.[0-5] | solaris2.[0-5].*) ;;
12655 # The C++ compiler is used as linker so we must use $wl
12656 # flag to pass the commands to the underlying system
12657 # linker. We must also pass each convience library through
12658 # to the system linker between allextract/defaultextract.
12659 # The C++ compiler will combine linker options so we
12660 # cannot just pass the convience library names through
12662 # Supported since Solaris 2.6 (maybe 2.5.1?)
12663 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'
12666 link_all_deplibs_CXX=yes
12668 output_verbose_link_cmd='echo'
12670 # Archives containing C++ object files must be created using
12671 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12672 # necessary to make sure instantiated templates are included
12674 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12677 # Green Hills C++ Compiler
12678 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12680 # The C++ compiler must be used to create the archive.
12681 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12684 # GNU C++ compiler with Solaris linker
12685 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12686 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12687 if $CC --version | grep -v '^2\.7' > /dev/null; then
12688 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12689 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12690 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12692 # Commands to make compiler produce verbose output that lists
12693 # what "hidden" libraries, object files and flags are used when
12694 # linking a shared library.
12695 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12697 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12699 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12700 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12701 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12703 # Commands to make compiler produce verbose output that lists
12704 # what "hidden" libraries, object files and flags are used when
12705 # linking a shared library.
12706 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12709 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12715 no_undefined_flag_CXX='${wl}-z,text'
12716 archive_cmds_need_lc_CXX=no
12717 hardcode_shlibpath_var_CXX=no
12718 runpath_var='LD_RUN_PATH'
12720 case $cc_basename in
12722 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12723 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12726 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12727 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12731 sysv5* | sco3.2v5* | sco5v6*)
12732 # Note: We can NOT use -z defs as we might desire, because we do not
12733 # link with -lc, and that would cause any symbols used from libc to
12734 # always be unresolved, which means just about no library would
12735 # ever link correctly. If we're not using GNU ld we use -z text
12736 # though, which does catch some bad symbols but isn't as heavy-handed
12738 # For security reasons, it is highly recommended that you always
12739 # use absolute paths for naming shared libraries, and exclude the
12740 # DT_RUNPATH tag from executables and libraries. But doing so
12741 # requires that you compile everything twice, which is a pain.
12742 # So that behaviour is only enabled if SCOABSPATH is set to a
12743 # non-empty value in the environment. Most likely only useful for
12744 # creating official distributions of packages.
12745 # This is a hack until libtool officially supports absolute path
12746 # names for shared libraries.
12747 no_undefined_flag_CXX='${wl}-z,text'
12748 allow_undefined_flag_CXX='${wl}-z,nodefs'
12749 archive_cmds_need_lc_CXX=no
12750 hardcode_shlibpath_var_CXX=no
12751 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12752 hardcode_libdir_separator_CXX=':'
12753 link_all_deplibs_CXX=yes
12754 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12755 runpath_var='LD_RUN_PATH'
12757 case $cc_basename in
12759 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12760 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12763 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12764 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12769 case $cc_basename in
12771 # NonStop-UX NCC 3.20
12772 # FIXME: insert proper C++ library support
12776 # FIXME: insert proper C++ library support
12782 # FIXME: insert proper C++ library support
12786 # FIXME: insert proper C++ library support
12790 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12791 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12792 test "$ld_shlibs_CXX" = no && can_build_shared=no
12798 cat > conftest.$ac_ext <<EOF
12802 Foo (void) { a = 0; }
12808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12809 (eval $ac_compile) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; then
12813 # Parse the compiler output and extract the necessary
12814 # objects, libraries and library flags.
12816 # Sentinel used to keep track of whether or not we are before
12817 # the conftest object file.
12818 pre_test_object_deps_done=no
12820 # The `*' in the case matches for architectures that use `case' in
12821 # $output_verbose_cmd can trigger glob expansion during the loop
12822 # eval without this substitution.
12823 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12825 for p in `eval $output_verbose_link_cmd`; do
12829 # Some compilers place space between "-{L,R}" and the path.
12830 # Remove the space.
12831 if test $p = "-L" \
12832 || test $p = "-R"; then
12839 if test "$pre_test_object_deps_done" = no; then
12842 # Internal compiler library paths should come after those
12843 # provided the user. The postdeps already come after the
12844 # user supplied libs so there is no need to process them.
12845 if test -z "$compiler_lib_search_path_CXX"; then
12846 compiler_lib_search_path_CXX="${prev}${p}"
12848 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12851 # The "-l" case would never come before the object being
12852 # linked, so don't bother handling this case.
12855 if test -z "$postdeps_CXX"; then
12856 postdeps_CXX="${prev}${p}"
12858 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12864 # This assumes that the test object file only shows up
12865 # once in the compiler output.
12866 if test "$p" = "conftest.$objext"; then
12867 pre_test_object_deps_done=yes
12871 if test "$pre_test_object_deps_done" = no; then
12872 if test -z "$predep_objects_CXX"; then
12873 predep_objects_CXX="$p"
12875 predep_objects_CXX="$predep_objects_CXX $p"
12878 if test -z "$postdep_objects_CXX"; then
12879 postdep_objects_CXX="$p"
12881 postdep_objects_CXX="$postdep_objects_CXX $p"
12886 *) ;; # Ignore the rest.
12894 echo "libtool.m4: error: problem compiling CXX test program"
12897 $rm -f confest.$objext
12899 # PORTME: override above test on systems where it is broken
12902 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12903 # hack all around it, let's just trust "g++" to DTRT.
12904 predep_objects_CXX=
12905 postdep_objects_CXX=
12910 case $cc_basename in
12912 # Adding this requires a known-good setup of shared libraries for
12913 # Sun compiler versions before 5.6, else PIC objects from an old
12914 # archive will be linked into the output, leading to subtle bugs.
12915 postdeps_CXX='-lCstd -lCrun'
12922 case " $postdeps_CXX " in
12923 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12926 lt_prog_compiler_wl_CXX=
12927 lt_prog_compiler_pic_CXX=
12928 lt_prog_compiler_static_CXX=
12930 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12931 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12933 # C++ specific cases for pic, static, wl, etc.
12934 if test "$GXX" = yes; then
12935 lt_prog_compiler_wl_CXX='-Wl,'
12936 lt_prog_compiler_static_CXX='-static'
12940 # All AIX code is PIC.
12941 if test "$host_cpu" = ia64; then
12942 # AIX 5 now supports IA64 processor
12943 lt_prog_compiler_static_CXX='-Bstatic'
12947 # FIXME: we need at least 68020 code to build shared libraries, but
12948 # adding the `-m68020' flag to GCC prevents building anything better,
12950 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12952 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12953 # PIC is the default for these OSes.
12955 mingw* | os2* | pw32*)
12956 # This hack is so that the source file can tell whether it is being
12957 # built for inclusion in a dll (and should export symbols for example).
12958 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12960 darwin* | rhapsody*)
12961 # PIC is the default on this platform
12962 # Common symbols not allowed in MH_DYLIB files
12963 lt_prog_compiler_pic_CXX='-fno-common'
12966 # DJGPP does not support shared libraries at all
12967 lt_prog_compiler_pic_CXX=
12970 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12971 # Instead, we relocate shared libraries at runtime.
12974 if test -d /usr/nec; then
12975 lt_prog_compiler_pic_CXX=-Kconform_pic
12979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12980 # not for PA HP-UX.
12985 lt_prog_compiler_pic_CXX='-fPIC'
12990 lt_prog_compiler_pic_CXX='-fPIC'
12996 # All AIX code is PIC.
12997 if test "$host_cpu" = ia64; then
12998 # AIX 5 now supports IA64 processor
12999 lt_prog_compiler_static_CXX='-Bstatic'
13001 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13005 case $cc_basename in
13007 # Green Hills C++ Compiler
13008 # _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"
13013 # PIC is the default on this platform
13014 # Common symbols not allowed in MH_DYLIB files
13015 case $cc_basename in
13017 lt_prog_compiler_pic_CXX='-qnocommon'
13018 lt_prog_compiler_wl_CXX='-Wl,'
13023 case $cc_basename in
13025 lt_prog_compiler_pic_CXX='-KPIC'
13028 # Green Hills C++ Compiler
13029 lt_prog_compiler_pic_CXX='-pic'
13035 freebsd* | kfreebsd*-gnu | dragonfly*)
13036 # FreeBSD uses GNU C++
13038 hpux9* | hpux10* | hpux11*)
13039 case $cc_basename in
13041 lt_prog_compiler_wl_CXX='-Wl,'
13042 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13043 if test "$host_cpu" != ia64; then
13044 lt_prog_compiler_pic_CXX='+Z'
13048 lt_prog_compiler_wl_CXX='-Wl,'
13049 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13055 lt_prog_compiler_pic_CXX='+Z'
13064 # This is c89, which is MS Visual C++ (no shared libs)
13065 # Anyone wants to do a port?
13067 irix5* | irix6* | nonstopux*)
13068 case $cc_basename in
13070 lt_prog_compiler_wl_CXX='-Wl,'
13071 lt_prog_compiler_static_CXX='-non_shared'
13072 # CC pic flag -KPIC is the default.
13079 case $cc_basename in
13082 lt_prog_compiler_wl_CXX='--backend -Wl,'
13083 lt_prog_compiler_pic_CXX='-fPIC'
13087 lt_prog_compiler_wl_CXX='-Wl,'
13088 lt_prog_compiler_pic_CXX='-KPIC'
13089 lt_prog_compiler_static_CXX='-static'
13092 # Portland Group C++ compiler.
13093 lt_prog_compiler_wl_CXX='-Wl,'
13094 lt_prog_compiler_pic_CXX='-fpic'
13095 lt_prog_compiler_static_CXX='-Bstatic'
13099 # Make sure the PIC flag is empty. It appears that all Alpha
13100 # Linux and Compaq Tru64 Unix objects are PIC.
13101 lt_prog_compiler_pic_CXX=
13102 lt_prog_compiler_static_CXX='-non_shared'
13113 case $cc_basename in
13115 lt_prog_compiler_pic_CXX='-W c,exportall'
13123 osf3* | osf4* | osf5*)
13124 case $cc_basename in
13126 lt_prog_compiler_wl_CXX='--backend -Wl,'
13129 # Rational C++ 2.4.1
13130 lt_prog_compiler_pic_CXX='-pic'
13133 # Digital/Compaq C++
13134 lt_prog_compiler_wl_CXX='-Wl,'
13135 # Make sure the PIC flag is empty. It appears that all Alpha
13136 # Linux and Compaq Tru64 Unix objects are PIC.
13137 lt_prog_compiler_pic_CXX=
13138 lt_prog_compiler_static_CXX='-non_shared'
13147 case $cc_basename in
13149 # Sun C++ 4.2, 5.x and Centerline C++
13150 lt_prog_compiler_pic_CXX='-KPIC'
13151 lt_prog_compiler_static_CXX='-Bstatic'
13152 lt_prog_compiler_wl_CXX='-Qoption ld '
13155 # Green Hills C++ Compiler
13156 lt_prog_compiler_pic_CXX='-PIC'
13163 case $cc_basename in
13166 lt_prog_compiler_pic_CXX='-pic'
13167 lt_prog_compiler_static_CXX='-Bstatic'
13171 lt_prog_compiler_pic_CXX='-pic'
13178 case $cc_basename in
13180 # NonStop-UX NCC 3.20
13181 lt_prog_compiler_pic_CXX='-KPIC'
13187 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13188 case $cc_basename in
13190 lt_prog_compiler_wl_CXX='-Wl,'
13191 lt_prog_compiler_pic_CXX='-KPIC'
13192 lt_prog_compiler_static_CXX='-Bstatic'
13199 lt_prog_compiler_can_build_shared_CXX=no
13204 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13205 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13208 # Check to make sure the PIC flag actually works.
13210 if test -n "$lt_prog_compiler_pic_CXX"; then
13212 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13213 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13214 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 lt_prog_compiler_pic_works_CXX=no
13218 ac_outfile=conftest.$ac_objext
13219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13220 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13221 # Insert the option either (1) after the last *FLAGS variable, or
13222 # (2) before a word containing "conftest.", or (3) at the end.
13223 # Note that $ac_compile itself does not contain backslashes and begins
13224 # with a dollar sign (not a hyphen), so the echo should work correctly.
13225 # The option is referenced via a variable to avoid confusing sed.
13226 lt_compile=`echo "$ac_compile" | $SED \
13227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13229 -e 's:$: $lt_compiler_flag:'`
13230 (eval echo "\"\$as_me:13230: $lt_compile\"" >&5)
13231 (eval "$lt_compile" 2>conftest.err)
13233 cat conftest.err >&5
13234 echo "$as_me:13234: \$? = $ac_status" >&5
13235 if (exit $ac_status) && test -s "$ac_outfile"; then
13236 # The compiler can only warn and ignore the option if not recognized
13237 # So say no if there are warnings other than the usual output.
13238 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13241 lt_prog_compiler_pic_works_CXX=yes
13247 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13248 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13250 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13251 case $lt_prog_compiler_pic_CXX in
13253 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13256 lt_prog_compiler_pic_CXX=
13257 lt_prog_compiler_can_build_shared_CXX=no
13262 # For platforms which do not support PIC, -DPIC is meaningless:
13264 lt_prog_compiler_pic_CXX=
13267 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13272 # Check to make sure the static flag actually works.
13274 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13275 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13276 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13277 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 lt_prog_compiler_static_works_CXX=no
13281 save_LDFLAGS="$LDFLAGS"
13282 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13283 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13284 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13285 # The linker can only warn and ignore the option if not recognized
13286 # So say no if there are warnings
13287 if test -s conftest.err; then
13288 # Append any errors to the config.log.
13289 cat conftest.err 1>&5
13290 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13292 if diff conftest.exp conftest.er2 >/dev/null; then
13293 lt_prog_compiler_static_works_CXX=yes
13296 lt_prog_compiler_static_works_CXX=yes
13300 LDFLAGS="$save_LDFLAGS"
13303 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13304 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13306 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13309 lt_prog_compiler_static_CXX=
13313 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13314 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13315 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 lt_cv_prog_compiler_c_o_CXX=no
13319 $rm -r conftest 2>/dev/null
13323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13325 lt_compiler_flag="-o out/conftest2.$ac_objext"
13326 # Insert the option either (1) after the last *FLAGS variable, or
13327 # (2) before a word containing "conftest.", or (3) at the end.
13328 # Note that $ac_compile itself does not contain backslashes and begins
13329 # with a dollar sign (not a hyphen), so the echo should work correctly.
13330 lt_compile=`echo "$ac_compile" | $SED \
13331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13333 -e 's:$: $lt_compiler_flag:'`
13334 (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
13335 (eval "$lt_compile" 2>out/conftest.err)
13337 cat out/conftest.err >&5
13338 echo "$as_me:13338: \$? = $ac_status" >&5
13339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13341 # The compiler can only warn and ignore the option if not recognized
13342 # So say no if there are warnings
13343 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13346 lt_cv_prog_compiler_c_o_CXX=yes
13351 # SGI C++ compiler will create directory out/ii_files/ for
13352 # template instantiation
13353 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13354 $rm out/* && rmdir out
13360 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13361 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13364 hard_links="nottested"
13365 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13366 # do not overwrite the value of need_locks provided by the user
13367 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13368 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13373 ln conftest.a conftest.b 2>&5 || hard_links=no
13374 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13375 echo "$as_me:$LINENO: result: $hard_links" >&5
13376 echo "${ECHO_T}$hard_links" >&6
13377 if test "$hard_links" = no; then
13378 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13379 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13386 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13387 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13389 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13392 # If we're using GNU nm, then we don't want the "-C" option.
13393 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13394 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13395 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'
13397 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'
13401 export_symbols_cmds_CXX="$ltdll_cmds"
13404 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'
13407 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13411 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13412 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13413 test "$ld_shlibs_CXX" = no && can_build_shared=no
13416 # Do we need to explicitly link libc?
13418 case "x$archive_cmds_need_lc_CXX" in
13420 # Assume -lc should be added
13421 archive_cmds_need_lc_CXX=yes
13423 if test "$enable_shared" = yes && test "$GCC" = yes; then
13424 case $archive_cmds_CXX in
13426 # FIXME: we may have to deal with multi-command sequences.
13429 # Test whether the compiler implicitly links with -lc since on some
13430 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13431 # to ld, don't add -lc before -lgcc.
13432 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13433 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } 2>conftest.err; then
13444 libobjs=conftest.$ac_objext
13446 wl=$lt_prog_compiler_wl_CXX
13447 pic_flag=$lt_prog_compiler_pic_CXX
13453 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13454 allow_undefined_flag_CXX=
13455 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13456 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }
13461 archive_cmds_need_lc_CXX=no
13463 archive_cmds_need_lc_CXX=yes
13465 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13467 cat conftest.err 1>&5
13470 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13471 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13478 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13479 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13480 library_names_spec=
13481 libname_spec='lib$name'
13485 postuninstall_cmds=
13489 shlibpath_overrides_runpath=unknown
13491 dynamic_linker="$host_os ld.so"
13492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13493 if test "$GCC" = yes; then
13494 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13495 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13496 # if the path contains ";" then we assume it to be the separator
13497 # otherwise default to the standard path separator (i.e. ":") - it is
13498 # assumed that no part of a normal pathname contains ";" but that should
13499 # okay in the real world where ";" in dirpaths is itself problematic.
13500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13507 need_lib_prefix=unknown
13508 hardcode_into_libs=no
13510 # when you set need_version to no, make sure it does not cause -set_version
13511 # flags to be left without arguments
13512 need_version=unknown
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13518 shlibpath_var=LIBPATH
13520 # AIX 3 has no versioning support, so we append a major version to the name.
13521 soname_spec='${libname}${release}${shared_ext}$major'
13528 hardcode_into_libs=yes
13529 if test "$host_cpu" = ia64; then
13530 # AIX 5 supports IA64
13531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13532 shlibpath_var=LD_LIBRARY_PATH
13534 # With GCC up to 2.95.x, collect2 would create an import file
13535 # for dependence libraries. The import file would start with
13536 # the line `#! .'. This would cause the generated library to
13537 # depend on `.', always an invalid library. This was fixed in
13538 # development snapshots of GCC prior to 3.0.
13540 aix4 | aix4.[01] | aix4.[01].*)
13541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13543 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13546 can_build_shared=no
13550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13551 # soname into executable. Probably we can add versioning support to
13552 # collect2, so additional links can be useful in future.
13553 if test "$aix_use_runtimelinking" = yes; then
13554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13555 # instead of lib<name>.a to let people know that these are not
13556 # typical AIX shared libraries.
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559 # We preserve .a as extension for shared libraries through AIX4.2
13560 # and later when we are not doing run time linking.
13561 library_names_spec='${libname}${release}.a $libname.a'
13562 soname_spec='${libname}${release}${shared_ext}$major'
13564 shlibpath_var=LIBPATH
13569 library_names_spec='$libname.ixlibrary $libname.a'
13570 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13571 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'
13575 library_names_spec='${libname}${shared_ext}'
13576 dynamic_linker="$host_os ld.so"
13577 shlibpath_var=LIBRARY_PATH
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584 soname_spec='${libname}${release}${shared_ext}$major'
13585 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13586 shlibpath_var=LD_LIBRARY_PATH
13587 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13588 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13589 # the default ld.so.conf also contains /usr/contrib/lib and
13590 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13591 # libtool to hard-code these into programs
13594 cygwin* | mingw* | pw32*)
13595 version_type=windows
13600 case $GCC,$host_os in
13601 yes,cygwin* | yes,mingw* | yes,pw32*)
13602 library_names_spec='$libname.dll.a'
13603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13604 postinstall_cmds='base_file=`basename \${file}`~
13605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13606 dldir=$destdir/`dirname \$dlpath`~
13607 test -d \$dldir || mkdir -p \$dldir~
13608 $install_prog $dir/$dlname \$dldir/$dlname~
13609 chmod a+x \$dldir/$dlname'
13610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13611 dlpath=$dir/\$dldll~
13613 shlibpath_overrides_runpath=yes
13617 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13618 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13619 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13622 # MinGW DLLs use traditional 'lib' prefix
13623 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13624 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13625 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13626 # It is most probably a Windows format PATH printed by
13627 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13628 # path with ; separators, and with drive letters. We can handle the
13629 # drive letters (cygwin fileutils understands them), so leave them,
13630 # especially as we might pass files found there to a mingw objdump,
13631 # which wouldn't understand a cygwinified path. Ahh.
13632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13638 # pw32 DLLs use 'pw' prefix rather than 'lib'
13639 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13645 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13648 dynamic_linker='Win32 ld.exe'
13649 # FIXME: first we should search . and the directory the executable is in
13653 darwin* | rhapsody*)
13654 dynamic_linker="$host_os dyld"
13655 version_type=darwin
13658 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13659 soname_spec='${libname}${release}${major}$shared_ext'
13660 shlibpath_overrides_runpath=yes
13661 shlibpath_var=DYLD_LIBRARY_PATH
13662 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13663 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13664 if test "$GCC" = yes; then
13665 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"`
13667 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13669 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13677 soname_spec='${libname}${release}${shared_ext}$major'
13678 shlibpath_var=LD_LIBRARY_PATH
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13690 soname_spec='${libname}${release}${shared_ext}$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=no
13693 hardcode_into_libs=yes
13694 dynamic_linker='GNU ld.so'
13697 freebsd* | dragonfly*)
13698 # DragonFly does not have aout. When/if they implement a new
13699 # versioning mechanism, adjust this.
13700 if test -x /usr/bin/objformat; then
13701 objformat=`/usr/bin/objformat`
13704 freebsd[123]*) objformat=aout ;;
13705 *) objformat=elf ;;
13708 version_type=freebsd-$objformat
13709 case $version_type in
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13720 shlibpath_var=LD_LIBRARY_PATH
13723 shlibpath_overrides_runpath=yes
13725 freebsd3.[01]* | freebsdelf3.[01]*)
13726 shlibpath_overrides_runpath=yes
13727 hardcode_into_libs=yes
13729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13731 shlibpath_overrides_runpath=no
13732 hardcode_into_libs=yes
13734 freebsd*) # from 4.6 on
13735 shlibpath_overrides_runpath=yes
13736 hardcode_into_libs=yes
13745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13746 soname_spec='${libname}${release}${shared_ext}$major'
13747 shlibpath_var=LD_LIBRARY_PATH
13748 hardcode_into_libs=yes
13751 hpux9* | hpux10* | hpux11*)
13752 # Give a soname corresponding to the major version so that dld.sl refuses to
13753 # link against other versions.
13760 hardcode_into_libs=yes
13761 dynamic_linker="$host_os dld.so"
13762 shlibpath_var=LD_LIBRARY_PATH
13763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765 soname_spec='${libname}${release}${shared_ext}$major'
13766 if test "X$HPUX_IA64_MODE" = X32; then
13767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13775 hardcode_into_libs=yes
13776 dynamic_linker="$host_os dld.sl"
13777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 soname_spec='${libname}${release}${shared_ext}$major'
13781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13786 dynamic_linker="$host_os dld.sl"
13787 shlibpath_var=SHLIB_PATH
13788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790 soname_spec='${libname}${release}${shared_ext}$major'
13793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13794 postinstall_cmds='chmod 555 $lib'
13801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13802 soname_spec='${libname}${release}${shared_ext}$major'
13803 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13804 shlibpath_var=LD_LIBRARY_PATH
13805 shlibpath_overrides_runpath=no
13806 hardcode_into_libs=yes
13809 irix5* | irix6* | nonstopux*)
13811 nonstopux*) version_type=nonstopux ;;
13813 if test "$lt_cv_prog_gnu_ld" = yes; then
13821 soname_spec='${libname}${release}${shared_ext}$major'
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13824 irix5* | nonstopux*)
13825 libsuff= shlibsuff=
13828 case $LD in # libtool.m4 will add one of these switches to LD
13829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13830 libsuff= shlibsuff= libmagic=32-bit;;
13831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13832 libsuff=32 shlibsuff=N32 libmagic=N32;;
13833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13834 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13835 *) libsuff= shlibsuff= libmagic=never-match;;
13839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13840 shlibpath_overrides_runpath=no
13841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13843 hardcode_into_libs=yes
13846 # No shared lib support for Linux oldld, aout, or coff.
13847 linux*oldld* | linux*aout* | linux*coff*)
13851 # This must be Linux ELF.
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857 soname_spec='${libname}${release}${shared_ext}$major'
13858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 shlibpath_overrides_runpath=no
13861 # This implies no fast_install, which is unacceptable.
13862 # Some rework will be needed to allow for fast_install
13863 # before this can be enabled.
13864 hardcode_into_libs=yes
13866 # find out which ABI we are using
13868 case "$host_cpu" in
13869 x86_64*|s390x*|powerpc64*)
13870 echo '#line 13870 "configure"' > conftest.$ac_ext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872 (eval $ac_compile) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; then
13876 case `/usr/bin/file conftest.$ac_objext` in
13879 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13887 # Append ld.so.conf contents to the search path
13888 if test -f /etc/ld.so.conf; then
13889 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' ' '`
13890 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13893 # We used to test for /lib/ld.so.1 and disable shared libraries on
13894 # powerpc, because MkLinux only supported shared libraries with the
13895 # GNU dynamic linker. Since this was broken with cross compilers,
13896 # most powerpc-linux boxes support dynamic linking these days and
13897 # people can always --disable-shared, the test was removed, and we
13898 # assume the GNU/Linux dynamic linker is in use.
13899 dynamic_linker='GNU/Linux ld.so'
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 shlibpath_var=LD_LIBRARY_PATH
13909 shlibpath_overrides_runpath=no
13910 hardcode_into_libs=yes
13911 dynamic_linker='GNU ld.so'
13918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13921 dynamic_linker='NetBSD (a.out) ld.so'
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 dynamic_linker='NetBSD ld.elf_so'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 shlibpath_overrides_runpath=yes
13929 hardcode_into_libs=yes
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 shlibpath_overrides_runpath=yes
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=yes
13951 sys_lib_dlsearch_path_spec="/usr/lib"
13953 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13955 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13956 *) need_version=no ;;
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13960 shlibpath_var=LD_LIBRARY_PATH
13961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13963 openbsd2.[89] | openbsd2.[89].*)
13964 shlibpath_overrides_runpath=no
13967 shlibpath_overrides_runpath=yes
13971 shlibpath_overrides_runpath=yes
13976 libname_spec='$name'
13979 library_names_spec='$libname${shared_ext} $libname.a'
13980 dynamic_linker='OS/2 ld.exe'
13981 shlibpath_var=LIBPATH
13984 osf3* | osf4* | osf5*)
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13992 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 shlibpath_var=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath=yes
14003 hardcode_into_libs=yes
14004 # ldd complains unless libraries are executable
14005 postinstall_cmds='chmod +x $lib'
14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14011 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14012 shlibpath_var=LD_LIBRARY_PATH
14013 shlibpath_overrides_runpath=yes
14014 if test "$with_gnu_ld" = yes; then
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14023 soname_spec='${libname}${release}${shared_ext}$major'
14024 shlibpath_var=LD_LIBRARY_PATH
14025 case $host_vendor in
14027 shlibpath_overrides_runpath=no
14029 export_dynamic_flag_spec='${wl}-Blargedynsym'
14030 runpath_var=LD_RUN_PATH
14038 shlibpath_overrides_runpath=no
14039 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14045 if test -d /usr/nec ;then
14047 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14048 soname_spec='$libname${shared_ext}.$major'
14049 shlibpath_var=LD_LIBRARY_PATH
14053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14054 version_type=freebsd-elf
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 hardcode_into_libs=yes
14061 if test "$with_gnu_ld" = yes; then
14062 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14063 shlibpath_overrides_runpath=no
14065 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14066 shlibpath_overrides_runpath=yes
14069 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14073 sys_lib_dlsearch_path_spec='/usr/lib'
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 shlibpath_var=LD_LIBRARY_PATH
14087 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14088 echo "${ECHO_T}$dynamic_linker" >&6
14089 test "$dynamic_linker" = no && can_build_shared=no
14091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14092 if test "$GCC" = yes; then
14093 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14098 hardcode_action_CXX=
14099 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14100 test -n "$runpath_var_CXX" || \
14101 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14103 # We can hardcode non-existant directories.
14104 if test "$hardcode_direct_CXX" != no &&
14105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14106 # have to relink, otherwise we might link with an installed library
14107 # when we should be linking with a yet-to-be-installed one
14108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14109 test "$hardcode_minus_L_CXX" != no; then
14110 # Linking always hardcodes the temporary library directory.
14111 hardcode_action_CXX=relink
14113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14114 hardcode_action_CXX=immediate
14117 # We cannot hardcode anything, or else we can only hardcode existing
14119 hardcode_action_CXX=unsupported
14121 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14122 echo "${ECHO_T}$hardcode_action_CXX" >&6
14124 if test "$hardcode_action_CXX" = relink; then
14125 # Fast installation is not supported
14126 enable_fast_install=no
14127 elif test "$shlibpath_overrides_runpath" = yes ||
14128 test "$enable_shared" = no; then
14129 # Fast installation is not necessary
14130 enable_fast_install=needless
14134 # The else clause should only fire when bootstrapping the
14135 # libtool distribution, otherwise you forgot to ship ltmain.sh
14136 # with your package, and you will get complaints that there are
14137 # no rules to generate ltmain.sh.
14138 if test -f "$ltmain"; then
14139 # See if we are running on zsh, and set the options which allow our commands through
14140 # without removal of \ escapes.
14141 if test -n "${ZSH_VERSION+set}" ; then
14142 setopt NO_GLOB_SUBST
14144 # Now quote all the things that may contain metacharacters while being
14145 # careful not to overquote the AC_SUBSTed values. We take copies of the
14146 # variables and quote the copies for generation of the libtool script.
14147 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14149 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14150 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14151 deplibs_check_method reload_flag reload_cmds need_locks \
14152 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14153 lt_cv_sys_global_symbol_to_c_name_address \
14154 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14155 old_postinstall_cmds old_postuninstall_cmds \
14159 lt_prog_compiler_wl_CXX \
14160 lt_prog_compiler_pic_CXX \
14161 lt_prog_compiler_static_CXX \
14162 lt_prog_compiler_no_builtin_flag_CXX \
14163 export_dynamic_flag_spec_CXX \
14164 thread_safe_flag_spec_CXX \
14165 whole_archive_flag_spec_CXX \
14166 enable_shared_with_static_runtimes_CXX \
14167 old_archive_cmds_CXX \
14168 old_archive_from_new_cmds_CXX \
14169 predep_objects_CXX \
14170 postdep_objects_CXX \
14173 compiler_lib_search_path_CXX \
14175 archive_expsym_cmds_CXX \
14176 postinstall_cmds_CXX \
14177 postuninstall_cmds_CXX \
14178 old_archive_from_expsyms_cmds_CXX \
14179 allow_undefined_flag_CXX \
14180 no_undefined_flag_CXX \
14181 export_symbols_cmds_CXX \
14182 hardcode_libdir_flag_spec_CXX \
14183 hardcode_libdir_flag_spec_ld_CXX \
14184 hardcode_libdir_separator_CXX \
14185 hardcode_automatic_CXX \
14187 module_expsym_cmds_CXX \
14188 lt_cv_prog_compiler_c_o_CXX \
14189 exclude_expsyms_CXX \
14190 include_expsyms_CXX; do
14193 old_archive_cmds_CXX | \
14194 old_archive_from_new_cmds_CXX | \
14195 archive_cmds_CXX | \
14196 archive_expsym_cmds_CXX | \
14197 module_cmds_CXX | \
14198 module_expsym_cmds_CXX | \
14199 old_archive_from_expsyms_cmds_CXX | \
14200 export_symbols_cmds_CXX | \
14201 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14202 postinstall_cmds | postuninstall_cmds | \
14203 old_postinstall_cmds | old_postuninstall_cmds | \
14204 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14205 # Double-quote double-evaled strings.
14206 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14215 *'\$0 --fallback-echo"')
14216 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14222 cat <<__EOF__ >> "$cfgfile"
14223 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14225 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14227 # Shell to use when invoking shell scripts.
14230 # Whether or not to build shared libraries.
14231 build_libtool_libs=$enable_shared
14233 # Whether or not to build static libraries.
14234 build_old_libs=$enable_static
14236 # Whether or not to add -lc for building shared libraries.
14237 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14239 # Whether or not to disallow shared libs when runtime libs are static
14240 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14242 # Whether or not to optimize for fast installation.
14243 fast_install=$enable_fast_install
14246 host_alias=$host_alias
14250 # The build system.
14251 build_alias=$build_alias
14255 # An echo program that does not interpret backslashes.
14260 AR_FLAGS=$lt_AR_FLAGS
14265 # LTCC compiler flags.
14266 LTCFLAGS=$lt_LTCFLAGS
14268 # A language-specific compiler.
14269 CC=$lt_compiler_CXX
14271 # Is the compiler the GNU C compiler?
14277 # The linker used to build libraries.
14280 # Whether we need hard or soft links.
14283 # A BSD-compatible nm program.
14286 # A symbol stripping program
14289 # Used to examine libraries when file_magic_cmd begins "file"
14290 MAGIC_CMD=$MAGIC_CMD
14292 # Used on cygwin: DLL creation program.
14295 # Used on cygwin: object dumper.
14298 # Used on cygwin: assembler.
14301 # The name of the directory that contains temporary libtool files.
14304 # How to create reloadable object files.
14305 reload_flag=$lt_reload_flag
14306 reload_cmds=$lt_reload_cmds
14308 # How to pass a linker flag through the compiler.
14309 wl=$lt_lt_prog_compiler_wl_CXX
14311 # Object file suffix (normally "o").
14312 objext="$ac_objext"
14314 # Old archive suffix (normally "a").
14317 # Shared library suffix (normally ".so").
14318 shrext_cmds='$shrext_cmds'
14320 # Executable file suffix (normally "").
14323 # Additional compiler flags for building library objects.
14324 pic_flag=$lt_lt_prog_compiler_pic_CXX
14327 # What is the maximum length of a command?
14328 max_cmd_len=$lt_cv_sys_max_cmd_len
14330 # Does compiler simultaneously support -c and -o options?
14331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14333 # Must we lock files when doing compilation?
14334 need_locks=$lt_need_locks
14336 # Do we need the lib prefix for modules?
14337 need_lib_prefix=$need_lib_prefix
14339 # Do we need a version for libraries?
14340 need_version=$need_version
14342 # Whether dlopen is supported.
14343 dlopen_support=$enable_dlopen
14345 # Whether dlopen of programs is supported.
14346 dlopen_self=$enable_dlopen_self
14348 # Whether dlopen of statically linked programs is supported.
14349 dlopen_self_static=$enable_dlopen_self_static
14351 # Compiler flag to prevent dynamic linking.
14352 link_static_flag=$lt_lt_prog_compiler_static_CXX
14354 # Compiler flag to turn off builtin functions.
14355 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14357 # Compiler flag to allow reflexive dlopens.
14358 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14360 # Compiler flag to generate shared objects directly from archives.
14361 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14363 # Compiler flag to generate thread-safe objects.
14364 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14366 # Library versioning type.
14367 version_type=$version_type
14369 # Format of library name prefix.
14370 libname_spec=$lt_libname_spec
14372 # List of archive names. First name is the real one, the rest are links.
14373 # The last name is the one that the linker finds with -lNAME.
14374 library_names_spec=$lt_library_names_spec
14376 # The coded name of the library, if different from the real name.
14377 soname_spec=$lt_soname_spec
14379 # Commands used to build and install an old-style archive.
14381 old_archive_cmds=$lt_old_archive_cmds_CXX
14382 old_postinstall_cmds=$lt_old_postinstall_cmds
14383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14385 # Create an old-style archive from a shared archive.
14386 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14388 # Create a temporary old-style archive to link instead of a shared archive.
14389 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14391 # Commands used to build and install a shared archive.
14392 archive_cmds=$lt_archive_cmds_CXX
14393 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14394 postinstall_cmds=$lt_postinstall_cmds
14395 postuninstall_cmds=$lt_postuninstall_cmds
14397 # Commands used to build a loadable module (assumed same as above if empty)
14398 module_cmds=$lt_module_cmds_CXX
14399 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14401 # Commands to strip libraries.
14402 old_striplib=$lt_old_striplib
14403 striplib=$lt_striplib
14405 # Dependencies to place before the objects being linked to create a
14407 predep_objects=$lt_predep_objects_CXX
14409 # Dependencies to place after the objects being linked to create a
14411 postdep_objects=$lt_postdep_objects_CXX
14413 # Dependencies to place before the objects being linked to create a
14415 predeps=$lt_predeps_CXX
14417 # Dependencies to place after the objects being linked to create a
14419 postdeps=$lt_postdeps_CXX
14421 # The library search path used internally by the compiler when linking
14422 # a shared library.
14423 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14425 # Method to check whether dependent libraries are shared objects.
14426 deplibs_check_method=$lt_deplibs_check_method
14428 # Command to use when deplibs_check_method == file_magic.
14429 file_magic_cmd=$lt_file_magic_cmd
14431 # Flag that allows shared libraries with undefined symbols to be built.
14432 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14434 # Flag that forces no undefined symbols.
14435 no_undefined_flag=$lt_no_undefined_flag_CXX
14437 # Commands used to finish a libtool library installation in a directory.
14438 finish_cmds=$lt_finish_cmds
14440 # Same as above, but a single script fragment to be evaled but not shown.
14441 finish_eval=$lt_finish_eval
14443 # Take the output of nm and produce a listing of raw symbols and C names.
14444 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14446 # Transform the output of nm in a proper C declaration
14447 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14449 # Transform the output of nm in a C name address pair
14450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14452 # This is the shared library runtime path variable.
14453 runpath_var=$runpath_var
14455 # This is the shared library path variable.
14456 shlibpath_var=$shlibpath_var
14458 # Is shlibpath searched before the hard-coded library search path?
14459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14461 # How to hardcode a shared library path into an executable.
14462 hardcode_action=$hardcode_action_CXX
14464 # Whether we should hardcode library paths into libraries.
14465 hardcode_into_libs=$hardcode_into_libs
14467 # Flag to hardcode \$libdir into a binary during linking.
14468 # This must work even if \$libdir does not exist.
14469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14471 # If ld is used when linking, flag to hardcode \$libdir into
14472 # a binary during linking. This must work even if \$libdir does
14474 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14476 # Whether we need a single -rpath flag with a separated argument.
14477 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14479 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14480 # resulting binary.
14481 hardcode_direct=$hardcode_direct_CXX
14483 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14484 # resulting binary.
14485 hardcode_minus_L=$hardcode_minus_L_CXX
14487 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14488 # the resulting binary.
14489 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14491 # Set to yes if building a shared library automatically hardcodes DIR into the library
14492 # and all subsequent libraries and executables linked against it.
14493 hardcode_automatic=$hardcode_automatic_CXX
14495 # Variables whose values should be saved in libtool wrapper scripts and
14496 # restored at relink time.
14497 variables_saved_for_relink="$variables_saved_for_relink"
14499 # Whether libtool must link a program against all its dependency libraries.
14500 link_all_deplibs=$link_all_deplibs_CXX
14502 # Compile-time system search path for libraries
14503 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14505 # Run-time system search path for libraries
14506 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14508 # Fix the shell variable \$srcfile for the compiler.
14509 fix_srcfile_path="$fix_srcfile_path_CXX"
14511 # Set to yes if exported symbols are required.
14512 always_export_symbols=$always_export_symbols_CXX
14514 # The commands to list exported symbols.
14515 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14517 # The commands to extract the exported symbol list from a shared archive.
14518 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14520 # Symbols that should not be listed in the preloaded symbols.
14521 exclude_expsyms=$lt_exclude_expsyms_CXX
14523 # Symbols that must always be exported.
14524 include_expsyms=$lt_include_expsyms_CXX
14526 # ### END LIBTOOL TAG CONFIG: $tagname
14532 # If there is no Makefile yet, we rely on a make rule to execute
14533 # `config.status --recheck' to rerun these tests and create the
14534 # libtool script then.
14535 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14536 if test -f "$ltmain_in"; then
14537 test -f Makefile && make "$ltmain"
14543 ac_cpp='$CPP $CPPFLAGS'
14544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14552 with_gnu_ldcxx=$with_gnu_ld
14553 with_gnu_ld=$lt_save_with_gnu_ld
14554 lt_cv_path_LDCXX=$lt_cv_path_LD
14555 lt_cv_path_LD=$lt_save_path_LD
14556 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14557 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14565 if test -n "$F77" && test "X$F77" != "Xno"; then
14568 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14569 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14570 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14573 archive_cmds_need_lc_F77=no
14574 allow_undefined_flag_F77=
14575 always_export_symbols_F77=no
14576 archive_expsym_cmds_F77=
14577 export_dynamic_flag_spec_F77=
14578 hardcode_direct_F77=no
14579 hardcode_libdir_flag_spec_F77=
14580 hardcode_libdir_flag_spec_ld_F77=
14581 hardcode_libdir_separator_F77=
14582 hardcode_minus_L_F77=no
14583 hardcode_automatic_F77=no
14585 module_expsym_cmds_F77=
14586 link_all_deplibs_F77=unknown
14587 old_archive_cmds_F77=$old_archive_cmds
14588 no_undefined_flag_F77=
14589 whole_archive_flag_spec_F77=
14590 enable_shared_with_static_runtimes_F77=no
14592 # Source file extension for f77 test sources.
14595 # Object file extension for compiled f77 test sources.
14599 # Code to be used in simple compile tests
14600 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14602 # Code to be used in simple link tests
14603 lt_simple_link_test_code=" program t\n end\n"
14605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14607 # If no C compiler was specified, use CC.
14610 # If no C compiler flags were specified, use CFLAGS.
14611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14613 # Allow CC to be a program name with arguments.
14617 # save warnings/boilerplate of simple test code
14618 ac_outfile=conftest.$ac_objext
14619 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14620 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14621 _lt_compiler_boilerplate=`cat conftest.err`
14624 ac_outfile=conftest.$ac_objext
14625 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14626 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14627 _lt_linker_boilerplate=`cat conftest.err`
14631 # Allow CC to be a program name with arguments.
14636 for cc_temp in $compiler""; do
14638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14647 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14648 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14649 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14650 echo "${ECHO_T}$can_build_shared" >&6
14652 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14653 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14654 test "$can_build_shared" = "no" && enable_shared=no
14656 # On AIX, shared libraries and static libraries use the same namespace, and
14657 # are all built from PIC.
14660 test "$enable_shared" = yes && enable_static=no
14661 if test -n "$RANLIB"; then
14662 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14663 postinstall_cmds='$RANLIB $lib'
14667 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14668 test "$enable_shared" = yes && enable_static=no
14672 echo "$as_me:$LINENO: result: $enable_shared" >&5
14673 echo "${ECHO_T}$enable_shared" >&6
14675 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14676 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14677 # Make sure either enable_shared or enable_static is yes.
14678 test "$enable_shared" = yes || enable_static=yes
14679 echo "$as_me:$LINENO: result: $enable_static" >&5
14680 echo "${ECHO_T}$enable_static" >&6
14685 lt_prog_compiler_wl_F77=
14686 lt_prog_compiler_pic_F77=
14687 lt_prog_compiler_static_F77=
14689 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14690 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14692 if test "$GCC" = yes; then
14693 lt_prog_compiler_wl_F77='-Wl,'
14694 lt_prog_compiler_static_F77='-static'
14698 # All AIX code is PIC.
14699 if test "$host_cpu" = ia64; then
14700 # AIX 5 now supports IA64 processor
14701 lt_prog_compiler_static_F77='-Bstatic'
14706 # FIXME: we need at least 68020 code to build shared libraries, but
14707 # adding the `-m68020' flag to GCC prevents building anything better,
14709 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14712 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14713 # PIC is the default for these OSes.
14716 mingw* | pw32* | os2*)
14717 # This hack is so that the source file can tell whether it is being
14718 # built for inclusion in a dll (and should export symbols for example).
14719 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14722 darwin* | rhapsody*)
14723 # PIC is the default on this platform
14724 # Common symbols not allowed in MH_DYLIB files
14725 lt_prog_compiler_pic_F77='-fno-common'
14729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14730 # Instead, we relocate shared libraries at runtime.
14734 # Just because we use GCC doesn't mean we suddenly get shared libraries
14735 # on systems that don't support them.
14736 lt_prog_compiler_can_build_shared_F77=no
14741 if test -d /usr/nec; then
14742 lt_prog_compiler_pic_F77=-Kconform_pic
14747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14748 # not for PA HP-UX.
14754 lt_prog_compiler_pic_F77='-fPIC'
14760 lt_prog_compiler_pic_F77='-fPIC'
14764 # PORTME Check for flag to pass linker flags through the system compiler.
14767 lt_prog_compiler_wl_F77='-Wl,'
14768 if test "$host_cpu" = ia64; then
14769 # AIX 5 now supports IA64 processor
14770 lt_prog_compiler_static_F77='-Bstatic'
14772 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14776 # PIC is the default on this platform
14777 # Common symbols not allowed in MH_DYLIB files
14778 case $cc_basename in
14780 lt_prog_compiler_pic_F77='-qnocommon'
14781 lt_prog_compiler_wl_F77='-Wl,'
14786 mingw* | pw32* | os2*)
14787 # This hack is so that the source file can tell whether it is being
14788 # built for inclusion in a dll (and should export symbols for example).
14789 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14792 hpux9* | hpux10* | hpux11*)
14793 lt_prog_compiler_wl_F77='-Wl,'
14794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14795 # not for PA HP-UX.
14801 lt_prog_compiler_pic_F77='+Z'
14804 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14805 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14808 irix5* | irix6* | nonstopux*)
14809 lt_prog_compiler_wl_F77='-Wl,'
14810 # PIC (with -KPIC) is the default.
14811 lt_prog_compiler_static_F77='-non_shared'
14815 lt_prog_compiler_pic_F77='-KPIC'
14816 lt_prog_compiler_static_F77='-Bstatic'
14820 case $cc_basename in
14822 lt_prog_compiler_wl_F77='-Wl,'
14823 lt_prog_compiler_pic_F77='-KPIC'
14824 lt_prog_compiler_static_F77='-static'
14826 pgcc* | pgf77* | pgf90* | pgf95*)
14827 # Portland Group compilers (*not* the Pentium gcc compiler,
14828 # which looks to be a dead project)
14829 lt_prog_compiler_wl_F77='-Wl,'
14830 lt_prog_compiler_pic_F77='-fpic'
14831 lt_prog_compiler_static_F77='-Bstatic'
14834 lt_prog_compiler_wl_F77='-Wl,'
14835 # All Alpha code is PIC.
14836 lt_prog_compiler_static_F77='-non_shared'
14841 osf3* | osf4* | osf5*)
14842 lt_prog_compiler_wl_F77='-Wl,'
14843 # All OSF/1 code is PIC.
14844 lt_prog_compiler_static_F77='-non_shared'
14848 lt_prog_compiler_pic_F77='-KPIC'
14849 lt_prog_compiler_static_F77='-Bstatic'
14850 case $cc_basename in
14851 f77* | f90* | f95*)
14852 lt_prog_compiler_wl_F77='-Qoption ld ';;
14854 lt_prog_compiler_wl_F77='-Wl,';;
14859 lt_prog_compiler_wl_F77='-Qoption ld '
14860 lt_prog_compiler_pic_F77='-PIC'
14861 lt_prog_compiler_static_F77='-Bstatic'
14864 sysv4 | sysv4.2uw2* | sysv4.3*)
14865 lt_prog_compiler_wl_F77='-Wl,'
14866 lt_prog_compiler_pic_F77='-KPIC'
14867 lt_prog_compiler_static_F77='-Bstatic'
14871 if test -d /usr/nec ;then
14872 lt_prog_compiler_pic_F77='-Kconform_pic'
14873 lt_prog_compiler_static_F77='-Bstatic'
14877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14878 lt_prog_compiler_wl_F77='-Wl,'
14879 lt_prog_compiler_pic_F77='-KPIC'
14880 lt_prog_compiler_static_F77='-Bstatic'
14884 lt_prog_compiler_wl_F77='-Wl,'
14885 lt_prog_compiler_can_build_shared_F77=no
14889 lt_prog_compiler_pic_F77='-pic'
14890 lt_prog_compiler_static_F77='-Bstatic'
14894 lt_prog_compiler_can_build_shared_F77=no
14899 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14900 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14903 # Check to make sure the PIC flag actually works.
14905 if test -n "$lt_prog_compiler_pic_F77"; then
14907 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14908 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14909 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 lt_prog_compiler_pic_works_F77=no
14913 ac_outfile=conftest.$ac_objext
14914 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14915 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14916 # Insert the option either (1) after the last *FLAGS variable, or
14917 # (2) before a word containing "conftest.", or (3) at the end.
14918 # Note that $ac_compile itself does not contain backslashes and begins
14919 # with a dollar sign (not a hyphen), so the echo should work correctly.
14920 # The option is referenced via a variable to avoid confusing sed.
14921 lt_compile=`echo "$ac_compile" | $SED \
14922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14924 -e 's:$: $lt_compiler_flag:'`
14925 (eval echo "\"\$as_me:14925: $lt_compile\"" >&5)
14926 (eval "$lt_compile" 2>conftest.err)
14928 cat conftest.err >&5
14929 echo "$as_me:14929: \$? = $ac_status" >&5
14930 if (exit $ac_status) && test -s "$ac_outfile"; then
14931 # The compiler can only warn and ignore the option if not recognized
14932 # So say no if there are warnings other than the usual output.
14933 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14936 lt_prog_compiler_pic_works_F77=yes
14942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14943 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14945 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14946 case $lt_prog_compiler_pic_F77 in
14948 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14951 lt_prog_compiler_pic_F77=
14952 lt_prog_compiler_can_build_shared_F77=no
14957 # For platforms which do not support PIC, -DPIC is meaningless:
14959 lt_prog_compiler_pic_F77=
14962 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14967 # Check to make sure the static flag actually works.
14969 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14970 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14971 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14972 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 lt_prog_compiler_static_works_F77=no
14976 save_LDFLAGS="$LDFLAGS"
14977 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14978 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14979 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14980 # The linker can only warn and ignore the option if not recognized
14981 # So say no if there are warnings
14982 if test -s conftest.err; then
14983 # Append any errors to the config.log.
14984 cat conftest.err 1>&5
14985 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14987 if diff conftest.exp conftest.er2 >/dev/null; then
14988 lt_prog_compiler_static_works_F77=yes
14991 lt_prog_compiler_static_works_F77=yes
14995 LDFLAGS="$save_LDFLAGS"
14998 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14999 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15001 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15004 lt_prog_compiler_static_F77=
15008 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15010 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 lt_cv_prog_compiler_c_o_F77=no
15014 $rm -r conftest 2>/dev/null
15018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15020 lt_compiler_flag="-o out/conftest2.$ac_objext"
15021 # Insert the option either (1) after the last *FLAGS variable, or
15022 # (2) before a word containing "conftest.", or (3) at the end.
15023 # Note that $ac_compile itself does not contain backslashes and begins
15024 # with a dollar sign (not a hyphen), so the echo should work correctly.
15025 lt_compile=`echo "$ac_compile" | $SED \
15026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15028 -e 's:$: $lt_compiler_flag:'`
15029 (eval echo "\"\$as_me:15029: $lt_compile\"" >&5)
15030 (eval "$lt_compile" 2>out/conftest.err)
15032 cat out/conftest.err >&5
15033 echo "$as_me:15033: \$? = $ac_status" >&5
15034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15036 # The compiler can only warn and ignore the option if not recognized
15037 # So say no if there are warnings
15038 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15041 lt_cv_prog_compiler_c_o_F77=yes
15046 # SGI C++ compiler will create directory out/ii_files/ for
15047 # template instantiation
15048 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15049 $rm out/* && rmdir out
15055 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15056 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15059 hard_links="nottested"
15060 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15061 # do not overwrite the value of need_locks provided by the user
15062 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15063 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15068 ln conftest.a conftest.b 2>&5 || hard_links=no
15069 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15070 echo "$as_me:$LINENO: result: $hard_links" >&5
15071 echo "${ECHO_T}$hard_links" >&6
15072 if test "$hard_links" = no; then
15073 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15074 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15081 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15082 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15085 allow_undefined_flag_F77=
15086 enable_shared_with_static_runtimes_F77=no
15088 archive_expsym_cmds_F77=
15089 old_archive_From_new_cmds_F77=
15090 old_archive_from_expsyms_cmds_F77=
15091 export_dynamic_flag_spec_F77=
15092 whole_archive_flag_spec_F77=
15093 thread_safe_flag_spec_F77=
15094 hardcode_libdir_flag_spec_F77=
15095 hardcode_libdir_flag_spec_ld_F77=
15096 hardcode_libdir_separator_F77=
15097 hardcode_direct_F77=no
15098 hardcode_minus_L_F77=no
15099 hardcode_shlibpath_var_F77=unsupported
15100 link_all_deplibs_F77=unknown
15101 hardcode_automatic_F77=no
15103 module_expsym_cmds_F77=
15104 always_export_symbols_F77=no
15105 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15106 # include_expsyms should be a list of space-separated symbols to be *always*
15107 # included in the symbol list
15108 include_expsyms_F77=
15109 # exclude_expsyms can be an extended regexp of symbols to exclude
15110 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15111 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15112 # as well as any symbol that contains `d'.
15113 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15114 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15115 # platforms (ab)use it in PIC code, but their linkers get confused if
15116 # the symbol is explicitly referenced. Since portable code cannot
15117 # rely on this symbol name, it's probably fine to never include it in
15118 # preloaded symbol tables.
15119 extract_expsyms_cmds=
15120 # Just being paranoid about ensuring that cc_basename is set.
15121 for cc_temp in $compiler""; do
15123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15129 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15132 cygwin* | mingw* | pw32*)
15133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15134 # When not using gcc, we currently assume that we are using
15135 # Microsoft Visual C++.
15136 if test "$GCC" != yes; then
15141 # we just hope/assume this is gcc and not c89 (= MSVC++)
15150 if test "$with_gnu_ld" = yes; then
15151 # If archive_cmds runs LD, not CC, wlarc should be empty
15154 # Set some defaults for GNU ld with shared library support. These
15155 # are reset later if shared libraries are not supported. Putting them
15156 # here allows them to be overridden if necessary.
15157 runpath_var=LD_RUN_PATH
15158 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15159 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15160 # ancient GNU ld didn't support --whole-archive et. al.
15161 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15162 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15164 whole_archive_flag_spec_F77=
15166 supports_anon_versioning=no
15167 case `$LD -v 2>/dev/null` in
15168 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15169 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15170 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15171 *\ 2.11.*) ;; # other 2.11 versions
15172 *) supports_anon_versioning=yes ;;
15175 # See if GNU ld supports shared libraries.
15177 aix3* | aix4* | aix5*)
15178 # On AIX/PPC, the GNU linker is very broken
15179 if test "$host_cpu" != ia64; then
15183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15184 *** to be unable to reliably create shared libraries on AIX.
15185 *** Therefore, libtool is disabling shared libraries support. If you
15186 *** really care for shared libraries, you may want to modify your PATH
15187 *** so that a non-GNU linker is found, and then restart.
15194 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)'
15195 hardcode_libdir_flag_spec_F77='-L$libdir'
15196 hardcode_minus_L_F77=yes
15198 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15199 # that the semantics of dynamic libraries on AmigaOS, at least up
15200 # to version 4, is to share data among multiple programs linked
15201 # with the same dynamic library. Since this doesn't match the
15202 # behavior of shared libraries on other platforms, we can't use
15208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15209 allow_undefined_flag_F77=unsupported
15210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15211 # support --undefined. This deserves some investigation. FIXME
15212 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15218 cygwin* | mingw* | pw32*)
15219 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15220 # as there is no search path for DLLs.
15221 hardcode_libdir_flag_spec_F77='-L$libdir'
15222 allow_undefined_flag_F77=unsupported
15223 always_export_symbols_F77=no
15224 enable_shared_with_static_runtimes_F77=yes
15225 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15227 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15228 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15229 # If the export-symbols file already is a .def file (1st line
15230 # is EXPORTS), use it as is; otherwise, prepend...
15231 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15232 cp $export_symbols $output_objdir/$soname.def;
15234 echo EXPORTS > $output_objdir/$soname.def;
15235 cat $export_symbols >> $output_objdir/$soname.def;
15237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15244 hardcode_direct_F77=no
15245 hardcode_shlibpath_var_F77=no
15246 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15247 export_dynamic_flag_spec_F77='${wl}-E'
15248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15249 # Instead, shared libraries are loaded at an image base (0x10000000 by
15250 # default) and relocated if they conflict, which is a slow very memory
15251 # consuming and fragmenting process. To avoid this, we pick a random,
15252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15253 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15254 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'
15255 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'
15259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15261 case $cc_basename,$host_cpu in
15262 pgcc*) # Portland Group C compiler
15263 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'
15264 tmp_addflag=' $pic_flag'
15266 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15267 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'
15268 tmp_addflag=' $pic_flag -Mnomain' ;;
15269 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15270 tmp_addflag=' -i_dynamic' ;;
15271 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15272 tmp_addflag=' -i_dynamic -nofor_main' ;;
15273 ifc* | ifort*) # Intel Fortran compiler
15274 tmp_addflag=' -nofor_main' ;;
15276 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15278 if test $supports_anon_versioning = yes; then
15279 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15281 $echo "local: *; };" >> $output_objdir/$libname.ver~
15282 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15291 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15294 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15295 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15305 *** create shared libraries on Solaris systems. Therefore, libtool
15306 *** is disabling shared libraries support. We urge you to upgrade GNU
15307 *** binutils to release 2.9.1 or newer. Another option is to modify
15308 *** your PATH or compiler configuration so that the native linker is
15309 *** used, and then restart.
15312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15321 case `$LD -v 2>&1` in
15322 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15327 *** reliably create shared libraries on SCO systems. Therefore, libtool
15328 *** is disabling shared libraries support. We urge you to upgrade GNU
15329 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15330 *** your PATH or compiler configuration so that the native linker is
15331 *** used, and then restart.
15336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15337 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15338 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15339 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15348 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15350 hardcode_direct_F77=yes
15351 hardcode_shlibpath_var_F77=no
15355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15356 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15357 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15364 if test "$ld_shlibs_F77" = no; then
15366 hardcode_libdir_flag_spec_F77=
15367 export_dynamic_flag_spec_F77=
15368 whole_archive_flag_spec_F77=
15371 # PORTME fill in a description of your system's linker (not GNU ld)
15374 allow_undefined_flag_F77=unsupported
15375 always_export_symbols_F77=yes
15376 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'
15377 # Note: this linker hardcodes the directories in LIBPATH if there
15378 # are no directories specified by -L.
15379 hardcode_minus_L_F77=yes
15380 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15381 # Neither direct hardcoding nor static linking is supported with a
15383 hardcode_direct_F77=unsupported
15388 if test "$host_cpu" = ia64; then
15389 # On IA64, the linker does run time linking by default, so we don't
15390 # have to do anything special.
15391 aix_use_runtimelinking=no
15392 exp_sym_flag='-Bexport'
15395 # If we're using GNU nm, then we don't want the "-C" option.
15396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15397 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15398 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'
15400 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'
15402 aix_use_runtimelinking=no
15404 # Test if we are trying to use run time linking or normal
15405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15406 # need to do runtime linking.
15407 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15408 for ld_flag in $LDFLAGS; do
15409 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15410 aix_use_runtimelinking=yes
15417 exp_sym_flag='-bexport'
15418 no_entry_flag='-bnoentry'
15421 # When large executables or shared objects are built, AIX ld can
15422 # have problems creating the table of contents. If linking a library
15423 # or program results in "error TOC overflow" add -mminimal-toc to
15424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15427 archive_cmds_F77=''
15428 hardcode_direct_F77=yes
15429 hardcode_libdir_separator_F77=':'
15430 link_all_deplibs_F77=yes
15432 if test "$GCC" = yes; then
15433 case $host_os in aix4.[012]|aix4.[012].*)
15434 # We only want to do this on AIX 4.2 and lower, the check
15435 # below for broken collect2 doesn't work under 4.3+
15436 collect2name=`${CC} -print-prog-name=collect2`
15437 if test -f "$collect2name" && \
15438 strings "$collect2name" | grep resolve_lib_name >/dev/null
15440 # We have reworked collect2
15441 hardcode_direct_F77=yes
15443 # We have old collect2
15444 hardcode_direct_F77=unsupported
15445 # It fails to find uninstalled libraries when the uninstalled
15446 # path is not listed in the libpath. Setting hardcode_minus_L
15447 # to unsupported forces relinking
15448 hardcode_minus_L_F77=yes
15449 hardcode_libdir_flag_spec_F77='-L$libdir'
15450 hardcode_libdir_separator_F77=
15454 shared_flag='-shared'
15455 if test "$aix_use_runtimelinking" = yes; then
15456 shared_flag="$shared_flag "'${wl}-G'
15460 if test "$host_cpu" = ia64; then
15461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15462 # chokes on -Wl,-G. The following line is correct:
15465 if test "$aix_use_runtimelinking" = yes; then
15466 shared_flag='${wl}-G'
15468 shared_flag='${wl}-bM:SRE'
15473 # It seems that -bexpall does not export symbols beginning with
15474 # underscore (_), so it is better to generate a list of symbols to export.
15475 always_export_symbols_F77=yes
15476 if test "$aix_use_runtimelinking" = yes; then
15477 # Warning - without using the other runtime loading flags (-brtl),
15478 # -berok will link without error, but may produce a broken library.
15479 allow_undefined_flag_F77='-berok'
15480 # Determine the default libpath from the value encoded in an empty executable.
15481 cat >conftest.$ac_ext <<_ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15490 grep -v '^ *+' conftest.er1 >conftest.err
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_f77_werror_flag"
15496 || test ! -s conftest.err'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15511 # Check for a 64-bit object if we didn't find anything.
15512 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; }
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15519 rm -f conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15523 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15524 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"
15526 if test "$host_cpu" = ia64; then
15527 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15528 allow_undefined_flag_F77="-z nodefs"
15529 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"
15531 # Determine the default libpath from the value encoded in an empty executable.
15532 cat >conftest.$ac_ext <<_ACEOF
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539 (eval $ac_link) 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -z "$ac_f77_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest$ac_exeext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15562 # Check for a 64-bit object if we didn't find anything.
15563 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; }
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15570 rm -f conftest.err conftest.$ac_objext \
15571 conftest$ac_exeext conftest.$ac_ext
15572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15574 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15575 # Warning - without using the other run time loading flags,
15576 # -berok will link without error, but may produce a broken library.
15577 no_undefined_flag_F77=' ${wl}-bernotok'
15578 allow_undefined_flag_F77=' ${wl}-berok'
15579 # Exported symbols can be pulled into shared objects from archives
15580 whole_archive_flag_spec_F77='$convenience'
15581 archive_cmds_need_lc_F77=yes
15582 # This is similar to how AIX traditionally builds its shared libraries.
15583 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'
15589 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)'
15590 hardcode_libdir_flag_spec_F77='-L$libdir'
15591 hardcode_minus_L_F77=yes
15592 # see comment about different semantics on the GNU ld section
15597 export_dynamic_flag_spec_F77=-rdynamic
15600 cygwin* | mingw* | pw32*)
15601 # When not using gcc, we currently assume that we are using
15602 # Microsoft Visual C++.
15603 # hardcode_libdir_flag_spec is actually meaningless, as there is
15604 # no search path for DLLs.
15605 hardcode_libdir_flag_spec_F77=' '
15606 allow_undefined_flag_F77=unsupported
15607 # Tell ltmain to make .lib files, not .a files.
15609 # Tell ltmain to make .dll files, not .so files.
15611 # FIXME: Setting linknames here is a bad hack.
15612 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15613 # The linker will automatically build a .lib file if we build a DLL.
15614 old_archive_From_new_cmds_F77='true'
15615 # FIXME: Should let the user specify the lib program.
15616 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15617 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15618 enable_shared_with_static_runtimes_F77=yes
15621 darwin* | rhapsody*)
15623 rhapsody* | darwin1.[012])
15624 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15627 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15628 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15630 case ${MACOSX_DEPLOYMENT_TARGET} in
15632 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15635 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15641 archive_cmds_need_lc_F77=no
15642 hardcode_direct_F77=no
15643 hardcode_automatic_F77=yes
15644 hardcode_shlibpath_var_F77=unsupported
15645 whole_archive_flag_spec_F77=''
15646 link_all_deplibs_F77=yes
15647 if test "$GCC" = yes ; then
15648 output_verbose_link_cmd='echo'
15649 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15650 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15652 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}'
15653 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}'
15655 case $cc_basename in
15657 output_verbose_link_cmd='echo'
15658 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15659 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15661 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}'
15662 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}'
15672 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 hardcode_libdir_flag_spec_F77='-L$libdir'
15674 hardcode_shlibpath_var_F77=no
15681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15682 # support. Future versions do this automatically, but an explicit c++rt0.o
15683 # does not break anything, and helps significantly (at the cost of a little
15686 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15687 hardcode_libdir_flag_spec_F77='-R$libdir'
15688 hardcode_direct_F77=yes
15689 hardcode_shlibpath_var_F77=no
15692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15694 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_direct_F77=yes
15696 hardcode_minus_L_F77=yes
15697 hardcode_shlibpath_var_F77=no
15700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15701 freebsd* | kfreebsd*-gnu | dragonfly*)
15702 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15703 hardcode_libdir_flag_spec_F77='-R$libdir'
15704 hardcode_direct_F77=yes
15705 hardcode_shlibpath_var_F77=no
15709 if test "$GCC" = yes; then
15710 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'
15712 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'
15714 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15715 hardcode_libdir_separator_F77=:
15716 hardcode_direct_F77=yes
15718 # hardcode_minus_L: Not really in the search PATH,
15719 # but as the default location of the library.
15720 hardcode_minus_L_F77=yes
15721 export_dynamic_flag_spec_F77='${wl}-E'
15725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15726 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15728 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15730 if test "$with_gnu_ld" = no; then
15731 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15732 hardcode_libdir_separator_F77=:
15734 hardcode_direct_F77=yes
15735 export_dynamic_flag_spec_F77='${wl}-E'
15737 # hardcode_minus_L: Not really in the search PATH,
15738 # but as the default location of the library.
15739 hardcode_minus_L_F77=yes
15744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15747 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15753 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15759 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15762 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15765 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15769 if test "$with_gnu_ld" = no; then
15770 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15771 hardcode_libdir_separator_F77=:
15775 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15776 hardcode_direct_F77=no
15777 hardcode_shlibpath_var_F77=no
15780 hardcode_direct_F77=yes
15781 export_dynamic_flag_spec_F77='${wl}-E'
15783 # hardcode_minus_L: Not really in the search PATH,
15784 # but as the default location of the library.
15785 hardcode_minus_L_F77=yes
15791 irix5* | irix6* | nonstopux*)
15792 if test "$GCC" = yes; then
15793 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'
15795 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'
15796 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15798 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15799 hardcode_libdir_separator_F77=:
15800 link_all_deplibs_F77=yes
15804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15805 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15807 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15809 hardcode_libdir_flag_spec_F77='-R$libdir'
15810 hardcode_direct_F77=yes
15811 hardcode_shlibpath_var_F77=no
15815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_direct_F77=yes
15817 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15818 hardcode_libdir_separator_F77=:
15819 hardcode_shlibpath_var_F77=no
15823 hardcode_direct_F77=yes
15824 hardcode_shlibpath_var_F77=no
15825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15826 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15827 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15828 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15829 export_dynamic_flag_spec_F77='${wl}-E'
15832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15833 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15834 hardcode_libdir_flag_spec_F77='-R$libdir'
15837 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15838 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15845 hardcode_libdir_flag_spec_F77='-L$libdir'
15846 hardcode_minus_L_F77=yes
15847 allow_undefined_flag_F77=unsupported
15848 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'
15849 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15853 if test "$GCC" = yes; then
15854 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15855 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'
15857 allow_undefined_flag_F77=' -expect_unresolved \*'
15858 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'
15860 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15861 hardcode_libdir_separator_F77=:
15864 osf4* | osf5*) # as osf3* with the addition of -msym flag
15865 if test "$GCC" = yes; then
15866 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15867 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'
15868 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15870 allow_undefined_flag_F77=' -expect_unresolved \*'
15871 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'
15872 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~
15873 $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'
15875 # Both c and cxx compiler support -rpath directly
15876 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15878 hardcode_libdir_separator_F77=:
15882 no_undefined_flag_F77=' -z text'
15883 if test "$GCC" = yes; then
15885 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15890 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15894 hardcode_libdir_flag_spec_F77='-R$libdir'
15895 hardcode_shlibpath_var_F77=no
15897 solaris2.[0-5] | solaris2.[0-5].*) ;;
15899 # The compiler driver will combine linker options so we
15900 # cannot just pass the convience library names through
15901 # without $wl, iff we do not link with $LD.
15902 # Luckily, gcc supports the same syntax we need for Sun Studio.
15903 # Supported since Solaris 2.6 (maybe 2.5.1?)
15906 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15908 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' ;;
15911 link_all_deplibs_F77=yes
15915 if test "x$host_vendor" = xsequent; then
15916 # Use $CC to link under sequent, because it throws in some extra .o
15917 # files that make .init and .fini sections work.
15918 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15920 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15922 hardcode_libdir_flag_spec_F77='-L$libdir'
15923 hardcode_direct_F77=yes
15924 hardcode_minus_L_F77=yes
15925 hardcode_shlibpath_var_F77=no
15929 case $host_vendor in
15931 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932 hardcode_direct_F77=yes # is this really true???
15935 ## LD is ld it makes a PLAMLIB
15936 ## CC just makes a GrossModule.
15937 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15938 reload_cmds_F77='$CC -r -o $output$reload_objs'
15939 hardcode_direct_F77=no
15942 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15946 runpath_var='LD_RUN_PATH'
15947 hardcode_shlibpath_var_F77=no
15951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_shlibpath_var_F77=no
15953 export_dynamic_flag_spec_F77='-Bexport'
15957 if test -d /usr/nec; then
15958 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15959 hardcode_shlibpath_var_F77=no
15960 runpath_var=LD_RUN_PATH
15961 hardcode_runpath_var=yes
15966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15967 no_undefined_flag_F77='${wl}-z,text'
15968 archive_cmds_need_lc_F77=no
15969 hardcode_shlibpath_var_F77=no
15970 runpath_var='LD_RUN_PATH'
15972 if test "$GCC" = yes; then
15973 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15974 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15976 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15977 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15981 sysv5* | sco3.2v5* | sco5v6*)
15982 # Note: We can NOT use -z defs as we might desire, because we do not
15983 # link with -lc, and that would cause any symbols used from libc to
15984 # always be unresolved, which means just about no library would
15985 # ever link correctly. If we're not using GNU ld we use -z text
15986 # though, which does catch some bad symbols but isn't as heavy-handed
15988 no_undefined_flag_F77='${wl}-z,text'
15989 allow_undefined_flag_F77='${wl}-z,nodefs'
15990 archive_cmds_need_lc_F77=no
15991 hardcode_shlibpath_var_F77=no
15992 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15993 hardcode_libdir_separator_F77=':'
15994 link_all_deplibs_F77=yes
15995 export_dynamic_flag_spec_F77='${wl}-Bexport'
15996 runpath_var='LD_RUN_PATH'
15998 if test "$GCC" = yes; then
15999 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16000 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16002 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009 hardcode_libdir_flag_spec_F77='-L$libdir'
16010 hardcode_shlibpath_var_F77=no
16019 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16020 echo "${ECHO_T}$ld_shlibs_F77" >&6
16021 test "$ld_shlibs_F77" = no && can_build_shared=no
16024 # Do we need to explicitly link libc?
16026 case "x$archive_cmds_need_lc_F77" in
16028 # Assume -lc should be added
16029 archive_cmds_need_lc_F77=yes
16031 if test "$enable_shared" = yes && test "$GCC" = yes; then
16032 case $archive_cmds_F77 in
16034 # FIXME: we may have to deal with multi-command sequences.
16037 # Test whether the compiler implicitly links with -lc since on some
16038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16039 # to ld, don't add -lc before -lgcc.
16040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16046 (eval $ac_compile) 2>&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } 2>conftest.err; then
16052 libobjs=conftest.$ac_objext
16054 wl=$lt_prog_compiler_wl_F77
16055 pic_flag=$lt_prog_compiler_pic_F77
16061 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16062 allow_undefined_flag_F77=
16063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16064 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }
16069 archive_cmds_need_lc_F77=no
16071 archive_cmds_need_lc_F77=yes
16073 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16075 cat conftest.err 1>&5
16078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16079 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16088 library_names_spec=
16089 libname_spec='lib$name'
16093 postuninstall_cmds=
16097 shlibpath_overrides_runpath=unknown
16099 dynamic_linker="$host_os ld.so"
16100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16101 if test "$GCC" = yes; then
16102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16103 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16104 # if the path contains ";" then we assume it to be the separator
16105 # otherwise default to the standard path separator (i.e. ":") - it is
16106 # assumed that no part of a normal pathname contains ";" but that should
16107 # okay in the real world where ";" in dirpaths is itself problematic.
16108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16115 need_lib_prefix=unknown
16116 hardcode_into_libs=no
16118 # when you set need_version to no, make sure it does not cause -set_version
16119 # flags to be left without arguments
16120 need_version=unknown
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16126 shlibpath_var=LIBPATH
16128 # AIX 3 has no versioning support, so we append a major version to the name.
16129 soname_spec='${libname}${release}${shared_ext}$major'
16136 hardcode_into_libs=yes
16137 if test "$host_cpu" = ia64; then
16138 # AIX 5 supports IA64
16139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16140 shlibpath_var=LD_LIBRARY_PATH
16142 # With GCC up to 2.95.x, collect2 would create an import file
16143 # for dependence libraries. The import file would start with
16144 # the line `#! .'. This would cause the generated library to
16145 # depend on `.', always an invalid library. This was fixed in
16146 # development snapshots of GCC prior to 3.0.
16148 aix4 | aix4.[01] | aix4.[01].*)
16149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16154 can_build_shared=no
16158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16159 # soname into executable. Probably we can add versioning support to
16160 # collect2, so additional links can be useful in future.
16161 if test "$aix_use_runtimelinking" = yes; then
16162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16163 # instead of lib<name>.a to let people know that these are not
16164 # typical AIX shared libraries.
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 # We preserve .a as extension for shared libraries through AIX4.2
16168 # and later when we are not doing run time linking.
16169 library_names_spec='${libname}${release}.a $libname.a'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LIBPATH
16177 library_names_spec='$libname.ixlibrary $libname.a'
16178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16179 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'
16183 library_names_spec='${libname}${shared_ext}'
16184 dynamic_linker="$host_os ld.so"
16185 shlibpath_var=LIBRARY_PATH
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192 soname_spec='${libname}${release}${shared_ext}$major'
16193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16197 # the default ld.so.conf also contains /usr/contrib/lib and
16198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16199 # libtool to hard-code these into programs
16202 cygwin* | mingw* | pw32*)
16203 version_type=windows
16208 case $GCC,$host_os in
16209 yes,cygwin* | yes,mingw* | yes,pw32*)
16210 library_names_spec='$libname.dll.a'
16211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16212 postinstall_cmds='base_file=`basename \${file}`~
16213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16214 dldir=$destdir/`dirname \$dlpath`~
16215 test -d \$dldir || mkdir -p \$dldir~
16216 $install_prog $dir/$dlname \$dldir/$dlname~
16217 chmod a+x \$dldir/$dlname'
16218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16219 dlpath=$dir/\$dldll~
16221 shlibpath_overrides_runpath=yes
16225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16230 # MinGW DLLs use traditional 'lib' prefix
16231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16234 # It is most probably a Windows format PATH printed by
16235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16236 # path with ; separators, and with drive letters. We can handle the
16237 # drive letters (cygwin fileutils understands them), so leave them,
16238 # especially as we might pass files found there to a mingw objdump,
16239 # which wouldn't understand a cygwinified path. Ahh.
16240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16246 # pw32 DLLs use 'pw' prefix rather than 'lib'
16247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16256 dynamic_linker='Win32 ld.exe'
16257 # FIXME: first we should search . and the directory the executable is in
16261 darwin* | rhapsody*)
16262 dynamic_linker="$host_os dyld"
16263 version_type=darwin
16266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16267 soname_spec='${libname}${release}${major}$shared_ext'
16268 shlibpath_overrides_runpath=yes
16269 shlibpath_var=DYLD_LIBRARY_PATH
16270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16272 if test "$GCC" = yes; then
16273 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"`
16275 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 shlibpath_var=LD_LIBRARY_PATH
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 shlibpath_var=LD_LIBRARY_PATH
16300 shlibpath_overrides_runpath=no
16301 hardcode_into_libs=yes
16302 dynamic_linker='GNU ld.so'
16305 freebsd* | dragonfly*)
16306 # DragonFly does not have aout. When/if they implement a new
16307 # versioning mechanism, adjust this.
16308 if test -x /usr/bin/objformat; then
16309 objformat=`/usr/bin/objformat`
16312 freebsd[123]*) objformat=aout ;;
16313 *) objformat=elf ;;
16316 version_type=freebsd-$objformat
16317 case $version_type in
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16328 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes
16333 freebsd3.[01]* | freebsdelf3.[01]*)
16334 shlibpath_overrides_runpath=yes
16335 hardcode_into_libs=yes
16337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16339 shlibpath_overrides_runpath=no
16340 hardcode_into_libs=yes
16342 freebsd*) # from 4.6 on
16343 shlibpath_overrides_runpath=yes
16344 hardcode_into_libs=yes
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 hardcode_into_libs=yes
16359 hpux9* | hpux10* | hpux11*)
16360 # Give a soname corresponding to the major version so that dld.sl refuses to
16361 # link against other versions.
16368 hardcode_into_libs=yes
16369 dynamic_linker="$host_os dld.so"
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 if test "X$HPUX_IA64_MODE" = X32; then
16375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16383 hardcode_into_libs=yes
16384 dynamic_linker="$host_os dld.sl"
16385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16394 dynamic_linker="$host_os dld.sl"
16395 shlibpath_var=SHLIB_PATH
16396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16401 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16402 postinstall_cmds='chmod 555 $lib'
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=no
16414 hardcode_into_libs=yes
16417 irix5* | irix6* | nonstopux*)
16419 nonstopux*) version_type=nonstopux ;;
16421 if test "$lt_cv_prog_gnu_ld" = yes; then
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16432 irix5* | nonstopux*)
16433 libsuff= shlibsuff=
16436 case $LD in # libtool.m4 will add one of these switches to LD
16437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16438 libsuff= shlibsuff= libmagic=32-bit;;
16439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16440 libsuff=32 shlibsuff=N32 libmagic=N32;;
16441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16443 *) libsuff= shlibsuff= libmagic=never-match;;
16447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16448 shlibpath_overrides_runpath=no
16449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16451 hardcode_into_libs=yes
16454 # No shared lib support for Linux oldld, aout, or coff.
16455 linux*oldld* | linux*aout* | linux*coff*)
16459 # This must be Linux ELF.
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 shlibpath_overrides_runpath=no
16469 # This implies no fast_install, which is unacceptable.
16470 # Some rework will be needed to allow for fast_install
16471 # before this can be enabled.
16472 hardcode_into_libs=yes
16474 # find out which ABI we are using
16476 case "$host_cpu" in
16477 x86_64*|s390x*|powerpc64*)
16478 echo '#line 16478 "configure"' > conftest.$ac_ext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16480 (eval $ac_compile) 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; then
16484 case `/usr/bin/file conftest.$ac_objext` in
16487 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16495 # Append ld.so.conf contents to the search path
16496 if test -f /etc/ld.so.conf; then
16497 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' ' '`
16498 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16501 # We used to test for /lib/ld.so.1 and disable shared libraries on
16502 # powerpc, because MkLinux only supported shared libraries with the
16503 # GNU dynamic linker. Since this was broken with cross compilers,
16504 # most powerpc-linux boxes support dynamic linking these days and
16505 # people can always --disable-shared, the test was removed, and we
16506 # assume the GNU/Linux dynamic linker is in use.
16507 dynamic_linker='GNU/Linux ld.so'
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 shlibpath_overrides_runpath=no
16518 hardcode_into_libs=yes
16519 dynamic_linker='GNU ld.so'
16526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16529 dynamic_linker='NetBSD (a.out) ld.so'
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 dynamic_linker='NetBSD ld.elf_so'
16535 shlibpath_var=LD_LIBRARY_PATH
16536 shlibpath_overrides_runpath=yes
16537 hardcode_into_libs=yes
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=yes
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 shlibpath_var=LD_LIBRARY_PATH
16554 shlibpath_overrides_runpath=yes
16559 sys_lib_dlsearch_path_spec="/usr/lib"
16561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16564 *) need_version=no ;;
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16568 shlibpath_var=LD_LIBRARY_PATH
16569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16571 openbsd2.[89] | openbsd2.[89].*)
16572 shlibpath_overrides_runpath=no
16575 shlibpath_overrides_runpath=yes
16579 shlibpath_overrides_runpath=yes
16584 libname_spec='$name'
16587 library_names_spec='$libname${shared_ext} $libname.a'
16588 dynamic_linker='OS/2 ld.exe'
16589 shlibpath_var=LIBPATH
16592 osf3* | osf4* | osf5*)
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16608 soname_spec='${libname}${release}${shared_ext}$major'
16609 shlibpath_var=LD_LIBRARY_PATH
16610 shlibpath_overrides_runpath=yes
16611 hardcode_into_libs=yes
16612 # ldd complains unless libraries are executable
16613 postinstall_cmds='chmod +x $lib'
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes
16622 if test "$with_gnu_ld" = yes; then
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 case $host_vendor in
16635 shlibpath_overrides_runpath=no
16637 export_dynamic_flag_spec='${wl}-Blargedynsym'
16638 runpath_var=LD_RUN_PATH
16646 shlibpath_overrides_runpath=no
16647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16653 if test -d /usr/nec ;then
16655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16656 soname_spec='$libname${shared_ext}.$major'
16657 shlibpath_var=LD_LIBRARY_PATH
16661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16662 version_type=freebsd-elf
16665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16666 soname_spec='${libname}${release}${shared_ext}$major'
16667 shlibpath_var=LD_LIBRARY_PATH
16668 hardcode_into_libs=yes
16669 if test "$with_gnu_ld" = yes; then
16670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16671 shlibpath_overrides_runpath=no
16673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16674 shlibpath_overrides_runpath=yes
16677 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16681 sys_lib_dlsearch_path_spec='/usr/lib'
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 shlibpath_var=LD_LIBRARY_PATH
16695 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16696 echo "${ECHO_T}$dynamic_linker" >&6
16697 test "$dynamic_linker" = no && can_build_shared=no
16699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16700 if test "$GCC" = yes; then
16701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16704 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16705 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16706 hardcode_action_F77=
16707 if test -n "$hardcode_libdir_flag_spec_F77" || \
16708 test -n "$runpath_var_F77" || \
16709 test "X$hardcode_automatic_F77" = "Xyes" ; then
16711 # We can hardcode non-existant directories.
16712 if test "$hardcode_direct_F77" != no &&
16713 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16714 # have to relink, otherwise we might link with an installed library
16715 # when we should be linking with a yet-to-be-installed one
16716 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16717 test "$hardcode_minus_L_F77" != no; then
16718 # Linking always hardcodes the temporary library directory.
16719 hardcode_action_F77=relink
16721 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16722 hardcode_action_F77=immediate
16725 # We cannot hardcode anything, or else we can only hardcode existing
16727 hardcode_action_F77=unsupported
16729 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16730 echo "${ECHO_T}$hardcode_action_F77" >&6
16732 if test "$hardcode_action_F77" = relink; then
16733 # Fast installation is not supported
16734 enable_fast_install=no
16735 elif test "$shlibpath_overrides_runpath" = yes ||
16736 test "$enable_shared" = no; then
16737 # Fast installation is not necessary
16738 enable_fast_install=needless
16742 # The else clause should only fire when bootstrapping the
16743 # libtool distribution, otherwise you forgot to ship ltmain.sh
16744 # with your package, and you will get complaints that there are
16745 # no rules to generate ltmain.sh.
16746 if test -f "$ltmain"; then
16747 # See if we are running on zsh, and set the options which allow our commands through
16748 # without removal of \ escapes.
16749 if test -n "${ZSH_VERSION+set}" ; then
16750 setopt NO_GLOB_SUBST
16752 # Now quote all the things that may contain metacharacters while being
16753 # careful not to overquote the AC_SUBSTed values. We take copies of the
16754 # variables and quote the copies for generation of the libtool script.
16755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16759 deplibs_check_method reload_flag reload_cmds need_locks \
16760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16761 lt_cv_sys_global_symbol_to_c_name_address \
16762 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16763 old_postinstall_cmds old_postuninstall_cmds \
16767 lt_prog_compiler_wl_F77 \
16768 lt_prog_compiler_pic_F77 \
16769 lt_prog_compiler_static_F77 \
16770 lt_prog_compiler_no_builtin_flag_F77 \
16771 export_dynamic_flag_spec_F77 \
16772 thread_safe_flag_spec_F77 \
16773 whole_archive_flag_spec_F77 \
16774 enable_shared_with_static_runtimes_F77 \
16775 old_archive_cmds_F77 \
16776 old_archive_from_new_cmds_F77 \
16777 predep_objects_F77 \
16778 postdep_objects_F77 \
16781 compiler_lib_search_path_F77 \
16783 archive_expsym_cmds_F77 \
16784 postinstall_cmds_F77 \
16785 postuninstall_cmds_F77 \
16786 old_archive_from_expsyms_cmds_F77 \
16787 allow_undefined_flag_F77 \
16788 no_undefined_flag_F77 \
16789 export_symbols_cmds_F77 \
16790 hardcode_libdir_flag_spec_F77 \
16791 hardcode_libdir_flag_spec_ld_F77 \
16792 hardcode_libdir_separator_F77 \
16793 hardcode_automatic_F77 \
16795 module_expsym_cmds_F77 \
16796 lt_cv_prog_compiler_c_o_F77 \
16797 exclude_expsyms_F77 \
16798 include_expsyms_F77; do
16801 old_archive_cmds_F77 | \
16802 old_archive_from_new_cmds_F77 | \
16803 archive_cmds_F77 | \
16804 archive_expsym_cmds_F77 | \
16805 module_cmds_F77 | \
16806 module_expsym_cmds_F77 | \
16807 old_archive_from_expsyms_cmds_F77 | \
16808 export_symbols_cmds_F77 | \
16809 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16810 postinstall_cmds | postuninstall_cmds | \
16811 old_postinstall_cmds | old_postuninstall_cmds | \
16812 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16813 # Double-quote double-evaled strings.
16814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16823 *'\$0 --fallback-echo"')
16824 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16830 cat <<__EOF__ >> "$cfgfile"
16831 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16835 # Shell to use when invoking shell scripts.
16838 # Whether or not to build shared libraries.
16839 build_libtool_libs=$enable_shared
16841 # Whether or not to build static libraries.
16842 build_old_libs=$enable_static
16844 # Whether or not to add -lc for building shared libraries.
16845 build_libtool_need_lc=$archive_cmds_need_lc_F77
16847 # Whether or not to disallow shared libs when runtime libs are static
16848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16850 # Whether or not to optimize for fast installation.
16851 fast_install=$enable_fast_install
16854 host_alias=$host_alias
16858 # The build system.
16859 build_alias=$build_alias
16863 # An echo program that does not interpret backslashes.
16868 AR_FLAGS=$lt_AR_FLAGS
16873 # LTCC compiler flags.
16874 LTCFLAGS=$lt_LTCFLAGS
16876 # A language-specific compiler.
16877 CC=$lt_compiler_F77
16879 # Is the compiler the GNU C compiler?
16885 # The linker used to build libraries.
16888 # Whether we need hard or soft links.
16891 # A BSD-compatible nm program.
16894 # A symbol stripping program
16897 # Used to examine libraries when file_magic_cmd begins "file"
16898 MAGIC_CMD=$MAGIC_CMD
16900 # Used on cygwin: DLL creation program.
16903 # Used on cygwin: object dumper.
16906 # Used on cygwin: assembler.
16909 # The name of the directory that contains temporary libtool files.
16912 # How to create reloadable object files.
16913 reload_flag=$lt_reload_flag
16914 reload_cmds=$lt_reload_cmds
16916 # How to pass a linker flag through the compiler.
16917 wl=$lt_lt_prog_compiler_wl_F77
16919 # Object file suffix (normally "o").
16920 objext="$ac_objext"
16922 # Old archive suffix (normally "a").
16925 # Shared library suffix (normally ".so").
16926 shrext_cmds='$shrext_cmds'
16928 # Executable file suffix (normally "").
16931 # Additional compiler flags for building library objects.
16932 pic_flag=$lt_lt_prog_compiler_pic_F77
16935 # What is the maximum length of a command?
16936 max_cmd_len=$lt_cv_sys_max_cmd_len
16938 # Does compiler simultaneously support -c and -o options?
16939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16941 # Must we lock files when doing compilation?
16942 need_locks=$lt_need_locks
16944 # Do we need the lib prefix for modules?
16945 need_lib_prefix=$need_lib_prefix
16947 # Do we need a version for libraries?
16948 need_version=$need_version
16950 # Whether dlopen is supported.
16951 dlopen_support=$enable_dlopen
16953 # Whether dlopen of programs is supported.
16954 dlopen_self=$enable_dlopen_self
16956 # Whether dlopen of statically linked programs is supported.
16957 dlopen_self_static=$enable_dlopen_self_static
16959 # Compiler flag to prevent dynamic linking.
16960 link_static_flag=$lt_lt_prog_compiler_static_F77
16962 # Compiler flag to turn off builtin functions.
16963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16965 # Compiler flag to allow reflexive dlopens.
16966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16968 # Compiler flag to generate shared objects directly from archives.
16969 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16971 # Compiler flag to generate thread-safe objects.
16972 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16974 # Library versioning type.
16975 version_type=$version_type
16977 # Format of library name prefix.
16978 libname_spec=$lt_libname_spec
16980 # List of archive names. First name is the real one, the rest are links.
16981 # The last name is the one that the linker finds with -lNAME.
16982 library_names_spec=$lt_library_names_spec
16984 # The coded name of the library, if different from the real name.
16985 soname_spec=$lt_soname_spec
16987 # Commands used to build and install an old-style archive.
16989 old_archive_cmds=$lt_old_archive_cmds_F77
16990 old_postinstall_cmds=$lt_old_postinstall_cmds
16991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16993 # Create an old-style archive from a shared archive.
16994 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16996 # Create a temporary old-style archive to link instead of a shared archive.
16997 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16999 # Commands used to build and install a shared archive.
17000 archive_cmds=$lt_archive_cmds_F77
17001 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17002 postinstall_cmds=$lt_postinstall_cmds
17003 postuninstall_cmds=$lt_postuninstall_cmds
17005 # Commands used to build a loadable module (assumed same as above if empty)
17006 module_cmds=$lt_module_cmds_F77
17007 module_expsym_cmds=$lt_module_expsym_cmds_F77
17009 # Commands to strip libraries.
17010 old_striplib=$lt_old_striplib
17011 striplib=$lt_striplib
17013 # Dependencies to place before the objects being linked to create a
17015 predep_objects=$lt_predep_objects_F77
17017 # Dependencies to place after the objects being linked to create a
17019 postdep_objects=$lt_postdep_objects_F77
17021 # Dependencies to place before the objects being linked to create a
17023 predeps=$lt_predeps_F77
17025 # Dependencies to place after the objects being linked to create a
17027 postdeps=$lt_postdeps_F77
17029 # The library search path used internally by the compiler when linking
17030 # a shared library.
17031 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17033 # Method to check whether dependent libraries are shared objects.
17034 deplibs_check_method=$lt_deplibs_check_method
17036 # Command to use when deplibs_check_method == file_magic.
17037 file_magic_cmd=$lt_file_magic_cmd
17039 # Flag that allows shared libraries with undefined symbols to be built.
17040 allow_undefined_flag=$lt_allow_undefined_flag_F77
17042 # Flag that forces no undefined symbols.
17043 no_undefined_flag=$lt_no_undefined_flag_F77
17045 # Commands used to finish a libtool library installation in a directory.
17046 finish_cmds=$lt_finish_cmds
17048 # Same as above, but a single script fragment to be evaled but not shown.
17049 finish_eval=$lt_finish_eval
17051 # Take the output of nm and produce a listing of raw symbols and C names.
17052 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17054 # Transform the output of nm in a proper C declaration
17055 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17057 # Transform the output of nm in a C name address pair
17058 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17060 # This is the shared library runtime path variable.
17061 runpath_var=$runpath_var
17063 # This is the shared library path variable.
17064 shlibpath_var=$shlibpath_var
17066 # Is shlibpath searched before the hard-coded library search path?
17067 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17069 # How to hardcode a shared library path into an executable.
17070 hardcode_action=$hardcode_action_F77
17072 # Whether we should hardcode library paths into libraries.
17073 hardcode_into_libs=$hardcode_into_libs
17075 # Flag to hardcode \$libdir into a binary during linking.
17076 # This must work even if \$libdir does not exist.
17077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17079 # If ld is used when linking, flag to hardcode \$libdir into
17080 # a binary during linking. This must work even if \$libdir does
17082 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17084 # Whether we need a single -rpath flag with a separated argument.
17085 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17087 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17088 # resulting binary.
17089 hardcode_direct=$hardcode_direct_F77
17091 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17092 # resulting binary.
17093 hardcode_minus_L=$hardcode_minus_L_F77
17095 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17096 # the resulting binary.
17097 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17099 # Set to yes if building a shared library automatically hardcodes DIR into the library
17100 # and all subsequent libraries and executables linked against it.
17101 hardcode_automatic=$hardcode_automatic_F77
17103 # Variables whose values should be saved in libtool wrapper scripts and
17104 # restored at relink time.
17105 variables_saved_for_relink="$variables_saved_for_relink"
17107 # Whether libtool must link a program against all its dependency libraries.
17108 link_all_deplibs=$link_all_deplibs_F77
17110 # Compile-time system search path for libraries
17111 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17113 # Run-time system search path for libraries
17114 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17116 # Fix the shell variable \$srcfile for the compiler.
17117 fix_srcfile_path="$fix_srcfile_path_F77"
17119 # Set to yes if exported symbols are required.
17120 always_export_symbols=$always_export_symbols_F77
17122 # The commands to list exported symbols.
17123 export_symbols_cmds=$lt_export_symbols_cmds_F77
17125 # The commands to extract the exported symbol list from a shared archive.
17126 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17128 # Symbols that should not be listed in the preloaded symbols.
17129 exclude_expsyms=$lt_exclude_expsyms_F77
17131 # Symbols that must always be exported.
17132 include_expsyms=$lt_include_expsyms_F77
17134 # ### END LIBTOOL TAG CONFIG: $tagname
17140 # If there is no Makefile yet, we rely on a make rule to execute
17141 # `config.status --recheck' to rerun these tests and create the
17142 # libtool script then.
17143 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17144 if test -f "$ltmain_in"; then
17145 test -f Makefile && make "$ltmain"
17151 ac_cpp='$CPP $CPPFLAGS'
17152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17164 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17168 # Source file extension for Java test sources.
17171 # Object file extension for compiled Java test sources.
17175 # Code to be used in simple compile tests
17176 lt_simple_compile_test_code="class foo {}\n"
17178 # Code to be used in simple link tests
17179 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17181 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17183 # If no C compiler was specified, use CC.
17186 # If no C compiler flags were specified, use CFLAGS.
17187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17189 # Allow CC to be a program name with arguments.
17193 # save warnings/boilerplate of simple test code
17194 ac_outfile=conftest.$ac_objext
17195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17197 _lt_compiler_boilerplate=`cat conftest.err`
17200 ac_outfile=conftest.$ac_objext
17201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17203 _lt_linker_boilerplate=`cat conftest.err`
17207 # Allow CC to be a program name with arguments.
17212 for cc_temp in $compiler""; do
17214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17223 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17224 archive_cmds_need_lc_GCJ=no
17226 old_archive_cmds_GCJ=$old_archive_cmds
17229 lt_prog_compiler_no_builtin_flag_GCJ=
17231 if test "$GCC" = yes; then
17232 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17235 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17236 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17237 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 lt_cv_prog_compiler_rtti_exceptions=no
17241 ac_outfile=conftest.$ac_objext
17242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17243 lt_compiler_flag="-fno-rtti -fno-exceptions"
17244 # Insert the option either (1) after the last *FLAGS variable, or
17245 # (2) before a word containing "conftest.", or (3) at the end.
17246 # Note that $ac_compile itself does not contain backslashes and begins
17247 # with a dollar sign (not a hyphen), so the echo should work correctly.
17248 # The option is referenced via a variable to avoid confusing sed.
17249 lt_compile=`echo "$ac_compile" | $SED \
17250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17252 -e 's:$: $lt_compiler_flag:'`
17253 (eval echo "\"\$as_me:17253: $lt_compile\"" >&5)
17254 (eval "$lt_compile" 2>conftest.err)
17256 cat conftest.err >&5
17257 echo "$as_me:17257: \$? = $ac_status" >&5
17258 if (exit $ac_status) && test -s "$ac_outfile"; then
17259 # The compiler can only warn and ignore the option if not recognized
17260 # So say no if there are warnings other than the usual output.
17261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17264 lt_cv_prog_compiler_rtti_exceptions=yes
17270 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17271 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17274 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17281 lt_prog_compiler_wl_GCJ=
17282 lt_prog_compiler_pic_GCJ=
17283 lt_prog_compiler_static_GCJ=
17285 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17286 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17288 if test "$GCC" = yes; then
17289 lt_prog_compiler_wl_GCJ='-Wl,'
17290 lt_prog_compiler_static_GCJ='-static'
17294 # All AIX code is PIC.
17295 if test "$host_cpu" = ia64; then
17296 # AIX 5 now supports IA64 processor
17297 lt_prog_compiler_static_GCJ='-Bstatic'
17302 # FIXME: we need at least 68020 code to build shared libraries, but
17303 # adding the `-m68020' flag to GCC prevents building anything better,
17305 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17308 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17309 # PIC is the default for these OSes.
17312 mingw* | pw32* | os2*)
17313 # This hack is so that the source file can tell whether it is being
17314 # built for inclusion in a dll (and should export symbols for example).
17315 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17318 darwin* | rhapsody*)
17319 # PIC is the default on this platform
17320 # Common symbols not allowed in MH_DYLIB files
17321 lt_prog_compiler_pic_GCJ='-fno-common'
17325 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17326 # Instead, we relocate shared libraries at runtime.
17330 # Just because we use GCC doesn't mean we suddenly get shared libraries
17331 # on systems that don't support them.
17332 lt_prog_compiler_can_build_shared_GCJ=no
17337 if test -d /usr/nec; then
17338 lt_prog_compiler_pic_GCJ=-Kconform_pic
17343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17344 # not for PA HP-UX.
17350 lt_prog_compiler_pic_GCJ='-fPIC'
17356 lt_prog_compiler_pic_GCJ='-fPIC'
17360 # PORTME Check for flag to pass linker flags through the system compiler.
17363 lt_prog_compiler_wl_GCJ='-Wl,'
17364 if test "$host_cpu" = ia64; then
17365 # AIX 5 now supports IA64 processor
17366 lt_prog_compiler_static_GCJ='-Bstatic'
17368 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17372 # PIC is the default on this platform
17373 # Common symbols not allowed in MH_DYLIB files
17374 case $cc_basename in
17376 lt_prog_compiler_pic_GCJ='-qnocommon'
17377 lt_prog_compiler_wl_GCJ='-Wl,'
17382 mingw* | pw32* | os2*)
17383 # This hack is so that the source file can tell whether it is being
17384 # built for inclusion in a dll (and should export symbols for example).
17385 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17388 hpux9* | hpux10* | hpux11*)
17389 lt_prog_compiler_wl_GCJ='-Wl,'
17390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17391 # not for PA HP-UX.
17397 lt_prog_compiler_pic_GCJ='+Z'
17400 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17401 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17404 irix5* | irix6* | nonstopux*)
17405 lt_prog_compiler_wl_GCJ='-Wl,'
17406 # PIC (with -KPIC) is the default.
17407 lt_prog_compiler_static_GCJ='-non_shared'
17411 lt_prog_compiler_pic_GCJ='-KPIC'
17412 lt_prog_compiler_static_GCJ='-Bstatic'
17416 case $cc_basename in
17418 lt_prog_compiler_wl_GCJ='-Wl,'
17419 lt_prog_compiler_pic_GCJ='-KPIC'
17420 lt_prog_compiler_static_GCJ='-static'
17422 pgcc* | pgf77* | pgf90* | pgf95*)
17423 # Portland Group compilers (*not* the Pentium gcc compiler,
17424 # which looks to be a dead project)
17425 lt_prog_compiler_wl_GCJ='-Wl,'
17426 lt_prog_compiler_pic_GCJ='-fpic'
17427 lt_prog_compiler_static_GCJ='-Bstatic'
17430 lt_prog_compiler_wl_GCJ='-Wl,'
17431 # All Alpha code is PIC.
17432 lt_prog_compiler_static_GCJ='-non_shared'
17437 osf3* | osf4* | osf5*)
17438 lt_prog_compiler_wl_GCJ='-Wl,'
17439 # All OSF/1 code is PIC.
17440 lt_prog_compiler_static_GCJ='-non_shared'
17444 lt_prog_compiler_pic_GCJ='-KPIC'
17445 lt_prog_compiler_static_GCJ='-Bstatic'
17446 case $cc_basename in
17447 f77* | f90* | f95*)
17448 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17450 lt_prog_compiler_wl_GCJ='-Wl,';;
17455 lt_prog_compiler_wl_GCJ='-Qoption ld '
17456 lt_prog_compiler_pic_GCJ='-PIC'
17457 lt_prog_compiler_static_GCJ='-Bstatic'
17460 sysv4 | sysv4.2uw2* | sysv4.3*)
17461 lt_prog_compiler_wl_GCJ='-Wl,'
17462 lt_prog_compiler_pic_GCJ='-KPIC'
17463 lt_prog_compiler_static_GCJ='-Bstatic'
17467 if test -d /usr/nec ;then
17468 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17469 lt_prog_compiler_static_GCJ='-Bstatic'
17473 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17474 lt_prog_compiler_wl_GCJ='-Wl,'
17475 lt_prog_compiler_pic_GCJ='-KPIC'
17476 lt_prog_compiler_static_GCJ='-Bstatic'
17480 lt_prog_compiler_wl_GCJ='-Wl,'
17481 lt_prog_compiler_can_build_shared_GCJ=no
17485 lt_prog_compiler_pic_GCJ='-pic'
17486 lt_prog_compiler_static_GCJ='-Bstatic'
17490 lt_prog_compiler_can_build_shared_GCJ=no
17495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17496 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17499 # Check to make sure the PIC flag actually works.
17501 if test -n "$lt_prog_compiler_pic_GCJ"; then
17503 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17504 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17505 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 lt_prog_compiler_pic_works_GCJ=no
17509 ac_outfile=conftest.$ac_objext
17510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17511 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17512 # Insert the option either (1) after the last *FLAGS variable, or
17513 # (2) before a word containing "conftest.", or (3) at the end.
17514 # Note that $ac_compile itself does not contain backslashes and begins
17515 # with a dollar sign (not a hyphen), so the echo should work correctly.
17516 # The option is referenced via a variable to avoid confusing sed.
17517 lt_compile=`echo "$ac_compile" | $SED \
17518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17520 -e 's:$: $lt_compiler_flag:'`
17521 (eval echo "\"\$as_me:17521: $lt_compile\"" >&5)
17522 (eval "$lt_compile" 2>conftest.err)
17524 cat conftest.err >&5
17525 echo "$as_me:17525: \$? = $ac_status" >&5
17526 if (exit $ac_status) && test -s "$ac_outfile"; then
17527 # The compiler can only warn and ignore the option if not recognized
17528 # So say no if there are warnings other than the usual output.
17529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17532 lt_prog_compiler_pic_works_GCJ=yes
17538 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17539 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17541 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17542 case $lt_prog_compiler_pic_GCJ in
17544 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17547 lt_prog_compiler_pic_GCJ=
17548 lt_prog_compiler_can_build_shared_GCJ=no
17553 # For platforms which do not support PIC, -DPIC is meaningless:
17555 lt_prog_compiler_pic_GCJ=
17558 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17563 # Check to make sure the static flag actually works.
17565 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17566 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17567 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17568 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 lt_prog_compiler_static_works_GCJ=no
17572 save_LDFLAGS="$LDFLAGS"
17573 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17574 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17576 # The linker can only warn and ignore the option if not recognized
17577 # So say no if there are warnings
17578 if test -s conftest.err; then
17579 # Append any errors to the config.log.
17580 cat conftest.err 1>&5
17581 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17583 if diff conftest.exp conftest.er2 >/dev/null; then
17584 lt_prog_compiler_static_works_GCJ=yes
17587 lt_prog_compiler_static_works_GCJ=yes
17591 LDFLAGS="$save_LDFLAGS"
17594 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17595 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17597 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17600 lt_prog_compiler_static_GCJ=
17604 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17605 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17606 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 lt_cv_prog_compiler_c_o_GCJ=no
17610 $rm -r conftest 2>/dev/null
17614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17616 lt_compiler_flag="-o out/conftest2.$ac_objext"
17617 # Insert the option either (1) after the last *FLAGS variable, or
17618 # (2) before a word containing "conftest.", or (3) at the end.
17619 # Note that $ac_compile itself does not contain backslashes and begins
17620 # with a dollar sign (not a hyphen), so the echo should work correctly.
17621 lt_compile=`echo "$ac_compile" | $SED \
17622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17624 -e 's:$: $lt_compiler_flag:'`
17625 (eval echo "\"\$as_me:17625: $lt_compile\"" >&5)
17626 (eval "$lt_compile" 2>out/conftest.err)
17628 cat out/conftest.err >&5
17629 echo "$as_me:17629: \$? = $ac_status" >&5
17630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17632 # The compiler can only warn and ignore the option if not recognized
17633 # So say no if there are warnings
17634 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17637 lt_cv_prog_compiler_c_o_GCJ=yes
17642 # SGI C++ compiler will create directory out/ii_files/ for
17643 # template instantiation
17644 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17645 $rm out/* && rmdir out
17651 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17652 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17655 hard_links="nottested"
17656 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17657 # do not overwrite the value of need_locks provided by the user
17658 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17659 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17664 ln conftest.a conftest.b 2>&5 || hard_links=no
17665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17666 echo "$as_me:$LINENO: result: $hard_links" >&5
17667 echo "${ECHO_T}$hard_links" >&6
17668 if test "$hard_links" = no; then
17669 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17670 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17677 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17678 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17681 allow_undefined_flag_GCJ=
17682 enable_shared_with_static_runtimes_GCJ=no
17684 archive_expsym_cmds_GCJ=
17685 old_archive_From_new_cmds_GCJ=
17686 old_archive_from_expsyms_cmds_GCJ=
17687 export_dynamic_flag_spec_GCJ=
17688 whole_archive_flag_spec_GCJ=
17689 thread_safe_flag_spec_GCJ=
17690 hardcode_libdir_flag_spec_GCJ=
17691 hardcode_libdir_flag_spec_ld_GCJ=
17692 hardcode_libdir_separator_GCJ=
17693 hardcode_direct_GCJ=no
17694 hardcode_minus_L_GCJ=no
17695 hardcode_shlibpath_var_GCJ=unsupported
17696 link_all_deplibs_GCJ=unknown
17697 hardcode_automatic_GCJ=no
17699 module_expsym_cmds_GCJ=
17700 always_export_symbols_GCJ=no
17701 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17702 # include_expsyms should be a list of space-separated symbols to be *always*
17703 # included in the symbol list
17704 include_expsyms_GCJ=
17705 # exclude_expsyms can be an extended regexp of symbols to exclude
17706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17708 # as well as any symbol that contains `d'.
17709 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17711 # platforms (ab)use it in PIC code, but their linkers get confused if
17712 # the symbol is explicitly referenced. Since portable code cannot
17713 # rely on this symbol name, it's probably fine to never include it in
17714 # preloaded symbol tables.
17715 extract_expsyms_cmds=
17716 # Just being paranoid about ensuring that cc_basename is set.
17717 for cc_temp in $compiler""; do
17719 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17720 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17725 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17728 cygwin* | mingw* | pw32*)
17729 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17730 # When not using gcc, we currently assume that we are using
17731 # Microsoft Visual C++.
17732 if test "$GCC" != yes; then
17737 # we just hope/assume this is gcc and not c89 (= MSVC++)
17746 if test "$with_gnu_ld" = yes; then
17747 # If archive_cmds runs LD, not CC, wlarc should be empty
17750 # Set some defaults for GNU ld with shared library support. These
17751 # are reset later if shared libraries are not supported. Putting them
17752 # here allows them to be overridden if necessary.
17753 runpath_var=LD_RUN_PATH
17754 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17755 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17756 # ancient GNU ld didn't support --whole-archive et. al.
17757 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17758 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17760 whole_archive_flag_spec_GCJ=
17762 supports_anon_versioning=no
17763 case `$LD -v 2>/dev/null` in
17764 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17765 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17766 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17767 *\ 2.11.*) ;; # other 2.11 versions
17768 *) supports_anon_versioning=yes ;;
17771 # See if GNU ld supports shared libraries.
17773 aix3* | aix4* | aix5*)
17774 # On AIX/PPC, the GNU linker is very broken
17775 if test "$host_cpu" != ia64; then
17779 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17780 *** to be unable to reliably create shared libraries on AIX.
17781 *** Therefore, libtool is disabling shared libraries support. If you
17782 *** really care for shared libraries, you may want to modify your PATH
17783 *** so that a non-GNU linker is found, and then restart.
17790 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)'
17791 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17792 hardcode_minus_L_GCJ=yes
17794 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17795 # that the semantics of dynamic libraries on AmigaOS, at least up
17796 # to version 4, is to share data among multiple programs linked
17797 # with the same dynamic library. Since this doesn't match the
17798 # behavior of shared libraries on other platforms, we can't use
17804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17805 allow_undefined_flag_GCJ=unsupported
17806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17807 # support --undefined. This deserves some investigation. FIXME
17808 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17814 cygwin* | mingw* | pw32*)
17815 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17816 # as there is no search path for DLLs.
17817 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17818 allow_undefined_flag_GCJ=unsupported
17819 always_export_symbols_GCJ=no
17820 enable_shared_with_static_runtimes_GCJ=yes
17821 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17823 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17824 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17825 # If the export-symbols file already is a .def file (1st line
17826 # is EXPORTS), use it as is; otherwise, prepend...
17827 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17828 cp $export_symbols $output_objdir/$soname.def;
17830 echo EXPORTS > $output_objdir/$soname.def;
17831 cat $export_symbols >> $output_objdir/$soname.def;
17833 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17840 hardcode_direct_GCJ=no
17841 hardcode_shlibpath_var_GCJ=no
17842 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17843 export_dynamic_flag_spec_GCJ='${wl}-E'
17844 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17845 # Instead, shared libraries are loaded at an image base (0x10000000 by
17846 # default) and relocated if they conflict, which is a slow very memory
17847 # consuming and fragmenting process. To avoid this, we pick a random,
17848 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17849 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17850 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'
17851 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'
17855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17857 case $cc_basename,$host_cpu in
17858 pgcc*) # Portland Group C compiler
17859 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'
17860 tmp_addflag=' $pic_flag'
17862 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17863 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'
17864 tmp_addflag=' $pic_flag -Mnomain' ;;
17865 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17866 tmp_addflag=' -i_dynamic' ;;
17867 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17868 tmp_addflag=' -i_dynamic -nofor_main' ;;
17869 ifc* | ifort*) # Intel Fortran compiler
17870 tmp_addflag=' -nofor_main' ;;
17872 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17874 if test $supports_anon_versioning = yes; then
17875 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17876 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17877 $echo "local: *; };" >> $output_objdir/$libname.ver~
17878 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17887 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17890 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17891 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17896 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17900 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17901 *** create shared libraries on Solaris systems. Therefore, libtool
17902 *** is disabling shared libraries support. We urge you to upgrade GNU
17903 *** binutils to release 2.9.1 or newer. Another option is to modify
17904 *** your PATH or compiler configuration so that the native linker is
17905 *** used, and then restart.
17908 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17909 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17910 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17917 case `$LD -v 2>&1` in
17918 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17922 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17923 *** reliably create shared libraries on SCO systems. Therefore, libtool
17924 *** is disabling shared libraries support. We urge you to upgrade GNU
17925 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17926 *** your PATH or compiler configuration so that the native linker is
17927 *** used, and then restart.
17932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17933 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17934 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17935 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17944 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17946 hardcode_direct_GCJ=yes
17947 hardcode_shlibpath_var_GCJ=no
17951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17952 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17953 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17960 if test "$ld_shlibs_GCJ" = no; then
17962 hardcode_libdir_flag_spec_GCJ=
17963 export_dynamic_flag_spec_GCJ=
17964 whole_archive_flag_spec_GCJ=
17967 # PORTME fill in a description of your system's linker (not GNU ld)
17970 allow_undefined_flag_GCJ=unsupported
17971 always_export_symbols_GCJ=yes
17972 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'
17973 # Note: this linker hardcodes the directories in LIBPATH if there
17974 # are no directories specified by -L.
17975 hardcode_minus_L_GCJ=yes
17976 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17977 # Neither direct hardcoding nor static linking is supported with a
17979 hardcode_direct_GCJ=unsupported
17984 if test "$host_cpu" = ia64; then
17985 # On IA64, the linker does run time linking by default, so we don't
17986 # have to do anything special.
17987 aix_use_runtimelinking=no
17988 exp_sym_flag='-Bexport'
17991 # If we're using GNU nm, then we don't want the "-C" option.
17992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17993 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17994 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'
17996 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'
17998 aix_use_runtimelinking=no
18000 # Test if we are trying to use run time linking or normal
18001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18002 # need to do runtime linking.
18003 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18004 for ld_flag in $LDFLAGS; do
18005 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18006 aix_use_runtimelinking=yes
18013 exp_sym_flag='-bexport'
18014 no_entry_flag='-bnoentry'
18017 # When large executables or shared objects are built, AIX ld can
18018 # have problems creating the table of contents. If linking a library
18019 # or program results in "error TOC overflow" add -mminimal-toc to
18020 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18021 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18023 archive_cmds_GCJ=''
18024 hardcode_direct_GCJ=yes
18025 hardcode_libdir_separator_GCJ=':'
18026 link_all_deplibs_GCJ=yes
18028 if test "$GCC" = yes; then
18029 case $host_os in aix4.[012]|aix4.[012].*)
18030 # We only want to do this on AIX 4.2 and lower, the check
18031 # below for broken collect2 doesn't work under 4.3+
18032 collect2name=`${CC} -print-prog-name=collect2`
18033 if test -f "$collect2name" && \
18034 strings "$collect2name" | grep resolve_lib_name >/dev/null
18036 # We have reworked collect2
18037 hardcode_direct_GCJ=yes
18039 # We have old collect2
18040 hardcode_direct_GCJ=unsupported
18041 # It fails to find uninstalled libraries when the uninstalled
18042 # path is not listed in the libpath. Setting hardcode_minus_L
18043 # to unsupported forces relinking
18044 hardcode_minus_L_GCJ=yes
18045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18046 hardcode_libdir_separator_GCJ=
18050 shared_flag='-shared'
18051 if test "$aix_use_runtimelinking" = yes; then
18052 shared_flag="$shared_flag "'${wl}-G'
18056 if test "$host_cpu" = ia64; then
18057 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18058 # chokes on -Wl,-G. The following line is correct:
18061 if test "$aix_use_runtimelinking" = yes; then
18062 shared_flag='${wl}-G'
18064 shared_flag='${wl}-bM:SRE'
18069 # It seems that -bexpall does not export symbols beginning with
18070 # underscore (_), so it is better to generate a list of symbols to export.
18071 always_export_symbols_GCJ=yes
18072 if test "$aix_use_runtimelinking" = yes; then
18073 # Warning - without using the other runtime loading flags (-brtl),
18074 # -berok will link without error, but may produce a broken library.
18075 allow_undefined_flag_GCJ='-berok'
18076 # Determine the default libpath from the value encoded in an empty executable.
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try='test -s conftest$ac_exeext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18117 # Check for a 64-bit object if we didn't find anything.
18118 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; }
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18125 rm -f conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18129 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18130 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"
18132 if test "$host_cpu" = ia64; then
18133 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18134 allow_undefined_flag_GCJ="-z nodefs"
18135 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"
18137 # Determine the default libpath from the value encoded in an empty executable.
18138 cat >conftest.$ac_ext <<_ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18153 rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18155 (eval $ac_link) 2>conftest.er1
18157 grep -v '^ *+' conftest.er1 >conftest.err
18159 cat conftest.err >&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -z "$ac_c_werror_flag"
18163 || test ! -s conftest.err'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest$ac_exeext'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18176 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18178 # Check for a 64-bit object if we didn't find anything.
18179 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; }
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18186 rm -f conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18190 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18191 # Warning - without using the other run time loading flags,
18192 # -berok will link without error, but may produce a broken library.
18193 no_undefined_flag_GCJ=' ${wl}-bernotok'
18194 allow_undefined_flag_GCJ=' ${wl}-berok'
18195 # Exported symbols can be pulled into shared objects from archives
18196 whole_archive_flag_spec_GCJ='$convenience'
18197 archive_cmds_need_lc_GCJ=yes
18198 # This is similar to how AIX traditionally builds its shared libraries.
18199 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'
18205 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)'
18206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18207 hardcode_minus_L_GCJ=yes
18208 # see comment about different semantics on the GNU ld section
18213 export_dynamic_flag_spec_GCJ=-rdynamic
18216 cygwin* | mingw* | pw32*)
18217 # When not using gcc, we currently assume that we are using
18218 # Microsoft Visual C++.
18219 # hardcode_libdir_flag_spec is actually meaningless, as there is
18220 # no search path for DLLs.
18221 hardcode_libdir_flag_spec_GCJ=' '
18222 allow_undefined_flag_GCJ=unsupported
18223 # Tell ltmain to make .lib files, not .a files.
18225 # Tell ltmain to make .dll files, not .so files.
18227 # FIXME: Setting linknames here is a bad hack.
18228 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18229 # The linker will automatically build a .lib file if we build a DLL.
18230 old_archive_From_new_cmds_GCJ='true'
18231 # FIXME: Should let the user specify the lib program.
18232 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18233 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18234 enable_shared_with_static_runtimes_GCJ=yes
18237 darwin* | rhapsody*)
18239 rhapsody* | darwin1.[012])
18240 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18243 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18244 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18246 case ${MACOSX_DEPLOYMENT_TARGET} in
18248 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18251 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18257 archive_cmds_need_lc_GCJ=no
18258 hardcode_direct_GCJ=no
18259 hardcode_automatic_GCJ=yes
18260 hardcode_shlibpath_var_GCJ=unsupported
18261 whole_archive_flag_spec_GCJ=''
18262 link_all_deplibs_GCJ=yes
18263 if test "$GCC" = yes ; then
18264 output_verbose_link_cmd='echo'
18265 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18266 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18268 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}'
18269 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}'
18271 case $cc_basename in
18273 output_verbose_link_cmd='echo'
18274 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18275 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18276 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18277 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}'
18278 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}'
18288 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18290 hardcode_shlibpath_var_GCJ=no
18297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18298 # support. Future versions do this automatically, but an explicit c++rt0.o
18299 # does not break anything, and helps significantly (at the cost of a little
18302 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18303 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18304 hardcode_direct_GCJ=yes
18305 hardcode_shlibpath_var_GCJ=no
18308 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18310 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18311 hardcode_direct_GCJ=yes
18312 hardcode_minus_L_GCJ=yes
18313 hardcode_shlibpath_var_GCJ=no
18316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18317 freebsd* | kfreebsd*-gnu | dragonfly*)
18318 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18319 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18320 hardcode_direct_GCJ=yes
18321 hardcode_shlibpath_var_GCJ=no
18325 if test "$GCC" = yes; then
18326 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'
18328 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'
18330 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18331 hardcode_libdir_separator_GCJ=:
18332 hardcode_direct_GCJ=yes
18334 # hardcode_minus_L: Not really in the search PATH,
18335 # but as the default location of the library.
18336 hardcode_minus_L_GCJ=yes
18337 export_dynamic_flag_spec_GCJ='${wl}-E'
18341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18342 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18344 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18346 if test "$with_gnu_ld" = no; then
18347 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18348 hardcode_libdir_separator_GCJ=:
18350 hardcode_direct_GCJ=yes
18351 export_dynamic_flag_spec_GCJ='${wl}-E'
18353 # hardcode_minus_L: Not really in the search PATH,
18354 # but as the default location of the library.
18355 hardcode_minus_L_GCJ=yes
18360 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18363 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18366 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18369 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18375 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18378 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18381 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18385 if test "$with_gnu_ld" = no; then
18386 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18387 hardcode_libdir_separator_GCJ=:
18391 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18392 hardcode_direct_GCJ=no
18393 hardcode_shlibpath_var_GCJ=no
18396 hardcode_direct_GCJ=yes
18397 export_dynamic_flag_spec_GCJ='${wl}-E'
18399 # hardcode_minus_L: Not really in the search PATH,
18400 # but as the default location of the library.
18401 hardcode_minus_L_GCJ=yes
18407 irix5* | irix6* | nonstopux*)
18408 if test "$GCC" = yes; then
18409 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'
18411 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'
18412 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18415 hardcode_libdir_separator_GCJ=:
18416 link_all_deplibs_GCJ=yes
18420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18421 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18423 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18425 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18426 hardcode_direct_GCJ=yes
18427 hardcode_shlibpath_var_GCJ=no
18431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18432 hardcode_direct_GCJ=yes
18433 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18434 hardcode_libdir_separator_GCJ=:
18435 hardcode_shlibpath_var_GCJ=no
18439 hardcode_direct_GCJ=yes
18440 hardcode_shlibpath_var_GCJ=no
18441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18442 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18443 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18444 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18445 export_dynamic_flag_spec_GCJ='${wl}-E'
18448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18449 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18450 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18453 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18454 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18461 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18462 hardcode_minus_L_GCJ=yes
18463 allow_undefined_flag_GCJ=unsupported
18464 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'
18465 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18469 if test "$GCC" = yes; then
18470 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18471 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'
18473 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18474 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'
18476 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18477 hardcode_libdir_separator_GCJ=:
18480 osf4* | osf5*) # as osf3* with the addition of -msym flag
18481 if test "$GCC" = yes; then
18482 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18483 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'
18484 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18486 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18487 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'
18488 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~
18489 $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'
18491 # Both c and cxx compiler support -rpath directly
18492 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18494 hardcode_libdir_separator_GCJ=:
18498 no_undefined_flag_GCJ=' -z text'
18499 if test "$GCC" = yes; then
18501 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18502 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18503 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18506 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18507 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18510 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18511 hardcode_shlibpath_var_GCJ=no
18513 solaris2.[0-5] | solaris2.[0-5].*) ;;
18515 # The compiler driver will combine linker options so we
18516 # cannot just pass the convience library names through
18517 # without $wl, iff we do not link with $LD.
18518 # Luckily, gcc supports the same syntax we need for Sun Studio.
18519 # Supported since Solaris 2.6 (maybe 2.5.1?)
18522 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18524 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' ;;
18527 link_all_deplibs_GCJ=yes
18531 if test "x$host_vendor" = xsequent; then
18532 # Use $CC to link under sequent, because it throws in some extra .o
18533 # files that make .init and .fini sections work.
18534 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18536 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18538 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18539 hardcode_direct_GCJ=yes
18540 hardcode_minus_L_GCJ=yes
18541 hardcode_shlibpath_var_GCJ=no
18545 case $host_vendor in
18547 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18548 hardcode_direct_GCJ=yes # is this really true???
18551 ## LD is ld it makes a PLAMLIB
18552 ## CC just makes a GrossModule.
18553 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18554 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18555 hardcode_direct_GCJ=no
18558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18559 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18562 runpath_var='LD_RUN_PATH'
18563 hardcode_shlibpath_var_GCJ=no
18567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18568 hardcode_shlibpath_var_GCJ=no
18569 export_dynamic_flag_spec_GCJ='-Bexport'
18573 if test -d /usr/nec; then
18574 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18575 hardcode_shlibpath_var_GCJ=no
18576 runpath_var=LD_RUN_PATH
18577 hardcode_runpath_var=yes
18582 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18583 no_undefined_flag_GCJ='${wl}-z,text'
18584 archive_cmds_need_lc_GCJ=no
18585 hardcode_shlibpath_var_GCJ=no
18586 runpath_var='LD_RUN_PATH'
18588 if test "$GCC" = yes; then
18589 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18590 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18592 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18593 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18597 sysv5* | sco3.2v5* | sco5v6*)
18598 # Note: We can NOT use -z defs as we might desire, because we do not
18599 # link with -lc, and that would cause any symbols used from libc to
18600 # always be unresolved, which means just about no library would
18601 # ever link correctly. If we're not using GNU ld we use -z text
18602 # though, which does catch some bad symbols but isn't as heavy-handed
18604 no_undefined_flag_GCJ='${wl}-z,text'
18605 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18606 archive_cmds_need_lc_GCJ=no
18607 hardcode_shlibpath_var_GCJ=no
18608 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18609 hardcode_libdir_separator_GCJ=':'
18610 link_all_deplibs_GCJ=yes
18611 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18612 runpath_var='LD_RUN_PATH'
18614 if test "$GCC" = yes; then
18615 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18616 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18618 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18619 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18624 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18626 hardcode_shlibpath_var_GCJ=no
18635 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18636 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18637 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18640 # Do we need to explicitly link libc?
18642 case "x$archive_cmds_need_lc_GCJ" in
18644 # Assume -lc should be added
18645 archive_cmds_need_lc_GCJ=yes
18647 if test "$enable_shared" = yes && test "$GCC" = yes; then
18648 case $archive_cmds_GCJ in
18650 # FIXME: we may have to deal with multi-command sequences.
18653 # Test whether the compiler implicitly links with -lc since on some
18654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18655 # to ld, don't add -lc before -lgcc.
18656 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18657 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662 (eval $ac_compile) 2>&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } 2>conftest.err; then
18668 libobjs=conftest.$ac_objext
18670 wl=$lt_prog_compiler_wl_GCJ
18671 pic_flag=$lt_prog_compiler_pic_GCJ
18677 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18678 allow_undefined_flag_GCJ=
18679 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18680 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }
18685 archive_cmds_need_lc_GCJ=no
18687 archive_cmds_need_lc_GCJ=yes
18689 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18691 cat conftest.err 1>&5
18694 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18695 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18702 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18703 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18704 library_names_spec=
18705 libname_spec='lib$name'
18709 postuninstall_cmds=
18713 shlibpath_overrides_runpath=unknown
18715 dynamic_linker="$host_os ld.so"
18716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18717 if test "$GCC" = yes; then
18718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18719 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18720 # if the path contains ";" then we assume it to be the separator
18721 # otherwise default to the standard path separator (i.e. ":") - it is
18722 # assumed that no part of a normal pathname contains ";" but that should
18723 # okay in the real world where ";" in dirpaths is itself problematic.
18724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18731 need_lib_prefix=unknown
18732 hardcode_into_libs=no
18734 # when you set need_version to no, make sure it does not cause -set_version
18735 # flags to be left without arguments
18736 need_version=unknown
18741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18742 shlibpath_var=LIBPATH
18744 # AIX 3 has no versioning support, so we append a major version to the name.
18745 soname_spec='${libname}${release}${shared_ext}$major'
18752 hardcode_into_libs=yes
18753 if test "$host_cpu" = ia64; then
18754 # AIX 5 supports IA64
18755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18756 shlibpath_var=LD_LIBRARY_PATH
18758 # With GCC up to 2.95.x, collect2 would create an import file
18759 # for dependence libraries. The import file would start with
18760 # the line `#! .'. This would cause the generated library to
18761 # depend on `.', always an invalid library. This was fixed in
18762 # development snapshots of GCC prior to 3.0.
18764 aix4 | aix4.[01] | aix4.[01].*)
18765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18767 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18770 can_build_shared=no
18774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18775 # soname into executable. Probably we can add versioning support to
18776 # collect2, so additional links can be useful in future.
18777 if test "$aix_use_runtimelinking" = yes; then
18778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18779 # instead of lib<name>.a to let people know that these are not
18780 # typical AIX shared libraries.
18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783 # We preserve .a as extension for shared libraries through AIX4.2
18784 # and later when we are not doing run time linking.
18785 library_names_spec='${libname}${release}.a $libname.a'
18786 soname_spec='${libname}${release}${shared_ext}$major'
18788 shlibpath_var=LIBPATH
18793 library_names_spec='$libname.ixlibrary $libname.a'
18794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18795 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'
18799 library_names_spec='${libname}${shared_ext}'
18800 dynamic_linker="$host_os ld.so"
18801 shlibpath_var=LIBRARY_PATH
18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18808 soname_spec='${libname}${release}${shared_ext}$major'
18809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18810 shlibpath_var=LD_LIBRARY_PATH
18811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18813 # the default ld.so.conf also contains /usr/contrib/lib and
18814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18815 # libtool to hard-code these into programs
18818 cygwin* | mingw* | pw32*)
18819 version_type=windows
18824 case $GCC,$host_os in
18825 yes,cygwin* | yes,mingw* | yes,pw32*)
18826 library_names_spec='$libname.dll.a'
18827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18828 postinstall_cmds='base_file=`basename \${file}`~
18829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18830 dldir=$destdir/`dirname \$dlpath`~
18831 test -d \$dldir || mkdir -p \$dldir~
18832 $install_prog $dir/$dlname \$dldir/$dlname~
18833 chmod a+x \$dldir/$dlname'
18834 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18835 dlpath=$dir/\$dldll~
18837 shlibpath_overrides_runpath=yes
18841 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18842 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18843 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18846 # MinGW DLLs use traditional 'lib' prefix
18847 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18849 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18850 # It is most probably a Windows format PATH printed by
18851 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18852 # path with ; separators, and with drive letters. We can handle the
18853 # drive letters (cygwin fileutils understands them), so leave them,
18854 # especially as we might pass files found there to a mingw objdump,
18855 # which wouldn't understand a cygwinified path. Ahh.
18856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18862 # pw32 DLLs use 'pw' prefix rather than 'lib'
18863 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18869 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18872 dynamic_linker='Win32 ld.exe'
18873 # FIXME: first we should search . and the directory the executable is in
18877 darwin* | rhapsody*)
18878 dynamic_linker="$host_os dyld"
18879 version_type=darwin
18882 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18883 soname_spec='${libname}${release}${major}$shared_ext'
18884 shlibpath_overrides_runpath=yes
18885 shlibpath_var=DYLD_LIBRARY_PATH
18886 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18887 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18888 if test "$GCC" = yes; then
18889 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"`
18891 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18901 soname_spec='${libname}${release}${shared_ext}$major'
18902 shlibpath_var=LD_LIBRARY_PATH
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18914 soname_spec='${libname}${release}${shared_ext}$major'
18915 shlibpath_var=LD_LIBRARY_PATH
18916 shlibpath_overrides_runpath=no
18917 hardcode_into_libs=yes
18918 dynamic_linker='GNU ld.so'
18921 freebsd* | dragonfly*)
18922 # DragonFly does not have aout. When/if they implement a new
18923 # versioning mechanism, adjust this.
18924 if test -x /usr/bin/objformat; then
18925 objformat=`/usr/bin/objformat`
18928 freebsd[123]*) objformat=aout ;;
18929 *) objformat=elf ;;
18932 version_type=freebsd-$objformat
18933 case $version_type in
18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18944 shlibpath_var=LD_LIBRARY_PATH
18947 shlibpath_overrides_runpath=yes
18949 freebsd3.[01]* | freebsdelf3.[01]*)
18950 shlibpath_overrides_runpath=yes
18951 hardcode_into_libs=yes
18953 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18954 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18955 shlibpath_overrides_runpath=no
18956 hardcode_into_libs=yes
18958 freebsd*) # from 4.6 on
18959 shlibpath_overrides_runpath=yes
18960 hardcode_into_libs=yes
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18970 soname_spec='${libname}${release}${shared_ext}$major'
18971 shlibpath_var=LD_LIBRARY_PATH
18972 hardcode_into_libs=yes
18975 hpux9* | hpux10* | hpux11*)
18976 # Give a soname corresponding to the major version so that dld.sl refuses to
18977 # link against other versions.
18984 hardcode_into_libs=yes
18985 dynamic_linker="$host_os dld.so"
18986 shlibpath_var=LD_LIBRARY_PATH
18987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989 soname_spec='${libname}${release}${shared_ext}$major'
18990 if test "X$HPUX_IA64_MODE" = X32; then
18991 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18999 hardcode_into_libs=yes
19000 dynamic_linker="$host_os dld.sl"
19001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19004 soname_spec='${libname}${release}${shared_ext}$major'
19005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19010 dynamic_linker="$host_os dld.sl"
19011 shlibpath_var=SHLIB_PATH
19012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19014 soname_spec='${libname}${release}${shared_ext}$major'
19017 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19018 postinstall_cmds='chmod 555 $lib'
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19026 soname_spec='${libname}${release}${shared_ext}$major'
19027 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19028 shlibpath_var=LD_LIBRARY_PATH
19029 shlibpath_overrides_runpath=no
19030 hardcode_into_libs=yes
19033 irix5* | irix6* | nonstopux*)
19035 nonstopux*) version_type=nonstopux ;;
19037 if test "$lt_cv_prog_gnu_ld" = yes; then
19045 soname_spec='${libname}${release}${shared_ext}$major'
19046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19048 irix5* | nonstopux*)
19049 libsuff= shlibsuff=
19052 case $LD in # libtool.m4 will add one of these switches to LD
19053 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19054 libsuff= shlibsuff= libmagic=32-bit;;
19055 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19056 libsuff=32 shlibsuff=N32 libmagic=N32;;
19057 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19058 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19059 *) libsuff= shlibsuff= libmagic=never-match;;
19063 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19064 shlibpath_overrides_runpath=no
19065 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19066 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19067 hardcode_into_libs=yes
19070 # No shared lib support for Linux oldld, aout, or coff.
19071 linux*oldld* | linux*aout* | linux*coff*)
19075 # This must be Linux ELF.
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19081 soname_spec='${libname}${release}${shared_ext}$major'
19082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19083 shlibpath_var=LD_LIBRARY_PATH
19084 shlibpath_overrides_runpath=no
19085 # This implies no fast_install, which is unacceptable.
19086 # Some rework will be needed to allow for fast_install
19087 # before this can be enabled.
19088 hardcode_into_libs=yes
19090 # find out which ABI we are using
19092 case "$host_cpu" in
19093 x86_64*|s390x*|powerpc64*)
19094 echo '#line 19094 "configure"' > conftest.$ac_ext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096 (eval $ac_compile) 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; then
19100 case `/usr/bin/file conftest.$ac_objext` in
19103 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19111 # Append ld.so.conf contents to the search path
19112 if test -f /etc/ld.so.conf; then
19113 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' ' '`
19114 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19117 # We used to test for /lib/ld.so.1 and disable shared libraries on
19118 # powerpc, because MkLinux only supported shared libraries with the
19119 # GNU dynamic linker. Since this was broken with cross compilers,
19120 # most powerpc-linux boxes support dynamic linking these days and
19121 # people can always --disable-shared, the test was removed, and we
19122 # assume the GNU/Linux dynamic linker is in use.
19123 dynamic_linker='GNU/Linux ld.so'
19130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19131 soname_spec='${libname}${release}${shared_ext}$major'
19132 shlibpath_var=LD_LIBRARY_PATH
19133 shlibpath_overrides_runpath=no
19134 hardcode_into_libs=yes
19135 dynamic_linker='GNU ld.so'
19142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19145 dynamic_linker='NetBSD (a.out) ld.so'
19147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19148 soname_spec='${libname}${release}${shared_ext}$major'
19149 dynamic_linker='NetBSD ld.elf_so'
19151 shlibpath_var=LD_LIBRARY_PATH
19152 shlibpath_overrides_runpath=yes
19153 hardcode_into_libs=yes
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19159 shlibpath_var=LD_LIBRARY_PATH
19160 shlibpath_overrides_runpath=yes
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19168 soname_spec='${libname}${release}${shared_ext}$major'
19169 shlibpath_var=LD_LIBRARY_PATH
19170 shlibpath_overrides_runpath=yes
19175 sys_lib_dlsearch_path_spec="/usr/lib"
19177 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19179 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19180 *) need_version=no ;;
19182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19184 shlibpath_var=LD_LIBRARY_PATH
19185 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19187 openbsd2.[89] | openbsd2.[89].*)
19188 shlibpath_overrides_runpath=no
19191 shlibpath_overrides_runpath=yes
19195 shlibpath_overrides_runpath=yes
19200 libname_spec='$name'
19203 library_names_spec='$libname${shared_ext} $libname.a'
19204 dynamic_linker='OS/2 ld.exe'
19205 shlibpath_var=LIBPATH
19208 osf3* | osf4* | osf5*)
19212 soname_spec='${libname}${release}${shared_ext}$major'
19213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19214 shlibpath_var=LD_LIBRARY_PATH
19215 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19216 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19224 soname_spec='${libname}${release}${shared_ext}$major'
19225 shlibpath_var=LD_LIBRARY_PATH
19226 shlibpath_overrides_runpath=yes
19227 hardcode_into_libs=yes
19228 # ldd complains unless libraries are executable
19229 postinstall_cmds='chmod +x $lib'
19234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19235 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19236 shlibpath_var=LD_LIBRARY_PATH
19237 shlibpath_overrides_runpath=yes
19238 if test "$with_gnu_ld" = yes; then
19246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19247 soname_spec='${libname}${release}${shared_ext}$major'
19248 shlibpath_var=LD_LIBRARY_PATH
19249 case $host_vendor in
19251 shlibpath_overrides_runpath=no
19253 export_dynamic_flag_spec='${wl}-Blargedynsym'
19254 runpath_var=LD_RUN_PATH
19262 shlibpath_overrides_runpath=no
19263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19269 if test -d /usr/nec ;then
19271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19272 soname_spec='$libname${shared_ext}.$major'
19273 shlibpath_var=LD_LIBRARY_PATH
19277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19278 version_type=freebsd-elf
19281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19282 soname_spec='${libname}${release}${shared_ext}$major'
19283 shlibpath_var=LD_LIBRARY_PATH
19284 hardcode_into_libs=yes
19285 if test "$with_gnu_ld" = yes; then
19286 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19287 shlibpath_overrides_runpath=no
19289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19290 shlibpath_overrides_runpath=yes
19293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19297 sys_lib_dlsearch_path_spec='/usr/lib'
19302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19303 soname_spec='${libname}${release}${shared_ext}$major'
19304 shlibpath_var=LD_LIBRARY_PATH
19311 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19312 echo "${ECHO_T}$dynamic_linker" >&6
19313 test "$dynamic_linker" = no && can_build_shared=no
19315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19316 if test "$GCC" = yes; then
19317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19320 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19321 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19322 hardcode_action_GCJ=
19323 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19324 test -n "$runpath_var_GCJ" || \
19325 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19327 # We can hardcode non-existant directories.
19328 if test "$hardcode_direct_GCJ" != no &&
19329 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19330 # have to relink, otherwise we might link with an installed library
19331 # when we should be linking with a yet-to-be-installed one
19332 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19333 test "$hardcode_minus_L_GCJ" != no; then
19334 # Linking always hardcodes the temporary library directory.
19335 hardcode_action_GCJ=relink
19337 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19338 hardcode_action_GCJ=immediate
19341 # We cannot hardcode anything, or else we can only hardcode existing
19343 hardcode_action_GCJ=unsupported
19345 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19346 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19348 if test "$hardcode_action_GCJ" = relink; then
19349 # Fast installation is not supported
19350 enable_fast_install=no
19351 elif test "$shlibpath_overrides_runpath" = yes ||
19352 test "$enable_shared" = no; then
19353 # Fast installation is not necessary
19354 enable_fast_install=needless
19358 # The else clause should only fire when bootstrapping the
19359 # libtool distribution, otherwise you forgot to ship ltmain.sh
19360 # with your package, and you will get complaints that there are
19361 # no rules to generate ltmain.sh.
19362 if test -f "$ltmain"; then
19363 # See if we are running on zsh, and set the options which allow our commands through
19364 # without removal of \ escapes.
19365 if test -n "${ZSH_VERSION+set}" ; then
19366 setopt NO_GLOB_SUBST
19368 # Now quote all the things that may contain metacharacters while being
19369 # careful not to overquote the AC_SUBSTed values. We take copies of the
19370 # variables and quote the copies for generation of the libtool script.
19371 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19373 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19374 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19375 deplibs_check_method reload_flag reload_cmds need_locks \
19376 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19377 lt_cv_sys_global_symbol_to_c_name_address \
19378 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19379 old_postinstall_cmds old_postuninstall_cmds \
19383 lt_prog_compiler_wl_GCJ \
19384 lt_prog_compiler_pic_GCJ \
19385 lt_prog_compiler_static_GCJ \
19386 lt_prog_compiler_no_builtin_flag_GCJ \
19387 export_dynamic_flag_spec_GCJ \
19388 thread_safe_flag_spec_GCJ \
19389 whole_archive_flag_spec_GCJ \
19390 enable_shared_with_static_runtimes_GCJ \
19391 old_archive_cmds_GCJ \
19392 old_archive_from_new_cmds_GCJ \
19393 predep_objects_GCJ \
19394 postdep_objects_GCJ \
19397 compiler_lib_search_path_GCJ \
19399 archive_expsym_cmds_GCJ \
19400 postinstall_cmds_GCJ \
19401 postuninstall_cmds_GCJ \
19402 old_archive_from_expsyms_cmds_GCJ \
19403 allow_undefined_flag_GCJ \
19404 no_undefined_flag_GCJ \
19405 export_symbols_cmds_GCJ \
19406 hardcode_libdir_flag_spec_GCJ \
19407 hardcode_libdir_flag_spec_ld_GCJ \
19408 hardcode_libdir_separator_GCJ \
19409 hardcode_automatic_GCJ \
19411 module_expsym_cmds_GCJ \
19412 lt_cv_prog_compiler_c_o_GCJ \
19413 exclude_expsyms_GCJ \
19414 include_expsyms_GCJ; do
19417 old_archive_cmds_GCJ | \
19418 old_archive_from_new_cmds_GCJ | \
19419 archive_cmds_GCJ | \
19420 archive_expsym_cmds_GCJ | \
19421 module_cmds_GCJ | \
19422 module_expsym_cmds_GCJ | \
19423 old_archive_from_expsyms_cmds_GCJ | \
19424 export_symbols_cmds_GCJ | \
19425 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19426 postinstall_cmds | postuninstall_cmds | \
19427 old_postinstall_cmds | old_postuninstall_cmds | \
19428 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19429 # Double-quote double-evaled strings.
19430 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19433 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19439 *'\$0 --fallback-echo"')
19440 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19446 cat <<__EOF__ >> "$cfgfile"
19447 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19449 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19451 # Shell to use when invoking shell scripts.
19454 # Whether or not to build shared libraries.
19455 build_libtool_libs=$enable_shared
19457 # Whether or not to build static libraries.
19458 build_old_libs=$enable_static
19460 # Whether or not to add -lc for building shared libraries.
19461 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19463 # Whether or not to disallow shared libs when runtime libs are static
19464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19466 # Whether or not to optimize for fast installation.
19467 fast_install=$enable_fast_install
19470 host_alias=$host_alias
19474 # The build system.
19475 build_alias=$build_alias
19479 # An echo program that does not interpret backslashes.
19484 AR_FLAGS=$lt_AR_FLAGS
19489 # LTCC compiler flags.
19490 LTCFLAGS=$lt_LTCFLAGS
19492 # A language-specific compiler.
19493 CC=$lt_compiler_GCJ
19495 # Is the compiler the GNU C compiler?
19501 # The linker used to build libraries.
19504 # Whether we need hard or soft links.
19507 # A BSD-compatible nm program.
19510 # A symbol stripping program
19513 # Used to examine libraries when file_magic_cmd begins "file"
19514 MAGIC_CMD=$MAGIC_CMD
19516 # Used on cygwin: DLL creation program.
19519 # Used on cygwin: object dumper.
19522 # Used on cygwin: assembler.
19525 # The name of the directory that contains temporary libtool files.
19528 # How to create reloadable object files.
19529 reload_flag=$lt_reload_flag
19530 reload_cmds=$lt_reload_cmds
19532 # How to pass a linker flag through the compiler.
19533 wl=$lt_lt_prog_compiler_wl_GCJ
19535 # Object file suffix (normally "o").
19536 objext="$ac_objext"
19538 # Old archive suffix (normally "a").
19541 # Shared library suffix (normally ".so").
19542 shrext_cmds='$shrext_cmds'
19544 # Executable file suffix (normally "").
19547 # Additional compiler flags for building library objects.
19548 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19551 # What is the maximum length of a command?
19552 max_cmd_len=$lt_cv_sys_max_cmd_len
19554 # Does compiler simultaneously support -c and -o options?
19555 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19557 # Must we lock files when doing compilation?
19558 need_locks=$lt_need_locks
19560 # Do we need the lib prefix for modules?
19561 need_lib_prefix=$need_lib_prefix
19563 # Do we need a version for libraries?
19564 need_version=$need_version
19566 # Whether dlopen is supported.
19567 dlopen_support=$enable_dlopen
19569 # Whether dlopen of programs is supported.
19570 dlopen_self=$enable_dlopen_self
19572 # Whether dlopen of statically linked programs is supported.
19573 dlopen_self_static=$enable_dlopen_self_static
19575 # Compiler flag to prevent dynamic linking.
19576 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19578 # Compiler flag to turn off builtin functions.
19579 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19581 # Compiler flag to allow reflexive dlopens.
19582 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19584 # Compiler flag to generate shared objects directly from archives.
19585 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19587 # Compiler flag to generate thread-safe objects.
19588 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19590 # Library versioning type.
19591 version_type=$version_type
19593 # Format of library name prefix.
19594 libname_spec=$lt_libname_spec
19596 # List of archive names. First name is the real one, the rest are links.
19597 # The last name is the one that the linker finds with -lNAME.
19598 library_names_spec=$lt_library_names_spec
19600 # The coded name of the library, if different from the real name.
19601 soname_spec=$lt_soname_spec
19603 # Commands used to build and install an old-style archive.
19605 old_archive_cmds=$lt_old_archive_cmds_GCJ
19606 old_postinstall_cmds=$lt_old_postinstall_cmds
19607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19609 # Create an old-style archive from a shared archive.
19610 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19612 # Create a temporary old-style archive to link instead of a shared archive.
19613 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19615 # Commands used to build and install a shared archive.
19616 archive_cmds=$lt_archive_cmds_GCJ
19617 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19618 postinstall_cmds=$lt_postinstall_cmds
19619 postuninstall_cmds=$lt_postuninstall_cmds
19621 # Commands used to build a loadable module (assumed same as above if empty)
19622 module_cmds=$lt_module_cmds_GCJ
19623 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19625 # Commands to strip libraries.
19626 old_striplib=$lt_old_striplib
19627 striplib=$lt_striplib
19629 # Dependencies to place before the objects being linked to create a
19631 predep_objects=$lt_predep_objects_GCJ
19633 # Dependencies to place after the objects being linked to create a
19635 postdep_objects=$lt_postdep_objects_GCJ
19637 # Dependencies to place before the objects being linked to create a
19639 predeps=$lt_predeps_GCJ
19641 # Dependencies to place after the objects being linked to create a
19643 postdeps=$lt_postdeps_GCJ
19645 # The library search path used internally by the compiler when linking
19646 # a shared library.
19647 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19649 # Method to check whether dependent libraries are shared objects.
19650 deplibs_check_method=$lt_deplibs_check_method
19652 # Command to use when deplibs_check_method == file_magic.
19653 file_magic_cmd=$lt_file_magic_cmd
19655 # Flag that allows shared libraries with undefined symbols to be built.
19656 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19658 # Flag that forces no undefined symbols.
19659 no_undefined_flag=$lt_no_undefined_flag_GCJ
19661 # Commands used to finish a libtool library installation in a directory.
19662 finish_cmds=$lt_finish_cmds
19664 # Same as above, but a single script fragment to be evaled but not shown.
19665 finish_eval=$lt_finish_eval
19667 # Take the output of nm and produce a listing of raw symbols and C names.
19668 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19670 # Transform the output of nm in a proper C declaration
19671 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19673 # Transform the output of nm in a C name address pair
19674 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19676 # This is the shared library runtime path variable.
19677 runpath_var=$runpath_var
19679 # This is the shared library path variable.
19680 shlibpath_var=$shlibpath_var
19682 # Is shlibpath searched before the hard-coded library search path?
19683 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19685 # How to hardcode a shared library path into an executable.
19686 hardcode_action=$hardcode_action_GCJ
19688 # Whether we should hardcode library paths into libraries.
19689 hardcode_into_libs=$hardcode_into_libs
19691 # Flag to hardcode \$libdir into a binary during linking.
19692 # This must work even if \$libdir does not exist.
19693 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19695 # If ld is used when linking, flag to hardcode \$libdir into
19696 # a binary during linking. This must work even if \$libdir does
19698 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19700 # Whether we need a single -rpath flag with a separated argument.
19701 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19703 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19704 # resulting binary.
19705 hardcode_direct=$hardcode_direct_GCJ
19707 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19708 # resulting binary.
19709 hardcode_minus_L=$hardcode_minus_L_GCJ
19711 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19712 # the resulting binary.
19713 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19715 # Set to yes if building a shared library automatically hardcodes DIR into the library
19716 # and all subsequent libraries and executables linked against it.
19717 hardcode_automatic=$hardcode_automatic_GCJ
19719 # Variables whose values should be saved in libtool wrapper scripts and
19720 # restored at relink time.
19721 variables_saved_for_relink="$variables_saved_for_relink"
19723 # Whether libtool must link a program against all its dependency libraries.
19724 link_all_deplibs=$link_all_deplibs_GCJ
19726 # Compile-time system search path for libraries
19727 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19729 # Run-time system search path for libraries
19730 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19732 # Fix the shell variable \$srcfile for the compiler.
19733 fix_srcfile_path="$fix_srcfile_path_GCJ"
19735 # Set to yes if exported symbols are required.
19736 always_export_symbols=$always_export_symbols_GCJ
19738 # The commands to list exported symbols.
19739 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19741 # The commands to extract the exported symbol list from a shared archive.
19742 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19744 # Symbols that should not be listed in the preloaded symbols.
19745 exclude_expsyms=$lt_exclude_expsyms_GCJ
19747 # Symbols that must always be exported.
19748 include_expsyms=$lt_include_expsyms_GCJ
19750 # ### END LIBTOOL TAG CONFIG: $tagname
19756 # If there is no Makefile yet, we rely on a make rule to execute
19757 # `config.status --recheck' to rerun these tests and create the
19758 # libtool script then.
19759 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19760 if test -f "$ltmain_in"; then
19761 test -f Makefile && make "$ltmain"
19767 ac_cpp='$CPP $CPPFLAGS'
19768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19783 # Source file extension for RC test sources.
19786 # Object file extension for compiled RC test sources.
19790 # Code to be used in simple compile tests
19791 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19793 # Code to be used in simple link tests
19794 lt_simple_link_test_code="$lt_simple_compile_test_code"
19796 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19798 # If no C compiler was specified, use CC.
19801 # If no C compiler flags were specified, use CFLAGS.
19802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19804 # Allow CC to be a program name with arguments.
19808 # save warnings/boilerplate of simple test code
19809 ac_outfile=conftest.$ac_objext
19810 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19811 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19812 _lt_compiler_boilerplate=`cat conftest.err`
19815 ac_outfile=conftest.$ac_objext
19816 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19817 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19818 _lt_linker_boilerplate=`cat conftest.err`
19822 # Allow CC to be a program name with arguments.
19827 for cc_temp in $compiler""; do
19829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19835 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19837 lt_cv_prog_compiler_c_o_RC=yes
19839 # The else clause should only fire when bootstrapping the
19840 # libtool distribution, otherwise you forgot to ship ltmain.sh
19841 # with your package, and you will get complaints that there are
19842 # no rules to generate ltmain.sh.
19843 if test -f "$ltmain"; then
19844 # See if we are running on zsh, and set the options which allow our commands through
19845 # without removal of \ escapes.
19846 if test -n "${ZSH_VERSION+set}" ; then
19847 setopt NO_GLOB_SUBST
19849 # Now quote all the things that may contain metacharacters while being
19850 # careful not to overquote the AC_SUBSTed values. We take copies of the
19851 # variables and quote the copies for generation of the libtool script.
19852 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19856 deplibs_check_method reload_flag reload_cmds need_locks \
19857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19858 lt_cv_sys_global_symbol_to_c_name_address \
19859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19860 old_postinstall_cmds old_postuninstall_cmds \
19864 lt_prog_compiler_wl_RC \
19865 lt_prog_compiler_pic_RC \
19866 lt_prog_compiler_static_RC \
19867 lt_prog_compiler_no_builtin_flag_RC \
19868 export_dynamic_flag_spec_RC \
19869 thread_safe_flag_spec_RC \
19870 whole_archive_flag_spec_RC \
19871 enable_shared_with_static_runtimes_RC \
19872 old_archive_cmds_RC \
19873 old_archive_from_new_cmds_RC \
19874 predep_objects_RC \
19875 postdep_objects_RC \
19878 compiler_lib_search_path_RC \
19880 archive_expsym_cmds_RC \
19881 postinstall_cmds_RC \
19882 postuninstall_cmds_RC \
19883 old_archive_from_expsyms_cmds_RC \
19884 allow_undefined_flag_RC \
19885 no_undefined_flag_RC \
19886 export_symbols_cmds_RC \
19887 hardcode_libdir_flag_spec_RC \
19888 hardcode_libdir_flag_spec_ld_RC \
19889 hardcode_libdir_separator_RC \
19890 hardcode_automatic_RC \
19892 module_expsym_cmds_RC \
19893 lt_cv_prog_compiler_c_o_RC \
19894 exclude_expsyms_RC \
19895 include_expsyms_RC; do
19898 old_archive_cmds_RC | \
19899 old_archive_from_new_cmds_RC | \
19900 archive_cmds_RC | \
19901 archive_expsym_cmds_RC | \
19903 module_expsym_cmds_RC | \
19904 old_archive_from_expsyms_cmds_RC | \
19905 export_symbols_cmds_RC | \
19906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19907 postinstall_cmds | postuninstall_cmds | \
19908 old_postinstall_cmds | old_postuninstall_cmds | \
19909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19910 # Double-quote double-evaled strings.
19911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19920 *'\$0 --fallback-echo"')
19921 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19927 cat <<__EOF__ >> "$cfgfile"
19928 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19932 # Shell to use when invoking shell scripts.
19935 # Whether or not to build shared libraries.
19936 build_libtool_libs=$enable_shared
19938 # Whether or not to build static libraries.
19939 build_old_libs=$enable_static
19941 # Whether or not to add -lc for building shared libraries.
19942 build_libtool_need_lc=$archive_cmds_need_lc_RC
19944 # Whether or not to disallow shared libs when runtime libs are static
19945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19947 # Whether or not to optimize for fast installation.
19948 fast_install=$enable_fast_install
19951 host_alias=$host_alias
19955 # The build system.
19956 build_alias=$build_alias
19960 # An echo program that does not interpret backslashes.
19965 AR_FLAGS=$lt_AR_FLAGS
19970 # LTCC compiler flags.
19971 LTCFLAGS=$lt_LTCFLAGS
19973 # A language-specific compiler.
19976 # Is the compiler the GNU C compiler?
19982 # The linker used to build libraries.
19985 # Whether we need hard or soft links.
19988 # A BSD-compatible nm program.
19991 # A symbol stripping program
19994 # Used to examine libraries when file_magic_cmd begins "file"
19995 MAGIC_CMD=$MAGIC_CMD
19997 # Used on cygwin: DLL creation program.
20000 # Used on cygwin: object dumper.
20003 # Used on cygwin: assembler.
20006 # The name of the directory that contains temporary libtool files.
20009 # How to create reloadable object files.
20010 reload_flag=$lt_reload_flag
20011 reload_cmds=$lt_reload_cmds
20013 # How to pass a linker flag through the compiler.
20014 wl=$lt_lt_prog_compiler_wl_RC
20016 # Object file suffix (normally "o").
20017 objext="$ac_objext"
20019 # Old archive suffix (normally "a").
20022 # Shared library suffix (normally ".so").
20023 shrext_cmds='$shrext_cmds'
20025 # Executable file suffix (normally "").
20028 # Additional compiler flags for building library objects.
20029 pic_flag=$lt_lt_prog_compiler_pic_RC
20032 # What is the maximum length of a command?
20033 max_cmd_len=$lt_cv_sys_max_cmd_len
20035 # Does compiler simultaneously support -c and -o options?
20036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20038 # Must we lock files when doing compilation?
20039 need_locks=$lt_need_locks
20041 # Do we need the lib prefix for modules?
20042 need_lib_prefix=$need_lib_prefix
20044 # Do we need a version for libraries?
20045 need_version=$need_version
20047 # Whether dlopen is supported.
20048 dlopen_support=$enable_dlopen
20050 # Whether dlopen of programs is supported.
20051 dlopen_self=$enable_dlopen_self
20053 # Whether dlopen of statically linked programs is supported.
20054 dlopen_self_static=$enable_dlopen_self_static
20056 # Compiler flag to prevent dynamic linking.
20057 link_static_flag=$lt_lt_prog_compiler_static_RC
20059 # Compiler flag to turn off builtin functions.
20060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20062 # Compiler flag to allow reflexive dlopens.
20063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20065 # Compiler flag to generate shared objects directly from archives.
20066 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20068 # Compiler flag to generate thread-safe objects.
20069 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20071 # Library versioning type.
20072 version_type=$version_type
20074 # Format of library name prefix.
20075 libname_spec=$lt_libname_spec
20077 # List of archive names. First name is the real one, the rest are links.
20078 # The last name is the one that the linker finds with -lNAME.
20079 library_names_spec=$lt_library_names_spec
20081 # The coded name of the library, if different from the real name.
20082 soname_spec=$lt_soname_spec
20084 # Commands used to build and install an old-style archive.
20086 old_archive_cmds=$lt_old_archive_cmds_RC
20087 old_postinstall_cmds=$lt_old_postinstall_cmds
20088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20090 # Create an old-style archive from a shared archive.
20091 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20093 # Create a temporary old-style archive to link instead of a shared archive.
20094 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20096 # Commands used to build and install a shared archive.
20097 archive_cmds=$lt_archive_cmds_RC
20098 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20099 postinstall_cmds=$lt_postinstall_cmds
20100 postuninstall_cmds=$lt_postuninstall_cmds
20102 # Commands used to build a loadable module (assumed same as above if empty)
20103 module_cmds=$lt_module_cmds_RC
20104 module_expsym_cmds=$lt_module_expsym_cmds_RC
20106 # Commands to strip libraries.
20107 old_striplib=$lt_old_striplib
20108 striplib=$lt_striplib
20110 # Dependencies to place before the objects being linked to create a
20112 predep_objects=$lt_predep_objects_RC
20114 # Dependencies to place after the objects being linked to create a
20116 postdep_objects=$lt_postdep_objects_RC
20118 # Dependencies to place before the objects being linked to create a
20120 predeps=$lt_predeps_RC
20122 # Dependencies to place after the objects being linked to create a
20124 postdeps=$lt_postdeps_RC
20126 # The library search path used internally by the compiler when linking
20127 # a shared library.
20128 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20130 # Method to check whether dependent libraries are shared objects.
20131 deplibs_check_method=$lt_deplibs_check_method
20133 # Command to use when deplibs_check_method == file_magic.
20134 file_magic_cmd=$lt_file_magic_cmd
20136 # Flag that allows shared libraries with undefined symbols to be built.
20137 allow_undefined_flag=$lt_allow_undefined_flag_RC
20139 # Flag that forces no undefined symbols.
20140 no_undefined_flag=$lt_no_undefined_flag_RC
20142 # Commands used to finish a libtool library installation in a directory.
20143 finish_cmds=$lt_finish_cmds
20145 # Same as above, but a single script fragment to be evaled but not shown.
20146 finish_eval=$lt_finish_eval
20148 # Take the output of nm and produce a listing of raw symbols and C names.
20149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20151 # Transform the output of nm in a proper C declaration
20152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20154 # Transform the output of nm in a C name address pair
20155 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20157 # This is the shared library runtime path variable.
20158 runpath_var=$runpath_var
20160 # This is the shared library path variable.
20161 shlibpath_var=$shlibpath_var
20163 # Is shlibpath searched before the hard-coded library search path?
20164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20166 # How to hardcode a shared library path into an executable.
20167 hardcode_action=$hardcode_action_RC
20169 # Whether we should hardcode library paths into libraries.
20170 hardcode_into_libs=$hardcode_into_libs
20172 # Flag to hardcode \$libdir into a binary during linking.
20173 # This must work even if \$libdir does not exist.
20174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20176 # If ld is used when linking, flag to hardcode \$libdir into
20177 # a binary during linking. This must work even if \$libdir does
20179 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20181 # Whether we need a single -rpath flag with a separated argument.
20182 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20184 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20185 # resulting binary.
20186 hardcode_direct=$hardcode_direct_RC
20188 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20189 # resulting binary.
20190 hardcode_minus_L=$hardcode_minus_L_RC
20192 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20193 # the resulting binary.
20194 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20196 # Set to yes if building a shared library automatically hardcodes DIR into the library
20197 # and all subsequent libraries and executables linked against it.
20198 hardcode_automatic=$hardcode_automatic_RC
20200 # Variables whose values should be saved in libtool wrapper scripts and
20201 # restored at relink time.
20202 variables_saved_for_relink="$variables_saved_for_relink"
20204 # Whether libtool must link a program against all its dependency libraries.
20205 link_all_deplibs=$link_all_deplibs_RC
20207 # Compile-time system search path for libraries
20208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20210 # Run-time system search path for libraries
20211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20213 # Fix the shell variable \$srcfile for the compiler.
20214 fix_srcfile_path="$fix_srcfile_path_RC"
20216 # Set to yes if exported symbols are required.
20217 always_export_symbols=$always_export_symbols_RC
20219 # The commands to list exported symbols.
20220 export_symbols_cmds=$lt_export_symbols_cmds_RC
20222 # The commands to extract the exported symbol list from a shared archive.
20223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20225 # Symbols that should not be listed in the preloaded symbols.
20226 exclude_expsyms=$lt_exclude_expsyms_RC
20228 # Symbols that must always be exported.
20229 include_expsyms=$lt_include_expsyms_RC
20231 # ### END LIBTOOL TAG CONFIG: $tagname
20237 # If there is no Makefile yet, we rely on a make rule to execute
20238 # `config.status --recheck' to rerun these tests and create the
20239 # libtool script then.
20240 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20241 if test -f "$ltmain_in"; then
20242 test -f Makefile && make "$ltmain"
20248 ac_cpp='$CPP $CPPFLAGS'
20249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20258 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20259 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20260 { (exit 1); exit 1; }; }
20264 # Append the new tag name to the list of available tags.
20265 if test -n "$tagname" ; then
20266 available_tags="$available_tags $tagname"
20272 # Now substitute the updated list of available tags.
20273 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20274 mv "${ofile}T" "$ofile"
20278 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20279 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20280 { (exit 1); exit 1; }; }
20286 # This can be used to rebuild libtool when needed
20287 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20289 # Always use our own libtool.
20290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20292 # Prevent multiple expansion
20313 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20314 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20315 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20316 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 cat >conftest.make <<\_ACEOF
20321 @echo 'ac_maketemp="$(MAKE)"'
20323 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20324 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20325 if test -n "$ac_maketemp"; then
20326 eval ac_cv_prog_make_${ac_make}_set=yes
20328 eval ac_cv_prog_make_${ac_make}_set=no
20330 rm -f conftest.make
20332 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20333 echo "$as_me:$LINENO: result: yes" >&5
20334 echo "${ECHO_T}yes" >&6
20337 echo "$as_me:$LINENO: result: no" >&5
20338 echo "${ECHO_T}no" >&6
20339 SET_MAKE="MAKE=${MAKE-make}"
20343 if test "$need_glib" != "yes"; then
20347 if test "x${GLIBFOUND}" = "xyes"; then
20349 cat >>confdefs.h <<\_ACEOF
20350 #define HAVE_GLIB 1
20358 if test "$enable_shared" == "yes"; then
20359 ENABLE_MODULES_TRUE=
20360 ENABLE_MODULES_FALSE='#'
20362 ENABLE_MODULES_TRUE='#'
20363 ENABLE_MODULES_FALSE=
20366 if test "$enable_shared" == "yes"; then
20368 cat >>confdefs.h <<\_ACEOF
20369 #define ENABLE_MODULES 1
20377 if test "$host" == "arm-apple-darwin"; then
20379 cat >>confdefs.h <<\_ACEOF
20387 cat >>confdefs.h <<_ACEOF
20388 #define DEVICE_TYPE "$DEVICE_TYPE"
20395 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
20397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20399 echo "$as_me:$LINENO: checking for $ac_header" >&5
20400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20407 # Is the header compilable?
20408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20417 #include <$ac_header>
20419 rm -f conftest.$ac_objext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20423 grep -v '^ *+' conftest.er1 >conftest.err
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 ac_header_compiler=yes
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_header_compiler=no
20448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20450 echo "${ECHO_T}$ac_header_compiler" >&6
20452 # Is the header present?
20453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 #include <$ac_header>
20463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } >/dev/null; then
20471 if test -s conftest.err; then
20472 ac_cpp_err=$ac_c_preproc_warn_flag
20473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20480 if test -z "$ac_cpp_err"; then
20481 ac_header_preproc=yes
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 ac_header_preproc=no
20488 rm -f conftest.err conftest.$ac_ext
20489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20490 echo "${ECHO_T}$ac_header_preproc" >&6
20492 # So? What about this header?
20493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20499 ac_header_preproc=yes
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20516 ## ------------------------------------------ ##
20517 ## Report this to the AC_PACKAGE_NAME lists. ##
20518 ## ------------------------------------------ ##
20521 sed "s/^/$as_me: WARNING: /" >&2
20524 echo "$as_me:$LINENO: checking for $ac_header" >&5
20525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 eval "$as_ac_Header=\$ac_header_preproc"
20531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20536 cat >>confdefs.h <<_ACEOF
20537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20546 echo CONFIGURATION SUMMARY
20547 for backend in $BACKENDS; do
20548 eval echo $backend: \${enable_${backend}}
20552 ac_config_files="$ac_config_files Makefile src/Makefile src/core/Makefile test/Makefile"
20554 cat >confcache <<\_ACEOF
20555 # This file is a shell script that caches the results of configure
20556 # tests run on this system so they can be shared between configure
20557 # scripts and configure runs, see configure's option --config-cache.
20558 # It is not useful on other systems. If it contains results you don't
20559 # want to keep, you may remove or edit it.
20561 # config.status only pays attention to the cache file if you give it
20562 # the --recheck option to rerun configure.
20564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20566 # following values.
20570 # The following way of writing the cache mishandles newlines in values,
20571 # but we know of no workaround that is simple, portable, and efficient.
20572 # So, don't put newlines in cache variables' values.
20573 # Ultrix sh set writes to stderr and can't be redirected directly,
20574 # and sets the high bit in the cache file unless we assign to the vars.
20577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20579 # `set' does not quote correctly, so add quotes (double-quote
20580 # substitution turns \\\\ into \\, and sed turns \\ into \).
20583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20586 # `set' quotes correctly as required by POSIX, so do not add quotes.
20588 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20597 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20599 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20600 if test -w $cache_file; then
20601 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20602 cat confcache >$cache_file
20604 echo "not updating unwritable cache $cache_file"
20609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20610 # Let make expand exec_prefix.
20611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20615 # trailing colons and then remove the whole line if VPATH becomes empty
20616 # (actually we leave an empty line to preserve line numbers).
20617 if test "x$srcdir" = x.; then
20618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20619 s/:*\$(srcdir):*/:/;
20620 s/:*\${srcdir}:*/:/;
20622 s/^\([^=]*=[ ]*\):*/\1/;
20628 DEFS=-DHAVE_CONFIG_H
20632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20633 # 1. Remove the extension, and $U if already installed.
20634 ac_i=`echo "$ac_i" |
20635 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20637 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20638 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20640 LIBOBJS=$ac_libobjs
20642 LTLIBOBJS=$ac_ltlibobjs
20645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20646 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20647 Usually this means the macro was only invoked conditionally." >&5
20648 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20649 Usually this means the macro was only invoked conditionally." >&2;}
20650 { (exit 1); exit 1; }; }
20652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20653 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20654 Usually this means the macro was only invoked conditionally." >&5
20655 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20656 Usually this means the macro was only invoked conditionally." >&2;}
20657 { (exit 1); exit 1; }; }
20659 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
20660 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ECAL\" was never defined.
20661 Usually this means the macro was only invoked conditionally." >&5
20662 echo "$as_me: error: conditional \"ENABLE_ECAL\" was never defined.
20663 Usually this means the macro was only invoked conditionally." >&2;}
20664 { (exit 1); exit 1; }; }
20666 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20667 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20668 Usually this means the macro was only invoked conditionally." >&5
20669 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20670 Usually this means the macro was only invoked conditionally." >&2;}
20671 { (exit 1); exit 1; }; }
20673 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
20674 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MODULES\" was never defined.
20675 Usually this means the macro was only invoked conditionally." >&5
20676 echo "$as_me: error: conditional \"ENABLE_MODULES\" was never defined.
20677 Usually this means the macro was only invoked conditionally." >&2;}
20678 { (exit 1); exit 1; }; }
20681 : ${CONFIG_STATUS=./config.status}
20682 ac_clean_files_save=$ac_clean_files
20683 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20684 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20685 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20686 cat >$CONFIG_STATUS <<_ACEOF
20688 # Generated by $as_me.
20689 # Run this file to recreate the current configuration.
20690 # Compiler output produced by configure, useful for debugging
20691 # configure, is in config.log if it exists.
20694 ac_cs_recheck=false
20696 SHELL=\${CONFIG_SHELL-$SHELL}
20699 cat >>$CONFIG_STATUS <<\_ACEOF
20700 ## --------------------- ##
20701 ## M4sh Initialization. ##
20702 ## --------------------- ##
20704 # Be Bourne compatible
20705 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20708 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20709 # is contrary to our usage. Disable this feature.
20710 alias -g '${1+"$@"}'='"$@"'
20711 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20714 DUALCASE=1; export DUALCASE # for MKS sh
20716 # Support unset when possible.
20717 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20724 # Work around bugs in pre-3.0 UWIN ksh.
20725 $as_unset ENV MAIL MAILPATH
20732 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20733 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20734 LC_TELEPHONE LC_TIME
20736 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20737 eval $as_var=C; export $as_var
20743 # Required to use basename.
20744 if expr a : '\(a\)' >/dev/null 2>&1; then
20750 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20751 as_basename=basename
20757 # Name of the executable.
20758 as_me=`$as_basename "$0" ||
20759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20760 X"$0" : 'X\(//\)$' \| \
20761 X"$0" : 'X\(/\)$' \| \
20762 . : '\(.\)' 2>/dev/null ||
20764 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20765 /^X\/\(\/\/\)$/{ s//\1/; q; }
20766 /^X\/\(\/\).*/{ s//\1/; q; }
20770 # PATH needs CR, and LINENO needs CR and PATH.
20771 # Avoid depending upon Character Ranges.
20772 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20773 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20774 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20775 as_cr_digits='0123456789'
20776 as_cr_alnum=$as_cr_Letters$as_cr_digits
20778 # The user is always right.
20779 if test "${PATH_SEPARATOR+set}" != set; then
20780 echo "#! /bin/sh" >conf$$.sh
20781 echo "exit 0" >>conf$$.sh
20783 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20792 as_lineno_1=$LINENO
20793 as_lineno_2=$LINENO
20794 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20795 test "x$as_lineno_1" != "x$as_lineno_2" &&
20796 test "x$as_lineno_3" = "x$as_lineno_2" || {
20797 # Find who we are. Look in the path if we contain no path at all
20800 *[\\/]* ) as_myself=$0 ;;
20801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20802 for as_dir in $PATH
20805 test -z "$as_dir" && as_dir=.
20806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20811 # We did not find ourselves, most probably we were run as `sh COMMAND'
20812 # in which case we are not to be found in the path.
20813 if test "x$as_myself" = x; then
20816 if test ! -f "$as_myself"; then
20817 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20818 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20819 { (exit 1); exit 1; }; }
20821 case $CONFIG_SHELL in
20823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20827 test -z "$as_dir" && as_dir=.
20828 for as_base in sh bash ksh sh5; do
20831 if ("$as_dir/$as_base" -c '
20832 as_lineno_1=$LINENO
20833 as_lineno_2=$LINENO
20834 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20835 test "x$as_lineno_1" != "x$as_lineno_2" &&
20836 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20837 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20838 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20839 CONFIG_SHELL=$as_dir/$as_base
20840 export CONFIG_SHELL
20841 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20849 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20850 # uniformly replaced by the line number. The first 'sed' inserts a
20851 # line-number line before each line; the second 'sed' does the real
20852 # work. The second script uses 'N' to pair each line-number line
20853 # with the numbered line, and appends trailing '-' during
20854 # substitution so that $LINENO is not a special case at line end.
20855 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20856 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20857 sed '=' <$as_myself |
20862 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20865 s,^['$as_cr_digits']*\n,,
20866 ' >$as_me.lineno &&
20867 chmod +x $as_me.lineno ||
20868 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20869 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20870 { (exit 1); exit 1; }; }
20872 # Don't try to exec as it changes $[0], causing all sort of problems
20873 # (the dirname of $[0] is not the place where we might find the
20874 # original and so on. Autoconf is especially sensible to this).
20876 # Exit status is that of the last command.
20881 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20882 *c*,-n*) ECHO_N= ECHO_C='
20884 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20885 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20888 if expr a : '\(a\)' >/dev/null 2>&1; then
20894 rm -f conf$$ conf$$.exe conf$$.file
20896 if ln -s conf$$.file conf$$ 2>/dev/null; then
20897 # We could just check for DJGPP; but this test a) works b) is more generic
20898 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20899 if test -f conf$$.exe; then
20900 # Don't use ln at all; we don't have any links
20905 elif ln conf$$.file conf$$ 2>/dev/null; then
20910 rm -f conf$$ conf$$.exe conf$$.file
20912 if mkdir -p . 2>/dev/null; then
20915 test -d ./-p && rmdir ./-p
20919 as_executable_p="test -f"
20921 # Sed expression to map a string onto a valid CPP name.
20922 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20924 # Sed expression to map a string onto a valid variable name.
20925 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20929 # We need space, tab and new line, in precisely that order.
20939 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20940 # report actual input values of CONFIG_FILES etc. instead of their
20941 # values after options handling. Logging --version etc. is OK.
20945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20946 ## Running $as_me. ##
20951 This file was extended by $as_me, which was
20952 generated by GNU Autoconf 2.59. Invocation command line was
20954 CONFIG_FILES = $CONFIG_FILES
20955 CONFIG_HEADERS = $CONFIG_HEADERS
20956 CONFIG_LINKS = $CONFIG_LINKS
20957 CONFIG_COMMANDS = $CONFIG_COMMANDS
20961 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20965 # Files that config.status was made for.
20966 if test -n "$ac_config_files"; then
20967 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20970 if test -n "$ac_config_headers"; then
20971 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20974 if test -n "$ac_config_links"; then
20975 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20978 if test -n "$ac_config_commands"; then
20979 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20982 cat >>$CONFIG_STATUS <<\_ACEOF
20985 \`$as_me' instantiates files from templates according to the
20986 current configuration.
20988 Usage: $0 [OPTIONS] [FILE]...
20990 -h, --help print this help, then exit
20991 -V, --version print version number, then exit
20992 -q, --quiet do not print progress messages
20993 -d, --debug don't remove temporary files
20994 --recheck update $as_me by reconfiguring in the same conditions
20995 --file=FILE[:TEMPLATE]
20996 instantiate the configuration file FILE
20997 --header=FILE[:TEMPLATE]
20998 instantiate the configuration header FILE
21000 Configuration files:
21003 Configuration headers:
21006 Configuration commands:
21009 Report bugs to <bug-autoconf@gnu.org>."
21012 cat >>$CONFIG_STATUS <<_ACEOF
21015 configured by $0, generated by GNU Autoconf 2.59,
21016 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21018 Copyright (C) 2003 Free Software Foundation, Inc.
21019 This config.status script is free software; the Free Software Foundation
21020 gives unlimited permission to copy, distribute and modify it."
21025 cat >>$CONFIG_STATUS <<\_ACEOF
21026 # If no file are specified by the user, then we need to provide default
21027 # value. By we need to know if files were specified by the user.
21033 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21034 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21042 *) # This is not an option, so the user has probably given explicit
21045 ac_need_defaults=false;;
21049 # Handling of the options.
21051 cat >>$CONFIG_STATUS <<\_ACEOF
21052 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21054 --version | --vers* | -V )
21055 echo "$ac_cs_version"; exit 0 ;;
21057 # Conflict between --help and --header
21058 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21059 Try \`$0 --help' for more information." >&5
21060 echo "$as_me: error: ambiguous option: $1
21061 Try \`$0 --help' for more information." >&2;}
21062 { (exit 1); exit 1; }; };;
21063 --help | --hel | -h )
21064 echo "$ac_cs_usage"; exit 0 ;;
21065 --debug | --d* | -d )
21067 --file | --fil | --fi | --f )
21069 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21070 ac_need_defaults=false;;
21071 --header | --heade | --head | --hea )
21073 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21074 ac_need_defaults=false;;
21075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21079 # This is an error.
21080 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21081 Try \`$0 --help' for more information." >&5
21082 echo "$as_me: error: unrecognized option: $1
21083 Try \`$0 --help' for more information." >&2;}
21084 { (exit 1); exit 1; }; } ;;
21086 *) ac_config_targets="$ac_config_targets $1" ;;
21092 ac_configure_extra_args=
21094 if $ac_cs_silent; then
21096 ac_configure_extra_args="$ac_configure_extra_args --silent"
21100 cat >>$CONFIG_STATUS <<_ACEOF
21101 if \$ac_cs_recheck; then
21102 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21103 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21108 cat >>$CONFIG_STATUS <<_ACEOF
21110 # INIT-COMMANDS section.
21113 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21119 cat >>$CONFIG_STATUS <<\_ACEOF
21120 for ac_config_target in $ac_config_targets
21122 case "$ac_config_target" in
21123 # Handling of arguments.
21124 "src/backends/addressbook/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/backends/addressbook/Makefile" ;;
21125 "src/backends/evolution/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/backends/evolution/Makefile" ;;
21126 "src/backends/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/backends/file/Makefile" ;;
21127 "src/backends/sqlite/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/backends/sqlite/Makefile" ;;
21128 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21129 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21130 "src/core/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/core/Makefile" ;;
21131 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21132 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21133 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21134 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21136 { (exit 1); exit 1; }; };;
21140 # If the user did not use the arguments to specify the items to instantiate,
21141 # then the envvar interface is used. Set only those that are not.
21142 # We use the long form for the default assignment because of an extremely
21143 # bizarre bug on SunOS 4.1.3.
21144 if $ac_need_defaults; then
21145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21147 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21150 # Have a temporary directory for convenience. Make it in the build tree
21151 # simply because there is no reason to put it here, and in addition,
21152 # creating and moving files from /tmp can sometimes cause problems.
21153 # Create a temporary directory, and hook for its removal unless debugging.
21156 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21157 trap '{ (exit 1); exit 1; }' 1 2 13 15
21160 # Create a (secure) tmp directory for tmp files.
21163 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21164 test -n "$tmp" && test -d "$tmp"
21167 tmp=./confstat$$-$RANDOM
21168 (umask 077 && mkdir $tmp)
21171 echo "$me: cannot create a temporary directory in ." >&2
21172 { (exit 1); exit 1; }
21177 cat >>$CONFIG_STATUS <<_ACEOF
21180 # CONFIG_FILES section.
21183 # No need to generate the scripts if there are no CONFIG_FILES.
21184 # This happens for instance when ./config.status config.h
21185 if test -n "\$CONFIG_FILES"; then
21186 # Protect against being on the right side of a sed subst in config.status.
21187 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21188 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21189 s,@SHELL@,$SHELL,;t t
21190 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21191 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21192 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21193 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21194 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21195 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21196 s,@exec_prefix@,$exec_prefix,;t t
21197 s,@prefix@,$prefix,;t t
21198 s,@program_transform_name@,$program_transform_name,;t t
21199 s,@bindir@,$bindir,;t t
21200 s,@sbindir@,$sbindir,;t t
21201 s,@libexecdir@,$libexecdir,;t t
21202 s,@datadir@,$datadir,;t t
21203 s,@sysconfdir@,$sysconfdir,;t t
21204 s,@sharedstatedir@,$sharedstatedir,;t t
21205 s,@localstatedir@,$localstatedir,;t t
21206 s,@libdir@,$libdir,;t t
21207 s,@includedir@,$includedir,;t t
21208 s,@oldincludedir@,$oldincludedir,;t t
21209 s,@infodir@,$infodir,;t t
21210 s,@mandir@,$mandir,;t t
21211 s,@build_alias@,$build_alias,;t t
21212 s,@host_alias@,$host_alias,;t t
21213 s,@target_alias@,$target_alias,;t t
21214 s,@DEFS@,$DEFS,;t t
21215 s,@ECHO_C@,$ECHO_C,;t t
21216 s,@ECHO_N@,$ECHO_N,;t t
21217 s,@ECHO_T@,$ECHO_T,;t t
21218 s,@LIBS@,$LIBS,;t t
21219 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21220 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21221 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21222 s,@CYGPATH_W@,$CYGPATH_W,;t t
21223 s,@PACKAGE@,$PACKAGE,;t t
21224 s,@VERSION@,$VERSION,;t t
21225 s,@ACLOCAL@,$ACLOCAL,;t t
21226 s,@AUTOCONF@,$AUTOCONF,;t t
21227 s,@AUTOMAKE@,$AUTOMAKE,;t t
21228 s,@AUTOHEADER@,$AUTOHEADER,;t t
21229 s,@MAKEINFO@,$MAKEINFO,;t t
21230 s,@install_sh@,$install_sh,;t t
21231 s,@STRIP@,$STRIP,;t t
21232 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21233 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21234 s,@mkdir_p@,$mkdir_p,;t t
21236 s,@SET_MAKE@,$SET_MAKE,;t t
21237 s,@am__leading_dot@,$am__leading_dot,;t t
21238 s,@AMTAR@,$AMTAR,;t t
21239 s,@am__tar@,$am__tar,;t t
21240 s,@am__untar@,$am__untar,;t t
21241 s,@MODIFY_SYNCCOMPARE@,$MODIFY_SYNCCOMPARE,;t t
21243 s,@CFLAGS@,$CFLAGS,;t t
21244 s,@LDFLAGS@,$LDFLAGS,;t t
21245 s,@CPPFLAGS@,$CPPFLAGS,;t t
21246 s,@ac_ct_CC@,$ac_ct_CC,;t t
21247 s,@EXEEXT@,$EXEEXT,;t t
21248 s,@OBJEXT@,$OBJEXT,;t t
21249 s,@DEPDIR@,$DEPDIR,;t t
21250 s,@am__include@,$am__include,;t t
21251 s,@am__quote@,$am__quote,;t t
21252 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21253 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21254 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21255 s,@CCDEPMODE@,$CCDEPMODE,;t t
21256 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21257 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21259 s,@EGREP@,$EGREP,;t t
21260 s,@CPPUNIT_CXXFLAGS@,$CPPUNIT_CXXFLAGS,;t t
21261 s,@CPPUNIT_LDFLAGS@,$CPPUNIT_LDFLAGS,;t t
21262 s,@CPPUNIT_TESTS@,$CPPUNIT_TESTS,;t t
21263 s,@CORE_LDADD_DEP@,$CORE_LDADD_DEP,;t t
21264 s,@CLEAN_CLIENT_SRC@,$CLEAN_CLIENT_SRC,;t t
21265 s,@TRANSPORT_LDFLAGS@,$TRANSPORT_LDFLAGS,;t t
21266 s,@TRANSPORT_CFLAGS@,$TRANSPORT_CFLAGS,;t t
21267 s,@CURL_LDFLAGS@,$CURL_LDFLAGS,;t t
21268 s,@FUNAMBOL_CFLAGS@,$FUNAMBOL_CFLAGS,;t t
21269 s,@FUNAMBOL_LIBS@,$FUNAMBOL_LIBS,;t t
21270 s,@FUNAMBOL@,$FUNAMBOL,;t t
21271 s,@FUNAMBOL_SUBDIR@,$FUNAMBOL_SUBDIR,;t t
21272 s,@FUNAMBOL_DEP@,$FUNAMBOL_DEP,;t t
21273 s,@FUNAMBOL_LIB@,$FUNAMBOL_LIB,;t t
21274 s,@FUNAMBOLSRC@,$FUNAMBOLSRC,;t t
21275 s,@SYNCSOURCES@,$SYNCSOURCES,;t t
21276 s,@BACKEND_DEFINES@,$BACKEND_DEFINES,;t t
21277 s,@ADDRESSBOOK_CFLAGS@,$ADDRESSBOOK_CFLAGS,;t t
21278 s,@ADDRESSBOOK_LIBS@,$ADDRESSBOOK_LIBS,;t t
21279 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21280 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21281 s,@EPACKAGE_CFLAGS@,$EPACKAGE_CFLAGS,;t t
21282 s,@EPACKAGE_LIBS@,$EPACKAGE_LIBS,;t t
21283 s,@ECAL_CFLAGS@,$ECAL_CFLAGS,;t t
21284 s,@ECAL_LIBS@,$ECAL_LIBS,;t t
21285 s,@EBOOK_CFLAGS@,$EBOOK_CFLAGS,;t t
21286 s,@EBOOK_LIBS@,$EBOOK_LIBS,;t t
21287 s,@ENABLE_ECAL_TRUE@,$ENABLE_ECAL_TRUE,;t t
21288 s,@ENABLE_ECAL_FALSE@,$ENABLE_ECAL_FALSE,;t t
21289 s,@FILE_CFLAGS@,$FILE_CFLAGS,;t t
21290 s,@FILE_LIBS@,$FILE_LIBS,;t t
21291 s,@SQLITE_CFLAGS@,$SQLITE_CFLAGS,;t t
21292 s,@SQLITE_LIBS@,$SQLITE_LIBS,;t t
21293 s,@BACKEND_CPPFLAGS@,$BACKEND_CPPFLAGS,;t t
21294 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
21295 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
21297 s,@CXXFLAGS@,$CXXFLAGS,;t t
21298 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21299 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21300 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21301 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21302 s,@build@,$build,;t t
21303 s,@build_cpu@,$build_cpu,;t t
21304 s,@build_vendor@,$build_vendor,;t t
21305 s,@build_os@,$build_os,;t t
21306 s,@host@,$host,;t t
21307 s,@host_cpu@,$host_cpu,;t t
21308 s,@host_vendor@,$host_vendor,;t t
21309 s,@host_os@,$host_os,;t t
21310 s,@LN_S@,$LN_S,;t t
21311 s,@ECHO@,$ECHO,;t t
21313 s,@ac_ct_AR@,$ac_ct_AR,;t t
21314 s,@RANLIB@,$RANLIB,;t t
21315 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21316 s,@CXXCPP@,$CXXCPP,;t t
21318 s,@FFLAGS@,$FFLAGS,;t t
21319 s,@ac_ct_F77@,$ac_ct_F77,;t t
21320 s,@LIBTOOL@,$LIBTOOL,;t t
21321 s,@ENABLE_MODULES_TRUE@,$ENABLE_MODULES_TRUE,;t t
21322 s,@ENABLE_MODULES_FALSE@,$ENABLE_MODULES_FALSE,;t t
21323 s,@SYNCEVOLUTION_LDADD@,$SYNCEVOLUTION_LDADD,;t t
21324 s,@SYNCEVOLUTION_CXXFLAGS@,$SYNCEVOLUTION_CXXFLAGS,;t t
21325 s,@LIBOBJS@,$LIBOBJS,;t t
21326 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21331 cat >>$CONFIG_STATUS <<\_ACEOF
21332 # Split the substitutions into bite-sized pieces for seds with
21333 # small command number limits, like on Digital OSF/1 and HP-UX.
21334 ac_max_sed_lines=48
21335 ac_sed_frag=1 # Number of current file.
21336 ac_beg=1 # First line for current file.
21337 ac_end=$ac_max_sed_lines # Line after last line for current file.
21340 while $ac_more_lines; do
21341 if test $ac_beg -gt 1; then
21342 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21344 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21346 if test ! -s $tmp/subs.frag; then
21347 ac_more_lines=false
21349 # The purpose of the label and of the branching condition is to
21350 # speed up the sed processing (if there are no `@' at all, there
21351 # is no need to browse any of the substitutions).
21352 # These are the two extra sed commands mentioned above.
21354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21355 if test -z "$ac_sed_cmds"; then
21356 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21358 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21360 ac_sed_frag=`expr $ac_sed_frag + 1`
21362 ac_end=`expr $ac_end + $ac_max_sed_lines`
21365 if test -z "$ac_sed_cmds"; then
21368 fi # test -n "$CONFIG_FILES"
21371 cat >>$CONFIG_STATUS <<\_ACEOF
21372 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21375 - | *:- | *:-:* ) # input from stdin
21377 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21379 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21381 * ) ac_file_in=$ac_file.in ;;
21384 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21385 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21387 X"$ac_file" : 'X\(//\)[^/]' \| \
21388 X"$ac_file" : 'X\(//\)$' \| \
21389 X"$ac_file" : 'X\(/\)' \| \
21390 . : '\(.\)' 2>/dev/null ||
21392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21394 /^X\(\/\/\)$/{ s//\1/; q; }
21395 /^X\(\/\).*/{ s//\1/; q; }
21397 { if $as_mkdir_p; then
21402 while test ! -d "$as_dir"; do
21403 as_dirs="$as_dir $as_dirs"
21404 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21406 X"$as_dir" : 'X\(//\)[^/]' \| \
21407 X"$as_dir" : 'X\(//\)$' \| \
21408 X"$as_dir" : 'X\(/\)' \| \
21409 . : '\(.\)' 2>/dev/null ||
21411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21413 /^X\(\/\/\)$/{ s//\1/; q; }
21414 /^X\(\/\).*/{ s//\1/; q; }
21417 test ! -n "$as_dirs" || mkdir $as_dirs
21418 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21419 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21420 { (exit 1); exit 1; }; }; }
21424 if test "$ac_dir" != .; then
21425 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21426 # A "../" for each directory in $ac_dir_suffix.
21427 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21429 ac_dir_suffix= ac_top_builddir=
21433 .) # No --srcdir option. We are building in place.
21435 if test -z "$ac_top_builddir"; then
21438 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21440 [\\/]* | ?:[\\/]* ) # Absolute path.
21441 ac_srcdir=$srcdir$ac_dir_suffix;
21442 ac_top_srcdir=$srcdir ;;
21443 *) # Relative path.
21444 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21445 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21448 # Do not use `cd foo && pwd` to compute absolute paths, because
21449 # the directories may not exist.
21451 .) ac_abs_builddir="$ac_dir";;
21454 .) ac_abs_builddir=`pwd`;;
21455 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21456 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21459 case $ac_abs_builddir in
21460 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21462 case ${ac_top_builddir}. in
21463 .) ac_abs_top_builddir=$ac_abs_builddir;;
21464 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21465 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21468 case $ac_abs_builddir in
21469 .) ac_abs_srcdir=$ac_srcdir;;
21472 .) ac_abs_srcdir=$ac_abs_builddir;;
21473 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21474 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21477 case $ac_abs_builddir in
21478 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21480 case $ac_top_srcdir in
21481 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21482 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21483 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21490 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21493 if test x"$ac_file" != x-; then
21494 { echo "$as_me:$LINENO: creating $ac_file" >&5
21495 echo "$as_me: creating $ac_file" >&6;}
21498 # Let's still pretend it is `configure' which instantiates (i.e., don't
21499 # use $as_me), people would be surprised to read:
21500 # /* config.h. Generated by config.status. */
21501 if test x"$ac_file" = x-; then
21504 configure_input="$ac_file. "
21506 configure_input=$configure_input"Generated from `echo $ac_file_in |
21507 sed 's,.*/,,'` by configure."
21509 # First look for the input files in the build tree, otherwise in the
21511 ac_file_inputs=`IFS=:
21512 for f in $ac_file_in; do
21514 -) echo $tmp/stdin ;;
21516 # Absolute (can't be DOS-style, as IFS=:)
21517 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21518 echo "$as_me: error: cannot find input file: $f" >&2;}
21519 { (exit 1); exit 1; }; }
21522 if test -f "$f"; then
21525 elif test -f "$srcdir/$f"; then
21530 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21531 echo "$as_me: error: cannot find input file: $f" >&2;}
21532 { (exit 1); exit 1; }; }
21535 done` || { (exit 1); exit 1; }
21537 cat >>$CONFIG_STATUS <<_ACEOF
21541 cat >>$CONFIG_STATUS <<\_ACEOF
21543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21544 s,@configure_input@,$configure_input,;t t
21545 s,@srcdir@,$ac_srcdir,;t t
21546 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21547 s,@top_srcdir@,$ac_top_srcdir,;t t
21548 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21549 s,@builddir@,$ac_builddir,;t t
21550 s,@abs_builddir@,$ac_abs_builddir,;t t
21551 s,@top_builddir@,$ac_top_builddir,;t t
21552 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21553 s,@INSTALL@,$ac_INSTALL,;t t
21554 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21556 if test x"$ac_file" != x-; then
21557 mv $tmp/out $ac_file
21565 cat >>$CONFIG_STATUS <<\_ACEOF
21568 # CONFIG_HEADER section.
21571 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21572 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21574 # ac_d sets the value in "#define NAME VALUE" lines.
21575 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21576 ac_dB='[ ].*$,\1#\2'
21579 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21580 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21581 ac_uB='$,\1#\2define\3'
21585 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21586 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21588 - | *:- | *:-:* ) # input from stdin
21590 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21591 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21592 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21594 * ) ac_file_in=$ac_file.in ;;
21597 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21598 echo "$as_me: creating $ac_file" >&6;}
21600 # First look for the input files in the build tree, otherwise in the
21602 ac_file_inputs=`IFS=:
21603 for f in $ac_file_in; do
21605 -) echo $tmp/stdin ;;
21607 # Absolute (can't be DOS-style, as IFS=:)
21608 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21609 echo "$as_me: error: cannot find input file: $f" >&2;}
21610 { (exit 1); exit 1; }; }
21611 # Do quote $f, to prevent DOS paths from being IFS'd.
21614 if test -f "$f"; then
21617 elif test -f "$srcdir/$f"; then
21622 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21623 echo "$as_me: error: cannot find input file: $f" >&2;}
21624 { (exit 1); exit 1; }; }
21627 done` || { (exit 1); exit 1; }
21628 # Remove the trailing spaces.
21629 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21633 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21634 # `conftest.undefs', that substitutes the proper values into
21635 # config.h.in to produce config.h. The first handles `#define'
21636 # templates, and the second `#undef' templates.
21637 # And first: Protect against being on the right side of a sed subst in
21638 # config.status. Protect against being in an unquoted here document
21639 # in config.status.
21640 rm -f conftest.defines conftest.undefs
21641 # Using a here document instead of a string reduces the quoting nightmare.
21642 # Putting comments in sed scripts is not portable.
21644 # `end' is used to avoid that the second main sed command (meant for
21645 # 0-ary CPP macros) applies to n-ary macro definitions.
21646 # See the Autoconf documentation for `clear'.
21647 cat >confdef2sed.sed <<\_ACEOF
21652 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21654 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21657 # If some macros were called several times there might be several times
21658 # the same #defines, which is useless. Nevertheless, we may not want to
21659 # sort them, since we want the *last* AC-DEFINE to be honored.
21660 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21661 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21662 rm -f confdef2sed.sed
21664 # This sed command replaces #undef with comments. This is necessary, for
21665 # example, in the case of _POSIX_SOURCE, which is predefined and required
21666 # on some systems where configure will not decide to define it.
21667 cat >>conftest.undefs <<\_ACEOF
21668 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21671 # Break up conftest.defines because some shells have a limit on the size
21672 # of here documents, and old seds have small limits too (100 cmds).
21673 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21674 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21675 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21676 echo ' :' >>$CONFIG_STATUS
21677 rm -f conftest.tail
21678 while grep . conftest.defines >/dev/null
21680 # Write a limited-size here document to $tmp/defines.sed.
21681 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21682 # Speed up: don't consider the non `#define' lines.
21683 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21684 # Work around the forget-to-reset-the-flag bug.
21685 echo 't clr' >>$CONFIG_STATUS
21686 echo ': clr' >>$CONFIG_STATUS
21687 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21689 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21691 mv $tmp/out $tmp/in
21693 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21694 rm -f conftest.defines
21695 mv conftest.tail conftest.defines
21697 rm -f conftest.defines
21698 echo ' fi # grep' >>$CONFIG_STATUS
21699 echo >>$CONFIG_STATUS
21701 # Break up conftest.undefs because some shells have a limit on the size
21702 # of here documents, and old seds have small limits too (100 cmds).
21703 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21704 rm -f conftest.tail
21705 while grep . conftest.undefs >/dev/null
21707 # Write a limited-size here document to $tmp/undefs.sed.
21708 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21709 # Speed up: don't consider the non `#undef'
21710 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21711 # Work around the forget-to-reset-the-flag bug.
21712 echo 't clr' >>$CONFIG_STATUS
21713 echo ': clr' >>$CONFIG_STATUS
21714 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21716 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21718 mv $tmp/out $tmp/in
21720 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21721 rm -f conftest.undefs
21722 mv conftest.tail conftest.undefs
21724 rm -f conftest.undefs
21726 cat >>$CONFIG_STATUS <<\_ACEOF
21727 # Let's still pretend it is `configure' which instantiates (i.e., don't
21728 # use $as_me), people would be surprised to read:
21729 # /* config.h. Generated by config.status. */
21730 if test x"$ac_file" = x-; then
21731 echo "/* Generated by configure. */" >$tmp/config.h
21733 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21735 cat $tmp/in >>$tmp/config.h
21737 if test x"$ac_file" != x-; then
21738 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21739 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21740 echo "$as_me: $ac_file is unchanged" >&6;}
21742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21744 X"$ac_file" : 'X\(//\)[^/]' \| \
21745 X"$ac_file" : 'X\(//\)$' \| \
21746 X"$ac_file" : 'X\(/\)' \| \
21747 . : '\(.\)' 2>/dev/null ||
21749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21751 /^X\(\/\/\)$/{ s//\1/; q; }
21752 /^X\(\/\).*/{ s//\1/; q; }
21754 { if $as_mkdir_p; then
21759 while test ! -d "$as_dir"; do
21760 as_dirs="$as_dir $as_dirs"
21761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21763 X"$as_dir" : 'X\(//\)[^/]' \| \
21764 X"$as_dir" : 'X\(//\)$' \| \
21765 X"$as_dir" : 'X\(/\)' \| \
21766 . : '\(.\)' 2>/dev/null ||
21768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21770 /^X\(\/\/\)$/{ s//\1/; q; }
21771 /^X\(\/\).*/{ s//\1/; q; }
21774 test ! -n "$as_dirs" || mkdir $as_dirs
21775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21777 { (exit 1); exit 1; }; }; }
21780 mv $tmp/config.h $ac_file
21784 rm -f $tmp/config.h
21786 # Compute $ac_file's index in $config_headers.
21788 for _am_header in $config_headers :; do
21789 case $_am_header in
21790 $ac_file | $ac_file:* )
21793 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21796 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21797 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21798 X$ac_file : 'X\(//\)[^/]' \| \
21799 X$ac_file : 'X\(//\)$' \| \
21800 X$ac_file : 'X\(/\)' \| \
21801 . : '\(.\)' 2>/dev/null ||
21803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21805 /^X\(\/\/\)$/{ s//\1/; q; }
21806 /^X\(\/\).*/{ s//\1/; q; }
21807 s/.*/./; q'`/stamp-h$_am_stamp_count
21810 cat >>$CONFIG_STATUS <<\_ACEOF
21813 # CONFIG_COMMANDS section.
21815 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21816 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21817 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21818 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21819 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21820 X"$ac_dest" : 'X\(//\)[^/]' \| \
21821 X"$ac_dest" : 'X\(//\)$' \| \
21822 X"$ac_dest" : 'X\(/\)' \| \
21823 . : '\(.\)' 2>/dev/null ||
21825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21827 /^X\(\/\/\)$/{ s//\1/; q; }
21828 /^X\(\/\).*/{ s//\1/; q; }
21830 { if $as_mkdir_p; then
21835 while test ! -d "$as_dir"; do
21836 as_dirs="$as_dir $as_dirs"
21837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21839 X"$as_dir" : 'X\(//\)[^/]' \| \
21840 X"$as_dir" : 'X\(//\)$' \| \
21841 X"$as_dir" : 'X\(/\)' \| \
21842 . : '\(.\)' 2>/dev/null ||
21844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21846 /^X\(\/\/\)$/{ s//\1/; q; }
21847 /^X\(\/\).*/{ s//\1/; q; }
21850 test ! -n "$as_dirs" || mkdir $as_dirs
21851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21853 { (exit 1); exit 1; }; }; }
21857 if test "$ac_dir" != .; then
21858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21859 # A "../" for each directory in $ac_dir_suffix.
21860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21862 ac_dir_suffix= ac_top_builddir=
21866 .) # No --srcdir option. We are building in place.
21868 if test -z "$ac_top_builddir"; then
21871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21873 [\\/]* | ?:[\\/]* ) # Absolute path.
21874 ac_srcdir=$srcdir$ac_dir_suffix;
21875 ac_top_srcdir=$srcdir ;;
21876 *) # Relative path.
21877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21881 # Do not use `cd foo && pwd` to compute absolute paths, because
21882 # the directories may not exist.
21884 .) ac_abs_builddir="$ac_dir";;
21887 .) ac_abs_builddir=`pwd`;;
21888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21892 case $ac_abs_builddir in
21893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21895 case ${ac_top_builddir}. in
21896 .) ac_abs_top_builddir=$ac_abs_builddir;;
21897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21901 case $ac_abs_builddir in
21902 .) ac_abs_srcdir=$ac_srcdir;;
21905 .) ac_abs_srcdir=$ac_abs_builddir;;
21906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21910 case $ac_abs_builddir in
21911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21913 case $ac_top_srcdir in
21914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21921 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21922 echo "$as_me: executing $ac_dest commands" >&6;}
21924 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21925 # Strip MF so we end up with the name of the file.
21926 mf=`echo "$mf" | sed -e 's/:.*$//'`
21927 # Check whether this is an Automake generated Makefile or not.
21928 # We used to match only the files named `Makefile.in', but
21929 # some people rename them; so instead we look at the file content.
21930 # Grep'ing the first line is not enough: some people post-process
21931 # each Makefile.in and add a new line on top of each file to say so.
21932 # So let's grep whole file.
21933 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21934 dirpart=`(dirname "$mf") 2>/dev/null ||
21935 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21936 X"$mf" : 'X\(//\)[^/]' \| \
21937 X"$mf" : 'X\(//\)$' \| \
21938 X"$mf" : 'X\(/\)' \| \
21939 . : '\(.\)' 2>/dev/null ||
21941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21943 /^X\(\/\/\)$/{ s//\1/; q; }
21944 /^X\(\/\).*/{ s//\1/; q; }
21949 # Extract the definition of DEPDIR, am__include, and am__quote
21950 # from the Makefile without running `make'.
21951 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21952 test -z "$DEPDIR" && continue
21953 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21954 test -z "am__include" && continue
21955 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21956 # When using ansi2knr, U may be empty or an underscore; expand it
21957 U=`sed -n 's/^U = //p' < "$mf"`
21958 # Find all dependency output files, they are included files with
21959 # $(DEPDIR) in their names. We invoke sed twice because it is the
21960 # simplest approach to changing $(DEPDIR) to its actual value in the
21962 for file in `sed -n "
21963 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21964 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21965 # Make sure the directory exists.
21966 test -f "$dirpart/$file" && continue
21967 fdir=`(dirname "$file") 2>/dev/null ||
21968 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969 X"$file" : 'X\(//\)[^/]' \| \
21970 X"$file" : 'X\(//\)$' \| \
21971 X"$file" : 'X\(/\)' \| \
21972 . : '\(.\)' 2>/dev/null ||
21974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21976 /^X\(\/\/\)$/{ s//\1/; q; }
21977 /^X\(\/\).*/{ s//\1/; q; }
21979 { if $as_mkdir_p; then
21980 mkdir -p $dirpart/$fdir
21982 as_dir=$dirpart/$fdir
21984 while test ! -d "$as_dir"; do
21985 as_dirs="$as_dir $as_dirs"
21986 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21988 X"$as_dir" : 'X\(//\)[^/]' \| \
21989 X"$as_dir" : 'X\(//\)$' \| \
21990 X"$as_dir" : 'X\(/\)' \| \
21991 . : '\(.\)' 2>/dev/null ||
21993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21995 /^X\(\/\/\)$/{ s//\1/; q; }
21996 /^X\(\/\).*/{ s//\1/; q; }
21999 test ! -n "$as_dirs" || mkdir $as_dirs
22000 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22001 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22002 { (exit 1); exit 1; }; }; }
22004 # echo "creating $dirpart/$file"
22005 echo '# dummy' > "$dirpart/$file"
22013 cat >>$CONFIG_STATUS <<\_ACEOF
22015 { (exit 0); exit 0; }
22017 chmod +x $CONFIG_STATUS
22018 ac_clean_files=$ac_clean_files_save
22021 # configure is writing to config.log, and then calls config.status.
22022 # config.status does its own redirection, appending to config.log.
22023 # Unfortunately, on DOS this fails, as config.log is still kept open
22024 # by configure, so config.status won't be able to write to it; its
22025 # output is simply discarded. So we exec the FD to /dev/null,
22026 # effectively closing config.log, so it can be properly (re)opened and
22027 # appended to by config.status. When coming back to configure, we
22028 # need to make the FD available again.
22029 if test "$no_create" != yes; then
22031 ac_config_status_args=
22032 test "$silent" = yes &&
22033 ac_config_status_args="$ac_config_status_args --quiet"
22035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22038 # would make configure fail if this is the last instruction.
22039 $ac_cs_success || { (exit 1); exit 1; }