2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for suPHP 0.6.2.
5 # Report bugs to <sebastian.marsching@suphp.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='suphp'
426 PACKAGE_VERSION='0.6.2'
427 PACKAGE_STRING='suPHP 0.6.2'
428 PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
430 ac_unique_file="src/Application.cpp"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL APXS APACHE_VERSION_1_3 APACHE_VERSION_2 APXS_INCLUDEDIR APXS_LIBEXECDIR APXS_EXTRA_CFLAGS APR_INCLUDEDIR APR_CPPFLAGS OPT_APACHEMOD_USERGROUP_DEF COND_AP13_TRUE COND_AP13_FALSE COND_AP20_TRUE COND_AP20_FALSE COND_APUSERGROUP_TRUE COND_APUSERGROUP_FALSE LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r "$srcdir/$ac_unique_file"; then
882 ac_srcdir_defaulted=no
884 if test ! -r "$srcdir/$ac_unique_file"; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures suPHP 0.6.2 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of suPHP 0.6.2:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --enable-checkpath Check if script resides in DOCUMENT_ROOT (default is
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
1051 or the full path to apr-config
1052 --with-apxs=FILE Build shared Apache module. FILE is the optional
1053 pathname to the Apache apxs tool; defaults to
1055 --with-setid-mode=MODE Mode to use for setting UID/GID. MODE can be on of
1056 "owner", "config" or "paranoid"; defaults to
1058 --with-min-uid=UID Minimum UID, which is allowed to run scripts
1060 --with-min-gid=GID Minimum GID, which is allowed to run scripts
1062 --with-apache-user=USERNAME
1063 Name of the user Apache is running as (default is
1065 --with-logfile=FILE Path to suPHP logfile (default is
1066 "/var/log/httpd/suphp_log"
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1075 CXX C++ compiler command
1076 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1085 Report bugs to <sebastian.marsching@suphp.org>.
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101 ac_dir_suffix= ac_top_builddir=
1105 .) # No --srcdir option. We are building in place.
1107 if test -z "$ac_top_builddir"; then
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1123 .) ac_abs_builddir="$ac_dir";;
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1170 $ac_configure --help
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1181 suPHP configure 0.6.2
1182 generated by GNU Autoconf 2.59
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1195 It was created by suPHP $as_me 0.6.2, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_must_keep_next=false
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 -* ) ac_must_keep_next=true ;;
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1313 # The following way of writing the cache mishandles newlines in values,
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1336 for ac_var in $ac_subst_vars
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -n "$ac_subst_files"; then
1350 for ac_var in $ac_subst_files
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1358 if test -s confdefs.h; then
1365 sed "/^$/d" confdefs.h | sort
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 # Predefined preprocessor variables.
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1448 # Check that the precious variables saved in the cache have kept the same
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1534 for ac_dir in config $srcdir/config; do
1535 if test -f $ac_dir/install-sh; then
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 elif test -f $ac_dir/install.sh; then
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 elif test -f $ac_dir/shtool; then
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 if test -z "$ac_aux_dir"; then
1550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1552 { (exit 1); exit 1; }; }
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 am__api_version="1.9"
1560 # Find a good install program. We prefer a C program (faster),
1561 # so one script is as good as another. But avoid the broken or
1562 # incompatible versions:
1563 # SysV /etc/install, /usr/sbin/install
1564 # SunOS /usr/etc/install
1565 # IRIX /sbin/install
1567 # AmigaOS /C/install, which installs bootblocks on floppy discs
1568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571 # OS/2's system install, which has a completely different semantic
1572 # ./install, which can be erroneously created by make from ./install.sh.
1573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1575 if test -z "$INSTALL"; then
1576 if test "${ac_cv_path_install+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 # Account for people who put trailing slashes in PATH elements.
1586 ./ | .// | /cC/* | \
1587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1591 # OSF1 and SCO ODT 3.0 have their own names for install.
1592 # Don't use installbsd from OSF since it installs stuff as root
1594 for ac_prog in ginstall scoinst install; do
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1597 if test $ac_prog = install &&
1598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599 # AIX install. It has an incompatible calling convention.
1601 elif test $ac_prog = install &&
1602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603 # program-specific install script used by HP pwplus--don't use.
1606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1618 if test "${ac_cv_path_install+set}" = set; then
1619 INSTALL=$ac_cv_path_install
1621 # As a last resort, use the slow shell script. We don't cache a
1622 # path for INSTALL within a source directory, because that will
1623 # break other packages using the cache if that directory is
1624 # removed, or if the path is relative.
1625 INSTALL=$ac_install_sh
1628 echo "$as_me:$LINENO: result: $INSTALL" >&5
1629 echo "${ECHO_T}$INSTALL" >&6
1631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1632 # It thinks the first close brace ends the variable substitution.
1633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1639 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1640 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1643 echo timestamp > conftest.file
1644 # Do `set' in a subshell so we don't clobber the current shell's
1645 # arguments. Must try -L first in case configure is actually a
1646 # symlink; some systems play weird games with the mod time of symlinks
1647 # (eg FreeBSD returns the mod time of the symlink's containing
1650 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1651 if test "$*" = "X"; then
1653 set X `ls -t $srcdir/configure conftest.file`
1656 if test "$*" != "X $srcdir/configure conftest.file" \
1657 && test "$*" != "X conftest.file $srcdir/configure"; then
1659 # If neither matched, then we have a broken ls. This can happen
1660 # if, for instance, CONFIG_SHELL is bash and it inherits a
1661 # broken ls alias from the environment. This has actually
1662 # happened. Such a system could not be considered "sane".
1663 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1664 alias in your environment" >&5
1665 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1666 alias in your environment" >&2;}
1667 { (exit 1); exit 1; }; }
1670 test "$2" = conftest.file
1676 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1677 Check your system clock" >&5
1678 echo "$as_me: error: newly created file is older than distributed files!
1679 Check your system clock" >&2;}
1680 { (exit 1); exit 1; }; }
1682 echo "$as_me:$LINENO: result: yes" >&5
1683 echo "${ECHO_T}yes" >&6
1684 test "$program_prefix" != NONE &&
1685 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1686 # Use a double $ so make ignores it.
1687 test "$program_suffix" != NONE &&
1688 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1689 # Double any \ or $. echo might interpret backslashes.
1690 # By default was `s,x,x', remove it if useless.
1691 cat <<\_ACEOF >conftest.sed
1692 s/[\\$]/&&/g;s/;s,x,x,$//
1694 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1697 # expand $ac_aux_dir to an absolute path
1698 am_aux_dir=`cd $ac_aux_dir && pwd`
1700 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1701 # Use eval to expand $SHELL
1702 if eval "$MISSING --run true"; then
1703 am_missing_run="$MISSING --run "
1706 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1707 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1710 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1711 # We used to keeping the `.' as first argument, in order to
1712 # allow $(mkdir_p) to be used without argument. As in
1713 # $(mkdir_p) $(somedir)
1714 # where $(somedir) is conditionally defined. However this is wrong
1716 # 1. if the package is installed by a user who cannot write `.'
1717 # make install will fail,
1718 # 2. the above comment should most certainly read
1719 # $(mkdir_p) $(DESTDIR)$(somedir)
1720 # so it does not work when $(somedir) is undefined and
1721 # $(DESTDIR) is not.
1722 # To support the latter case, we have to write
1723 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1724 # so the `.' trick is pointless.
1725 mkdir_p='mkdir -p --'
1727 # On NextStep and OpenStep, the `mkdir' command does not
1728 # recognize any option. It will interpret all options as
1729 # directories to create, and then abort because `.' already
1731 for d in ./-p ./--version;
1733 test -d $d && rmdir $d
1735 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1736 if test -f "$ac_aux_dir/mkinstalldirs"; then
1737 mkdir_p='$(mkinstalldirs)'
1739 mkdir_p='$(install_sh) -d'
1743 for ac_prog in gawk mawk nawk awk
1745 # Extract the first word of "$ac_prog", so it can be a program name with args.
1746 set dummy $ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_AWK+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$AWK"; then
1753 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_AWK="$ac_prog"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 if test -n "$AWK"; then
1773 echo "$as_me:$LINENO: result: $AWK" >&5
1774 echo "${ECHO_T}$AWK" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1780 test -n "$AWK" && break
1783 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1784 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1786 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 cat >conftest.make <<\_ACEOF
1791 @echo 'ac_maketemp="$(MAKE)"'
1793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1794 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1795 if test -n "$ac_maketemp"; then
1796 eval ac_cv_prog_make_${ac_make}_set=yes
1798 eval ac_cv_prog_make_${ac_make}_set=no
1802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809 SET_MAKE="MAKE=${MAKE-make}"
1812 rm -rf .tst 2>/dev/null
1813 mkdir .tst 2>/dev/null
1814 if test -d .tst; then
1819 rmdir .tst 2>/dev/null
1821 # test to see if srcdir already configured
1822 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1823 test -f $srcdir/config.status; then
1824 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1825 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1826 { (exit 1); exit 1; }; }
1829 # test whether we have cygpath
1830 if test -z "$CYGPATH_W"; then
1831 if (cygpath --version) >/dev/null 2>/dev/null; then
1832 CYGPATH_W='cygpath -w'
1839 # Define the identity of the package.
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE "$PACKAGE"
1849 cat >>confdefs.h <<_ACEOF
1850 #define VERSION "$VERSION"
1853 # Some tools Automake needs.
1855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1869 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1871 # Installed binaries are usually stripped using `strip' when the user
1872 # run `make install-strip'. However `strip' might not be the right
1873 # tool to use in cross-compilation environments, therefore Automake
1874 # will honor the `STRIP' environment variable to overrule this program.
1875 if test "$cross_compiling" != no; then
1876 if test -n "$ac_tool_prefix"; then
1877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}strip; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_STRIP+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$STRIP"; then
1885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 STRIP=$ac_cv_prog_STRIP
1904 if test -n "$STRIP"; then
1905 echo "$as_me:$LINENO: result: $STRIP" >&5
1906 echo "${ECHO_T}$STRIP" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1913 if test -z "$ac_cv_prog_STRIP"; then
1915 # Extract the first word of "strip", so it can be a program name with args.
1916 set dummy strip; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$ac_ct_STRIP"; then
1923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_ac_ct_STRIP="strip"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1943 if test -n "$ac_ct_STRIP"; then
1944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1945 echo "${ECHO_T}$ac_ct_STRIP" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1953 STRIP="$ac_cv_prog_STRIP"
1957 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1959 # We need awk for the "check" target. The system "awk" is bad on
1961 # Always define AMTAR for backward compatibility.
1963 AMTAR=${AMTAR-"${am_missing_run}tar"}
1965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1971 # Check for right directory
1973 # Config headers for automake
1974 ac_config_headers="$ac_config_headers src/config.h"
1977 # Build time sanity check
1978 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1979 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1982 echo timestamp > conftest.file
1983 # Do `set' in a subshell so we don't clobber the current shell's
1984 # arguments. Must try -L first in case configure is actually a
1985 # symlink; some systems play weird games with the mod time of symlinks
1986 # (eg FreeBSD returns the mod time of the symlink's containing
1989 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1990 if test "$*" = "X"; then
1992 set X `ls -t $srcdir/configure conftest.file`
1995 if test "$*" != "X $srcdir/configure conftest.file" \
1996 && test "$*" != "X conftest.file $srcdir/configure"; then
1998 # If neither matched, then we have a broken ls. This can happen
1999 # if, for instance, CONFIG_SHELL is bash and it inherits a
2000 # broken ls alias from the environment. This has actually
2001 # happened. Such a system could not be considered "sane".
2002 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2003 alias in your environment" >&5
2004 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2005 alias in your environment" >&2;}
2006 { (exit 1); exit 1; }; }
2009 test "$2" = conftest.file
2015 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2016 Check your system clock" >&5
2017 echo "$as_me: error: newly created file is older than distributed files!
2018 Check your system clock" >&2;}
2019 { (exit 1); exit 1; }; }
2021 echo "$as_me:$LINENO: result: yes" >&5
2022 echo "${ECHO_T}yes" >&6
2024 # Look for install program
2025 # Find a good install program. We prefer a C program (faster),
2026 # so one script is as good as another. But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2032 # AmigaOS /C/install, which installs bootblocks on floppy discs
2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2036 # OS/2's system install, which has a completely different semantic
2037 # ./install, which can be erroneously created by make from ./install.sh.
2038 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2039 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2040 if test -z "$INSTALL"; then
2041 if test "${ac_cv_path_install+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 # Account for people who put trailing slashes in PATH elements.
2051 ./ | .// | /cC/* | \
2052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2053 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2056 # OSF1 and SCO ODT 3.0 have their own names for install.
2057 # Don't use installbsd from OSF since it installs stuff as root
2059 for ac_prog in ginstall scoinst install; do
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2062 if test $ac_prog = install &&
2063 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2064 # AIX install. It has an incompatible calling convention.
2066 elif test $ac_prog = install &&
2067 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2068 # program-specific install script used by HP pwplus--don't use.
2071 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2083 if test "${ac_cv_path_install+set}" = set; then
2084 INSTALL=$ac_cv_path_install
2086 # As a last resort, use the slow shell script. We don't cache a
2087 # path for INSTALL within a source directory, because that will
2088 # break other packages using the cache if that directory is
2089 # removed, or if the path is relative.
2090 INSTALL=$ac_install_sh
2093 echo "$as_me:$LINENO: result: $INSTALL" >&5
2094 echo "${ECHO_T}$INSTALL" >&6
2096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2097 # It thinks the first close brace ends the variable substitution.
2098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 if test -n "$ac_tool_prefix"; then
2112 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 if test -n "$CC"; then
2140 echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6
2143 echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2148 if test -z "$ac_cv_prog_CC"; then
2150 # Extract the first word of "gcc", so it can be a program name with args.
2151 set dummy gcc; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$ac_ct_CC"; then
2158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167 ac_cv_prog_ac_ct_CC="gcc"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2179 echo "${ECHO_T}$ac_ct_CC" >&6
2181 echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2190 if test -z "$CC"; then
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}cc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_CC="${ac_tool_prefix}cc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2228 if test -z "$ac_cv_prog_CC"; then
2230 # Extract the first word of "cc", so it can be a program name with args.
2231 set dummy cc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_ac_ct_CC="cc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2271 if test -z "$CC"; then
2272 # Extract the first word of "cc", so it can be a program name with args.
2273 set dummy cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2291 ac_prog_rejected=yes
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 if test $ac_prog_rejected = yes; then
2302 # We found a bogon in the path, so make sure we never use it.
2303 set dummy $ac_cv_prog_CC
2305 if test $# != 0; then
2306 # We chose a different compiler from the bogus one.
2307 # However, it has the same basename, so the bogon will be chosen
2308 # first if we set CC to just the basename; use the full file name.
2310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2316 if test -n "$CC"; then
2317 echo "$as_me:$LINENO: result: $CC" >&5
2318 echo "${ECHO_T}$CC" >&6
2320 echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2325 if test -z "$CC"; then
2326 if test -n "$ac_tool_prefix"; then
2329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 if test -n "$CC"; then
2357 echo "$as_me:$LINENO: result: $CC" >&5
2358 echo "${ECHO_T}$CC" >&6
2360 echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2364 test -n "$CC" && break
2367 if test -z "$CC"; then
2371 # Extract the first word of "$ac_prog", so it can be a program name with args.
2372 set dummy $ac_prog; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 if test -n "$ac_ct_CC"; then
2379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388 ac_cv_prog_ac_ct_CC="$ac_prog"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6
2402 echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2406 test -n "$ac_ct_CC" && break
2415 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: no acceptable C compiler found in \$PATH
2418 See \`config.log' for more details." >&2;}
2419 { (exit 1); exit 1; }; }
2421 # Provide some information about the compiler.
2422 echo "$as_me:$LINENO:" \
2423 "checking for C compiler version" >&5
2424 ac_compiler=`set X $ac_compile; echo $2`
2425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2426 (eval $ac_compiler --version </dev/null >&5) 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2431 (eval $ac_compiler -v </dev/null >&5) 2>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }
2435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2436 (eval $ac_compiler -V </dev/null >&5) 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 ac_clean_files_save=$ac_clean_files
2457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2458 # Try to create an executable without -o first, disregard a.out.
2459 # It will help us diagnose broken compilers, and finding out an intuition
2461 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2465 (eval $ac_link_default) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # Find the output, starting from the most likely. This scheme is
2470 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2473 # Be careful to initialize this variable, since it used to be cached.
2474 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2476 # b.out is created by i960 compilers.
2477 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2479 test -f "$ac_file" || continue
2481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2484 # This is the source file.
2487 # We found the default executable, but exeext='' is most
2491 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492 # FIXME: I believe we export ac_cv_exeext for Libtool,
2493 # but it would be cool to find out if it's true. Does anybody
2494 # maintain Libtool? --akim.
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2505 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&2;}
2509 { (exit 77); exit 77; }; }
2512 ac_exeext=$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_file" >&5
2514 echo "${ECHO_T}$ac_file" >&6
2516 # Check the compiler produces executables we can run. If not, either
2517 # the compiler is broken, or we cross compile.
2518 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2519 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2520 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2521 # If not cross compiling, check that we can run a simple program.
2522 if test "$cross_compiling" != yes; then
2523 if { ac_try='./$ac_file'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 if test "$cross_compiling" = maybe; then
2534 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2535 If you meant to cross compile, use \`--host'.
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: cannot run C compiled programs.
2538 If you meant to cross compile, use \`--host'.
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2544 echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6
2547 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2548 ac_clean_files=$ac_clean_files_save
2549 # Check the compiler produces executables we can run. If not, either
2550 # the compiler is broken, or we cross compile.
2551 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2552 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2553 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2554 echo "${ECHO_T}$cross_compiling" >&6
2556 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2557 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2559 (eval $ac_link) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; then
2563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2565 # work properly (i.e., refer to `conftest.exe'), while it won't with
2567 for ac_file in conftest.exe conftest conftest.*; do
2568 test -f "$ac_file" || continue
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2585 rm -f conftest$ac_cv_exeext
2586 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2587 echo "${ECHO_T}$ac_cv_exeext" >&6
2589 rm -f conftest.$ac_ext
2590 EXEEXT=$ac_cv_exeext
2592 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2593 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2594 if test "${ac_cv_objext+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2612 rm -f conftest.o conftest.obj
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; then
2618 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2629 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2632 See \`config.log' for more details." >&2;}
2633 { (exit 1); exit 1; }; }
2636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2638 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2639 echo "${ECHO_T}$ac_cv_objext" >&6
2640 OBJEXT=$ac_cv_objext
2642 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2643 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2644 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2698 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2699 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2700 GCC=`test $ac_compiler_gnu = yes && echo yes`
2701 ac_test_CFLAGS=${CFLAGS+set}
2702 ac_save_CFLAGS=$CFLAGS
2704 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2705 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2706 if test "${ac_cv_prog_cc_g+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2757 if test "$ac_test_CFLAGS" = set; then
2758 CFLAGS=$ac_save_CFLAGS
2759 elif test $ac_cv_prog_cc_g = yes; then
2760 if test "$GCC" = yes; then
2766 if test "$GCC" = yes; then
2772 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2773 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2774 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 ac_cv_prog_cc_stdc=no
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2787 #include <sys/types.h>
2788 #include <sys/stat.h>
2789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2790 struct buf { int x; };
2791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2792 static char *e (p, i)
2798 static char *f (char * (*g) (char **, int), char **p, ...)
2803 s = g (p, va_arg (v,int));
2808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2809 function prototypes and stuff, but not '\xHH' hex character constants.
2810 These don't provoke an error unfortunately, instead are silently treated
2811 as 'x'. The following induces an error, until -std1 is added to get
2812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2813 array size at least. It's necessary to write '\x00'==0 to get something
2814 that's true only with -std1. */
2815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2817 int test (int i, double x);
2818 struct s1 {int (*f) (int a);};
2819 struct s2 {int (*f) (double a);};
2820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2826 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2831 # Don't try gcc -ansi; that turns off useful extensions and
2832 # breaks some systems' header files.
2833 # AIX -qlanglvl=ansi
2834 # Ultrix and OSF/1 -std1
2835 # HP-UX 10.20 and later -Ae
2836 # HP-UX older versions -Aa -D_HPUX_SOURCE
2837 # SVR4 -Xc -D__EXTENSIONS__
2838 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2840 CC="$ac_save_CC $ac_arg"
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_prog_cc_stdc=$ac_arg
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2870 rm -f conftest.err conftest.$ac_objext
2872 rm -f conftest.$ac_ext conftest.$ac_objext
2877 case "x$ac_cv_prog_cc_stdc" in
2879 echo "$as_me:$LINENO: result: none needed" >&5
2880 echo "${ECHO_T}none needed" >&6 ;;
2882 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2883 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2884 CC="$CC $ac_cv_prog_cc_stdc" ;;
2887 # Some people use a C++ compiler to compile C. Since we use `exit',
2888 # in C++ we need to declare it. In case someone uses the same compiler
2889 # for both compiling C and C++ we need to have the C++ compiler decide
2890 # the declaration of exit, since it's the most demanding environment.
2891 cat >conftest.$ac_ext <<_ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 for ac_declaration in \
2920 'extern "C" void std::exit (int) throw (); using std::exit;' \
2921 'extern "C" void std::exit (int); using std::exit;' \
2922 'extern "C" void exit (int) throw ();' \
2923 'extern "C" void exit (int);' \
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag"
2952 || test ! -s conftest.err'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 cat >conftest.$ac_ext <<_ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag"
2997 || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 if test -n "$ac_declaration"; then
3019 echo '#ifdef __cplusplus' >>confdefs.h
3020 echo $ac_declaration >>confdefs.h
3021 echo '#endif' >>confdefs.h
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 DEPDIR="${am__leading_dot}deps"
3037 ac_config_commands="$ac_config_commands depfiles"
3040 am_make=${MAKE-make}
3041 cat > confinc << 'END'
3046 # If we don't find an include directive, just comment out the code.
3047 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3048 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3052 # First try GNU make style include.
3053 echo "include confinc" > confmf
3054 # We grep out `Entering directory' and `Leaving directory'
3055 # messages which can occur if `w' ends up in MAKEFLAGS.
3056 # In particular we don't look at `^make:' because GNU make might
3057 # be invoked under some other name (usually "gmake"), in which
3058 # case it prints its new name instead of `make'.
3059 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3064 # Now try BSD make style include.
3065 if test "$am__include" = "#"; then
3066 echo '.include "confinc"' > confmf
3067 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3068 am__include=.include
3075 echo "$as_me:$LINENO: result: $_am_result" >&5
3076 echo "${ECHO_T}$_am_result" >&6
3077 rm -f confinc confmf
3079 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3080 if test "${enable_dependency_tracking+set}" = set; then
3081 enableval="$enable_dependency_tracking"
3084 if test "x$enable_dependency_tracking" != xno; then
3085 am_depcomp="$ac_aux_dir/depcomp"
3090 if test "x$enable_dependency_tracking" != xno; then
3101 depcc="$CC" am_compiler_list=
3103 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3104 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3109 # We make a subdir and do the tests there. Otherwise we can end up
3110 # making bogus files that we don't know about and never remove. For
3111 # instance it was reported that on HP-UX the gcc test will end up
3112 # making a dummy file named `D' -- because `-MD' means `put the output
3115 # Copy depcomp to subdir because otherwise we won't find it if we're
3116 # using a relative directory.
3117 cp "$am_depcomp" conftest.dir
3119 # We will build objects and dependencies in a subdirectory because
3120 # it helps to detect inapplicable dependency modes. For instance
3121 # both Tru64's cc and ICC support -MD to output dependencies as a
3122 # side effect of compilation, but ICC will put the dependencies in
3123 # the current directory while Tru64 will put them in the object
3127 am_cv_CC_dependencies_compiler_type=none
3128 if test "$am_compiler_list" = ""; then
3129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3131 for depmode in $am_compiler_list; do
3132 # Setup a source with many dependencies, because some compilers
3133 # like to wrap large dependency lists on column 80 (with \), and
3134 # we should not choose a depcomp mode which is confused by this.
3136 # We need to recreate these files for each test, as the compiler may
3137 # overwrite some of them when testing with obscure command lines.
3138 # This happens at least with the AIX C compiler.
3140 for i in 1 2 3 4 5 6; do
3141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3143 # Solaris 8's {/usr,}/bin/sh.
3144 touch sub/conftst$i.h
3146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3150 # after this tag, mechanisms are not by side-effect, so they'll
3151 # only be used when explicitly requested
3152 if test "x$enable_dependency_tracking" = xyes; then
3160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3161 # mode. It turns out that the SunPro C++ compiler does not properly
3162 # handle `-M -o', and we need to detect this.
3163 if depmode=$depmode \
3164 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3166 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3167 >/dev/null 2>conftest.err &&
3168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3169 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3171 # icc doesn't choke on unknown options, it will just issue warnings
3172 # or remarks (even with -Werror). So we grep stderr for any message
3173 # that says an option was ignored or not supported.
3174 # When given -MP, icc 7.0 and 7.1 complain thusly:
3175 # icc: Command line warning: ignoring option '-M'; no argument required
3176 # The diagnosis changed in icc 8.0:
3177 # icc: Command line remark: option '-MP' not supported
3178 if (grep 'ignoring option' conftest.err ||
3179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3180 am_cv_CC_dependencies_compiler_type=$depmode
3189 am_cv_CC_dependencies_compiler_type=none
3193 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3194 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3200 test "x$enable_dependency_tracking" != xno \
3201 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3203 am__fastdepCC_FALSE='#'
3205 am__fastdepCC_TRUE='#'
3206 am__fastdepCC_FALSE=
3211 ac_cpp='$CXXCPP $CPPFLAGS'
3212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_CXX+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if test -n "$CXX"; then
3226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test -n "$CXX"; then
3246 echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 test -n "$CXX" && break
3256 if test -z "$CXX"; then
3258 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 if test -n "$ac_ct_CXX"; then
3268 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_ac_ct_CXX="$ac_prog"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3287 if test -n "$ac_ct_CXX"; then
3288 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3289 echo "${ECHO_T}$ac_ct_CXX" >&6
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3295 test -n "$ac_ct_CXX" && break
3297 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3303 # Provide some information about the compiler.
3304 echo "$as_me:$LINENO:" \
3305 "checking for C++ compiler version" >&5
3306 ac_compiler=`set X $ac_compile; echo $2`
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3308 (eval $ac_compiler --version </dev/null >&5) 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3313 (eval $ac_compiler -v </dev/null >&5) 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }
3317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3318 (eval $ac_compiler -V </dev/null >&5) 2>&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }
3323 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3325 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 cat >conftest.$ac_ext <<_ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>conftest.er1
3350 grep -v '^ *+' conftest.er1 >conftest.err
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try='test -z "$ac_cxx_werror_flag"
3356 || test ! -s conftest.err'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; } &&
3362 { ac_try='test -s conftest.$ac_objext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3379 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3380 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3381 GXX=`test $ac_compiler_gnu = yes && echo yes`
3382 ac_test_CXXFLAGS=${CXXFLAGS+set}
3383 ac_save_CXXFLAGS=$CXXFLAGS
3385 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3386 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3387 if test "${ac_cv_prog_cxx_g+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 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); } &&
3414 { ac_try='test -z "$ac_cxx_werror_flag"
3415 || test ! -s conftest.err'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; } &&
3421 { ac_try='test -s conftest.$ac_objext'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 ac_cv_prog_cxx_g=yes
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3436 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3437 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3438 if test "$ac_test_CXXFLAGS" = set; then
3439 CXXFLAGS=$ac_save_CXXFLAGS
3440 elif test $ac_cv_prog_cxx_g = yes; then
3441 if test "$GXX" = yes; then
3447 if test "$GXX" = yes; then
3453 for ac_declaration in \
3455 'extern "C" void std::exit (int) throw (); using std::exit;' \
3456 'extern "C" void std::exit (int); using std::exit;' \
3457 'extern "C" void exit (int) throw ();' \
3458 'extern "C" void exit (int);' \
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -z "$ac_cxx_werror_flag"
3487 || test ! -s conftest.err'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; } &&
3493 { ac_try='test -s conftest.$ac_objext'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3522 rm -f conftest.$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_cxx_werror_flag"
3532 || test ! -s conftest.err'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try='test -s conftest.$ac_objext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3553 if test -n "$ac_declaration"; then
3554 echo '#ifdef __cplusplus' >>confdefs.h
3555 echo $ac_declaration >>confdefs.h
3556 echo '#endif' >>confdefs.h
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 depcc="$CXX" am_compiler_list=
3567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3569 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573 # We make a subdir and do the tests there. Otherwise we can end up
3574 # making bogus files that we don't know about and never remove. For
3575 # instance it was reported that on HP-UX the gcc test will end up
3576 # making a dummy file named `D' -- because `-MD' means `put the output
3579 # Copy depcomp to subdir because otherwise we won't find it if we're
3580 # using a relative directory.
3581 cp "$am_depcomp" conftest.dir
3583 # We will build objects and dependencies in a subdirectory because
3584 # it helps to detect inapplicable dependency modes. For instance
3585 # both Tru64's cc and ICC support -MD to output dependencies as a
3586 # side effect of compilation, but ICC will put the dependencies in
3587 # the current directory while Tru64 will put them in the object
3591 am_cv_CXX_dependencies_compiler_type=none
3592 if test "$am_compiler_list" = ""; then
3593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3595 for depmode in $am_compiler_list; do
3596 # Setup a source with many dependencies, because some compilers
3597 # like to wrap large dependency lists on column 80 (with \), and
3598 # we should not choose a depcomp mode which is confused by this.
3600 # We need to recreate these files for each test, as the compiler may
3601 # overwrite some of them when testing with obscure command lines.
3602 # This happens at least with the AIX C compiler.
3604 for i in 1 2 3 4 5 6; do
3605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607 # Solaris 8's {/usr,}/bin/sh.
3608 touch sub/conftst$i.h
3610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3614 # after this tag, mechanisms are not by side-effect, so they'll
3615 # only be used when explicitly requested
3616 if test "x$enable_dependency_tracking" = xyes; then
3624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3625 # mode. It turns out that the SunPro C++ compiler does not properly
3626 # handle `-M -o', and we need to detect this.
3627 if depmode=$depmode \
3628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3631 >/dev/null 2>conftest.err &&
3632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3635 # icc doesn't choke on unknown options, it will just issue warnings
3636 # or remarks (even with -Werror). So we grep stderr for any message
3637 # that says an option was ignored or not supported.
3638 # When given -MP, icc 7.0 and 7.1 complain thusly:
3639 # icc: Command line warning: ignoring option '-M'; no argument required
3640 # The diagnosis changed in icc 8.0:
3641 # icc: Command line remark: option '-MP' not supported
3642 if (grep 'ignoring option' conftest.err ||
3643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3644 am_cv_CXX_dependencies_compiler_type=$depmode
3653 am_cv_CXX_dependencies_compiler_type=none
3657 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3658 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3659 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3664 test "x$enable_dependency_tracking" != xno \
3665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3666 am__fastdepCXX_TRUE=
3667 am__fastdepCXX_FALSE='#'
3669 am__fastdepCXX_TRUE='#'
3670 am__fastdepCXX_FALSE=
3674 # Check whether --enable-shared or --disable-shared was given.
3675 if test "${enable_shared+set}" = set; then
3676 enableval="$enable_shared"
3677 p=${PACKAGE-default}
3679 yes) enable_shared=yes ;;
3680 no) enable_shared=no ;;
3683 # Look at the argument we got. We use all the common list separators.
3684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685 for pkg in $enableval; do
3687 if test "X$pkg" = "X$p"; then
3698 # Check whether --enable-static or --disable-static was given.
3699 if test "${enable_static+set}" = set; then
3700 enableval="$enable_static"
3701 p=${PACKAGE-default}
3703 yes) enable_static=yes ;;
3704 no) enable_static=no ;;
3707 # Look at the argument we got. We use all the common list separators.
3708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709 for pkg in $enableval; do
3711 if test "X$pkg" = "X$p"; then
3722 # Check whether --enable-fast-install or --disable-fast-install was given.
3723 if test "${enable_fast_install+set}" = set; then
3724 enableval="$enable_fast_install"
3725 p=${PACKAGE-default}
3727 yes) enable_fast_install=yes ;;
3728 no) enable_fast_install=no ;;
3730 enable_fast_install=no
3731 # Look at the argument we got. We use all the common list separators.
3732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3733 for pkg in $enableval; do
3735 if test "X$pkg" = "X$p"; then
3736 enable_fast_install=yes
3743 enable_fast_install=yes
3746 # Make sure we can run config.sub.
3747 $ac_config_sub sun4 >/dev/null 2>&1 ||
3748 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3749 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3750 { (exit 1); exit 1; }; }
3752 echo "$as_me:$LINENO: checking build system type" >&5
3753 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3754 if test "${ac_cv_build+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_build_alias=$build_alias
3758 test -z "$ac_cv_build_alias" &&
3759 ac_cv_build_alias=`$ac_config_guess`
3760 test -z "$ac_cv_build_alias" &&
3761 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3762 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3763 { (exit 1); exit 1; }; }
3764 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3766 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3767 { (exit 1); exit 1; }; }
3770 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3771 echo "${ECHO_T}$ac_cv_build" >&6
3773 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3774 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3775 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778 echo "$as_me:$LINENO: checking host system type" >&5
3779 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3780 if test "${ac_cv_host+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_cv_host_alias=$host_alias
3784 test -z "$ac_cv_host_alias" &&
3785 ac_cv_host_alias=$ac_cv_build_alias
3786 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3787 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3788 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3789 { (exit 1); exit 1; }; }
3792 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3793 echo "${ECHO_T}$ac_cv_host" >&6
3795 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3796 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3797 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3800 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3802 if test "${lt_cv_path_SED+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 # Loop through the user's path and test for sed and gsed.
3806 # Then use that list of sed's as ones to test for truncation.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for lt_ac_prog in sed gsed; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3815 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3822 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3823 # along with /bin/sed that truncates output.
3824 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3825 test ! -f $lt_ac_sed && continue
3826 cat /dev/null > conftest.in
3828 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3829 # Check for GNU sed and select it if it is found.
3830 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3831 lt_cv_path_SED=$lt_ac_sed
3835 cat conftest.in conftest.in >conftest.tmp
3836 mv conftest.tmp conftest.in
3837 cp conftest.in conftest.nl
3839 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3840 cmp -s conftest.out conftest.nl || break
3841 # 10000 chars as input seems more than enough
3842 test $lt_ac_count -gt 10 && break
3843 lt_ac_count=`expr $lt_ac_count + 1`
3844 if test $lt_ac_count -gt $lt_ac_max; then
3845 lt_ac_max=$lt_ac_count
3846 lt_cv_path_SED=$lt_ac_sed
3854 echo "$as_me:$LINENO: result: $SED" >&5
3855 echo "${ECHO_T}$SED" >&6
3857 echo "$as_me:$LINENO: checking for egrep" >&5
3858 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3859 if test "${ac_cv_prog_egrep+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3863 then ac_cv_prog_egrep='grep -E'
3864 else ac_cv_prog_egrep='egrep'
3867 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3868 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3869 EGREP=$ac_cv_prog_egrep
3873 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3874 if test "${with_gnu_ld+set}" = set; then
3875 withval="$with_gnu_ld"
3876 test "$withval" = no || with_gnu_ld=yes
3881 if test "$GCC" = yes; then
3882 # Check if gcc -print-prog-name=ld gives a path.
3883 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3884 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3887 # gcc leaves a trailing carriage return which upsets mingw
3888 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3890 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3893 # Accept absolute paths.
3895 re_direlt='/[^/][^/]*/\.\./'
3896 # Canonicalize the pathname of ld
3897 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3898 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3899 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3901 test -z "$LD" && LD="$ac_prog"
3904 # If it fails, then pretend we aren't using GCC.
3908 # If it is relative, then search for the first ld in PATH.
3912 elif test "$with_gnu_ld" = yes; then
3913 echo "$as_me:$LINENO: checking for GNU ld" >&5
3914 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3916 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3917 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3919 if test "${lt_cv_path_LD+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if test -z "$LD"; then
3923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3924 for ac_dir in $PATH; do
3926 test -z "$ac_dir" && ac_dir=.
3927 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3928 lt_cv_path_LD="$ac_dir/$ac_prog"
3929 # Check to see if the program is GNU ld. I'd rather use --version,
3930 # but apparently some variants of GNU ld only accept -v.
3931 # Break only if it was the GNU/non-GNU ld that we prefer.
3932 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3933 *GNU* | *'with BFD'*)
3934 test "$with_gnu_ld" != no && break
3937 test "$with_gnu_ld" != yes && break
3944 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3949 if test -n "$LD"; then
3950 echo "$as_me:$LINENO: result: $LD" >&5
3951 echo "${ECHO_T}$LD" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3956 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3957 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3958 { (exit 1); exit 1; }; }
3959 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3960 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3961 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3965 case `$LD -v 2>&1 </dev/null` in
3966 *GNU* | *'with BFD'*)
3967 lt_cv_prog_gnu_ld=yes
3970 lt_cv_prog_gnu_ld=no
3974 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3975 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3976 with_gnu_ld=$lt_cv_prog_gnu_ld
3979 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3980 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3981 if test "${lt_cv_ld_reload_flag+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 lt_cv_ld_reload_flag='-r'
3986 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3987 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3988 reload_flag=$lt_cv_ld_reload_flag
3989 case $reload_flag in
3991 *) reload_flag=" $reload_flag" ;;
3993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3996 if test "$GCC" = yes; then
3997 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3999 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4004 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4005 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4006 if test "${lt_cv_path_NM+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$NM"; then
4010 # Let the user override the test.
4013 lt_nm_to_check="${ac_tool_prefix}nm"
4014 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4015 lt_nm_to_check="$lt_nm_to_check nm"
4017 for lt_tmp_nm in $lt_nm_to_check; do
4018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4019 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4021 test -z "$ac_dir" && ac_dir=.
4022 tmp_nm="$ac_dir/$lt_tmp_nm"
4023 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4024 # Check to see if the nm accepts a BSD-compat flag.
4025 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4026 # nm: unknown option "B" ignored
4027 # Tru64's nm complains that /dev/null is an invalid object file
4028 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4029 */dev/null* | *'Invalid file or object type'*)
4030 lt_cv_path_NM="$tmp_nm -B"
4034 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4036 lt_cv_path_NM="$tmp_nm -p"
4040 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4041 continue # so that we can try to find one that supports BSD flags
4050 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4053 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4054 echo "${ECHO_T}$lt_cv_path_NM" >&6
4057 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4058 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4060 if test "$LN_S" = "ln -s"; then
4061 echo "$as_me:$LINENO: result: yes" >&5
4062 echo "${ECHO_T}yes" >&6
4064 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4065 echo "${ECHO_T}no, using $LN_S" >&6
4068 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4069 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4070 if test "${lt_cv_deplibs_check_method+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 lt_cv_file_magic_cmd='$MAGIC_CMD'
4074 lt_cv_file_magic_test_file=
4075 lt_cv_deplibs_check_method='unknown'
4076 # Need to set the preceding variable on all platforms that support
4077 # interlibrary dependencies.
4078 # 'none' -- dependencies not supported.
4079 # `unknown' -- same as none, but documents that we really don't know.
4080 # 'pass_all' -- all dependencies passed with no checks.
4081 # 'test_compile' -- check by making test program.
4082 # 'file_magic [[regex]]' -- check by looking for files in library path
4083 # which responds to the $file_magic_cmd with a given extended regex.
4084 # If you have `file' or equivalent on your system and you're not sure
4085 # whether `pass_all' will *always* work, you probably want this one.
4089 lt_cv_deplibs_check_method=pass_all
4093 lt_cv_deplibs_check_method=pass_all
4097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4098 lt_cv_file_magic_cmd='/usr/bin/file -L'
4099 lt_cv_file_magic_test_file=/shlib/libc.so
4103 # func_win32_libid is a shell function defined in ltmain.sh
4104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4105 lt_cv_file_magic_cmd='func_win32_libid'
4109 # Base MSYS/MinGW do not provide the 'file' command needed by
4110 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4111 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4112 lt_cv_file_magic_cmd='$OBJDUMP -f'
4115 darwin* | rhapsody*)
4116 lt_cv_deplibs_check_method=pass_all
4119 freebsd* | kfreebsd*-gnu | dragonfly*)
4120 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4123 # Not sure whether the presence of OpenBSD here was a mistake.
4124 # Let's accept both of them until this is cleared up.
4125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4126 lt_cv_file_magic_cmd=/usr/bin/file
4127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4131 lt_cv_deplibs_check_method=pass_all
4136 lt_cv_deplibs_check_method=pass_all
4139 hpux10.20* | hpux11*)
4140 lt_cv_file_magic_cmd=/usr/bin/file
4143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4144 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4147 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]'
4148 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4152 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4158 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4162 irix5* | irix6* | nonstopux*)
4164 *-32|*"-32 ") libmagic=32-bit;;
4165 *-n32|*"-n32 ") libmagic=N32;;
4166 *-64|*"-64 ") libmagic=64-bit;;
4167 *) libmagic=never-match;;
4169 lt_cv_deplibs_check_method=pass_all
4172 # This must be Linux ELF.
4174 lt_cv_deplibs_check_method=pass_all
4178 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4187 lt_cv_file_magic_cmd=/usr/bin/file
4188 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4192 lt_cv_deplibs_check_method=unknown
4196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4203 osf3* | osf4* | osf5*)
4204 lt_cv_deplibs_check_method=pass_all
4208 lt_cv_deplibs_check_method=pass_all
4212 case $host_vendor in
4214 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]'
4215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4218 lt_cv_deplibs_check_method=pass_all
4221 lt_cv_file_magic_cmd='/bin/file'
4222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4225 lt_cv_file_magic_cmd='/bin/file'
4226 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4227 lt_cv_file_magic_test_file=/lib/libc.so
4230 lt_cv_deplibs_check_method=pass_all
4233 lt_cv_deplibs_check_method=pass_all
4238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4239 lt_cv_deplibs_check_method=pass_all
4244 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4245 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4246 file_magic_cmd=$lt_cv_file_magic_cmd
4247 deplibs_check_method=$lt_cv_deplibs_check_method
4248 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4253 # If no C compiler was specified, use CC.
4256 # If no C compiler flags were specified, use CFLAGS.
4257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4259 # Allow CC to be a program name with arguments.
4263 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4264 if test "${enable_libtool_lock+set}" = set; then
4265 enableval="$enable_libtool_lock"
4268 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4270 # Some flags need to be propagated to the compiler or linker for good
4274 # Find out which ABI we are using.
4275 echo 'int i;' > conftest.$ac_ext
4276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277 (eval $ac_compile) 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; then
4281 case `/usr/bin/file conftest.$ac_objext` in
4293 # Find out which ABI we are using.
4294 echo '#line 4294 "configure"' > conftest.$ac_ext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296 (eval $ac_compile) 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; then
4300 if test "$lt_cv_prog_gnu_ld" = yes; then
4301 case `/usr/bin/file conftest.$ac_objext` in
4303 LD="${LD-ld} -melf32bsmip"
4306 LD="${LD-ld} -melf32bmipn32"
4309 LD="${LD-ld} -melf64bmip"
4313 case `/usr/bin/file conftest.$ac_objext` in
4329 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4330 # Find out which ABI we are using.
4331 echo 'int i;' > conftest.$ac_ext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333 (eval $ac_compile) 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; then
4337 case `/usr/bin/file conftest.o` in
4341 LD="${LD-ld} -m elf_i386"
4343 ppc64-*linux*|powerpc64-*linux*)
4344 LD="${LD-ld} -m elf32ppclinux"
4347 LD="${LD-ld} -m elf_s390"
4350 LD="${LD-ld} -m elf32_sparc"
4357 LD="${LD-ld} -m elf_x86_64"
4359 ppc*-*linux*|powerpc*-*linux*)
4360 LD="${LD-ld} -m elf64ppc"
4363 LD="${LD-ld} -m elf64_s390"
4366 LD="${LD-ld} -m elf64_sparc"
4376 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4377 SAVE_CFLAGS="$CFLAGS"
4378 CFLAGS="$CFLAGS -belf"
4379 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4380 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4381 if test "${lt_cv_cc_needs_belf+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest$ac_exeext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 lt_cv_cc_needs_belf=yes
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 lt_cv_cc_needs_belf=no
4434 rm -f conftest.err conftest.$ac_objext \
4435 conftest$ac_exeext conftest.$ac_ext
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4444 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4445 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4447 CFLAGS="$SAVE_CFLAGS"
4451 # Find out which ABI we are using.
4452 echo 'int i;' > conftest.$ac_ext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; then
4458 case `/usr/bin/file conftest.o` in
4460 case $lt_cv_prog_gnu_ld in
4461 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4462 *) LD="${LD-ld} -64" ;;
4473 need_locks="$enable_libtool_lock"
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4482 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4483 # On Suns, sometimes $CPP names a directory.
4484 if test -n "$CPP" && test -d "$CPP"; then
4487 if test -z "$CPP"; then
4488 if test "${ac_cv_prog_CPP+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 # Double quotes because CPP needs to be expanded
4492 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4495 for ac_c_preproc_warn_flag in '' yes
4497 # Use a header file that comes with gcc, so configuring glibc
4498 # with a fresh cross-compiler works.
4499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500 # <limits.h> exists even on freestanding compilers.
4501 # On the NeXT, cc -E runs the code through the compiler's parser,
4502 # not just through cpp. "Syntax error" is here to catch this case.
4503 cat >conftest.$ac_ext <<_ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4510 # include <limits.h>
4512 # include <assert.h>
4516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null; then
4524 if test -s conftest.err; then
4525 ac_cpp_err=$ac_c_preproc_warn_flag
4526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4533 if test -z "$ac_cpp_err"; then
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 # Broken: fails on valid input.
4542 rm -f conftest.err conftest.$ac_ext
4544 # OK, works on sane cases. Now check whether non-existent headers
4545 # can be detected and how.
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 #include <ac_nonexistent.h>
4554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4557 grep -v '^ *+' conftest.er1 >conftest.err
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } >/dev/null; then
4562 if test -s conftest.err; then
4563 ac_cpp_err=$ac_c_preproc_warn_flag
4564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4571 if test -z "$ac_cpp_err"; then
4572 # Broken: success on invalid input.
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 # Passes both tests.
4582 rm -f conftest.err conftest.$ac_ext
4585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586 rm -f conftest.err conftest.$ac_ext
4587 if $ac_preproc_ok; then
4599 echo "$as_me:$LINENO: result: $CPP" >&5
4600 echo "${ECHO_T}$CPP" >&6
4602 for ac_c_preproc_warn_flag in '' yes
4604 # Use a header file that comes with gcc, so configuring glibc
4605 # with a fresh cross-compiler works.
4606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607 # <limits.h> exists even on freestanding compilers.
4608 # On the NeXT, cc -E runs the code through the compiler's parser,
4609 # not just through cpp. "Syntax error" is here to catch this case.
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4617 # include <limits.h>
4619 # include <assert.h>
4623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } >/dev/null; then
4631 if test -s conftest.err; then
4632 ac_cpp_err=$ac_c_preproc_warn_flag
4633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4640 if test -z "$ac_cpp_err"; then
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 # Broken: fails on valid input.
4649 rm -f conftest.err conftest.$ac_ext
4651 # OK, works on sane cases. Now check whether non-existent headers
4652 # can be detected and how.
4653 cat >conftest.$ac_ext <<_ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 #include <ac_nonexistent.h>
4661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4664 grep -v '^ *+' conftest.er1 >conftest.err
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } >/dev/null; then
4669 if test -s conftest.err; then
4670 ac_cpp_err=$ac_c_preproc_warn_flag
4671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4678 if test -z "$ac_cpp_err"; then
4679 # Broken: success on invalid input.
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 # Passes both tests.
4689 rm -f conftest.err conftest.$ac_ext
4692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4693 rm -f conftest.err conftest.$ac_ext
4694 if $ac_preproc_ok; then
4697 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4698 See \`config.log' for more details." >&5
4699 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4700 See \`config.log' for more details." >&2;}
4701 { (exit 1); exit 1; }; }
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4711 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4712 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4713 if test "${ac_cv_header_stdc+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>conftest.er1
4739 grep -v '^ *+' conftest.er1 >conftest.err
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -z "$ac_c_werror_flag"
4745 || test ! -s conftest.err'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; } &&
4751 { ac_try='test -s conftest.$ac_objext'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_header_stdc=yes
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_cv_header_stdc=no
4764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766 if test $ac_cv_header_stdc = yes; then
4767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 $EGREP "memchr" >/dev/null 2>&1; then
4781 ac_cv_header_stdc=no
4787 if test $ac_cv_header_stdc = yes; then
4788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "free" >/dev/null 2>&1; then
4802 ac_cv_header_stdc=no
4808 if test $ac_cv_header_stdc = yes; then
4809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4810 if test "$cross_compiling" = yes; then
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4820 #if ((' ' & 0x0FF) == 0x020)
4821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4824 # define ISLOWER(c) \
4825 (('a' <= (c) && (c) <= 'i') \
4826 || ('j' <= (c) && (c) <= 'r') \
4827 || ('s' <= (c) && (c) <= 'z'))
4828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4836 for (i = 0; i < 256; i++)
4837 if (XOR (islower (i), ISLOWER (i))
4838 || toupper (i) != TOUPPER (i))
4843 rm -f conftest$ac_exeext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845 (eval $ac_link) 2>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4856 echo "$as_me: program exited with status $ac_status" >&5
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_cv_header_stdc=no
4863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4867 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4868 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4869 if test $ac_cv_header_stdc = yes; then
4871 cat >>confdefs.h <<\_ACEOF
4872 #define STDC_HEADERS 1
4877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4887 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4888 inttypes.h stdint.h unistd.h
4890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4891 echo "$as_me:$LINENO: checking for $ac_header" >&5
4892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 cat >conftest.$ac_ext <<_ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4902 $ac_includes_default
4904 #include <$ac_header>
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4910 grep -v '^ *+' conftest.er1 >conftest.err
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 eval "$as_ac_Header=yes"
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 eval "$as_ac_Header=no"
4935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4940 cat >>confdefs.h <<_ACEOF
4941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950 for ac_header in dlfcn.h
4952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4954 echo "$as_me:$LINENO: checking for $ac_header" >&5
4955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4962 # Is the header compilable?
4963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4972 #include <$ac_header>
4974 rm -f conftest.$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_header_compiler=yes
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 ac_header_compiler=no
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5005 echo "${ECHO_T}$ac_header_compiler" >&6
5007 # Is the header present?
5008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 #include <$ac_header>
5018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_c_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5035 if test -z "$ac_cpp_err"; then
5036 ac_header_preproc=yes
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 ac_header_preproc=no
5043 rm -f conftest.err conftest.$ac_ext
5044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5045 echo "${ECHO_T}$ac_header_preproc" >&6
5047 # So? What about this header?
5048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5054 ac_header_preproc=yes
5057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5071 ## -------------------------------------------- ##
5072 ## Report this to sebastian.marsching@suphp.org ##
5073 ## -------------------------------------------- ##
5076 sed "s/^/$as_me: WARNING: /" >&2
5079 echo "$as_me:$LINENO: checking for $ac_header" >&5
5080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 eval "$as_ac_Header=\$ac_header_preproc"
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5091 cat >>confdefs.h <<_ACEOF
5092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5102 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5103 (test "X$CXX" != "Xg++"))) ; then
5105 ac_cpp='$CXXCPP $CPPFLAGS'
5106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5109 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5110 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5111 if test -z "$CXXCPP"; then
5112 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 # Double quotes because CXXCPP needs to be expanded
5116 for CXXCPP in "$CXX -E" "/lib/cpp"
5119 for ac_cxx_preproc_warn_flag in '' yes
5121 # Use a header file that comes with gcc, so configuring glibc
5122 # with a fresh cross-compiler works.
5123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 # <limits.h> exists even on freestanding compilers.
5125 # On the NeXT, cc -E runs the code through the compiler's parser,
5126 # not just through cpp. "Syntax error" is here to catch this case.
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5134 # include <limits.h>
5136 # include <assert.h>
5140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5143 grep -v '^ *+' conftest.er1 >conftest.err
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev/null; then
5148 if test -s conftest.err; then
5149 ac_cpp_err=$ac_cxx_preproc_warn_flag
5150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5157 if test -z "$ac_cpp_err"; then
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 # Broken: fails on valid input.
5166 rm -f conftest.err conftest.$ac_ext
5168 # OK, works on sane cases. Now check whether non-existent headers
5169 # can be detected and how.
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 #include <ac_nonexistent.h>
5178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181 grep -v '^ *+' conftest.er1 >conftest.err
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev/null; then
5186 if test -s conftest.err; then
5187 ac_cpp_err=$ac_cxx_preproc_warn_flag
5188 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5195 if test -z "$ac_cpp_err"; then
5196 # Broken: success on invalid input.
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 # Passes both tests.
5206 rm -f conftest.err conftest.$ac_ext
5209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210 rm -f conftest.err conftest.$ac_ext
5211 if $ac_preproc_ok; then
5216 ac_cv_prog_CXXCPP=$CXXCPP
5219 CXXCPP=$ac_cv_prog_CXXCPP
5221 ac_cv_prog_CXXCPP=$CXXCPP
5223 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5224 echo "${ECHO_T}$CXXCPP" >&6
5226 for ac_cxx_preproc_warn_flag in '' yes
5228 # Use a header file that comes with gcc, so configuring glibc
5229 # with a fresh cross-compiler works.
5230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5231 # <limits.h> exists even on freestanding compilers.
5232 # On the NeXT, cc -E runs the code through the compiler's parser,
5233 # not just through cpp. "Syntax error" is here to catch this case.
5234 cat >conftest.$ac_ext <<_ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5241 # include <limits.h>
5243 # include <assert.h>
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5250 grep -v '^ *+' conftest.er1 >conftest.err
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_cxx_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5264 if test -z "$ac_cpp_err"; then
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 # Broken: fails on valid input.
5273 rm -f conftest.err conftest.$ac_ext
5275 # OK, works on sane cases. Now check whether non-existent headers
5276 # can be detected and how.
5277 cat >conftest.$ac_ext <<_ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <ac_nonexistent.h>
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5288 grep -v '^ *+' conftest.er1 >conftest.err
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev/null; then
5293 if test -s conftest.err; then
5294 ac_cpp_err=$ac_cxx_preproc_warn_flag
5295 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5302 if test -z "$ac_cpp_err"; then
5303 # Broken: success on invalid input.
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5309 # Passes both tests.
5313 rm -f conftest.err conftest.$ac_ext
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then
5321 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5322 See \`config.log' for more details." >&5
5323 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5324 See \`config.log' for more details." >&2;}
5325 { (exit 1); exit 1; }; }
5329 ac_cpp='$CXXCPP $CPPFLAGS'
5330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5338 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5339 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5341 if test -n "$ac_tool_prefix"; then
5342 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_prog_F77+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test -n "$F77"; then
5352 ac_cv_prog_F77="$F77" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 if test -n "$F77"; then
5372 echo "$as_me:$LINENO: result: $F77" >&5
5373 echo "${ECHO_T}$F77" >&6
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5379 test -n "$F77" && break
5382 if test -z "$F77"; then
5384 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5390 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 if test -n "$ac_ct_F77"; then
5394 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_ac_ct_F77="$ac_prog"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5413 if test -n "$ac_ct_F77"; then
5414 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5415 echo "${ECHO_T}$ac_ct_F77" >&6
5417 echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5421 test -n "$ac_ct_F77" && break
5428 # Provide some information about the compiler.
5429 echo "$as_me:5429:" \
5430 "checking for Fortran 77 compiler version" >&5
5431 ac_compiler=`set X $ac_compile; echo $2`
5432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5433 (eval $ac_compiler --version </dev/null >&5) 2>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }
5437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5438 (eval $ac_compiler -v </dev/null >&5) 2>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }
5442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5443 (eval $ac_compiler -V </dev/null >&5) 2>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5449 # If we don't use `.F' as extension, the preprocessor is not run on the
5450 # input file. (Note that this only needs to work for GNU compilers.)
5453 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5454 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5455 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 cat >conftest.$ac_ext <<_ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -z "$ac_f77_werror_flag"
5476 || test ! -s conftest.err'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5499 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5500 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5502 ac_test_FFLAGS=${FFLAGS+set}
5503 ac_save_FFLAGS=$FFLAGS
5505 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5506 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5507 if test "${ac_cv_prog_f77_g+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.$ac_ext <<_ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_f77_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_prog_f77_g=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5548 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5549 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5550 if test "$ac_test_FFLAGS" = set; then
5551 FFLAGS=$ac_save_FFLAGS
5552 elif test $ac_cv_prog_f77_g = yes; then
5553 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5559 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5566 G77=`test $ac_compiler_gnu = yes && echo yes`
5568 ac_cpp='$CPP $CPPFLAGS'
5569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5577 # find the maximum length of command line arguments
5578 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5579 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5580 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 # On DJGPP, this test can blow up pretty badly due to problems in libc
5589 # (any single argument exceeding 2000 bytes causes a buffer overrun
5590 # during glob expansion). Even if it were fixed, the result of this
5591 # check would be larger than it should be.
5592 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5596 # Under GNU Hurd, this test is not required because there is
5597 # no limit to the length of command line arguments.
5598 # Libtool will interpret -1 as no limit whatsoever
5599 lt_cv_sys_max_cmd_len=-1;
5603 # On Win9x/ME, this test blows up -- it succeeds, but takes
5604 # about 5 minutes as the teststring grows exponentially.
5605 # Worse, since 9x/ME are not pre-emptively multitasking,
5606 # you end up with a "frozen" computer, even though with patience
5607 # the test eventually succeeds (with a max line length of 256k).
5608 # Instead, let's just punt: use the minimum linelength reported by
5609 # all of the supported platforms: 8192 (on NT/2K/XP).
5610 lt_cv_sys_max_cmd_len=8192;
5614 # On AmigaOS with pdksh, this test takes hours, literally.
5615 # So we just punt and use a minimum line length of 8192.
5616 lt_cv_sys_max_cmd_len=8192;
5619 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5620 # This has been around since 386BSD, at least. Likely further.
5621 if test -x /sbin/sysctl; then
5622 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5623 elif test -x /usr/sbin/sysctl; then
5624 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5626 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5628 # And add a safety zone
5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5634 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5635 lt_cv_sys_max_cmd_len=196608
5639 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5640 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5641 # nice to cause kernel panics so lets avoid the loop below.
5642 # First set a reasonable default.
5643 lt_cv_sys_max_cmd_len=16384
5645 if test -x /sbin/sysconfig; then
5646 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5647 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5652 lt_cv_sys_max_cmd_len=102400
5654 sysv5* | sco5v6* | sysv4.2uw2*)
5655 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5656 if test -n "$kargmax"; then
5657 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5659 lt_cv_sys_max_cmd_len=32768
5663 # If test is not a shell built-in, we'll probably end up computing a
5664 # maximum length that is only half of the actual maximum length, but
5666 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5667 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5668 = "XX$teststring") >/dev/null 2>&1 &&
5669 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5670 lt_cv_sys_max_cmd_len=$new_result &&
5671 test $i != 17 # 1/2 MB should be enough
5674 teststring=$teststring$teststring
5677 # Add a significant safety factor because C++ compilers can tack on massive
5678 # amounts of additional arguments before passing them to the linker.
5679 # It appears as though 1/2 is a usable value.
5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5686 if test -n $lt_cv_sys_max_cmd_len ; then
5687 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5688 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5690 echo "$as_me:$LINENO: result: none" >&5
5691 echo "${ECHO_T}none" >&6
5697 # Check for command to grab the raw symbol name followed by C symbol from nm.
5698 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5699 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5700 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 # These are sane defaults that work on at least a few old systems.
5705 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5707 # Character class describing NM global symbol codes.
5708 symcode='[BCDEGRST]'
5710 # Regexp to match symbols that can be accessed directly from C.
5711 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5713 # Transform an extracted symbol line into a proper C declaration
5714 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5716 # Transform an extracted symbol line into symbol name and symbol address
5717 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'"
5719 # Define system-specific variables.
5724 cygwin* | mingw* | pw32*)
5725 symcode='[ABCDGISTW]'
5727 hpux*) # Its linker distinguishes data from code symbols
5728 if test "$host_cpu" = ia64; then
5729 symcode='[ABCDEGRST]'
5731 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5732 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'"
5735 if test "$host_cpu" = ia64; then
5736 symcode='[ABCDGIRSTW]'
5737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5738 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'"
5742 symcode='[BCDEGRST]'
5745 symcode='[BCDEGQRST]'
5756 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5764 # Handle CRLF in mingw tool chain
5768 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5772 # If we're using GNU nm, then use its standard symbol codes.
5773 case `$NM -V 2>&1` in
5774 *GNU* | *'with BFD'*)
5775 symcode='[ABCDGIRSTW]' ;;
5778 # Try without a prefix undercore, then with it.
5779 for ac_symprfx in "" "_"; do
5781 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5782 symxfrm="\\1 $ac_symprfx\\2 \\2"
5784 # Write the raw and C identifiers.
5785 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5787 # Check to see that the pipe works correctly.
5791 cat > conftest.$ac_ext <<EOF
5796 void nm_test_func(){}
5800 int main(){nm_test_var='a';nm_test_func();return(0);}
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; then
5808 # Now try to grab the symbols.
5810 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5811 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && test -s "$nlist"; then
5815 # Try sorting and uniquifying the output.
5816 if sort "$nlist" | uniq > "$nlist"T; then
5817 mv -f "$nlist"T "$nlist"
5822 # Make sure that we snagged all the symbols we need.
5823 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5824 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5825 cat <<EOF > conftest.$ac_ext
5831 # Now generate the symbol file.
5832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5834 cat <<EOF >> conftest.$ac_ext
5835 #if defined (__STDC__) && __STDC__
5836 # define lt_ptr_t void *
5838 # define lt_ptr_t char *
5842 /* The mapping between symbol names and symbols. */
5847 lt_preloaded_symbols[] =
5850 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5851 cat <<\EOF >> conftest.$ac_ext
5859 # Now try linking the two files.
5860 mv conftest.$ac_objext conftstm.$ac_objext
5861 lt_save_LIBS="$LIBS"
5862 lt_save_CFLAGS="$CFLAGS"
5863 LIBS="conftstm.$ac_objext"
5864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5872 LIBS="$lt_save_LIBS"
5873 CFLAGS="$lt_save_CFLAGS"
5875 echo "cannot find nm_test_func in $nlist" >&5
5878 echo "cannot find nm_test_var in $nlist" >&5
5881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5884 echo "$progname: failed program was:" >&5
5885 cat conftest.$ac_ext >&5
5887 rm -f conftest* conftst*
5889 # Do not use the global_symbol_pipe unless it works.
5890 if test "$pipe_works" = yes; then
5893 lt_cv_sys_global_symbol_pipe=
5899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5900 lt_cv_sys_global_symbol_to_cdecl=
5902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5903 echo "$as_me:$LINENO: result: failed" >&5
5904 echo "${ECHO_T}failed" >&6
5906 echo "$as_me:$LINENO: result: ok" >&5
5907 echo "${ECHO_T}ok" >&6
5910 echo "$as_me:$LINENO: checking for objdir" >&5
5911 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5912 if test "${lt_cv_objdir+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 rm -f .libs 2>/dev/null
5916 mkdir .libs 2>/dev/null
5917 if test -d .libs; then
5920 # MS-DOS does not allow filenames that begin with a dot.
5923 rmdir .libs 2>/dev/null
5925 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5926 echo "${ECHO_T}$lt_cv_objdir" >&6
5927 objdir=$lt_cv_objdir
5935 # AIX sometimes has problems with the GCC collect2 program. For some
5936 # reason, if we set the COLLECT_NAMES environment variable, the problems
5937 # vanish in a puff of smoke.
5938 if test "X${COLLECT_NAMES+set}" != Xset; then
5940 export COLLECT_NAMES
5945 # Sed substitution that helps us do robust quoting. It backslashifies
5946 # metacharacters that are still active within double-quoted strings.
5947 Xsed='sed -e 1s/^X//'
5948 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5950 # Same as above, but do not quote variable references.
5951 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5953 # Sed substitution to delay expansion of an escaped shell variable in a
5954 # double_quote_subst'ed string.
5955 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5957 # Sed substitution to avoid accidental globbing in evaled expressions
5958 no_glob_subst='s/\*/\\\*/g'
5964 default_ofile=libtool
5965 can_build_shared=yes
5967 # All known linkers require a `.a' archive for static linking (except MSVC,
5968 # which needs '.lib').
5970 ltmain="$ac_aux_dir/ltmain.sh"
5971 ofile="$default_ofile"
5972 with_gnu_ld="$lt_cv_prog_gnu_ld"
5974 if test -n "$ac_tool_prefix"; then
5975 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5976 set dummy ${ac_tool_prefix}ar; ac_word=$2
5977 echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979 if test "${ac_cv_prog_AR+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 if test -n "$AR"; then
5983 ac_cv_prog_AR="$AR" # Let the user override the test.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_AR="${ac_tool_prefix}ar"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 if test -n "$AR"; then
6003 echo "$as_me:$LINENO: result: $AR" >&5
6004 echo "${ECHO_T}$AR" >&6
6006 echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6
6011 if test -z "$ac_cv_prog_AR"; then
6013 # Extract the first word of "ar", so it can be a program name with args.
6014 set dummy ar; ac_word=$2
6015 echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6017 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 if test -n "$ac_ct_AR"; then
6021 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_ac_ct_AR="ar"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6040 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6041 if test -n "$ac_ct_AR"; then
6042 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6043 echo "${ECHO_T}$ac_ct_AR" >&6
6045 echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6
6054 if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6057 echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6059 if test "${ac_cv_prog_RANLIB+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 if test -n "$RANLIB"; then
6063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 RANLIB=$ac_cv_prog_RANLIB
6082 if test -n "$RANLIB"; then
6083 echo "$as_me:$LINENO: result: $RANLIB" >&5
6084 echo "${ECHO_T}$RANLIB" >&6
6086 echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6
6091 if test -z "$ac_cv_prog_RANLIB"; then
6092 ac_ct_RANLIB=$RANLIB
6093 # Extract the first word of "ranlib", so it can be a program name with args.
6094 set dummy ranlib; ac_word=$2
6095 echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6097 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 if test -n "$ac_ct_RANLIB"; then
6101 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_ac_ct_RANLIB="ranlib"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6120 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6121 if test -n "$ac_ct_RANLIB"; then
6122 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6123 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6125 echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6
6129 RANLIB=$ac_ct_RANLIB
6131 RANLIB="$ac_cv_prog_RANLIB"
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}strip; ac_word=$2
6137 echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6139 if test "${ac_cv_prog_STRIP+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 if test -n "$STRIP"; then
6143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 STRIP=$ac_cv_prog_STRIP
6162 if test -n "$STRIP"; then
6163 echo "$as_me:$LINENO: result: $STRIP" >&5
6164 echo "${ECHO_T}$STRIP" >&6
6166 echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6
6171 if test -z "$ac_cv_prog_STRIP"; then
6173 # Extract the first word of "strip", so it can be a program name with args.
6174 set dummy strip; ac_word=$2
6175 echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6177 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 if test -n "$ac_ct_STRIP"; then
6181 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_ac_ct_STRIP="strip"
6191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6200 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6201 if test -n "$ac_ct_STRIP"; then
6202 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6203 echo "${ECHO_T}$ac_ct_STRIP" >&6
6205 echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6
6211 STRIP="$ac_cv_prog_STRIP"
6216 old_CFLAGS="$CFLAGS"
6218 # Set sane defaults for various variables
6219 test -z "$AR" && AR=ar
6220 test -z "$AR_FLAGS" && AR_FLAGS=cru
6221 test -z "$AS" && AS=as
6222 test -z "$CC" && CC=cc
6223 test -z "$LTCC" && LTCC=$CC
6224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6225 test -z "$DLLTOOL" && DLLTOOL=dlltool
6226 test -z "$LD" && LD=ld
6227 test -z "$LN_S" && LN_S="ln -s"
6228 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6229 test -z "$NM" && NM=nm
6230 test -z "$SED" && SED=sed
6231 test -z "$OBJDUMP" && OBJDUMP=objdump
6232 test -z "$RANLIB" && RANLIB=:
6233 test -z "$STRIP" && STRIP=:
6234 test -z "$ac_objext" && ac_objext=o
6236 # Determine commands to create old-style static archives.
6237 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6238 old_postinstall_cmds='chmod 644 $oldlib'
6239 old_postuninstall_cmds=
6241 if test -n "$RANLIB"; then
6244 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6250 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6253 for cc_temp in $compiler""; do
6255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6264 # Only perform the check for file, if the check method requires it
6265 case $deplibs_check_method in
6267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6268 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6269 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6278 lt_save_MAGIC_CMD="$MAGIC_CMD"
6279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6281 for ac_dir in $ac_dummy; do
6283 test -z "$ac_dir" && ac_dir=.
6284 if test -f $ac_dir/${ac_tool_prefix}file; then
6285 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6286 if test -n "$file_magic_test_file"; then
6287 case $deplibs_check_method in
6289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6292 $EGREP "$file_magic_regex" > /dev/null; then
6297 *** Warning: the command libtool uses to detect shared libraries,
6298 *** $file_magic_cmd, produces output that libtool cannot recognize.
6299 *** The result is that libtool may fail to recognize shared libraries
6300 *** as such. This will affect the creation of libtool libraries that
6301 *** depend on shared libraries, but programs linked with such libtool
6302 *** libraries will work regardless of this problem. Nevertheless, you
6303 *** may want to report the problem to your system manager and/or to
6304 *** bug-libtool@gnu.org
6314 MAGIC_CMD="$lt_save_MAGIC_CMD"
6319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6320 if test -n "$MAGIC_CMD"; then
6321 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6322 echo "${ECHO_T}$MAGIC_CMD" >&6
6324 echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6
6328 if test -z "$lt_cv_path_MAGIC_CMD"; then
6329 if test -n "$ac_tool_prefix"; then
6330 echo "$as_me:$LINENO: checking for file" >&5
6331 echo $ECHO_N "checking for file... $ECHO_C" >&6
6332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6340 lt_save_MAGIC_CMD="$MAGIC_CMD"
6341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6343 for ac_dir in $ac_dummy; do
6345 test -z "$ac_dir" && ac_dir=.
6346 if test -f $ac_dir/file; then
6347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6348 if test -n "$file_magic_test_file"; then
6349 case $deplibs_check_method in
6351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6354 $EGREP "$file_magic_regex" > /dev/null; then
6359 *** Warning: the command libtool uses to detect shared libraries,
6360 *** $file_magic_cmd, produces output that libtool cannot recognize.
6361 *** The result is that libtool may fail to recognize shared libraries
6362 *** as such. This will affect the creation of libtool libraries that
6363 *** depend on shared libraries, but programs linked with such libtool
6364 *** libraries will work regardless of this problem. Nevertheless, you
6365 *** may want to report the problem to your system manager and/or to
6366 *** bug-libtool@gnu.org
6376 MAGIC_CMD="$lt_save_MAGIC_CMD"
6381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6382 if test -n "$MAGIC_CMD"; then
6383 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6384 echo "${ECHO_T}$MAGIC_CMD" >&6
6386 echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6
6402 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6403 if test "${enable_libtool_lock+set}" = set; then
6404 enableval="$enable_libtool_lock"
6407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6410 # Check whether --with-pic or --without-pic was given.
6411 if test "${with_pic+set}" = set; then
6417 test -z "$pic_mode" && pic_mode=default
6419 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6421 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6422 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6423 # calls AC_LIBTOOL_CONFIG and creates libtool.
6425 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6426 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6427 if test "x$ltmain" = "x" ; then
6428 echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6
6430 { { echo "$as_me:$LINENO: error:
6432 *** [Gentoo] sanity check failed! ***
6433 *** \$ltmain is not defined, please check the patch for consistency! ***
6435 echo "$as_me: error:
6437 *** [Gentoo] sanity check failed! ***
6438 *** \$ltmain is not defined, please check the patch for consistency! ***
6440 { (exit 1); exit 1; }; }
6442 gentoo_lt_version="1.5.22"
6443 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6444 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6445 echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6
6447 { { echo "$as_me:$LINENO: error:
6449 *** [Gentoo] sanity check failed! ***
6450 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6451 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6455 libtoolize --copy --force
6457 if appropriate, please contact the maintainer of this
6458 package (or your distribution) for help.
6460 echo "$as_me: error:
6462 *** [Gentoo] sanity check failed! ***
6463 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6464 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6468 libtoolize --copy --force
6470 if appropriate, please contact the maintainer of this
6471 package (or your distribution) for help.
6473 { (exit 1); exit 1; }; }
6475 echo "$as_me:$LINENO: result: yes" >&5
6476 echo "${ECHO_T}yes" >&6
6480 # Use C for the default configuration in the libtool script
6484 ac_cpp='$CPP $CPPFLAGS'
6485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6490 # Source file extension for C test sources.
6493 # Object file extension for compiled C test sources.
6497 # Code to be used in simple compile tests
6498 lt_simple_compile_test_code="int some_variable = 0;\n"
6500 # Code to be used in simple link tests
6501 lt_simple_link_test_code='int main(){return(0);}\n'
6504 # If no C compiler was specified, use CC.
6507 # If no C compiler flags were specified, use CFLAGS.
6508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6510 # Allow CC to be a program name with arguments.
6514 # save warnings/boilerplate of simple test code
6515 ac_outfile=conftest.$ac_objext
6516 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6518 _lt_compiler_boilerplate=`cat conftest.err`
6521 ac_outfile=conftest.$ac_objext
6522 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6524 _lt_linker_boilerplate=`cat conftest.err`
6529 lt_prog_compiler_no_builtin_flag=
6531 if test "$GCC" = yes; then
6532 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6535 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6536 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6537 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 lt_cv_prog_compiler_rtti_exceptions=no
6541 ac_outfile=conftest.$ac_objext
6542 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6543 lt_compiler_flag="-fno-rtti -fno-exceptions"
6544 # Insert the option either (1) after the last *FLAGS variable, or
6545 # (2) before a word containing "conftest.", or (3) at the end.
6546 # Note that $ac_compile itself does not contain backslashes and begins
6547 # with a dollar sign (not a hyphen), so the echo should work correctly.
6548 # The option is referenced via a variable to avoid confusing sed.
6549 lt_compile=`echo "$ac_compile" | $SED \
6550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6552 -e 's:$: $lt_compiler_flag:'`
6553 (eval echo "\"\$as_me:6553: $lt_compile\"" >&5)
6554 (eval "$lt_compile" 2>conftest.err)
6556 cat conftest.err >&5
6557 echo "$as_me:6557: \$? = $ac_status" >&5
6558 if (exit $ac_status) && test -s "$ac_outfile"; then
6559 # The compiler can only warn and ignore the option if not recognized
6560 # So say no if there are warnings other than the usual output.
6561 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6564 lt_cv_prog_compiler_rtti_exceptions=yes
6570 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6571 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6573 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6574 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6581 lt_prog_compiler_wl=
6582 lt_prog_compiler_pic=
6583 lt_prog_compiler_static=
6585 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6586 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6588 if test "$GCC" = yes; then
6589 lt_prog_compiler_wl='-Wl,'
6590 lt_prog_compiler_static='-static'
6594 # All AIX code is PIC.
6595 if test "$host_cpu" = ia64; then
6596 # AIX 5 now supports IA64 processor
6597 lt_prog_compiler_static='-Bstatic'
6602 # FIXME: we need at least 68020 code to build shared libraries, but
6603 # adding the `-m68020' flag to GCC prevents building anything better,
6605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6608 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6609 # PIC is the default for these OSes.
6612 mingw* | pw32* | os2*)
6613 # This hack is so that the source file can tell whether it is being
6614 # built for inclusion in a dll (and should export symbols for example).
6615 lt_prog_compiler_pic='-DDLL_EXPORT'
6618 darwin* | rhapsody*)
6619 # PIC is the default on this platform
6620 # Common symbols not allowed in MH_DYLIB files
6621 lt_prog_compiler_pic='-fno-common'
6625 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6626 # Instead, we relocate shared libraries at runtime.
6630 # Just because we use GCC doesn't mean we suddenly get shared libraries
6631 # on systems that don't support them.
6632 lt_prog_compiler_can_build_shared=no
6637 if test -d /usr/nec; then
6638 lt_prog_compiler_pic=-Kconform_pic
6643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6650 lt_prog_compiler_pic='-fPIC'
6656 lt_prog_compiler_pic='-fPIC'
6660 # PORTME Check for flag to pass linker flags through the system compiler.
6663 lt_prog_compiler_wl='-Wl,'
6664 if test "$host_cpu" = ia64; then
6665 # AIX 5 now supports IA64 processor
6666 lt_prog_compiler_static='-Bstatic'
6668 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6672 # PIC is the default on this platform
6673 # Common symbols not allowed in MH_DYLIB files
6674 case $cc_basename in
6676 lt_prog_compiler_pic='-qnocommon'
6677 lt_prog_compiler_wl='-Wl,'
6682 mingw* | pw32* | os2*)
6683 # This hack is so that the source file can tell whether it is being
6684 # built for inclusion in a dll (and should export symbols for example).
6685 lt_prog_compiler_pic='-DDLL_EXPORT'
6688 hpux9* | hpux10* | hpux11*)
6689 lt_prog_compiler_wl='-Wl,'
6690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6697 lt_prog_compiler_pic='+Z'
6700 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6701 lt_prog_compiler_static='${wl}-a ${wl}archive'
6704 irix5* | irix6* | nonstopux*)
6705 lt_prog_compiler_wl='-Wl,'
6706 # PIC (with -KPIC) is the default.
6707 lt_prog_compiler_static='-non_shared'
6711 lt_prog_compiler_pic='-KPIC'
6712 lt_prog_compiler_static='-Bstatic'
6716 case $cc_basename in
6718 lt_prog_compiler_wl='-Wl,'
6719 lt_prog_compiler_pic='-KPIC'
6720 lt_prog_compiler_static='-static'
6722 pgcc* | pgf77* | pgf90* | pgf95*)
6723 # Portland Group compilers (*not* the Pentium gcc compiler,
6724 # which looks to be a dead project)
6725 lt_prog_compiler_wl='-Wl,'
6726 lt_prog_compiler_pic='-fpic'
6727 lt_prog_compiler_static='-Bstatic'
6730 lt_prog_compiler_wl='-Wl,'
6731 # All Alpha code is PIC.
6732 lt_prog_compiler_static='-non_shared'
6737 osf3* | osf4* | osf5*)
6738 lt_prog_compiler_wl='-Wl,'
6739 # All OSF/1 code is PIC.
6740 lt_prog_compiler_static='-non_shared'
6744 lt_prog_compiler_pic='-KPIC'
6745 lt_prog_compiler_static='-Bstatic'
6746 case $cc_basename in
6748 lt_prog_compiler_wl='-Qoption ld ';;
6750 lt_prog_compiler_wl='-Wl,';;
6755 lt_prog_compiler_wl='-Qoption ld '
6756 lt_prog_compiler_pic='-PIC'
6757 lt_prog_compiler_static='-Bstatic'
6760 sysv4 | sysv4.2uw2* | sysv4.3*)
6761 lt_prog_compiler_wl='-Wl,'
6762 lt_prog_compiler_pic='-KPIC'
6763 lt_prog_compiler_static='-Bstatic'
6767 if test -d /usr/nec ;then
6768 lt_prog_compiler_pic='-Kconform_pic'
6769 lt_prog_compiler_static='-Bstatic'
6773 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6774 lt_prog_compiler_wl='-Wl,'
6775 lt_prog_compiler_pic='-KPIC'
6776 lt_prog_compiler_static='-Bstatic'
6780 lt_prog_compiler_wl='-Wl,'
6781 lt_prog_compiler_can_build_shared=no
6785 lt_prog_compiler_pic='-pic'
6786 lt_prog_compiler_static='-Bstatic'
6790 lt_prog_compiler_can_build_shared=no
6795 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6796 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6799 # Check to make sure the PIC flag actually works.
6801 if test -n "$lt_prog_compiler_pic"; then
6803 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6804 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6805 if test "${lt_prog_compiler_pic_works+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 lt_prog_compiler_pic_works=no
6809 ac_outfile=conftest.$ac_objext
6810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6811 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6812 # Insert the option either (1) after the last *FLAGS variable, or
6813 # (2) before a word containing "conftest.", or (3) at the end.
6814 # Note that $ac_compile itself does not contain backslashes and begins
6815 # with a dollar sign (not a hyphen), so the echo should work correctly.
6816 # The option is referenced via a variable to avoid confusing sed.
6817 lt_compile=`echo "$ac_compile" | $SED \
6818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6820 -e 's:$: $lt_compiler_flag:'`
6821 (eval echo "\"\$as_me:6821: $lt_compile\"" >&5)
6822 (eval "$lt_compile" 2>conftest.err)
6824 cat conftest.err >&5
6825 echo "$as_me:6825: \$? = $ac_status" >&5
6826 if (exit $ac_status) && test -s "$ac_outfile"; then
6827 # The compiler can only warn and ignore the option if not recognized
6828 # So say no if there are warnings other than the usual output.
6829 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6832 lt_prog_compiler_pic_works=yes
6838 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6839 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6841 if test x"$lt_prog_compiler_pic_works" = xyes; then
6842 case $lt_prog_compiler_pic in
6844 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6847 lt_prog_compiler_pic=
6848 lt_prog_compiler_can_build_shared=no
6853 # For platforms which do not support PIC, -DPIC is meaningless:
6855 lt_prog_compiler_pic=
6858 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6863 # Check to make sure the static flag actually works.
6865 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6866 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6867 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6868 if test "${lt_prog_compiler_static_works+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 lt_prog_compiler_static_works=no
6872 save_LDFLAGS="$LDFLAGS"
6873 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6874 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6875 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6876 # The linker can only warn and ignore the option if not recognized
6877 # So say no if there are warnings
6878 if test -s conftest.err; then
6879 # Append any errors to the config.log.
6880 cat conftest.err 1>&5
6881 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6883 if diff conftest.exp conftest.er2 >/dev/null; then
6884 lt_prog_compiler_static_works=yes
6887 lt_prog_compiler_static_works=yes
6891 LDFLAGS="$save_LDFLAGS"
6894 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6895 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6897 if test x"$lt_prog_compiler_static_works" = xyes; then
6900 lt_prog_compiler_static=
6904 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6905 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6906 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 lt_cv_prog_compiler_c_o=no
6910 $rm -r conftest 2>/dev/null
6914 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6916 lt_compiler_flag="-o out/conftest2.$ac_objext"
6917 # Insert the option either (1) after the last *FLAGS variable, or
6918 # (2) before a word containing "conftest.", or (3) at the end.
6919 # Note that $ac_compile itself does not contain backslashes and begins
6920 # with a dollar sign (not a hyphen), so the echo should work correctly.
6921 lt_compile=`echo "$ac_compile" | $SED \
6922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6924 -e 's:$: $lt_compiler_flag:'`
6925 (eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
6926 (eval "$lt_compile" 2>out/conftest.err)
6928 cat out/conftest.err >&5
6929 echo "$as_me:6929: \$? = $ac_status" >&5
6930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6932 # The compiler can only warn and ignore the option if not recognized
6933 # So say no if there are warnings
6934 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6937 lt_cv_prog_compiler_c_o=yes
6942 # SGI C++ compiler will create directory out/ii_files/ for
6943 # template instantiation
6944 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6945 $rm out/* && rmdir out
6951 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6952 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6955 hard_links="nottested"
6956 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6957 # do not overwrite the value of need_locks provided by the user
6958 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6959 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6964 ln conftest.a conftest.b 2>&5 || hard_links=no
6965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6966 echo "$as_me:$LINENO: result: $hard_links" >&5
6967 echo "${ECHO_T}$hard_links" >&6
6968 if test "$hard_links" = no; then
6969 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6970 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6977 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6978 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6981 allow_undefined_flag=
6982 enable_shared_with_static_runtimes=no
6984 archive_expsym_cmds=
6985 old_archive_From_new_cmds=
6986 old_archive_from_expsyms_cmds=
6987 export_dynamic_flag_spec=
6988 whole_archive_flag_spec=
6989 thread_safe_flag_spec=
6990 hardcode_libdir_flag_spec=
6991 hardcode_libdir_flag_spec_ld=
6992 hardcode_libdir_separator=
6995 hardcode_shlibpath_var=unsupported
6996 link_all_deplibs=unknown
6997 hardcode_automatic=no
7000 always_export_symbols=no
7001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7002 # include_expsyms should be a list of space-separated symbols to be *always*
7003 # included in the symbol list
7005 # exclude_expsyms can be an extended regexp of symbols to exclude
7006 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7007 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7008 # as well as any symbol that contains `d'.
7009 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7010 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7011 # platforms (ab)use it in PIC code, but their linkers get confused if
7012 # the symbol is explicitly referenced. Since portable code cannot
7013 # rely on this symbol name, it's probably fine to never include it in
7014 # preloaded symbol tables.
7015 extract_expsyms_cmds=
7016 # Just being paranoid about ensuring that cc_basename is set.
7017 for cc_temp in $compiler""; do
7019 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7020 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7025 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7028 cygwin* | mingw* | pw32*)
7029 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7030 # When not using gcc, we currently assume that we are using
7031 # Microsoft Visual C++.
7032 if test "$GCC" != yes; then
7037 # we just hope/assume this is gcc and not c89 (= MSVC++)
7046 if test "$with_gnu_ld" = yes; then
7047 # If archive_cmds runs LD, not CC, wlarc should be empty
7050 # Set some defaults for GNU ld with shared library support. These
7051 # are reset later if shared libraries are not supported. Putting them
7052 # here allows them to be overridden if necessary.
7053 runpath_var=LD_RUN_PATH
7054 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7055 export_dynamic_flag_spec='${wl}--export-dynamic'
7056 # ancient GNU ld didn't support --whole-archive et. al.
7057 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7058 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7060 whole_archive_flag_spec=
7062 supports_anon_versioning=no
7063 case `$LD -v 2>/dev/null` in
7064 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7065 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7066 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7067 *\ 2.11.*) ;; # other 2.11 versions
7068 *) supports_anon_versioning=yes ;;
7071 # See if GNU ld supports shared libraries.
7073 aix3* | aix4* | aix5*)
7074 # On AIX/PPC, the GNU linker is very broken
7075 if test "$host_cpu" != ia64; then
7079 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7080 *** to be unable to reliably create shared libraries on AIX.
7081 *** Therefore, libtool is disabling shared libraries support. If you
7082 *** really care for shared libraries, you may want to modify your PATH
7083 *** so that a non-GNU linker is found, and then restart.
7090 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)'
7091 hardcode_libdir_flag_spec='-L$libdir'
7092 hardcode_minus_L=yes
7094 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7095 # that the semantics of dynamic libraries on AmigaOS, at least up
7096 # to version 4, is to share data among multiple programs linked
7097 # with the same dynamic library. Since this doesn't match the
7098 # behavior of shared libraries on other platforms, we can't use
7104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7105 allow_undefined_flag=unsupported
7106 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7107 # support --undefined. This deserves some investigation. FIXME
7108 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7114 cygwin* | mingw* | pw32*)
7115 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7116 # as there is no search path for DLLs.
7117 hardcode_libdir_flag_spec='-L$libdir'
7118 allow_undefined_flag=unsupported
7119 always_export_symbols=no
7120 enable_shared_with_static_runtimes=yes
7121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7123 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7125 # If the export-symbols file already is a .def file (1st line
7126 # is EXPORTS), use it as is; otherwise, prepend...
7127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7128 cp $export_symbols $output_objdir/$soname.def;
7130 echo EXPORTS > $output_objdir/$soname.def;
7131 cat $export_symbols >> $output_objdir/$soname.def;
7133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7141 hardcode_shlibpath_var=no
7142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7143 export_dynamic_flag_spec='${wl}-E'
7144 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7145 # Instead, shared libraries are loaded at an image base (0x10000000 by
7146 # default) and relocated if they conflict, which is a slow very memory
7147 # consuming and fragmenting process. To avoid this, we pick a random,
7148 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7149 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7151 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'
7155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7157 case $cc_basename,$host_cpu in
7158 pgcc*) # Portland Group C compiler
7159 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'
7160 tmp_addflag=' $pic_flag'
7162 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7163 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'
7164 tmp_addflag=' $pic_flag -Mnomain' ;;
7165 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7166 tmp_addflag=' -i_dynamic' ;;
7167 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7168 tmp_addflag=' -i_dynamic -nofor_main' ;;
7169 ifc* | ifort*) # Intel Fortran compiler
7170 tmp_addflag=' -nofor_main' ;;
7172 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7174 if test $supports_anon_versioning = yes; then
7175 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7177 $echo "local: *; };" >> $output_objdir/$libname.ver~
7178 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7187 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7196 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7200 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7201 *** create shared libraries on Solaris systems. Therefore, libtool
7202 *** is disabling shared libraries support. We urge you to upgrade GNU
7203 *** binutils to release 2.9.1 or newer. Another option is to modify
7204 *** your PATH or compiler configuration so that the native linker is
7205 *** used, and then restart.
7208 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7217 case `$LD -v 2>&1` in
7218 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7222 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7223 *** reliably create shared libraries on SCO systems. Therefore, libtool
7224 *** is disabling shared libraries support. We urge you to upgrade GNU
7225 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7226 *** your PATH or compiler configuration so that the native linker is
7227 *** used, and then restart.
7232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7233 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7244 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7247 hardcode_shlibpath_var=no
7251 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7260 if test "$ld_shlibs" = no; then
7262 hardcode_libdir_flag_spec=
7263 export_dynamic_flag_spec=
7264 whole_archive_flag_spec=
7267 # PORTME fill in a description of your system's linker (not GNU ld)
7270 allow_undefined_flag=unsupported
7271 always_export_symbols=yes
7272 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'
7273 # Note: this linker hardcodes the directories in LIBPATH if there
7274 # are no directories specified by -L.
7275 hardcode_minus_L=yes
7276 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7277 # Neither direct hardcoding nor static linking is supported with a
7279 hardcode_direct=unsupported
7284 if test "$host_cpu" = ia64; then
7285 # On IA64, the linker does run time linking by default, so we don't
7286 # have to do anything special.
7287 aix_use_runtimelinking=no
7288 exp_sym_flag='-Bexport'
7291 # If we're using GNU nm, then we don't want the "-C" option.
7292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7293 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7294 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'
7296 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'
7298 aix_use_runtimelinking=no
7300 # Test if we are trying to use run time linking or normal
7301 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7302 # need to do runtime linking.
7303 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7304 for ld_flag in $LDFLAGS; do
7305 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7306 aix_use_runtimelinking=yes
7313 exp_sym_flag='-bexport'
7314 no_entry_flag='-bnoentry'
7317 # When large executables or shared objects are built, AIX ld can
7318 # have problems creating the table of contents. If linking a library
7319 # or program results in "error TOC overflow" add -mminimal-toc to
7320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7325 hardcode_libdir_separator=':'
7326 link_all_deplibs=yes
7328 if test "$GCC" = yes; then
7329 case $host_os in aix4.[012]|aix4.[012].*)
7330 # We only want to do this on AIX 4.2 and lower, the check
7331 # below for broken collect2 doesn't work under 4.3+
7332 collect2name=`${CC} -print-prog-name=collect2`
7333 if test -f "$collect2name" && \
7334 strings "$collect2name" | grep resolve_lib_name >/dev/null
7336 # We have reworked collect2
7339 # We have old collect2
7340 hardcode_direct=unsupported
7341 # It fails to find uninstalled libraries when the uninstalled
7342 # path is not listed in the libpath. Setting hardcode_minus_L
7343 # to unsupported forces relinking
7344 hardcode_minus_L=yes
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_libdir_separator=
7350 shared_flag='-shared'
7351 if test "$aix_use_runtimelinking" = yes; then
7352 shared_flag="$shared_flag "'${wl}-G'
7356 if test "$host_cpu" = ia64; then
7357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7358 # chokes on -Wl,-G. The following line is correct:
7361 if test "$aix_use_runtimelinking" = yes; then
7362 shared_flag='${wl}-G'
7364 shared_flag='${wl}-bM:SRE'
7369 # It seems that -bexpall does not export symbols beginning with
7370 # underscore (_), so it is better to generate a list of symbols to export.
7371 always_export_symbols=yes
7372 if test "$aix_use_runtimelinking" = yes; then
7373 # Warning - without using the other runtime loading flags (-brtl),
7374 # -berok will link without error, but may produce a broken library.
7375 allow_undefined_flag='-berok'
7376 # Determine the default libpath from the value encoded in an empty executable.
7377 cat >conftest.$ac_ext <<_ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7392 rm -f conftest.$ac_objext conftest$ac_exeext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394 (eval $ac_link) 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try='test -z "$ac_c_werror_flag"
7402 || test ! -s conftest.err'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; } &&
7408 { ac_try='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7417 # Check for a 64-bit object if we didn't find anything.
7418 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; }
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7425 rm -f conftest.err conftest.$ac_objext \
7426 conftest$ac_exeext conftest.$ac_ext
7427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7429 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7430 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"
7432 if test "$host_cpu" = ia64; then
7433 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7434 allow_undefined_flag="-z nodefs"
7435 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"
7437 # Determine the default libpath from the value encoded in an empty executable.
7438 cat >conftest.$ac_ext <<_ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7455 (eval $ac_link) 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -z "$ac_c_werror_flag"
7463 || test ! -s conftest.err'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; } &&
7469 { ac_try='test -s conftest$ac_exeext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7478 # Check for a 64-bit object if we didn't find anything.
7479 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; }
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7486 rm -f conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
7488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7491 # Warning - without using the other run time loading flags,
7492 # -berok will link without error, but may produce a broken library.
7493 no_undefined_flag=' ${wl}-bernotok'
7494 allow_undefined_flag=' ${wl}-berok'
7495 # Exported symbols can be pulled into shared objects from archives
7496 whole_archive_flag_spec='$convenience'
7497 archive_cmds_need_lc=yes
7498 # This is similar to how AIX traditionally builds its shared libraries.
7499 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'
7505 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)'
7506 hardcode_libdir_flag_spec='-L$libdir'
7507 hardcode_minus_L=yes
7508 # see comment about different semantics on the GNU ld section
7513 export_dynamic_flag_spec=-rdynamic
7516 cygwin* | mingw* | pw32*)
7517 # When not using gcc, we currently assume that we are using
7518 # Microsoft Visual C++.
7519 # hardcode_libdir_flag_spec is actually meaningless, as there is
7520 # no search path for DLLs.
7521 hardcode_libdir_flag_spec=' '
7522 allow_undefined_flag=unsupported
7523 # Tell ltmain to make .lib files, not .a files.
7525 # Tell ltmain to make .dll files, not .so files.
7527 # FIXME: Setting linknames here is a bad hack.
7528 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7529 # The linker will automatically build a .lib file if we build a DLL.
7530 old_archive_From_new_cmds='true'
7531 # FIXME: Should let the user specify the lib program.
7532 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7533 fix_srcfile_path='`cygpath -w "$srcfile"`'
7534 enable_shared_with_static_runtimes=yes
7537 darwin* | rhapsody*)
7539 rhapsody* | darwin1.[012])
7540 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7543 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7544 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7546 case ${MACOSX_DEPLOYMENT_TARGET} in
7548 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7551 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7557 archive_cmds_need_lc=no
7559 hardcode_automatic=yes
7560 hardcode_shlibpath_var=unsupported
7561 whole_archive_flag_spec=''
7562 link_all_deplibs=yes
7563 if test "$GCC" = yes ; then
7564 output_verbose_link_cmd='echo'
7565 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7566 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7568 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}'
7569 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}'
7571 case $cc_basename in
7573 output_verbose_link_cmd='echo'
7574 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7575 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7576 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7577 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}'
7578 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}'
7588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7589 hardcode_libdir_flag_spec='-L$libdir'
7590 hardcode_shlibpath_var=no
7597 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7598 # support. Future versions do this automatically, but an explicit c++rt0.o
7599 # does not break anything, and helps significantly (at the cost of a little
7602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7603 hardcode_libdir_flag_spec='-R$libdir'
7605 hardcode_shlibpath_var=no
7608 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7612 hardcode_minus_L=yes
7613 hardcode_shlibpath_var=no
7616 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7617 freebsd* | kfreebsd*-gnu | dragonfly*)
7618 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7619 hardcode_libdir_flag_spec='-R$libdir'
7621 hardcode_shlibpath_var=no
7625 if test "$GCC" = yes; then
7626 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'
7628 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'
7630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7631 hardcode_libdir_separator=:
7634 # hardcode_minus_L: Not really in the search PATH,
7635 # but as the default location of the library.
7636 hardcode_minus_L=yes
7637 export_dynamic_flag_spec='${wl}-E'
7641 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7644 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7646 if test "$with_gnu_ld" = no; then
7647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7648 hardcode_libdir_separator=:
7651 export_dynamic_flag_spec='${wl}-E'
7653 # hardcode_minus_L: Not really in the search PATH,
7654 # but as the default location of the library.
7655 hardcode_minus_L=yes
7660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7663 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7666 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7675 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7678 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7681 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7685 if test "$with_gnu_ld" = no; then
7686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7687 hardcode_libdir_separator=:
7691 hardcode_libdir_flag_spec_ld='+b $libdir'
7693 hardcode_shlibpath_var=no
7697 export_dynamic_flag_spec='${wl}-E'
7699 # hardcode_minus_L: Not really in the search PATH,
7700 # but as the default location of the library.
7701 hardcode_minus_L=yes
7707 irix5* | irix6* | nonstopux*)
7708 if test "$GCC" = yes; then
7709 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'
7711 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'
7712 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7715 hardcode_libdir_separator=:
7716 link_all_deplibs=yes
7720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7723 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7725 hardcode_libdir_flag_spec='-R$libdir'
7727 hardcode_shlibpath_var=no
7731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7734 hardcode_libdir_separator=:
7735 hardcode_shlibpath_var=no
7740 hardcode_shlibpath_var=no
7741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7742 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7743 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7744 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7745 export_dynamic_flag_spec='${wl}-E'
7748 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7750 hardcode_libdir_flag_spec='-R$libdir'
7753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7754 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7761 hardcode_libdir_flag_spec='-L$libdir'
7762 hardcode_minus_L=yes
7763 allow_undefined_flag=unsupported
7764 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'
7765 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7769 if test "$GCC" = yes; then
7770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7771 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'
7773 allow_undefined_flag=' -expect_unresolved \*'
7774 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'
7776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7777 hardcode_libdir_separator=:
7780 osf4* | osf5*) # as osf3* with the addition of -msym flag
7781 if test "$GCC" = yes; then
7782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7783 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'
7784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7786 allow_undefined_flag=' -expect_unresolved \*'
7787 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'
7788 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7789 $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'
7791 # Both c and cxx compiler support -rpath directly
7792 hardcode_libdir_flag_spec='-rpath $libdir'
7794 hardcode_libdir_separator=:
7798 no_undefined_flag=' -z text'
7799 if test "$GCC" = yes; then
7801 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7802 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7803 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7806 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7807 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7808 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7810 hardcode_libdir_flag_spec='-R$libdir'
7811 hardcode_shlibpath_var=no
7813 solaris2.[0-5] | solaris2.[0-5].*) ;;
7815 # The compiler driver will combine linker options so we
7816 # cannot just pass the convience library names through
7817 # without $wl, iff we do not link with $LD.
7818 # Luckily, gcc supports the same syntax we need for Sun Studio.
7819 # Supported since Solaris 2.6 (maybe 2.5.1?)
7822 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7824 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' ;;
7827 link_all_deplibs=yes
7831 if test "x$host_vendor" = xsequent; then
7832 # Use $CC to link under sequent, because it throws in some extra .o
7833 # files that make .init and .fini sections work.
7834 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7836 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7838 hardcode_libdir_flag_spec='-L$libdir'
7840 hardcode_minus_L=yes
7841 hardcode_shlibpath_var=no
7845 case $host_vendor in
7847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7848 hardcode_direct=yes # is this really true???
7851 ## LD is ld it makes a PLAMLIB
7852 ## CC just makes a GrossModule.
7853 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7854 reload_cmds='$CC -r -o $output$reload_objs'
7858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7859 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7862 runpath_var='LD_RUN_PATH'
7863 hardcode_shlibpath_var=no
7867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7868 hardcode_shlibpath_var=no
7869 export_dynamic_flag_spec='-Bexport'
7873 if test -d /usr/nec; then
7874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7875 hardcode_shlibpath_var=no
7876 runpath_var=LD_RUN_PATH
7877 hardcode_runpath_var=yes
7882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7883 no_undefined_flag='${wl}-z,text'
7884 archive_cmds_need_lc=no
7885 hardcode_shlibpath_var=no
7886 runpath_var='LD_RUN_PATH'
7888 if test "$GCC" = yes; then
7889 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7890 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7892 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7893 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7897 sysv5* | sco3.2v5* | sco5v6*)
7898 # Note: We can NOT use -z defs as we might desire, because we do not
7899 # link with -lc, and that would cause any symbols used from libc to
7900 # always be unresolved, which means just about no library would
7901 # ever link correctly. If we're not using GNU ld we use -z text
7902 # though, which does catch some bad symbols but isn't as heavy-handed
7904 no_undefined_flag='${wl}-z,text'
7905 allow_undefined_flag='${wl}-z,nodefs'
7906 archive_cmds_need_lc=no
7907 hardcode_shlibpath_var=no
7908 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7909 hardcode_libdir_separator=':'
7910 link_all_deplibs=yes
7911 export_dynamic_flag_spec='${wl}-Bexport'
7912 runpath_var='LD_RUN_PATH'
7914 if test "$GCC" = yes; then
7915 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7916 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7918 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7919 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7925 hardcode_libdir_flag_spec='-L$libdir'
7926 hardcode_shlibpath_var=no
7935 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7936 echo "${ECHO_T}$ld_shlibs" >&6
7937 test "$ld_shlibs" = no && can_build_shared=no
7940 # Do we need to explicitly link libc?
7942 case "x$archive_cmds_need_lc" in
7944 # Assume -lc should be added
7945 archive_cmds_need_lc=yes
7947 if test "$enable_shared" = yes && test "$GCC" = yes; then
7948 case $archive_cmds in
7950 # FIXME: we may have to deal with multi-command sequences.
7953 # Test whether the compiler implicitly links with -lc since on some
7954 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7955 # to ld, don't add -lc before -lgcc.
7956 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7957 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } 2>conftest.err; then
7968 libobjs=conftest.$ac_objext
7970 wl=$lt_prog_compiler_wl
7971 pic_flag=$lt_prog_compiler_pic
7977 lt_save_allow_undefined_flag=$allow_undefined_flag
7978 allow_undefined_flag=
7979 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7980 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }
7985 archive_cmds_need_lc=no
7987 archive_cmds_need_lc=yes
7989 allow_undefined_flag=$lt_save_allow_undefined_flag
7991 cat conftest.err 1>&5
7994 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7995 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8002 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8005 libname_spec='lib$name'
8013 shlibpath_overrides_runpath=unknown
8015 dynamic_linker="$host_os ld.so"
8016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8017 if test "$GCC" = yes; then
8018 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8019 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8020 # if the path contains ";" then we assume it to be the separator
8021 # otherwise default to the standard path separator (i.e. ":") - it is
8022 # assumed that no part of a normal pathname contains ";" but that should
8023 # okay in the real world where ";" in dirpaths is itself problematic.
8024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8029 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8031 need_lib_prefix=unknown
8032 hardcode_into_libs=no
8034 # when you set need_version to no, make sure it does not cause -set_version
8035 # flags to be left without arguments
8036 need_version=unknown
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8042 shlibpath_var=LIBPATH
8044 # AIX 3 has no versioning support, so we append a major version to the name.
8045 soname_spec='${libname}${release}${shared_ext}$major'
8052 hardcode_into_libs=yes
8053 if test "$host_cpu" = ia64; then
8054 # AIX 5 supports IA64
8055 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8056 shlibpath_var=LD_LIBRARY_PATH
8058 # With GCC up to 2.95.x, collect2 would create an import file
8059 # for dependence libraries. The import file would start with
8060 # the line `#! .'. This would cause the generated library to
8061 # depend on `.', always an invalid library. This was fixed in
8062 # development snapshots of GCC prior to 3.0.
8064 aix4 | aix4.[01] | aix4.[01].*)
8065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8067 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8075 # soname into executable. Probably we can add versioning support to
8076 # collect2, so additional links can be useful in future.
8077 if test "$aix_use_runtimelinking" = yes; then
8078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8079 # instead of lib<name>.a to let people know that these are not
8080 # typical AIX shared libraries.
8081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083 # We preserve .a as extension for shared libraries through AIX4.2
8084 # and later when we are not doing run time linking.
8085 library_names_spec='${libname}${release}.a $libname.a'
8086 soname_spec='${libname}${release}${shared_ext}$major'
8088 shlibpath_var=LIBPATH
8093 library_names_spec='$libname.ixlibrary $libname.a'
8094 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8095 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'
8099 library_names_spec='${libname}${shared_ext}'
8100 dynamic_linker="$host_os ld.so"
8101 shlibpath_var=LIBRARY_PATH
8107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8108 soname_spec='${libname}${release}${shared_ext}$major'
8109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8110 shlibpath_var=LD_LIBRARY_PATH
8111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8113 # the default ld.so.conf also contains /usr/contrib/lib and
8114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8115 # libtool to hard-code these into programs
8118 cygwin* | mingw* | pw32*)
8119 version_type=windows
8124 case $GCC,$host_os in
8125 yes,cygwin* | yes,mingw* | yes,pw32*)
8126 library_names_spec='$libname.dll.a'
8127 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8128 postinstall_cmds='base_file=`basename \${file}`~
8129 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8130 dldir=$destdir/`dirname \$dlpath`~
8131 test -d \$dldir || mkdir -p \$dldir~
8132 $install_prog $dir/$dlname \$dldir/$dlname~
8133 chmod a+x \$dldir/$dlname'
8134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8135 dlpath=$dir/\$dldll~
8137 shlibpath_overrides_runpath=yes
8141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8143 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8146 # MinGW DLLs use traditional 'lib' prefix
8147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8148 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8149 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8150 # It is most probably a Windows format PATH printed by
8151 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8152 # path with ; separators, and with drive letters. We can handle the
8153 # drive letters (cygwin fileutils understands them), so leave them,
8154 # especially as we might pass files found there to a mingw objdump,
8155 # which wouldn't understand a cygwinified path. Ahh.
8156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8162 # pw32 DLLs use 'pw' prefix rather than 'lib'
8163 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8169 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8171 supports_anon_versioning=no
8172 case `$LD -v 2>/dev/null` in
8173 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8174 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8175 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8176 *\ 2.11.*) ;; # other 2.11 versions
8177 *) supports_anon_versioning=yes ;;
8179 if test $supports_anon_versioning = yes; then
8180 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8182 $echo "local: *; };" >> $output_objdir/$libname.ver~
8183 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8185 $archive_expsym_cmds="$archive_cmds"
8193 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8196 dynamic_linker='Win32 ld.exe'
8197 # FIXME: first we should search . and the directory the executable is in
8201 darwin* | rhapsody*)
8202 dynamic_linker="$host_os dyld"
8206 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8207 soname_spec='${libname}${release}${major}$shared_ext'
8208 shlibpath_overrides_runpath=yes
8209 shlibpath_var=DYLD_LIBRARY_PATH
8210 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8211 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8212 if test "$GCC" = yes; then
8213 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"`
8215 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8225 soname_spec='${libname}${release}${shared_ext}$major'
8226 shlibpath_var=LD_LIBRARY_PATH
8237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8238 soname_spec='${libname}${release}${shared_ext}$major'
8239 shlibpath_var=LD_LIBRARY_PATH
8240 shlibpath_overrides_runpath=no
8241 hardcode_into_libs=yes
8242 dynamic_linker='GNU ld.so'
8245 freebsd* | dragonfly*)
8246 # DragonFly does not have aout. When/if they implement a new
8247 # versioning mechanism, adjust this.
8248 if test -x /usr/bin/objformat; then
8249 objformat=`/usr/bin/objformat`
8252 freebsd[123]*) objformat=aout ;;
8256 # Handle Gentoo/FreeBSD as it was Linux
8257 case $host_vendor in
8259 version_type=linux ;;
8261 version_type=freebsd-$objformat ;;
8264 case $version_type in
8266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8276 soname_spec='${libname}${release}${shared_ext}$major'
8281 shlibpath_var=LD_LIBRARY_PATH
8284 shlibpath_overrides_runpath=yes
8286 freebsd3.[01]* | freebsdelf3.[01]*)
8287 shlibpath_overrides_runpath=yes
8288 hardcode_into_libs=yes
8290 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8291 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8292 shlibpath_overrides_runpath=no
8293 hardcode_into_libs=yes
8295 freebsd*) # from 4.6 on
8296 shlibpath_overrides_runpath=yes
8297 hardcode_into_libs=yes
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8307 soname_spec='${libname}${release}${shared_ext}$major'
8308 shlibpath_var=LD_LIBRARY_PATH
8309 hardcode_into_libs=yes
8312 hpux9* | hpux10* | hpux11*)
8313 # Give a soname corresponding to the major version so that dld.sl refuses to
8314 # link against other versions.
8321 hardcode_into_libs=yes
8322 dynamic_linker="$host_os dld.so"
8323 shlibpath_var=LD_LIBRARY_PATH
8324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326 soname_spec='${libname}${release}${shared_ext}$major'
8327 if test "X$HPUX_IA64_MODE" = X32; then
8328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8336 hardcode_into_libs=yes
8337 dynamic_linker="$host_os dld.sl"
8338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341 soname_spec='${libname}${release}${shared_ext}$major'
8342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8347 dynamic_linker="$host_os dld.sl"
8348 shlibpath_var=SHLIB_PATH
8349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8354 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8355 postinstall_cmds='chmod 555 $lib'
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8365 shlibpath_var=LD_LIBRARY_PATH
8366 shlibpath_overrides_runpath=no
8367 hardcode_into_libs=yes
8370 irix5* | irix6* | nonstopux*)
8372 nonstopux*) version_type=nonstopux ;;
8374 if test "$lt_cv_prog_gnu_ld" = yes; then
8382 soname_spec='${libname}${release}${shared_ext}$major'
8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8385 irix5* | nonstopux*)
8389 case $LD in # libtool.m4 will add one of these switches to LD
8390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8391 libsuff= shlibsuff= libmagic=32-bit;;
8392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8393 libsuff=32 shlibsuff=N32 libmagic=N32;;
8394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8396 *) libsuff= shlibsuff= libmagic=never-match;;
8400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8401 shlibpath_overrides_runpath=no
8402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8404 hardcode_into_libs=yes
8407 # No shared lib support for Linux oldld, aout, or coff.
8408 linux*oldld* | linux*aout* | linux*coff*)
8412 # This must be Linux ELF.
8417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418 soname_spec='${libname}${release}${shared_ext}$major'
8419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8420 shlibpath_var=LD_LIBRARY_PATH
8421 shlibpath_overrides_runpath=no
8422 # This implies no fast_install, which is unacceptable.
8423 # Some rework will be needed to allow for fast_install
8424 # before this can be enabled.
8425 hardcode_into_libs=yes
8427 # Append ld.so.conf contents to the search path
8428 if test -f /etc/ld.so.conf; then
8429 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' ' '`
8430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8433 # We used to test for /lib/ld.so.1 and disable shared libraries on
8434 # powerpc, because MkLinux only supported shared libraries with the
8435 # GNU dynamic linker. Since this was broken with cross compilers,
8436 # most powerpc-linux boxes support dynamic linking these days and
8437 # people can always --disable-shared, the test was removed, and we
8438 # assume the GNU/Linux dynamic linker is in use.
8439 dynamic_linker='GNU/Linux ld.so'
8446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8447 soname_spec='${libname}${release}${shared_ext}$major'
8448 shlibpath_var=LD_LIBRARY_PATH
8449 shlibpath_overrides_runpath=no
8450 hardcode_into_libs=yes
8451 dynamic_linker='GNU ld.so'
8458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8461 dynamic_linker='NetBSD (a.out) ld.so'
8463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8464 soname_spec='${libname}${release}${shared_ext}$major'
8465 dynamic_linker='NetBSD ld.elf_so'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath=yes
8469 hardcode_into_libs=yes
8474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8475 shlibpath_var=LD_LIBRARY_PATH
8476 shlibpath_overrides_runpath=yes
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8484 soname_spec='${libname}${release}${shared_ext}$major'
8485 shlibpath_var=LD_LIBRARY_PATH
8486 shlibpath_overrides_runpath=yes
8491 sys_lib_dlsearch_path_spec="/usr/lib"
8493 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8495 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8496 *) need_version=no ;;
8498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8500 shlibpath_var=LD_LIBRARY_PATH
8501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8503 openbsd2.[89] | openbsd2.[89].*)
8504 shlibpath_overrides_runpath=no
8507 shlibpath_overrides_runpath=yes
8511 shlibpath_overrides_runpath=yes
8516 libname_spec='$name'
8519 library_names_spec='$libname${shared_ext} $libname.a'
8520 dynamic_linker='OS/2 ld.exe'
8521 shlibpath_var=LIBPATH
8524 osf3* | osf4* | osf5*)
8528 soname_spec='${libname}${release}${shared_ext}$major'
8529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8530 shlibpath_var=LD_LIBRARY_PATH
8531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540 soname_spec='${libname}${release}${shared_ext}$major'
8541 shlibpath_var=LD_LIBRARY_PATH
8542 shlibpath_overrides_runpath=yes
8543 hardcode_into_libs=yes
8544 # ldd complains unless libraries are executable
8545 postinstall_cmds='chmod +x $lib'
8550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8551 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8552 shlibpath_var=LD_LIBRARY_PATH
8553 shlibpath_overrides_runpath=yes
8554 if test "$with_gnu_ld" = yes; then
8562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8563 soname_spec='${libname}${release}${shared_ext}$major'
8564 shlibpath_var=LD_LIBRARY_PATH
8565 case $host_vendor in
8567 shlibpath_overrides_runpath=no
8569 export_dynamic_flag_spec='${wl}-Blargedynsym'
8570 runpath_var=LD_RUN_PATH
8578 shlibpath_overrides_runpath=no
8579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8585 if test -d /usr/nec ;then
8587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8588 soname_spec='$libname${shared_ext}.$major'
8589 shlibpath_var=LD_LIBRARY_PATH
8593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8594 version_type=freebsd-elf
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8599 shlibpath_var=LD_LIBRARY_PATH
8600 hardcode_into_libs=yes
8601 if test "$with_gnu_ld" = yes; then
8602 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8603 shlibpath_overrides_runpath=no
8605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8606 shlibpath_overrides_runpath=yes
8609 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8613 sys_lib_dlsearch_path_spec='/usr/lib'
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 shlibpath_var=LD_LIBRARY_PATH
8627 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8628 echo "${ECHO_T}$dynamic_linker" >&6
8629 test "$dynamic_linker" = no && can_build_shared=no
8631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8632 if test "$GCC" = yes; then
8633 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8639 if test -n "$hardcode_libdir_flag_spec" || \
8640 test -n "$runpath_var" || \
8641 test "X$hardcode_automatic" = "Xyes" ; then
8643 # We can hardcode non-existant directories.
8644 if test "$hardcode_direct" != no &&
8645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8646 # have to relink, otherwise we might link with an installed library
8647 # when we should be linking with a yet-to-be-installed one
8648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8649 test "$hardcode_minus_L" != no; then
8650 # Linking always hardcodes the temporary library directory.
8651 hardcode_action=relink
8653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8654 hardcode_action=immediate
8657 # We cannot hardcode anything, or else we can only hardcode existing
8659 hardcode_action=unsupported
8661 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8662 echo "${ECHO_T}$hardcode_action" >&6
8664 if test "$hardcode_action" = relink; then
8665 # Fast installation is not supported
8666 enable_fast_install=no
8667 elif test "$shlibpath_overrides_runpath" = yes ||
8668 test "$enable_shared" = no; then
8669 # Fast installation is not necessary
8670 enable_fast_install=needless
8675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8680 echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6
8683 # FIXME - insert some real tests, host_os isn't really good enough
8686 if test -n "$STRIP" ; then
8687 striplib="$STRIP -x"
8688 echo "$as_me:$LINENO: result: yes" >&5
8689 echo "${ECHO_T}yes" >&6
8691 echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6
8696 echo "$as_me:$LINENO: result: no" >&5
8697 echo "${ECHO_T}no" >&6
8702 if test "x$enable_dlopen" != xyes; then
8703 enable_dlopen=unknown
8704 enable_dlopen_self=unknown
8705 enable_dlopen_self_static=unknown
8712 lt_cv_dlopen="load_add_on"
8714 lt_cv_dlopen_self=yes
8718 lt_cv_dlopen="LoadLibrary"
8723 lt_cv_dlopen="dlopen"
8728 # if libdl is installed we need to link against it
8729 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 ac_check_lib_save_LIBS=$LIBS
8736 cat >conftest.$ac_ext <<_ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8743 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag"
8768 || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_lib_dl_dlopen=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_lib_dl_dlopen=no
8787 rm -f conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8793 if test $ac_cv_lib_dl_dlopen = yes; then
8794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8799 lt_cv_dlopen_self=yes
8806 echo "$as_me:$LINENO: checking for shl_load" >&5
8807 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8808 if test "${ac_cv_func_shl_load+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 cat >conftest.$ac_ext <<_ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8817 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8819 #define shl_load innocuous_shl_load
8821 /* System header to define __stub macros and hopefully few prototypes,
8822 which can conflict with char shl_load (); below.
8823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8824 <limits.h> exists even on freestanding compilers. */
8827 # include <limits.h>
8829 # include <assert.h>
8834 /* Override any gcc2 internal prototype to avoid an error. */
8839 /* We use char because int might match the return type of a gcc2
8840 builtin and then its argument prototype would still apply. */
8842 /* The GNU C library defines this for functions which it implements
8843 to always fail with ENOSYS. Some functions are actually named
8844 something starting with __ and the normal name is an alias. */
8845 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8848 char (*f) () = shl_load;
8857 return f != shl_load;
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8866 grep -v '^ *+' conftest.er1 >conftest.err
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_func_shl_load=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_func_shl_load=no
8891 rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8894 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8896 if test $ac_cv_func_shl_load = yes; then
8897 lt_cv_dlopen="shl_load"
8899 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_check_lib_save_LIBS=$LIBS
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Override any gcc2 internal prototype to avoid an error. */
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag"
8938 || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_lib_dld_shl_load=yes
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8955 ac_cv_lib_dld_shl_load=no
8957 rm -f conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8963 if test $ac_cv_lib_dld_shl_load = yes; then
8964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8966 echo "$as_me:$LINENO: checking for dlopen" >&5
8967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8968 if test "${ac_cv_func_dlopen+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 cat >conftest.$ac_ext <<_ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8979 #define dlopen innocuous_dlopen
8981 /* System header to define __stub macros and hopefully few prototypes,
8982 which can conflict with char dlopen (); below.
8983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8984 <limits.h> exists even on freestanding compilers. */
8987 # include <limits.h>
8989 # include <assert.h>
8994 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9002 /* The GNU C library defines this for functions which it implements
9003 to always fail with ENOSYS. Some functions are actually named
9004 something starting with __ and the normal name is an alias. */
9005 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9008 char (*f) () = dlopen;
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>conftest.er1
9026 grep -v '^ *+' conftest.er1 >conftest.err
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag"
9032 || test ! -s conftest.err'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; } &&
9038 { ac_try='test -s conftest$ac_exeext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_func_dlopen=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_cv_func_dlopen=no
9051 rm -f conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9054 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9055 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9056 if test $ac_cv_func_dlopen = yes; then
9057 lt_cv_dlopen="dlopen"
9059 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 ac_check_lib_save_LIBS=$LIBS
9066 cat >conftest.$ac_ext <<_ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9073 /* Override any gcc2 internal prototype to avoid an error. */
9077 /* We use char because int might match the return type of a gcc2
9078 builtin and then its argument prototype would still apply. */
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9092 grep -v '^ *+' conftest.er1 >conftest.err
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_cv_lib_dl_dlopen=yes
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 ac_cv_lib_dl_dlopen=no
9117 rm -f conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 LIBS=$ac_check_lib_save_LIBS
9121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9123 if test $ac_cv_lib_dl_dlopen = yes; then
9124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9126 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 ac_check_lib_save_LIBS=$LIBS
9133 cat >conftest.$ac_ext <<_ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9140 /* Override any gcc2 internal prototype to avoid an error. */
9144 /* We use char because int might match the return type of a gcc2
9145 builtin and then its argument prototype would still apply. */
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>conftest.er1
9159 grep -v '^ *+' conftest.er1 >conftest.err
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest$ac_exeext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_cv_lib_svld_dlopen=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_cv_lib_svld_dlopen=no
9184 rm -f conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186 LIBS=$ac_check_lib_save_LIBS
9188 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9190 if test $ac_cv_lib_svld_dlopen = yes; then
9191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9193 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 ac_check_lib_save_LIBS=$LIBS
9200 cat >conftest.$ac_ext <<_ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9207 /* Override any gcc2 internal prototype to avoid an error. */
9211 /* We use char because int might match the return type of a gcc2
9212 builtin and then its argument prototype would still apply. */
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224 (eval $ac_link) 2>conftest.er1
9226 grep -v '^ *+' conftest.er1 >conftest.err
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -z "$ac_c_werror_flag"
9232 || test ! -s conftest.err'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest$ac_exeext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 ac_cv_lib_dld_dld_link=yes
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_cv_lib_dld_dld_link=no
9251 rm -f conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 LIBS=$ac_check_lib_save_LIBS
9255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9257 if test $ac_cv_lib_dld_dld_link = yes; then
9258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9279 if test "x$lt_cv_dlopen" != xno; then
9285 case $lt_cv_dlopen in
9287 save_CPPFLAGS="$CPPFLAGS"
9288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9290 save_LDFLAGS="$LDFLAGS"
9291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9294 LIBS="$lt_cv_dlopen_libs $LIBS"
9296 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9297 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9298 if test "${lt_cv_dlopen_self+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 if test "$cross_compiling" = yes; then :
9302 lt_cv_dlopen_self=cross
9304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9305 lt_status=$lt_dlunknown
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9307 "configure"
9308 #include "confdefs.h"
9317 # define LT_DLGLOBAL RTLD_GLOBAL
9320 # define LT_DLGLOBAL DL_GLOBAL
9322 # define LT_DLGLOBAL 0
9326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9327 find out it does not work in some platform. */
9328 #ifndef LT_DLLAZY_OR_NOW
9330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9333 # define LT_DLLAZY_OR_NOW DL_LAZY
9336 # define LT_DLLAZY_OR_NOW RTLD_NOW
9339 # define LT_DLLAZY_OR_NOW DL_NOW
9341 # define LT_DLLAZY_OR_NOW 0
9349 extern "C" void exit (int);
9352 void fnord() { int i=42;}
9355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9356 int status = $lt_dlunknown;
9360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9362 /* dlclose (self); */
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371 (eval $ac_link) 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9375 (./conftest; exit; ) >&5 2>/dev/null
9378 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9379 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9380 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9383 # compilation failed
9384 lt_cv_dlopen_self=no
9391 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9392 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9394 if test "x$lt_cv_dlopen_self" = xyes; then
9395 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9396 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9397 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9398 if test "${lt_cv_dlopen_self_static+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 if test "$cross_compiling" = yes; then :
9402 lt_cv_dlopen_self_static=cross
9404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9405 lt_status=$lt_dlunknown
9406 cat > conftest.$ac_ext <<EOF
9407 #line 9407 "configure"
9408 #include "confdefs.h"
9417 # define LT_DLGLOBAL RTLD_GLOBAL
9420 # define LT_DLGLOBAL DL_GLOBAL
9422 # define LT_DLGLOBAL 0
9426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9427 find out it does not work in some platform. */
9428 #ifndef LT_DLLAZY_OR_NOW
9430 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9433 # define LT_DLLAZY_OR_NOW DL_LAZY
9436 # define LT_DLLAZY_OR_NOW RTLD_NOW
9439 # define LT_DLLAZY_OR_NOW DL_NOW
9441 # define LT_DLLAZY_OR_NOW 0
9449 extern "C" void exit (int);
9452 void fnord() { int i=42;}
9455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9456 int status = $lt_dlunknown;
9460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9461 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9462 /* dlclose (self); */
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9475 (./conftest; exit; ) >&5 2>/dev/null
9478 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9479 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9480 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9483 # compilation failed
9484 lt_cv_dlopen_self_static=no
9491 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9492 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9495 CPPFLAGS="$save_CPPFLAGS"
9496 LDFLAGS="$save_LDFLAGS"
9501 case $lt_cv_dlopen_self in
9502 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9503 *) enable_dlopen_self=unknown ;;
9506 case $lt_cv_dlopen_self_static in
9507 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9508 *) enable_dlopen_self_static=unknown ;;
9513 # Report which library types will actually be built
9514 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9515 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9516 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9517 echo "${ECHO_T}$can_build_shared" >&6
9519 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9520 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9521 test "$can_build_shared" = "no" && enable_shared=no
9523 # On AIX, shared libraries and static libraries use the same namespace, and
9524 # are all built from PIC.
9527 test "$enable_shared" = yes && enable_static=no
9528 if test -n "$RANLIB"; then
9529 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9530 postinstall_cmds='$RANLIB $lib'
9535 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9536 test "$enable_shared" = yes && enable_static=no
9540 echo "$as_me:$LINENO: result: $enable_shared" >&5
9541 echo "${ECHO_T}$enable_shared" >&6
9543 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9544 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9545 # Make sure either enable_shared or enable_static is yes.
9546 test "$enable_shared" = yes || enable_static=yes
9547 echo "$as_me:$LINENO: result: $enable_static" >&5
9548 echo "${ECHO_T}$enable_static" >&6
9550 # The else clause should only fire when bootstrapping the
9551 # libtool distribution, otherwise you forgot to ship ltmain.sh
9552 # with your package, and you will get complaints that there are
9553 # no rules to generate ltmain.sh.
9554 if test -f "$ltmain"; then
9555 # See if we are running on zsh, and set the options which allow our commands through
9556 # without removal of \ escapes.
9557 if test -n "${ZSH_VERSION+set}" ; then
9558 setopt NO_GLOB_SUBST
9560 # Now quote all the things that may contain metacharacters while being
9561 # careful not to overquote the AC_SUBSTed values. We take copies of the
9562 # variables and quote the copies for generation of the libtool script.
9563 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9565 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9566 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9567 deplibs_check_method reload_flag reload_cmds need_locks \
9568 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9569 lt_cv_sys_global_symbol_to_c_name_address \
9570 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9571 old_postinstall_cmds old_postuninstall_cmds \
9575 lt_prog_compiler_wl \
9576 lt_prog_compiler_pic \
9577 lt_prog_compiler_static \
9578 lt_prog_compiler_no_builtin_flag \
9579 export_dynamic_flag_spec \
9580 thread_safe_flag_spec \
9581 whole_archive_flag_spec \
9582 enable_shared_with_static_runtimes \
9584 old_archive_from_new_cmds \
9589 compiler_lib_search_path \
9591 archive_expsym_cmds \
9593 postuninstall_cmds \
9594 old_archive_from_expsyms_cmds \
9595 allow_undefined_flag \
9597 export_symbols_cmds \
9598 hardcode_libdir_flag_spec \
9599 hardcode_libdir_flag_spec_ld \
9600 hardcode_libdir_separator \
9601 hardcode_automatic \
9603 module_expsym_cmds \
9604 lt_cv_prog_compiler_c_o \
9609 old_archive_cmds | \
9610 old_archive_from_new_cmds | \
9612 archive_expsym_cmds | \
9614 module_expsym_cmds | \
9615 old_archive_from_expsyms_cmds | \
9616 export_symbols_cmds | \
9617 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9618 postinstall_cmds | postuninstall_cmds | \
9619 old_postinstall_cmds | old_postuninstall_cmds | \
9620 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9621 # Double-quote double-evaled strings.
9622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9631 *'\$0 --fallback-echo"')
9632 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9637 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9639 { echo "$as_me:$LINENO: creating $ofile" >&5
9640 echo "$as_me: creating $ofile" >&6;}
9642 cat <<__EOF__ >> "$cfgfile"
9645 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9646 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9647 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9649 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9650 # Free Software Foundation, Inc.
9652 # This file is part of GNU Libtool:
9653 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9655 # This program is free software; you can redistribute it and/or modify
9656 # it under the terms of the GNU General Public License as published by
9657 # the Free Software Foundation; either version 2 of the License, or
9658 # (at your option) any later version.
9660 # This program is distributed in the hope that it will be useful, but
9661 # WITHOUT ANY WARRANTY; without even the implied warranty of
9662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9663 # General Public License for more details.
9665 # You should have received a copy of the GNU General Public License
9666 # along with this program; if not, write to the Free Software
9667 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9669 # As a special exception to the GNU General Public License, if you
9670 # distribute this file as part of a program that contains a
9671 # configuration script generated by Autoconf, you may include it under
9672 # the same distribution terms that you use for the rest of that program.
9674 # A sed program that does not truncate output.
9677 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9678 Xsed="$SED -e 1s/^X//"
9680 # The HP-UX ksh and POSIX shell print the target directory to stdout
9682 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9684 # The names of the tagged configurations supported by this script.
9687 # ### BEGIN LIBTOOL CONFIG
9689 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9691 # Shell to use when invoking shell scripts.
9694 # Whether or not to build shared libraries.
9695 build_libtool_libs=$enable_shared
9697 # Whether or not to build static libraries.
9698 build_old_libs=$enable_static
9700 # Whether or not to add -lc for building shared libraries.
9701 build_libtool_need_lc=$archive_cmds_need_lc
9703 # Whether or not to disallow shared libs when runtime libs are static
9704 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9706 # Whether or not to optimize for fast installation.
9707 fast_install=$enable_fast_install
9710 host_alias=$host_alias
9715 build_alias=$build_alias
9719 # An echo program that does not interpret backslashes.
9724 AR_FLAGS=$lt_AR_FLAGS
9729 # LTCC compiler flags.
9730 LTCFLAGS=$lt_LTCFLAGS
9732 # A language-specific compiler.
9735 # Is the compiler the GNU C compiler?
9741 # The linker used to build libraries.
9744 # Whether we need hard or soft links.
9747 # A BSD-compatible nm program.
9750 # A symbol stripping program
9753 # Used to examine libraries when file_magic_cmd begins "file"
9754 MAGIC_CMD=$MAGIC_CMD
9756 # Used on cygwin: DLL creation program.
9759 # Used on cygwin: object dumper.
9762 # Used on cygwin: assembler.
9765 # The name of the directory that contains temporary libtool files.
9768 # How to create reloadable object files.
9769 reload_flag=$lt_reload_flag
9770 reload_cmds=$lt_reload_cmds
9772 # How to pass a linker flag through the compiler.
9773 wl=$lt_lt_prog_compiler_wl
9775 # Object file suffix (normally "o").
9778 # Old archive suffix (normally "a").
9781 # Shared library suffix (normally ".so").
9782 shrext_cmds='$shrext_cmds'
9784 # Executable file suffix (normally "").
9787 # Additional compiler flags for building library objects.
9788 pic_flag=$lt_lt_prog_compiler_pic
9791 # What is the maximum length of a command?
9792 max_cmd_len=$lt_cv_sys_max_cmd_len
9794 # Does compiler simultaneously support -c and -o options?
9795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9797 # Must we lock files when doing compilation?
9798 need_locks=$lt_need_locks
9800 # Do we need the lib prefix for modules?
9801 need_lib_prefix=$need_lib_prefix
9803 # Do we need a version for libraries?
9804 need_version=$need_version
9806 # Whether dlopen is supported.
9807 dlopen_support=$enable_dlopen
9809 # Whether dlopen of programs is supported.
9810 dlopen_self=$enable_dlopen_self
9812 # Whether dlopen of statically linked programs is supported.
9813 dlopen_self_static=$enable_dlopen_self_static
9815 # Compiler flag to prevent dynamic linking.
9816 link_static_flag=$lt_lt_prog_compiler_static
9818 # Compiler flag to turn off builtin functions.
9819 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9821 # Compiler flag to allow reflexive dlopens.
9822 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9824 # Compiler flag to generate shared objects directly from archives.
9825 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9827 # Compiler flag to generate thread-safe objects.
9828 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9830 # Library versioning type.
9831 version_type=$version_type
9833 # Format of library name prefix.
9834 libname_spec=$lt_libname_spec
9836 # List of archive names. First name is the real one, the rest are links.
9837 # The last name is the one that the linker finds with -lNAME.
9838 library_names_spec=$lt_library_names_spec
9840 # The coded name of the library, if different from the real name.
9841 soname_spec=$lt_soname_spec
9843 # Commands used to build and install an old-style archive.
9845 old_archive_cmds=$lt_old_archive_cmds
9846 old_postinstall_cmds=$lt_old_postinstall_cmds
9847 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9849 # Create an old-style archive from a shared archive.
9850 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9852 # Create a temporary old-style archive to link instead of a shared archive.
9853 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9855 # Commands used to build and install a shared archive.
9856 archive_cmds=$lt_archive_cmds
9857 archive_expsym_cmds=$lt_archive_expsym_cmds
9858 postinstall_cmds=$lt_postinstall_cmds
9859 postuninstall_cmds=$lt_postuninstall_cmds
9861 # Commands used to build a loadable module (assumed same as above if empty)
9862 module_cmds=$lt_module_cmds
9863 module_expsym_cmds=$lt_module_expsym_cmds
9865 # Commands to strip libraries.
9866 old_striplib=$lt_old_striplib
9867 striplib=$lt_striplib
9869 # Dependencies to place before the objects being linked to create a
9871 predep_objects=$lt_predep_objects
9873 # Dependencies to place after the objects being linked to create a
9875 postdep_objects=$lt_postdep_objects
9877 # Dependencies to place before the objects being linked to create a
9881 # Dependencies to place after the objects being linked to create a
9883 postdeps=$lt_postdeps
9885 # The library search path used internally by the compiler when linking
9887 compiler_lib_search_path=$lt_compiler_lib_search_path
9889 # Method to check whether dependent libraries are shared objects.
9890 deplibs_check_method=$lt_deplibs_check_method
9892 # Command to use when deplibs_check_method == file_magic.
9893 file_magic_cmd=$lt_file_magic_cmd
9895 # Flag that allows shared libraries with undefined symbols to be built.
9896 allow_undefined_flag=$lt_allow_undefined_flag
9898 # Flag that forces no undefined symbols.
9899 no_undefined_flag=$lt_no_undefined_flag
9901 # Commands used to finish a libtool library installation in a directory.
9902 finish_cmds=$lt_finish_cmds
9904 # Same as above, but a single script fragment to be evaled but not shown.
9905 finish_eval=$lt_finish_eval
9907 # Take the output of nm and produce a listing of raw symbols and C names.
9908 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9910 # Transform the output of nm in a proper C declaration
9911 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9913 # Transform the output of nm in a C name address pair
9914 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9916 # This is the shared library runtime path variable.
9917 runpath_var=$runpath_var
9919 # This is the shared library path variable.
9920 shlibpath_var=$shlibpath_var
9922 # Is shlibpath searched before the hard-coded library search path?
9923 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9925 # How to hardcode a shared library path into an executable.
9926 hardcode_action=$hardcode_action
9928 # Whether we should hardcode library paths into libraries.
9929 hardcode_into_libs=$hardcode_into_libs
9931 # Flag to hardcode \$libdir into a binary during linking.
9932 # This must work even if \$libdir does not exist.
9933 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9935 # If ld is used when linking, flag to hardcode \$libdir into
9936 # a binary during linking. This must work even if \$libdir does
9938 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9940 # Whether we need a single -rpath flag with a separated argument.
9941 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9943 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9945 hardcode_direct=$hardcode_direct
9947 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9949 hardcode_minus_L=$hardcode_minus_L
9951 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9952 # the resulting binary.
9953 hardcode_shlibpath_var=$hardcode_shlibpath_var
9955 # Set to yes if building a shared library automatically hardcodes DIR into the library
9956 # and all subsequent libraries and executables linked against it.
9957 hardcode_automatic=$hardcode_automatic
9959 # Variables whose values should be saved in libtool wrapper scripts and
9960 # restored at relink time.
9961 variables_saved_for_relink="$variables_saved_for_relink"
9963 # Whether libtool must link a program against all its dependency libraries.
9964 link_all_deplibs=$link_all_deplibs
9966 # Compile-time system search path for libraries
9967 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9969 # Run-time system search path for libraries
9970 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9972 # Fix the shell variable \$srcfile for the compiler.
9973 fix_srcfile_path="$fix_srcfile_path"
9975 # Set to yes if exported symbols are required.
9976 always_export_symbols=$always_export_symbols
9978 # The commands to list exported symbols.
9979 export_symbols_cmds=$lt_export_symbols_cmds
9981 # The commands to extract the exported symbol list from a shared archive.
9982 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9984 # Symbols that should not be listed in the preloaded symbols.
9985 exclude_expsyms=$lt_exclude_expsyms
9987 # Symbols that must always be exported.
9988 include_expsyms=$lt_include_expsyms
9990 # ### END LIBTOOL CONFIG
9997 cat <<\EOF >> "$cfgfile"
9999 # AIX sometimes has problems with the GCC collect2 program. For some
10000 # reason, if we set the COLLECT_NAMES environment variable, the problems
10001 # vanish in a puff of smoke.
10002 if test "X${COLLECT_NAMES+set}" != Xset; then
10004 export COLLECT_NAMES
10010 # We use sed instead of cat because bash on DJGPP gets confused if
10011 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10012 # text mode, it properly converts lines to CR/LF. This bash problem
10013 # is reportedly fixed, but why not run on old versions too?
10014 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10016 mv -f "$cfgfile" "$ofile" || \
10017 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10021 # If there is no Makefile yet, we rely on a make rule to execute
10022 # `config.status --recheck' to rerun these tests and create the
10023 # libtool script then.
10024 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10025 if test -f "$ltmain_in"; then
10026 test -f Makefile && make "$ltmain"
10032 ac_cpp='$CPP $CPPFLAGS'
10033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10040 # Check whether --with-tags or --without-tags was given.
10041 if test "${with_tags+set}" = set; then
10042 withval="$with_tags"
10043 tagnames="$withval"
10046 if test -f "$ltmain" && test -n "$tagnames"; then
10047 if test ! -f "${ofile}"; then
10048 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10049 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10052 if test -z "$LTCC"; then
10053 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10054 if test -z "$LTCC"; then
10055 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10056 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10059 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10062 if test -z "$LTCFLAGS"; then
10063 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10066 # Extract list of available tagged configurations in $ofile.
10067 # Note that this assumes the entire list is on one line.
10068 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10071 for tagname in $tagnames; do
10073 # Check whether tagname contains only valid characters
10074 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10076 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10077 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10078 { (exit 1); exit 1; }; }
10082 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10084 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10085 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10086 { (exit 1); exit 1; }; }
10089 # Update the list of available tags.
10090 if test -n "$tagname"; then
10091 echo appending configuration tag \"$tagname\" to $ofile
10095 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10096 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10097 (test "X$CXX" != "Xg++"))) ; then
10099 ac_cpp='$CXXCPP $CPPFLAGS'
10100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10107 archive_cmds_need_lc_CXX=no
10108 allow_undefined_flag_CXX=
10109 always_export_symbols_CXX=no
10110 archive_expsym_cmds_CXX=
10111 export_dynamic_flag_spec_CXX=
10112 hardcode_direct_CXX=no
10113 hardcode_libdir_flag_spec_CXX=
10114 hardcode_libdir_flag_spec_ld_CXX=
10115 hardcode_libdir_separator_CXX=
10116 hardcode_minus_L_CXX=no
10117 hardcode_shlibpath_var_CXX=unsupported
10118 hardcode_automatic_CXX=no
10120 module_expsym_cmds_CXX=
10121 link_all_deplibs_CXX=unknown
10122 old_archive_cmds_CXX=$old_archive_cmds
10123 no_undefined_flag_CXX=
10124 whole_archive_flag_spec_CXX=
10125 enable_shared_with_static_runtimes_CXX=no
10127 # Dependencies to place before and after the object being linked:
10128 predep_objects_CXX=
10129 postdep_objects_CXX=
10132 compiler_lib_search_path_CXX=
10134 # Source file extension for C++ test sources.
10137 # Object file extension for compiled C++ test sources.
10141 # Code to be used in simple compile tests
10142 lt_simple_compile_test_code="int some_variable = 0;\n"
10144 # Code to be used in simple link tests
10145 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10147 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10149 # If no C compiler was specified, use CC.
10152 # If no C compiler flags were specified, use CFLAGS.
10153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10155 # Allow CC to be a program name with arguments.
10159 # save warnings/boilerplate of simple test code
10160 ac_outfile=conftest.$ac_objext
10161 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10162 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10163 _lt_compiler_boilerplate=`cat conftest.err`
10166 ac_outfile=conftest.$ac_objext
10167 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10168 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10169 _lt_linker_boilerplate=`cat conftest.err`
10173 # Allow CC to be a program name with arguments.
10178 lt_save_with_gnu_ld=$with_gnu_ld
10179 lt_save_path_LD=$lt_cv_path_LD
10180 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10181 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10183 $as_unset lt_cv_prog_gnu_ld
10185 if test -n "${lt_cv_path_LDCXX+set}"; then
10186 lt_cv_path_LD=$lt_cv_path_LDCXX
10188 $as_unset lt_cv_path_LD
10190 test -z "${LDCXX+set}" || LD=$LDCXX
10194 for cc_temp in $compiler""; do
10196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10205 # We don't want -fno-exception wen compiling C++ code, so set the
10206 # no_builtin_flag separately
10207 if test "$GXX" = yes; then
10208 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10210 lt_prog_compiler_no_builtin_flag_CXX=
10213 if test "$GXX" = yes; then
10214 # Set up default GNU C++ configuration
10217 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10218 if test "${with_gnu_ld+set}" = set; then
10219 withval="$with_gnu_ld"
10220 test "$withval" = no || with_gnu_ld=yes
10225 if test "$GCC" = yes; then
10226 # Check if gcc -print-prog-name=ld gives a path.
10227 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10228 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10231 # gcc leaves a trailing carriage return which upsets mingw
10232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10237 # Accept absolute paths.
10239 re_direlt='/[^/][^/]*/\.\./'
10240 # Canonicalize the pathname of ld
10241 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10242 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10243 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10245 test -z "$LD" && LD="$ac_prog"
10248 # If it fails, then pretend we aren't using GCC.
10252 # If it is relative, then search for the first ld in PATH.
10253 with_gnu_ld=unknown
10256 elif test "$with_gnu_ld" = yes; then
10257 echo "$as_me:$LINENO: checking for GNU ld" >&5
10258 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10260 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10261 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10263 if test "${lt_cv_path_LD+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 if test -z "$LD"; then
10267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10268 for ac_dir in $PATH; do
10270 test -z "$ac_dir" && ac_dir=.
10271 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10272 lt_cv_path_LD="$ac_dir/$ac_prog"
10273 # Check to see if the program is GNU ld. I'd rather use --version,
10274 # but apparently some variants of GNU ld only accept -v.
10275 # Break only if it was the GNU/non-GNU ld that we prefer.
10276 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10277 *GNU* | *'with BFD'*)
10278 test "$with_gnu_ld" != no && break
10281 test "$with_gnu_ld" != yes && break
10288 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10292 LD="$lt_cv_path_LD"
10293 if test -n "$LD"; then
10294 echo "$as_me:$LINENO: result: $LD" >&5
10295 echo "${ECHO_T}$LD" >&6
10297 echo "$as_me:$LINENO: result: no" >&5
10298 echo "${ECHO_T}no" >&6
10300 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10301 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10302 { (exit 1); exit 1; }; }
10303 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10304 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10305 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10309 case `$LD -v 2>&1 </dev/null` in
10310 *GNU* | *'with BFD'*)
10311 lt_cv_prog_gnu_ld=yes
10314 lt_cv_prog_gnu_ld=no
10318 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10319 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10320 with_gnu_ld=$lt_cv_prog_gnu_ld
10324 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10325 # archiving commands below assume that GNU ld is being used.
10326 if test "$with_gnu_ld" = yes; then
10327 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328 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'
10330 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10331 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10333 # If archive_cmds runs LD, not CC, wlarc should be empty
10334 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10335 # investigate it a little bit more. (MM)
10338 # ancient GNU ld didn't support --whole-archive et. al.
10339 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10340 grep 'no-whole-archive' > /dev/null; then
10341 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10343 whole_archive_flag_spec_CXX=
10349 # A generic and very simple default shared library creation
10350 # command for GNU C++ for the case where it uses the native
10351 # linker, instead of GNU ld. If possible, this setting should
10352 # overridden to take advantage of the native linker features on
10353 # the platform it is being used on.
10354 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10357 # Commands to make compiler produce verbose output that lists
10358 # what "hidden" libraries, object files and flags are used when
10359 # linking a shared library.
10360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10368 # PORTME: fill in a description of your system's C++ link characteristics
10369 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10370 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10374 # FIXME: insert proper C++ library support
10378 if test "$host_cpu" = ia64; then
10379 # On IA64, the linker does run time linking by default, so we don't
10380 # have to do anything special.
10381 aix_use_runtimelinking=no
10382 exp_sym_flag='-Bexport'
10385 aix_use_runtimelinking=no
10387 # Test if we are trying to use run time linking or normal
10388 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10389 # need to do runtime linking.
10390 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10391 for ld_flag in $LDFLAGS; do
10394 aix_use_runtimelinking=yes
10402 exp_sym_flag='-bexport'
10403 no_entry_flag='-bnoentry'
10406 # When large executables or shared objects are built, AIX ld can
10407 # have problems creating the table of contents. If linking a library
10408 # or program results in "error TOC overflow" add -mminimal-toc to
10409 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10410 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10412 archive_cmds_CXX=''
10413 hardcode_direct_CXX=yes
10414 hardcode_libdir_separator_CXX=':'
10415 link_all_deplibs_CXX=yes
10417 if test "$GXX" = yes; then
10418 case $host_os in aix4.[012]|aix4.[012].*)
10419 # We only want to do this on AIX 4.2 and lower, the check
10420 # below for broken collect2 doesn't work under 4.3+
10421 collect2name=`${CC} -print-prog-name=collect2`
10422 if test -f "$collect2name" && \
10423 strings "$collect2name" | grep resolve_lib_name >/dev/null
10425 # We have reworked collect2
10426 hardcode_direct_CXX=yes
10428 # We have old collect2
10429 hardcode_direct_CXX=unsupported
10430 # It fails to find uninstalled libraries when the uninstalled
10431 # path is not listed in the libpath. Setting hardcode_minus_L
10432 # to unsupported forces relinking
10433 hardcode_minus_L_CXX=yes
10434 hardcode_libdir_flag_spec_CXX='-L$libdir'
10435 hardcode_libdir_separator_CXX=
10439 shared_flag='-shared'
10440 if test "$aix_use_runtimelinking" = yes; then
10441 shared_flag="$shared_flag "'${wl}-G'
10445 if test "$host_cpu" = ia64; then
10446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10447 # chokes on -Wl,-G. The following line is correct:
10450 if test "$aix_use_runtimelinking" = yes; then
10451 shared_flag='${wl}-G'
10453 shared_flag='${wl}-bM:SRE'
10458 # It seems that -bexpall does not export symbols beginning with
10459 # underscore (_), so it is better to generate a list of symbols to export.
10460 always_export_symbols_CXX=yes
10461 if test "$aix_use_runtimelinking" = yes; then
10462 # Warning - without using the other runtime loading flags (-brtl),
10463 # -berok will link without error, but may produce a broken library.
10464 allow_undefined_flag_CXX='-berok'
10465 # Determine the default libpath from the value encoded in an empty executable.
10466 cat >conftest.$ac_ext <<_ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483 (eval $ac_link) 2>conftest.er1
10485 grep -v '^ *+' conftest.er1 >conftest.err
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try='test -z "$ac_cxx_werror_flag"
10491 || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10506 # Check for a 64-bit object if we didn't find anything.
10507 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; }
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10514 rm -f conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10518 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10520 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"
10522 if test "$host_cpu" = ia64; then
10523 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10524 allow_undefined_flag_CXX="-z nodefs"
10525 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"
10527 # Determine the default libpath from the value encoded in an empty executable.
10528 cat >conftest.$ac_ext <<_ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545 (eval $ac_link) 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -z "$ac_cxx_werror_flag"
10553 || test ! -s conftest.err'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest$ac_exeext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10568 # Check for a 64-bit object if we didn't find anything.
10569 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; }
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10576 rm -f conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10580 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10581 # Warning - without using the other run time loading flags,
10582 # -berok will link without error, but may produce a broken library.
10583 no_undefined_flag_CXX=' ${wl}-bernotok'
10584 allow_undefined_flag_CXX=' ${wl}-berok'
10585 # Exported symbols can be pulled into shared objects from archives
10586 whole_archive_flag_spec_CXX='$convenience'
10587 archive_cmds_need_lc_CXX=yes
10588 # This is similar to how AIX traditionally builds its shared libraries.
10589 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'
10595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10596 allow_undefined_flag_CXX=unsupported
10597 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10598 # support --undefined. This deserves some investigation. FIXME
10599 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10606 case $cc_basename in
10608 # FIXME: insert proper C++ library support
10614 cygwin* | mingw* | pw32*)
10615 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10616 # as there is no search path for DLLs.
10617 hardcode_libdir_flag_spec_CXX='-L$libdir'
10618 allow_undefined_flag_CXX=unsupported
10619 always_export_symbols_CXX=no
10620 enable_shared_with_static_runtimes_CXX=yes
10622 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10623 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'
10624 # If the export-symbols file already is a .def file (1st line
10625 # is EXPORTS), use it as is; otherwise, prepend...
10626 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10627 cp $export_symbols $output_objdir/$soname.def;
10629 echo EXPORTS > $output_objdir/$soname.def;
10630 cat $export_symbols >> $output_objdir/$soname.def;
10632 $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'
10637 darwin* | rhapsody*)
10639 rhapsody* | darwin1.[012])
10640 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10643 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10644 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10646 case ${MACOSX_DEPLOYMENT_TARGET} in
10648 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10651 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10657 archive_cmds_need_lc_CXX=no
10658 hardcode_direct_CXX=no
10659 hardcode_automatic_CXX=yes
10660 hardcode_shlibpath_var_CXX=unsupported
10661 whole_archive_flag_spec_CXX=''
10662 link_all_deplibs_CXX=yes
10664 if test "$GXX" = yes ; then
10665 lt_int_apple_cc_single_mod=no
10666 output_verbose_link_cmd='echo'
10667 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10668 lt_int_apple_cc_single_mod=yes
10670 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10671 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10673 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'
10675 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10676 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10677 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10678 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}'
10680 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}'
10682 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}'
10684 case $cc_basename in
10686 output_verbose_link_cmd='echo'
10687 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'
10688 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10689 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10690 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}'
10691 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}'
10701 case $cc_basename in
10703 # FIXME: insert proper C++ library support
10707 # Green Hills C++ Compiler
10708 # FIXME: insert proper C++ library support
10712 # FIXME: insert proper C++ library support
10718 # C++ shared libraries reported to be fairly broken before switch to ELF
10722 archive_cmds_need_lc_CXX=no
10724 freebsd* | kfreebsd*-gnu | dragonfly*)
10725 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10732 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10733 hardcode_libdir_separator_CXX=:
10734 export_dynamic_flag_spec_CXX='${wl}-E'
10735 hardcode_direct_CXX=yes
10736 hardcode_minus_L_CXX=yes # Not in the search PATH,
10737 # but as the default
10738 # location of the library.
10740 case $cc_basename in
10742 # FIXME: insert proper C++ library support
10746 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'
10747 # Commands to make compiler produce verbose output that lists
10748 # what "hidden" libraries, object files and flags are used when
10749 # linking a shared library.
10751 # There doesn't appear to be a way to prevent this compiler from
10752 # explicitly linking system object files so we need to strip them
10753 # from the output so that they don't get included in the library
10755 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'
10758 if test "$GXX" = yes; then
10759 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'
10761 # FIXME: insert proper C++ library support
10768 if test $with_gnu_ld = no; then
10769 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10770 hardcode_libdir_separator_CXX=:
10774 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10777 export_dynamic_flag_spec_CXX='${wl}-E'
10783 hardcode_direct_CXX=no
10784 hardcode_shlibpath_var_CXX=no
10787 hardcode_direct_CXX=yes
10788 hardcode_minus_L_CXX=yes # Not in the search PATH,
10789 # but as the default
10790 # location of the library.
10794 case $cc_basename in
10796 # FIXME: insert proper C++ library support
10802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10805 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10808 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10811 # Commands to make compiler produce verbose output that lists
10812 # what "hidden" libraries, object files and flags are used when
10813 # linking a shared library.
10815 # There doesn't appear to be a way to prevent this compiler from
10816 # explicitly linking system object files so we need to strip them
10817 # from the output so that they don't get included in the library
10819 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'
10822 if test "$GXX" = yes; then
10823 if test $with_gnu_ld = no; then
10826 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10829 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10832 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'
10837 # FIXME: insert proper C++ library support
10844 hardcode_direct_CXX=no
10845 hardcode_shlibpath_var_CXX=no
10846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10847 export_dynamic_flag_spec_CXX='${wl}-E'
10848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10849 # Instead, shared libraries are loaded at an image base (0x10000000 by
10850 # default) and relocated if they conflict, which is a slow very memory
10851 # consuming and fragmenting process. To avoid this, we pick a random,
10852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10854 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'
10855 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'
10858 case $cc_basename in
10861 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'
10863 # Archives containing C++ object files must be created using
10864 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10865 # necessary to make sure instantiated templates are included
10867 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10870 if test "$GXX" = yes; then
10871 if test "$with_gnu_ld" = no; then
10872 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'
10874 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'
10877 link_all_deplibs_CXX=yes
10880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10881 hardcode_libdir_separator_CXX=:
10884 case $cc_basename in
10886 # Kuck and Associates, Inc. (KAI) C++ Compiler
10888 # KCC will only create a shared library if the output file
10889 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10890 # to its proper name (with version) after linking.
10891 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'
10892 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'
10893 # Commands to make compiler produce verbose output that lists
10894 # what "hidden" libraries, object files and flags are used when
10895 # linking a shared library.
10897 # There doesn't appear to be a way to prevent this compiler from
10898 # explicitly linking system object files so we need to strip them
10899 # from the output so that they don't get included in the library
10901 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'
10903 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10906 # Archives containing C++ object files must be created using
10907 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10908 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10913 # version 8.0 and above of icpc choke on multiply defined symbols
10914 # if we add $predep_objects and $postdep_objects, however 7.1 and
10915 # earlier do not add the objects themselves.
10916 case `$CC -V 2>&1` in
10918 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10919 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'
10921 *) # Version 8.0 or newer
10924 ia64*) tmp_idyn=' -i_dynamic';;
10926 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10927 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'
10930 archive_cmds_need_lc_CXX=no
10931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10933 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10936 # Portland Group C++ compiler
10937 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10938 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'
10940 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10941 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10942 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'
10946 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947 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'
10949 runpath_var=LD_RUN_PATH
10950 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10951 hardcode_libdir_separator_CXX=:
10953 # Commands to make compiler produce verbose output that lists
10954 # what "hidden" libraries, object files and flags are used when
10955 # linking a shared library.
10957 # There doesn't appear to be a way to prevent this compiler from
10958 # explicitly linking system object files so we need to strip them
10959 # from the output so that they don't get included in the library
10961 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'
10966 # FIXME: insert proper C++ library support
10970 # FIXME: insert proper C++ library support
10974 case $cc_basename in
10976 # FIXME: insert proper C++ library support
10980 # FIXME: insert proper C++ library support
10986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10987 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10989 hardcode_libdir_flag_spec_CXX='-R$libdir'
10990 hardcode_direct_CXX=yes
10991 hardcode_shlibpath_var_CXX=no
10993 # Workaround some broken pre-1.5 toolchains
10994 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10997 # C++ shared libraries are fairly broken
11001 hardcode_direct_CXX=yes
11002 hardcode_shlibpath_var_CXX=no
11003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11005 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11006 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11007 export_dynamic_flag_spec_CXX='${wl}-E'
11008 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11010 output_verbose_link_cmd='echo'
11013 case $cc_basename in
11015 # Kuck and Associates, Inc. (KAI) C++ Compiler
11017 # KCC will only create a shared library if the output file
11018 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11019 # to its proper name (with version) after linking.
11020 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'
11022 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11023 hardcode_libdir_separator_CXX=:
11025 # Archives containing C++ object files must be created using
11026 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11027 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11031 # Rational C++ 2.4.1
11032 # FIXME: insert proper C++ library support
11036 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11037 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'
11039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11040 hardcode_libdir_separator_CXX=:
11042 # Commands to make compiler produce verbose output that lists
11043 # what "hidden" libraries, object files and flags are used when
11044 # linking a shared library.
11046 # There doesn't appear to be a way to prevent this compiler from
11047 # explicitly linking system object files so we need to strip them
11048 # from the output so that they don't get included in the library
11050 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'
11053 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11054 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11055 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'
11057 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11058 hardcode_libdir_separator_CXX=:
11060 # Commands to make compiler produce verbose output that lists
11061 # what "hidden" libraries, object files and flags are used when
11062 # linking a shared library.
11063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11066 # FIXME: insert proper C++ library support
11073 case $cc_basename in
11075 # Kuck and Associates, Inc. (KAI) C++ Compiler
11077 # KCC will only create a shared library if the output file
11078 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11079 # to its proper name (with version) after linking.
11080 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'
11082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11083 hardcode_libdir_separator_CXX=:
11085 # Archives containing C++ object files must be created using
11086 # the KAI C++ compiler.
11087 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11090 # Rational C++ 2.4.1
11091 # FIXME: insert proper C++ library support
11095 allow_undefined_flag_CXX=' -expect_unresolved \*'
11096 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'
11097 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11098 echo "-hidden">> $lib.exp~
11099 $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~
11102 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11103 hardcode_libdir_separator_CXX=:
11105 # Commands to make compiler produce verbose output that lists
11106 # what "hidden" libraries, object files and flags are used when
11107 # linking a shared library.
11109 # There doesn't appear to be a way to prevent this compiler from
11110 # explicitly linking system object files so we need to strip them
11111 # from the output so that they don't get included in the library
11113 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'
11116 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11118 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'
11120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11121 hardcode_libdir_separator_CXX=:
11123 # Commands to make compiler produce verbose output that lists
11124 # what "hidden" libraries, object files and flags are used when
11125 # linking a shared library.
11126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11129 # FIXME: insert proper C++ library support
11136 # FIXME: insert proper C++ library support
11140 case $cc_basename in
11143 # FIXME: insert proper C++ library support
11148 # FIXME: insert proper C++ library support
11152 # FIXME: insert proper C++ library support
11158 case $cc_basename in
11160 # Sun C++ 4.2, 5.x and Centerline C++
11161 archive_cmds_need_lc_CXX=yes
11162 no_undefined_flag_CXX=' -zdefs'
11163 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11164 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11165 $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'
11167 hardcode_libdir_flag_spec_CXX='-R$libdir'
11168 hardcode_shlibpath_var_CXX=no
11170 solaris2.[0-5] | solaris2.[0-5].*) ;;
11172 # The C++ compiler is used as linker so we must use $wl
11173 # flag to pass the commands to the underlying system
11174 # linker. We must also pass each convience library through
11175 # to the system linker between allextract/defaultextract.
11176 # The C++ compiler will combine linker options so we
11177 # cannot just pass the convience library names through
11179 # Supported since Solaris 2.6 (maybe 2.5.1?)
11180 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'
11183 link_all_deplibs_CXX=yes
11185 output_verbose_link_cmd='echo'
11187 # Archives containing C++ object files must be created using
11188 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11189 # necessary to make sure instantiated templates are included
11191 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11194 # Green Hills C++ Compiler
11195 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11197 # The C++ compiler must be used to create the archive.
11198 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11201 # GNU C++ compiler with Solaris linker
11202 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11203 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11204 if $CC --version | grep -v '^2\.7' > /dev/null; then
11205 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11206 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11207 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11209 # Commands to make compiler produce verbose output that lists
11210 # what "hidden" libraries, object files and flags are used when
11211 # linking a shared library.
11212 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11214 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11216 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11217 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11218 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11220 # Commands to make compiler produce verbose output that lists
11221 # what "hidden" libraries, object files and flags are used when
11222 # linking a shared library.
11223 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11226 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11231 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11232 no_undefined_flag_CXX='${wl}-z,text'
11233 archive_cmds_need_lc_CXX=no
11234 hardcode_shlibpath_var_CXX=no
11235 runpath_var='LD_RUN_PATH'
11237 case $cc_basename in
11239 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11240 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11243 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11244 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11248 sysv5* | sco3.2v5* | sco5v6*)
11249 # Note: We can NOT use -z defs as we might desire, because we do not
11250 # link with -lc, and that would cause any symbols used from libc to
11251 # always be unresolved, which means just about no library would
11252 # ever link correctly. If we're not using GNU ld we use -z text
11253 # though, which does catch some bad symbols but isn't as heavy-handed
11255 # For security reasons, it is highly recommended that you always
11256 # use absolute paths for naming shared libraries, and exclude the
11257 # DT_RUNPATH tag from executables and libraries. But doing so
11258 # requires that you compile everything twice, which is a pain.
11259 # So that behaviour is only enabled if SCOABSPATH is set to a
11260 # non-empty value in the environment. Most likely only useful for
11261 # creating official distributions of packages.
11262 # This is a hack until libtool officially supports absolute path
11263 # names for shared libraries.
11264 no_undefined_flag_CXX='${wl}-z,text'
11265 allow_undefined_flag_CXX='${wl}-z,nodefs'
11266 archive_cmds_need_lc_CXX=no
11267 hardcode_shlibpath_var_CXX=no
11268 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11269 hardcode_libdir_separator_CXX=':'
11270 link_all_deplibs_CXX=yes
11271 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11272 runpath_var='LD_RUN_PATH'
11274 case $cc_basename in
11276 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11280 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11281 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11286 case $cc_basename in
11288 # NonStop-UX NCC 3.20
11289 # FIXME: insert proper C++ library support
11293 # FIXME: insert proper C++ library support
11299 # FIXME: insert proper C++ library support
11303 # FIXME: insert proper C++ library support
11307 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11308 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11309 test "$ld_shlibs_CXX" = no && can_build_shared=no
11315 cat > conftest.$ac_ext <<EOF
11319 Foo (void) { a = 0; }
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; then
11330 # Parse the compiler output and extract the necessary
11331 # objects, libraries and library flags.
11333 # Sentinel used to keep track of whether or not we are before
11334 # the conftest object file.
11335 pre_test_object_deps_done=no
11337 # The `*' in the case matches for architectures that use `case' in
11338 # $output_verbose_cmd can trigger glob expansion during the loop
11339 # eval without this substitution.
11340 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11342 for p in `eval $output_verbose_link_cmd`; do
11346 # Some compilers place space between "-{L,R}" and the path.
11347 # Remove the space.
11348 if test $p = "-L" \
11349 || test $p = "-R"; then
11356 if test "$pre_test_object_deps_done" = no; then
11359 # Internal compiler library paths should come after those
11360 # provided the user. The postdeps already come after the
11361 # user supplied libs so there is no need to process them.
11362 if test -z "$compiler_lib_search_path_CXX"; then
11363 compiler_lib_search_path_CXX="${prev}${p}"
11365 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11368 # The "-l" case would never come before the object being
11369 # linked, so don't bother handling this case.
11372 if test -z "$postdeps_CXX"; then
11373 postdeps_CXX="${prev}${p}"
11375 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11381 # This assumes that the test object file only shows up
11382 # once in the compiler output.
11383 if test "$p" = "conftest.$objext"; then
11384 pre_test_object_deps_done=yes
11388 if test "$pre_test_object_deps_done" = no; then
11389 if test -z "$predep_objects_CXX"; then
11390 predep_objects_CXX="$p"
11392 predep_objects_CXX="$predep_objects_CXX $p"
11395 if test -z "$postdep_objects_CXX"; then
11396 postdep_objects_CXX="$p"
11398 postdep_objects_CXX="$postdep_objects_CXX $p"
11403 *) ;; # Ignore the rest.
11411 echo "libtool.m4: error: problem compiling CXX test program"
11414 $rm -f confest.$objext
11416 # PORTME: override above test on systems where it is broken
11419 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11420 # hack all around it, let's just trust "g++" to DTRT.
11421 predep_objects_CXX=
11422 postdep_objects_CXX=
11427 case $cc_basename in
11429 # Adding this requires a known-good setup of shared libraries for
11430 # Sun compiler versions before 5.6, else PIC objects from an old
11431 # archive will be linked into the output, leading to subtle bugs.
11432 postdeps_CXX='-lCstd -lCrun'
11439 case " $postdeps_CXX " in
11440 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11443 lt_prog_compiler_wl_CXX=
11444 lt_prog_compiler_pic_CXX=
11445 lt_prog_compiler_static_CXX=
11447 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11448 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11450 # C++ specific cases for pic, static, wl, etc.
11451 if test "$GXX" = yes; then
11452 lt_prog_compiler_wl_CXX='-Wl,'
11453 lt_prog_compiler_static_CXX='-static'
11457 # All AIX code is PIC.
11458 if test "$host_cpu" = ia64; then
11459 # AIX 5 now supports IA64 processor
11460 lt_prog_compiler_static_CXX='-Bstatic'
11464 # FIXME: we need at least 68020 code to build shared libraries, but
11465 # adding the `-m68020' flag to GCC prevents building anything better,
11467 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11469 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11470 # PIC is the default for these OSes.
11472 mingw* | os2* | pw32*)
11473 # This hack is so that the source file can tell whether it is being
11474 # built for inclusion in a dll (and should export symbols for example).
11475 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11477 darwin* | rhapsody*)
11478 # PIC is the default on this platform
11479 # Common symbols not allowed in MH_DYLIB files
11480 lt_prog_compiler_pic_CXX='-fno-common'
11483 # DJGPP does not support shared libraries at all
11484 lt_prog_compiler_pic_CXX=
11487 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11488 # Instead, we relocate shared libraries at runtime.
11491 if test -d /usr/nec; then
11492 lt_prog_compiler_pic_CXX=-Kconform_pic
11496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11497 # not for PA HP-UX.
11502 lt_prog_compiler_pic_CXX='-fPIC'
11507 lt_prog_compiler_pic_CXX='-fPIC'
11513 # All AIX code is PIC.
11514 if test "$host_cpu" = ia64; then
11515 # AIX 5 now supports IA64 processor
11516 lt_prog_compiler_static_CXX='-Bstatic'
11518 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11522 case $cc_basename in
11524 # Green Hills C++ Compiler
11525 # _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"
11530 # PIC is the default on this platform
11531 # Common symbols not allowed in MH_DYLIB files
11532 case $cc_basename in
11534 lt_prog_compiler_pic_CXX='-qnocommon'
11535 lt_prog_compiler_wl_CXX='-Wl,'
11540 case $cc_basename in
11542 lt_prog_compiler_pic_CXX='-KPIC'
11545 # Green Hills C++ Compiler
11546 lt_prog_compiler_pic_CXX='-pic'
11552 freebsd* | kfreebsd*-gnu | dragonfly*)
11553 # FreeBSD uses GNU C++
11555 hpux9* | hpux10* | hpux11*)
11556 case $cc_basename in
11558 lt_prog_compiler_wl_CXX='-Wl,'
11559 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11560 if test "$host_cpu" != ia64; then
11561 lt_prog_compiler_pic_CXX='+Z'
11565 lt_prog_compiler_wl_CXX='-Wl,'
11566 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11572 lt_prog_compiler_pic_CXX='+Z'
11581 # This is c89, which is MS Visual C++ (no shared libs)
11582 # Anyone wants to do a port?
11584 irix5* | irix6* | nonstopux*)
11585 case $cc_basename in
11587 lt_prog_compiler_wl_CXX='-Wl,'
11588 lt_prog_compiler_static_CXX='-non_shared'
11589 # CC pic flag -KPIC is the default.
11596 case $cc_basename in
11599 lt_prog_compiler_wl_CXX='--backend -Wl,'
11600 lt_prog_compiler_pic_CXX='-fPIC'
11604 lt_prog_compiler_wl_CXX='-Wl,'
11605 lt_prog_compiler_pic_CXX='-KPIC'
11606 lt_prog_compiler_static_CXX='-static'
11609 # Portland Group C++ compiler.
11610 lt_prog_compiler_wl_CXX='-Wl,'
11611 lt_prog_compiler_pic_CXX='-fpic'
11612 lt_prog_compiler_static_CXX='-Bstatic'
11616 # Make sure the PIC flag is empty. It appears that all Alpha
11617 # Linux and Compaq Tru64 Unix objects are PIC.
11618 lt_prog_compiler_pic_CXX=
11619 lt_prog_compiler_static_CXX='-non_shared'
11630 case $cc_basename in
11632 lt_prog_compiler_pic_CXX='-W c,exportall'
11640 osf3* | osf4* | osf5*)
11641 case $cc_basename in
11643 lt_prog_compiler_wl_CXX='--backend -Wl,'
11646 # Rational C++ 2.4.1
11647 lt_prog_compiler_pic_CXX='-pic'
11650 # Digital/Compaq C++
11651 lt_prog_compiler_wl_CXX='-Wl,'
11652 # Make sure the PIC flag is empty. It appears that all Alpha
11653 # Linux and Compaq Tru64 Unix objects are PIC.
11654 lt_prog_compiler_pic_CXX=
11655 lt_prog_compiler_static_CXX='-non_shared'
11664 case $cc_basename in
11666 # Sun C++ 4.2, 5.x and Centerline C++
11667 lt_prog_compiler_pic_CXX='-KPIC'
11668 lt_prog_compiler_static_CXX='-Bstatic'
11669 lt_prog_compiler_wl_CXX='-Qoption ld '
11672 # Green Hills C++ Compiler
11673 lt_prog_compiler_pic_CXX='-PIC'
11680 case $cc_basename in
11683 lt_prog_compiler_pic_CXX='-pic'
11684 lt_prog_compiler_static_CXX='-Bstatic'
11688 lt_prog_compiler_pic_CXX='-pic'
11695 case $cc_basename in
11697 # NonStop-UX NCC 3.20
11698 lt_prog_compiler_pic_CXX='-KPIC'
11704 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11705 case $cc_basename in
11707 lt_prog_compiler_wl_CXX='-Wl,'
11708 lt_prog_compiler_pic_CXX='-KPIC'
11709 lt_prog_compiler_static_CXX='-Bstatic'
11716 lt_prog_compiler_can_build_shared_CXX=no
11721 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11722 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11725 # Check to make sure the PIC flag actually works.
11727 if test -n "$lt_prog_compiler_pic_CXX"; then
11729 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11731 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 lt_prog_compiler_pic_works_CXX=no
11735 ac_outfile=conftest.$ac_objext
11736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11737 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11738 # Insert the option either (1) after the last *FLAGS variable, or
11739 # (2) before a word containing "conftest.", or (3) at the end.
11740 # Note that $ac_compile itself does not contain backslashes and begins
11741 # with a dollar sign (not a hyphen), so the echo should work correctly.
11742 # The option is referenced via a variable to avoid confusing sed.
11743 lt_compile=`echo "$ac_compile" | $SED \
11744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11746 -e 's:$: $lt_compiler_flag:'`
11747 (eval echo "\"\$as_me:11747: $lt_compile\"" >&5)
11748 (eval "$lt_compile" 2>conftest.err)
11750 cat conftest.err >&5
11751 echo "$as_me:11751: \$? = $ac_status" >&5
11752 if (exit $ac_status) && test -s "$ac_outfile"; then
11753 # The compiler can only warn and ignore the option if not recognized
11754 # So say no if there are warnings other than the usual output.
11755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11758 lt_prog_compiler_pic_works_CXX=yes
11764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11765 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11767 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11768 case $lt_prog_compiler_pic_CXX in
11770 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11773 lt_prog_compiler_pic_CXX=
11774 lt_prog_compiler_can_build_shared_CXX=no
11779 # For platforms which do not support PIC, -DPIC is meaningless:
11781 lt_prog_compiler_pic_CXX=
11784 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11789 # Check to make sure the static flag actually works.
11791 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11792 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11793 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11794 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 lt_prog_compiler_static_works_CXX=no
11798 save_LDFLAGS="$LDFLAGS"
11799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11800 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11802 # The linker can only warn and ignore the option if not recognized
11803 # So say no if there are warnings
11804 if test -s conftest.err; then
11805 # Append any errors to the config.log.
11806 cat conftest.err 1>&5
11807 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11809 if diff conftest.exp conftest.er2 >/dev/null; then
11810 lt_prog_compiler_static_works_CXX=yes
11813 lt_prog_compiler_static_works_CXX=yes
11817 LDFLAGS="$save_LDFLAGS"
11820 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11821 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11823 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11826 lt_prog_compiler_static_CXX=
11830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11832 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 lt_cv_prog_compiler_c_o_CXX=no
11836 $rm -r conftest 2>/dev/null
11840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11842 lt_compiler_flag="-o out/conftest2.$ac_objext"
11843 # Insert the option either (1) after the last *FLAGS variable, or
11844 # (2) before a word containing "conftest.", or (3) at the end.
11845 # Note that $ac_compile itself does not contain backslashes and begins
11846 # with a dollar sign (not a hyphen), so the echo should work correctly.
11847 lt_compile=`echo "$ac_compile" | $SED \
11848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11850 -e 's:$: $lt_compiler_flag:'`
11851 (eval echo "\"\$as_me:11851: $lt_compile\"" >&5)
11852 (eval "$lt_compile" 2>out/conftest.err)
11854 cat out/conftest.err >&5
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11858 # The compiler can only warn and ignore the option if not recognized
11859 # So say no if there are warnings
11860 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11863 lt_cv_prog_compiler_c_o_CXX=yes
11868 # SGI C++ compiler will create directory out/ii_files/ for
11869 # template instantiation
11870 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11871 $rm out/* && rmdir out
11877 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11881 hard_links="nottested"
11882 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11883 # do not overwrite the value of need_locks provided by the user
11884 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11890 ln conftest.a conftest.b 2>&5 || hard_links=no
11891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11892 echo "$as_me:$LINENO: result: $hard_links" >&5
11893 echo "${ECHO_T}$hard_links" >&6
11894 if test "$hard_links" = no; then
11895 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11903 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11906 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11909 # If we're using GNU nm, then we don't want the "-C" option.
11910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11912 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'
11914 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'
11918 export_symbols_cmds_CXX="$ltdll_cmds"
11921 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'
11924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11928 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11929 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11930 test "$ld_shlibs_CXX" = no && can_build_shared=no
11933 # Do we need to explicitly link libc?
11935 case "x$archive_cmds_need_lc_CXX" in
11937 # Assume -lc should be added
11938 archive_cmds_need_lc_CXX=yes
11940 if test "$enable_shared" = yes && test "$GCC" = yes; then
11941 case $archive_cmds_CXX in
11943 # FIXME: we may have to deal with multi-command sequences.
11946 # Test whether the compiler implicitly links with -lc since on some
11947 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11948 # to ld, don't add -lc before -lgcc.
11949 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11950 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } 2>conftest.err; then
11961 libobjs=conftest.$ac_objext
11963 wl=$lt_prog_compiler_wl_CXX
11964 pic_flag=$lt_prog_compiler_pic_CXX
11970 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11971 allow_undefined_flag_CXX=
11972 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11973 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }
11978 archive_cmds_need_lc_CXX=no
11980 archive_cmds_need_lc_CXX=yes
11982 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11984 cat conftest.err 1>&5
11987 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11988 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11995 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11996 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11997 library_names_spec=
11998 libname_spec='lib$name'
12002 postuninstall_cmds=
12006 shlibpath_overrides_runpath=unknown
12008 dynamic_linker="$host_os ld.so"
12009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12010 if test "$GCC" = yes; then
12011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12012 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12013 # if the path contains ";" then we assume it to be the separator
12014 # otherwise default to the standard path separator (i.e. ":") - it is
12015 # assumed that no part of a normal pathname contains ";" but that should
12016 # okay in the real world where ";" in dirpaths is itself problematic.
12017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12024 need_lib_prefix=unknown
12025 hardcode_into_libs=no
12027 # when you set need_version to no, make sure it does not cause -set_version
12028 # flags to be left without arguments
12029 need_version=unknown
12034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12035 shlibpath_var=LIBPATH
12037 # AIX 3 has no versioning support, so we append a major version to the name.
12038 soname_spec='${libname}${release}${shared_ext}$major'
12045 hardcode_into_libs=yes
12046 if test "$host_cpu" = ia64; then
12047 # AIX 5 supports IA64
12048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12049 shlibpath_var=LD_LIBRARY_PATH
12051 # With GCC up to 2.95.x, collect2 would create an import file
12052 # for dependence libraries. The import file would start with
12053 # the line `#! .'. This would cause the generated library to
12054 # depend on `.', always an invalid library. This was fixed in
12055 # development snapshots of GCC prior to 3.0.
12057 aix4 | aix4.[01] | aix4.[01].*)
12058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12060 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12063 can_build_shared=no
12067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12068 # soname into executable. Probably we can add versioning support to
12069 # collect2, so additional links can be useful in future.
12070 if test "$aix_use_runtimelinking" = yes; then
12071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12072 # instead of lib<name>.a to let people know that these are not
12073 # typical AIX shared libraries.
12074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076 # We preserve .a as extension for shared libraries through AIX4.2
12077 # and later when we are not doing run time linking.
12078 library_names_spec='${libname}${release}.a $libname.a'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12081 shlibpath_var=LIBPATH
12086 library_names_spec='$libname.ixlibrary $libname.a'
12087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12088 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'
12092 library_names_spec='${libname}${shared_ext}'
12093 dynamic_linker="$host_os ld.so"
12094 shlibpath_var=LIBRARY_PATH
12100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12101 soname_spec='${libname}${release}${shared_ext}$major'
12102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12106 # the default ld.so.conf also contains /usr/contrib/lib and
12107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12108 # libtool to hard-code these into programs
12111 cygwin* | mingw* | pw32*)
12112 version_type=windows
12117 case $GCC,$host_os in
12118 yes,cygwin* | yes,mingw* | yes,pw32*)
12119 library_names_spec='$libname.dll.a'
12120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12121 postinstall_cmds='base_file=`basename \${file}`~
12122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12123 dldir=$destdir/`dirname \$dlpath`~
12124 test -d \$dldir || mkdir -p \$dldir~
12125 $install_prog $dir/$dlname \$dldir/$dlname~
12126 chmod a+x \$dldir/$dlname'
12127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12128 dlpath=$dir/\$dldll~
12130 shlibpath_overrides_runpath=yes
12134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12136 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12139 # MinGW DLLs use traditional 'lib' prefix
12140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12141 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12142 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12143 # It is most probably a Windows format PATH printed by
12144 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12145 # path with ; separators, and with drive letters. We can handle the
12146 # drive letters (cygwin fileutils understands them), so leave them,
12147 # especially as we might pass files found there to a mingw objdump,
12148 # which wouldn't understand a cygwinified path. Ahh.
12149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12155 # pw32 DLLs use 'pw' prefix rather than 'lib'
12156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12162 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12164 supports_anon_versioning=no
12165 case `$LD -v 2>/dev/null` in
12166 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12167 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12168 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12169 *\ 2.11.*) ;; # other 2.11 versions
12170 *) supports_anon_versioning=yes ;;
12172 if test $supports_anon_versioning = yes; then
12173 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12175 $echo "local: *; };" >> $output_objdir/$libname.ver~
12176 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12178 $archive_expsym_cmds="$archive_cmds"
12186 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12189 dynamic_linker='Win32 ld.exe'
12190 # FIXME: first we should search . and the directory the executable is in
12194 darwin* | rhapsody*)
12195 dynamic_linker="$host_os dyld"
12196 version_type=darwin
12199 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12200 soname_spec='${libname}${release}${major}$shared_ext'
12201 shlibpath_overrides_runpath=yes
12202 shlibpath_var=DYLD_LIBRARY_PATH
12203 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12204 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12205 if test "$GCC" = yes; then
12206 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"`
12208 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12218 soname_spec='${libname}${release}${shared_ext}$major'
12219 shlibpath_var=LD_LIBRARY_PATH
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12231 soname_spec='${libname}${release}${shared_ext}$major'
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=no
12234 hardcode_into_libs=yes
12235 dynamic_linker='GNU ld.so'
12238 freebsd* | dragonfly*)
12239 # DragonFly does not have aout. When/if they implement a new
12240 # versioning mechanism, adjust this.
12241 if test -x /usr/bin/objformat; then
12242 objformat=`/usr/bin/objformat`
12245 freebsd[123]*) objformat=aout ;;
12246 *) objformat=elf ;;
12249 # Handle Gentoo/FreeBSD as it was Linux
12250 case $host_vendor in
12252 version_type=linux ;;
12254 version_type=freebsd-$objformat ;;
12257 case $version_type in
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12269 soname_spec='${libname}${release}${shared_ext}$major'
12274 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=yes
12279 freebsd3.[01]* | freebsdelf3.[01]*)
12280 shlibpath_overrides_runpath=yes
12281 hardcode_into_libs=yes
12283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12285 shlibpath_overrides_runpath=no
12286 hardcode_into_libs=yes
12288 freebsd*) # from 4.6 on
12289 shlibpath_overrides_runpath=yes
12290 hardcode_into_libs=yes
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12300 soname_spec='${libname}${release}${shared_ext}$major'
12301 shlibpath_var=LD_LIBRARY_PATH
12302 hardcode_into_libs=yes
12305 hpux9* | hpux10* | hpux11*)
12306 # Give a soname corresponding to the major version so that dld.sl refuses to
12307 # link against other versions.
12314 hardcode_into_libs=yes
12315 dynamic_linker="$host_os dld.so"
12316 shlibpath_var=LD_LIBRARY_PATH
12317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319 soname_spec='${libname}${release}${shared_ext}$major'
12320 if test "X$HPUX_IA64_MODE" = X32; then
12321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12329 hardcode_into_libs=yes
12330 dynamic_linker="$host_os dld.sl"
12331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12334 soname_spec='${libname}${release}${shared_ext}$major'
12335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12340 dynamic_linker="$host_os dld.sl"
12341 shlibpath_var=SHLIB_PATH
12342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12344 soname_spec='${libname}${release}${shared_ext}$major'
12347 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12348 postinstall_cmds='chmod 555 $lib'
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12356 soname_spec='${libname}${release}${shared_ext}$major'
12357 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12358 shlibpath_var=LD_LIBRARY_PATH
12359 shlibpath_overrides_runpath=no
12360 hardcode_into_libs=yes
12363 irix5* | irix6* | nonstopux*)
12365 nonstopux*) version_type=nonstopux ;;
12367 if test "$lt_cv_prog_gnu_ld" = yes; then
12375 soname_spec='${libname}${release}${shared_ext}$major'
12376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12378 irix5* | nonstopux*)
12379 libsuff= shlibsuff=
12382 case $LD in # libtool.m4 will add one of these switches to LD
12383 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12384 libsuff= shlibsuff= libmagic=32-bit;;
12385 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12386 libsuff=32 shlibsuff=N32 libmagic=N32;;
12387 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12388 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12389 *) libsuff= shlibsuff= libmagic=never-match;;
12393 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12394 shlibpath_overrides_runpath=no
12395 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12396 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12397 hardcode_into_libs=yes
12400 # No shared lib support for Linux oldld, aout, or coff.
12401 linux*oldld* | linux*aout* | linux*coff*)
12405 # This must be Linux ELF.
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12411 soname_spec='${libname}${release}${shared_ext}$major'
12412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12413 shlibpath_var=LD_LIBRARY_PATH
12414 shlibpath_overrides_runpath=no
12415 # This implies no fast_install, which is unacceptable.
12416 # Some rework will be needed to allow for fast_install
12417 # before this can be enabled.
12418 hardcode_into_libs=yes
12420 # Append ld.so.conf contents to the search path
12421 if test -f /etc/ld.so.conf; then
12422 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' ' '`
12423 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12426 # We used to test for /lib/ld.so.1 and disable shared libraries on
12427 # powerpc, because MkLinux only supported shared libraries with the
12428 # GNU dynamic linker. Since this was broken with cross compilers,
12429 # most powerpc-linux boxes support dynamic linking these days and
12430 # people can always --disable-shared, the test was removed, and we
12431 # assume the GNU/Linux dynamic linker is in use.
12432 dynamic_linker='GNU/Linux ld.so'
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12440 soname_spec='${libname}${release}${shared_ext}$major'
12441 shlibpath_var=LD_LIBRARY_PATH
12442 shlibpath_overrides_runpath=no
12443 hardcode_into_libs=yes
12444 dynamic_linker='GNU ld.so'
12451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454 dynamic_linker='NetBSD (a.out) ld.so'
12456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12457 soname_spec='${libname}${release}${shared_ext}$major'
12458 dynamic_linker='NetBSD ld.elf_so'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=yes
12462 hardcode_into_libs=yes
12467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12468 shlibpath_var=LD_LIBRARY_PATH
12469 shlibpath_overrides_runpath=yes
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12477 soname_spec='${libname}${release}${shared_ext}$major'
12478 shlibpath_var=LD_LIBRARY_PATH
12479 shlibpath_overrides_runpath=yes
12484 sys_lib_dlsearch_path_spec="/usr/lib"
12486 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12488 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12489 *) need_version=no ;;
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12493 shlibpath_var=LD_LIBRARY_PATH
12494 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12496 openbsd2.[89] | openbsd2.[89].*)
12497 shlibpath_overrides_runpath=no
12500 shlibpath_overrides_runpath=yes
12504 shlibpath_overrides_runpath=yes
12509 libname_spec='$name'
12512 library_names_spec='$libname${shared_ext} $libname.a'
12513 dynamic_linker='OS/2 ld.exe'
12514 shlibpath_var=LIBPATH
12517 osf3* | osf4* | osf5*)
12521 soname_spec='${libname}${release}${shared_ext}$major'
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12525 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12533 soname_spec='${libname}${release}${shared_ext}$major'
12534 shlibpath_var=LD_LIBRARY_PATH
12535 shlibpath_overrides_runpath=yes
12536 hardcode_into_libs=yes
12537 # ldd complains unless libraries are executable
12538 postinstall_cmds='chmod +x $lib'
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 shlibpath_overrides_runpath=yes
12547 if test "$with_gnu_ld" = yes; then
12555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12556 soname_spec='${libname}${release}${shared_ext}$major'
12557 shlibpath_var=LD_LIBRARY_PATH
12558 case $host_vendor in
12560 shlibpath_overrides_runpath=no
12562 export_dynamic_flag_spec='${wl}-Blargedynsym'
12563 runpath_var=LD_RUN_PATH
12571 shlibpath_overrides_runpath=no
12572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12578 if test -d /usr/nec ;then
12580 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12581 soname_spec='$libname${shared_ext}.$major'
12582 shlibpath_var=LD_LIBRARY_PATH
12586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12587 version_type=freebsd-elf
12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12591 soname_spec='${libname}${release}${shared_ext}$major'
12592 shlibpath_var=LD_LIBRARY_PATH
12593 hardcode_into_libs=yes
12594 if test "$with_gnu_ld" = yes; then
12595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12596 shlibpath_overrides_runpath=no
12598 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12599 shlibpath_overrides_runpath=yes
12602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12606 sys_lib_dlsearch_path_spec='/usr/lib'
12611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12612 soname_spec='${libname}${release}${shared_ext}$major'
12613 shlibpath_var=LD_LIBRARY_PATH
12620 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12621 echo "${ECHO_T}$dynamic_linker" >&6
12622 test "$dynamic_linker" = no && can_build_shared=no
12624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12625 if test "$GCC" = yes; then
12626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12631 hardcode_action_CXX=
12632 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12633 test -n "$runpath_var_CXX" || \
12634 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12636 # We can hardcode non-existant directories.
12637 if test "$hardcode_direct_CXX" != no &&
12638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12639 # have to relink, otherwise we might link with an installed library
12640 # when we should be linking with a yet-to-be-installed one
12641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12642 test "$hardcode_minus_L_CXX" != no; then
12643 # Linking always hardcodes the temporary library directory.
12644 hardcode_action_CXX=relink
12646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12647 hardcode_action_CXX=immediate
12650 # We cannot hardcode anything, or else we can only hardcode existing
12652 hardcode_action_CXX=unsupported
12654 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12655 echo "${ECHO_T}$hardcode_action_CXX" >&6
12657 if test "$hardcode_action_CXX" = relink; then
12658 # Fast installation is not supported
12659 enable_fast_install=no
12660 elif test "$shlibpath_overrides_runpath" = yes ||
12661 test "$enable_shared" = no; then
12662 # Fast installation is not necessary
12663 enable_fast_install=needless
12667 # The else clause should only fire when bootstrapping the
12668 # libtool distribution, otherwise you forgot to ship ltmain.sh
12669 # with your package, and you will get complaints that there are
12670 # no rules to generate ltmain.sh.
12671 if test -f "$ltmain"; then
12672 # See if we are running on zsh, and set the options which allow our commands through
12673 # without removal of \ escapes.
12674 if test -n "${ZSH_VERSION+set}" ; then
12675 setopt NO_GLOB_SUBST
12677 # Now quote all the things that may contain metacharacters while being
12678 # careful not to overquote the AC_SUBSTed values. We take copies of the
12679 # variables and quote the copies for generation of the libtool script.
12680 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12682 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12683 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12684 deplibs_check_method reload_flag reload_cmds need_locks \
12685 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12686 lt_cv_sys_global_symbol_to_c_name_address \
12687 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12688 old_postinstall_cmds old_postuninstall_cmds \
12692 lt_prog_compiler_wl_CXX \
12693 lt_prog_compiler_pic_CXX \
12694 lt_prog_compiler_static_CXX \
12695 lt_prog_compiler_no_builtin_flag_CXX \
12696 export_dynamic_flag_spec_CXX \
12697 thread_safe_flag_spec_CXX \
12698 whole_archive_flag_spec_CXX \
12699 enable_shared_with_static_runtimes_CXX \
12700 old_archive_cmds_CXX \
12701 old_archive_from_new_cmds_CXX \
12702 predep_objects_CXX \
12703 postdep_objects_CXX \
12706 compiler_lib_search_path_CXX \
12708 archive_expsym_cmds_CXX \
12709 postinstall_cmds_CXX \
12710 postuninstall_cmds_CXX \
12711 old_archive_from_expsyms_cmds_CXX \
12712 allow_undefined_flag_CXX \
12713 no_undefined_flag_CXX \
12714 export_symbols_cmds_CXX \
12715 hardcode_libdir_flag_spec_CXX \
12716 hardcode_libdir_flag_spec_ld_CXX \
12717 hardcode_libdir_separator_CXX \
12718 hardcode_automatic_CXX \
12720 module_expsym_cmds_CXX \
12721 lt_cv_prog_compiler_c_o_CXX \
12722 exclude_expsyms_CXX \
12723 include_expsyms_CXX; do
12726 old_archive_cmds_CXX | \
12727 old_archive_from_new_cmds_CXX | \
12728 archive_cmds_CXX | \
12729 archive_expsym_cmds_CXX | \
12730 module_cmds_CXX | \
12731 module_expsym_cmds_CXX | \
12732 old_archive_from_expsyms_cmds_CXX | \
12733 export_symbols_cmds_CXX | \
12734 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12735 postinstall_cmds | postuninstall_cmds | \
12736 old_postinstall_cmds | old_postuninstall_cmds | \
12737 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12738 # Double-quote double-evaled strings.
12739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12748 *'\$0 --fallback-echo"')
12749 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12755 cat <<__EOF__ >> "$cfgfile"
12756 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12760 # Shell to use when invoking shell scripts.
12763 # Whether or not to build shared libraries.
12764 build_libtool_libs=$enable_shared
12766 # Whether or not to build static libraries.
12767 build_old_libs=$enable_static
12769 # Whether or not to add -lc for building shared libraries.
12770 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12772 # Whether or not to disallow shared libs when runtime libs are static
12773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12775 # Whether or not to optimize for fast installation.
12776 fast_install=$enable_fast_install
12779 host_alias=$host_alias
12783 # The build system.
12784 build_alias=$build_alias
12788 # An echo program that does not interpret backslashes.
12793 AR_FLAGS=$lt_AR_FLAGS
12798 # LTCC compiler flags.
12799 LTCFLAGS=$lt_LTCFLAGS
12801 # A language-specific compiler.
12802 CC=$lt_compiler_CXX
12804 # Is the compiler the GNU C compiler?
12810 # The linker used to build libraries.
12813 # Whether we need hard or soft links.
12816 # A BSD-compatible nm program.
12819 # A symbol stripping program
12822 # Used to examine libraries when file_magic_cmd begins "file"
12823 MAGIC_CMD=$MAGIC_CMD
12825 # Used on cygwin: DLL creation program.
12828 # Used on cygwin: object dumper.
12831 # Used on cygwin: assembler.
12834 # The name of the directory that contains temporary libtool files.
12837 # How to create reloadable object files.
12838 reload_flag=$lt_reload_flag
12839 reload_cmds=$lt_reload_cmds
12841 # How to pass a linker flag through the compiler.
12842 wl=$lt_lt_prog_compiler_wl_CXX
12844 # Object file suffix (normally "o").
12845 objext="$ac_objext"
12847 # Old archive suffix (normally "a").
12850 # Shared library suffix (normally ".so").
12851 shrext_cmds='$shrext_cmds'
12853 # Executable file suffix (normally "").
12856 # Additional compiler flags for building library objects.
12857 pic_flag=$lt_lt_prog_compiler_pic_CXX
12860 # What is the maximum length of a command?
12861 max_cmd_len=$lt_cv_sys_max_cmd_len
12863 # Does compiler simultaneously support -c and -o options?
12864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12866 # Must we lock files when doing compilation?
12867 need_locks=$lt_need_locks
12869 # Do we need the lib prefix for modules?
12870 need_lib_prefix=$need_lib_prefix
12872 # Do we need a version for libraries?
12873 need_version=$need_version
12875 # Whether dlopen is supported.
12876 dlopen_support=$enable_dlopen
12878 # Whether dlopen of programs is supported.
12879 dlopen_self=$enable_dlopen_self
12881 # Whether dlopen of statically linked programs is supported.
12882 dlopen_self_static=$enable_dlopen_self_static
12884 # Compiler flag to prevent dynamic linking.
12885 link_static_flag=$lt_lt_prog_compiler_static_CXX
12887 # Compiler flag to turn off builtin functions.
12888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12890 # Compiler flag to allow reflexive dlopens.
12891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12893 # Compiler flag to generate shared objects directly from archives.
12894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12896 # Compiler flag to generate thread-safe objects.
12897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12899 # Library versioning type.
12900 version_type=$version_type
12902 # Format of library name prefix.
12903 libname_spec=$lt_libname_spec
12905 # List of archive names. First name is the real one, the rest are links.
12906 # The last name is the one that the linker finds with -lNAME.
12907 library_names_spec=$lt_library_names_spec
12909 # The coded name of the library, if different from the real name.
12910 soname_spec=$lt_soname_spec
12912 # Commands used to build and install an old-style archive.
12914 old_archive_cmds=$lt_old_archive_cmds_CXX
12915 old_postinstall_cmds=$lt_old_postinstall_cmds
12916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12918 # Create an old-style archive from a shared archive.
12919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12921 # Create a temporary old-style archive to link instead of a shared archive.
12922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12924 # Commands used to build and install a shared archive.
12925 archive_cmds=$lt_archive_cmds_CXX
12926 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12927 postinstall_cmds=$lt_postinstall_cmds
12928 postuninstall_cmds=$lt_postuninstall_cmds
12930 # Commands used to build a loadable module (assumed same as above if empty)
12931 module_cmds=$lt_module_cmds_CXX
12932 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12934 # Commands to strip libraries.
12935 old_striplib=$lt_old_striplib
12936 striplib=$lt_striplib
12938 # Dependencies to place before the objects being linked to create a
12940 predep_objects=$lt_predep_objects_CXX
12942 # Dependencies to place after the objects being linked to create a
12944 postdep_objects=$lt_postdep_objects_CXX
12946 # Dependencies to place before the objects being linked to create a
12948 predeps=$lt_predeps_CXX
12950 # Dependencies to place after the objects being linked to create a
12952 postdeps=$lt_postdeps_CXX
12954 # The library search path used internally by the compiler when linking
12955 # a shared library.
12956 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12958 # Method to check whether dependent libraries are shared objects.
12959 deplibs_check_method=$lt_deplibs_check_method
12961 # Command to use when deplibs_check_method == file_magic.
12962 file_magic_cmd=$lt_file_magic_cmd
12964 # Flag that allows shared libraries with undefined symbols to be built.
12965 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12967 # Flag that forces no undefined symbols.
12968 no_undefined_flag=$lt_no_undefined_flag_CXX
12970 # Commands used to finish a libtool library installation in a directory.
12971 finish_cmds=$lt_finish_cmds
12973 # Same as above, but a single script fragment to be evaled but not shown.
12974 finish_eval=$lt_finish_eval
12976 # Take the output of nm and produce a listing of raw symbols and C names.
12977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12979 # Transform the output of nm in a proper C declaration
12980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12982 # Transform the output of nm in a C name address pair
12983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12985 # This is the shared library runtime path variable.
12986 runpath_var=$runpath_var
12988 # This is the shared library path variable.
12989 shlibpath_var=$shlibpath_var
12991 # Is shlibpath searched before the hard-coded library search path?
12992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12994 # How to hardcode a shared library path into an executable.
12995 hardcode_action=$hardcode_action_CXX
12997 # Whether we should hardcode library paths into libraries.
12998 hardcode_into_libs=$hardcode_into_libs
13000 # Flag to hardcode \$libdir into a binary during linking.
13001 # This must work even if \$libdir does not exist.
13002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13004 # If ld is used when linking, flag to hardcode \$libdir into
13005 # a binary during linking. This must work even if \$libdir does
13007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13009 # Whether we need a single -rpath flag with a separated argument.
13010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13013 # resulting binary.
13014 hardcode_direct=$hardcode_direct_CXX
13016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13017 # resulting binary.
13018 hardcode_minus_L=$hardcode_minus_L_CXX
13020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13021 # the resulting binary.
13022 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13024 # Set to yes if building a shared library automatically hardcodes DIR into the library
13025 # and all subsequent libraries and executables linked against it.
13026 hardcode_automatic=$hardcode_automatic_CXX
13028 # Variables whose values should be saved in libtool wrapper scripts and
13029 # restored at relink time.
13030 variables_saved_for_relink="$variables_saved_for_relink"
13032 # Whether libtool must link a program against all its dependency libraries.
13033 link_all_deplibs=$link_all_deplibs_CXX
13035 # Compile-time system search path for libraries
13036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13038 # Run-time system search path for libraries
13039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13041 # Fix the shell variable \$srcfile for the compiler.
13042 fix_srcfile_path="$fix_srcfile_path_CXX"
13044 # Set to yes if exported symbols are required.
13045 always_export_symbols=$always_export_symbols_CXX
13047 # The commands to list exported symbols.
13048 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13050 # The commands to extract the exported symbol list from a shared archive.
13051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13053 # Symbols that should not be listed in the preloaded symbols.
13054 exclude_expsyms=$lt_exclude_expsyms_CXX
13056 # Symbols that must always be exported.
13057 include_expsyms=$lt_include_expsyms_CXX
13059 # ### END LIBTOOL TAG CONFIG: $tagname
13065 # If there is no Makefile yet, we rely on a make rule to execute
13066 # `config.status --recheck' to rerun these tests and create the
13067 # libtool script then.
13068 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13069 if test -f "$ltmain_in"; then
13070 test -f Makefile && make "$ltmain"
13076 ac_cpp='$CPP $CPPFLAGS'
13077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13085 with_gnu_ldcxx=$with_gnu_ld
13086 with_gnu_ld=$lt_save_with_gnu_ld
13087 lt_cv_path_LDCXX=$lt_cv_path_LD
13088 lt_cv_path_LD=$lt_save_path_LD
13089 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13090 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13098 if test -n "$F77" && test "X$F77" != "Xno"; then
13101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13106 archive_cmds_need_lc_F77=no
13107 allow_undefined_flag_F77=
13108 always_export_symbols_F77=no
13109 archive_expsym_cmds_F77=
13110 export_dynamic_flag_spec_F77=
13111 hardcode_direct_F77=no
13112 hardcode_libdir_flag_spec_F77=
13113 hardcode_libdir_flag_spec_ld_F77=
13114 hardcode_libdir_separator_F77=
13115 hardcode_minus_L_F77=no
13116 hardcode_automatic_F77=no
13118 module_expsym_cmds_F77=
13119 link_all_deplibs_F77=unknown
13120 old_archive_cmds_F77=$old_archive_cmds
13121 no_undefined_flag_F77=
13122 whole_archive_flag_spec_F77=
13123 enable_shared_with_static_runtimes_F77=no
13125 # Source file extension for f77 test sources.
13128 # Object file extension for compiled f77 test sources.
13132 # Code to be used in simple compile tests
13133 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13135 # Code to be used in simple link tests
13136 lt_simple_link_test_code=" program t\n end\n"
13138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13140 # If no C compiler was specified, use CC.
13143 # If no C compiler flags were specified, use CFLAGS.
13144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13146 # Allow CC to be a program name with arguments.
13150 # save warnings/boilerplate of simple test code
13151 ac_outfile=conftest.$ac_objext
13152 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13154 _lt_compiler_boilerplate=`cat conftest.err`
13157 ac_outfile=conftest.$ac_objext
13158 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13160 _lt_linker_boilerplate=`cat conftest.err`
13164 # Allow CC to be a program name with arguments.
13169 for cc_temp in $compiler""; do
13171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13177 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13180 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13181 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13182 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13183 echo "${ECHO_T}$can_build_shared" >&6
13185 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13186 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13187 test "$can_build_shared" = "no" && enable_shared=no
13189 # On AIX, shared libraries and static libraries use the same namespace, and
13190 # are all built from PIC.
13193 test "$enable_shared" = yes && enable_static=no
13194 if test -n "$RANLIB"; then
13195 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13196 postinstall_cmds='$RANLIB $lib'
13200 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13201 test "$enable_shared" = yes && enable_static=no
13205 echo "$as_me:$LINENO: result: $enable_shared" >&5
13206 echo "${ECHO_T}$enable_shared" >&6
13208 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13209 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13210 # Make sure either enable_shared or enable_static is yes.
13211 test "$enable_shared" = yes || enable_static=yes
13212 echo "$as_me:$LINENO: result: $enable_static" >&5
13213 echo "${ECHO_T}$enable_static" >&6
13218 lt_prog_compiler_wl_F77=
13219 lt_prog_compiler_pic_F77=
13220 lt_prog_compiler_static_F77=
13222 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13225 if test "$GCC" = yes; then
13226 lt_prog_compiler_wl_F77='-Wl,'
13227 lt_prog_compiler_static_F77='-static'
13231 # All AIX code is PIC.
13232 if test "$host_cpu" = ia64; then
13233 # AIX 5 now supports IA64 processor
13234 lt_prog_compiler_static_F77='-Bstatic'
13239 # FIXME: we need at least 68020 code to build shared libraries, but
13240 # adding the `-m68020' flag to GCC prevents building anything better,
13242 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13246 # PIC is the default for these OSes.
13249 mingw* | pw32* | os2*)
13250 # This hack is so that the source file can tell whether it is being
13251 # built for inclusion in a dll (and should export symbols for example).
13252 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13255 darwin* | rhapsody*)
13256 # PIC is the default on this platform
13257 # Common symbols not allowed in MH_DYLIB files
13258 lt_prog_compiler_pic_F77='-fno-common'
13262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13263 # Instead, we relocate shared libraries at runtime.
13267 # Just because we use GCC doesn't mean we suddenly get shared libraries
13268 # on systems that don't support them.
13269 lt_prog_compiler_can_build_shared_F77=no
13274 if test -d /usr/nec; then
13275 lt_prog_compiler_pic_F77=-Kconform_pic
13280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13281 # not for PA HP-UX.
13287 lt_prog_compiler_pic_F77='-fPIC'
13293 lt_prog_compiler_pic_F77='-fPIC'
13297 # PORTME Check for flag to pass linker flags through the system compiler.
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 if test "$host_cpu" = ia64; then
13302 # AIX 5 now supports IA64 processor
13303 lt_prog_compiler_static_F77='-Bstatic'
13305 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13309 # PIC is the default on this platform
13310 # Common symbols not allowed in MH_DYLIB files
13311 case $cc_basename in
13313 lt_prog_compiler_pic_F77='-qnocommon'
13314 lt_prog_compiler_wl_F77='-Wl,'
13319 mingw* | pw32* | os2*)
13320 # This hack is so that the source file can tell whether it is being
13321 # built for inclusion in a dll (and should export symbols for example).
13322 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13325 hpux9* | hpux10* | hpux11*)
13326 lt_prog_compiler_wl_F77='-Wl,'
13327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13328 # not for PA HP-UX.
13334 lt_prog_compiler_pic_F77='+Z'
13337 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13338 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13341 irix5* | irix6* | nonstopux*)
13342 lt_prog_compiler_wl_F77='-Wl,'
13343 # PIC (with -KPIC) is the default.
13344 lt_prog_compiler_static_F77='-non_shared'
13348 lt_prog_compiler_pic_F77='-KPIC'
13349 lt_prog_compiler_static_F77='-Bstatic'
13353 case $cc_basename in
13355 lt_prog_compiler_wl_F77='-Wl,'
13356 lt_prog_compiler_pic_F77='-KPIC'
13357 lt_prog_compiler_static_F77='-static'
13359 pgcc* | pgf77* | pgf90* | pgf95*)
13360 # Portland Group compilers (*not* the Pentium gcc compiler,
13361 # which looks to be a dead project)
13362 lt_prog_compiler_wl_F77='-Wl,'
13363 lt_prog_compiler_pic_F77='-fpic'
13364 lt_prog_compiler_static_F77='-Bstatic'
13367 lt_prog_compiler_wl_F77='-Wl,'
13368 # All Alpha code is PIC.
13369 lt_prog_compiler_static_F77='-non_shared'
13374 osf3* | osf4* | osf5*)
13375 lt_prog_compiler_wl_F77='-Wl,'
13376 # All OSF/1 code is PIC.
13377 lt_prog_compiler_static_F77='-non_shared'
13381 lt_prog_compiler_pic_F77='-KPIC'
13382 lt_prog_compiler_static_F77='-Bstatic'
13383 case $cc_basename in
13384 f77* | f90* | f95*)
13385 lt_prog_compiler_wl_F77='-Qoption ld ';;
13387 lt_prog_compiler_wl_F77='-Wl,';;
13392 lt_prog_compiler_wl_F77='-Qoption ld '
13393 lt_prog_compiler_pic_F77='-PIC'
13394 lt_prog_compiler_static_F77='-Bstatic'
13397 sysv4 | sysv4.2uw2* | sysv4.3*)
13398 lt_prog_compiler_wl_F77='-Wl,'
13399 lt_prog_compiler_pic_F77='-KPIC'
13400 lt_prog_compiler_static_F77='-Bstatic'
13404 if test -d /usr/nec ;then
13405 lt_prog_compiler_pic_F77='-Kconform_pic'
13406 lt_prog_compiler_static_F77='-Bstatic'
13410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13411 lt_prog_compiler_wl_F77='-Wl,'
13412 lt_prog_compiler_pic_F77='-KPIC'
13413 lt_prog_compiler_static_F77='-Bstatic'
13417 lt_prog_compiler_wl_F77='-Wl,'
13418 lt_prog_compiler_can_build_shared_F77=no
13422 lt_prog_compiler_pic_F77='-pic'
13423 lt_prog_compiler_static_F77='-Bstatic'
13427 lt_prog_compiler_can_build_shared_F77=no
13432 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13433 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13436 # Check to make sure the PIC flag actually works.
13438 if test -n "$lt_prog_compiler_pic_F77"; then
13440 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13441 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13442 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 lt_prog_compiler_pic_works_F77=no
13446 ac_outfile=conftest.$ac_objext
13447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13448 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13449 # Insert the option either (1) after the last *FLAGS variable, or
13450 # (2) before a word containing "conftest.", or (3) at the end.
13451 # Note that $ac_compile itself does not contain backslashes and begins
13452 # with a dollar sign (not a hyphen), so the echo should work correctly.
13453 # The option is referenced via a variable to avoid confusing sed.
13454 lt_compile=`echo "$ac_compile" | $SED \
13455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13457 -e 's:$: $lt_compiler_flag:'`
13458 (eval echo "\"\$as_me:13458: $lt_compile\"" >&5)
13459 (eval "$lt_compile" 2>conftest.err)
13461 cat conftest.err >&5
13462 echo "$as_me:13462: \$? = $ac_status" >&5
13463 if (exit $ac_status) && test -s "$ac_outfile"; then
13464 # The compiler can only warn and ignore the option if not recognized
13465 # So say no if there are warnings other than the usual output.
13466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13469 lt_prog_compiler_pic_works_F77=yes
13475 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13476 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13478 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13479 case $lt_prog_compiler_pic_F77 in
13481 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13484 lt_prog_compiler_pic_F77=
13485 lt_prog_compiler_can_build_shared_F77=no
13490 # For platforms which do not support PIC, -DPIC is meaningless:
13492 lt_prog_compiler_pic_F77=
13495 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13500 # Check to make sure the static flag actually works.
13502 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13503 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13504 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13505 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 lt_prog_compiler_static_works_F77=no
13509 save_LDFLAGS="$LDFLAGS"
13510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13511 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13513 # The linker can only warn and ignore the option if not recognized
13514 # So say no if there are warnings
13515 if test -s conftest.err; then
13516 # Append any errors to the config.log.
13517 cat conftest.err 1>&5
13518 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13520 if diff conftest.exp conftest.er2 >/dev/null; then
13521 lt_prog_compiler_static_works_F77=yes
13524 lt_prog_compiler_static_works_F77=yes
13528 LDFLAGS="$save_LDFLAGS"
13531 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13532 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13534 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13537 lt_prog_compiler_static_F77=
13541 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13542 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13543 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 lt_cv_prog_compiler_c_o_F77=no
13547 $rm -r conftest 2>/dev/null
13551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13553 lt_compiler_flag="-o out/conftest2.$ac_objext"
13554 # Insert the option either (1) after the last *FLAGS variable, or
13555 # (2) before a word containing "conftest.", or (3) at the end.
13556 # Note that $ac_compile itself does not contain backslashes and begins
13557 # with a dollar sign (not a hyphen), so the echo should work correctly.
13558 lt_compile=`echo "$ac_compile" | $SED \
13559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13561 -e 's:$: $lt_compiler_flag:'`
13562 (eval echo "\"\$as_me:13562: $lt_compile\"" >&5)
13563 (eval "$lt_compile" 2>out/conftest.err)
13565 cat out/conftest.err >&5
13566 echo "$as_me:13566: \$? = $ac_status" >&5
13567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13569 # The compiler can only warn and ignore the option if not recognized
13570 # So say no if there are warnings
13571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13574 lt_cv_prog_compiler_c_o_F77=yes
13579 # SGI C++ compiler will create directory out/ii_files/ for
13580 # template instantiation
13581 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13582 $rm out/* && rmdir out
13588 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13589 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13592 hard_links="nottested"
13593 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13594 # do not overwrite the value of need_locks provided by the user
13595 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13596 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13601 ln conftest.a conftest.b 2>&5 || hard_links=no
13602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13603 echo "$as_me:$LINENO: result: $hard_links" >&5
13604 echo "${ECHO_T}$hard_links" >&6
13605 if test "$hard_links" = no; then
13606 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13607 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13614 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13618 allow_undefined_flag_F77=
13619 enable_shared_with_static_runtimes_F77=no
13621 archive_expsym_cmds_F77=
13622 old_archive_From_new_cmds_F77=
13623 old_archive_from_expsyms_cmds_F77=
13624 export_dynamic_flag_spec_F77=
13625 whole_archive_flag_spec_F77=
13626 thread_safe_flag_spec_F77=
13627 hardcode_libdir_flag_spec_F77=
13628 hardcode_libdir_flag_spec_ld_F77=
13629 hardcode_libdir_separator_F77=
13630 hardcode_direct_F77=no
13631 hardcode_minus_L_F77=no
13632 hardcode_shlibpath_var_F77=unsupported
13633 link_all_deplibs_F77=unknown
13634 hardcode_automatic_F77=no
13636 module_expsym_cmds_F77=
13637 always_export_symbols_F77=no
13638 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13639 # include_expsyms should be a list of space-separated symbols to be *always*
13640 # included in the symbol list
13641 include_expsyms_F77=
13642 # exclude_expsyms can be an extended regexp of symbols to exclude
13643 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13644 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13645 # as well as any symbol that contains `d'.
13646 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13647 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13648 # platforms (ab)use it in PIC code, but their linkers get confused if
13649 # the symbol is explicitly referenced. Since portable code cannot
13650 # rely on this symbol name, it's probably fine to never include it in
13651 # preloaded symbol tables.
13652 extract_expsyms_cmds=
13653 # Just being paranoid about ensuring that cc_basename is set.
13654 for cc_temp in $compiler""; do
13656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13662 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13665 cygwin* | mingw* | pw32*)
13666 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13667 # When not using gcc, we currently assume that we are using
13668 # Microsoft Visual C++.
13669 if test "$GCC" != yes; then
13674 # we just hope/assume this is gcc and not c89 (= MSVC++)
13683 if test "$with_gnu_ld" = yes; then
13684 # If archive_cmds runs LD, not CC, wlarc should be empty
13687 # Set some defaults for GNU ld with shared library support. These
13688 # are reset later if shared libraries are not supported. Putting them
13689 # here allows them to be overridden if necessary.
13690 runpath_var=LD_RUN_PATH
13691 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13692 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13693 # ancient GNU ld didn't support --whole-archive et. al.
13694 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13695 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13697 whole_archive_flag_spec_F77=
13699 supports_anon_versioning=no
13700 case `$LD -v 2>/dev/null` in
13701 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13702 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13703 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13704 *\ 2.11.*) ;; # other 2.11 versions
13705 *) supports_anon_versioning=yes ;;
13708 # See if GNU ld supports shared libraries.
13710 aix3* | aix4* | aix5*)
13711 # On AIX/PPC, the GNU linker is very broken
13712 if test "$host_cpu" != ia64; then
13716 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13717 *** to be unable to reliably create shared libraries on AIX.
13718 *** Therefore, libtool is disabling shared libraries support. If you
13719 *** really care for shared libraries, you may want to modify your PATH
13720 *** so that a non-GNU linker is found, and then restart.
13727 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)'
13728 hardcode_libdir_flag_spec_F77='-L$libdir'
13729 hardcode_minus_L_F77=yes
13731 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13732 # that the semantics of dynamic libraries on AmigaOS, at least up
13733 # to version 4, is to share data among multiple programs linked
13734 # with the same dynamic library. Since this doesn't match the
13735 # behavior of shared libraries on other platforms, we can't use
13741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13742 allow_undefined_flag_F77=unsupported
13743 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13744 # support --undefined. This deserves some investigation. FIXME
13745 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13751 cygwin* | mingw* | pw32*)
13752 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13753 # as there is no search path for DLLs.
13754 hardcode_libdir_flag_spec_F77='-L$libdir'
13755 allow_undefined_flag_F77=unsupported
13756 always_export_symbols_F77=no
13757 enable_shared_with_static_runtimes_F77=yes
13758 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13760 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13762 # If the export-symbols file already is a .def file (1st line
13763 # is EXPORTS), use it as is; otherwise, prepend...
13764 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13765 cp $export_symbols $output_objdir/$soname.def;
13767 echo EXPORTS > $output_objdir/$soname.def;
13768 cat $export_symbols >> $output_objdir/$soname.def;
13770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13777 hardcode_direct_F77=no
13778 hardcode_shlibpath_var_F77=no
13779 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13780 export_dynamic_flag_spec_F77='${wl}-E'
13781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13782 # Instead, shared libraries are loaded at an image base (0x10000000 by
13783 # default) and relocated if they conflict, which is a slow very memory
13784 # consuming and fragmenting process. To avoid this, we pick a random,
13785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13786 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13787 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'
13788 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'
13792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13794 case $cc_basename,$host_cpu in
13795 pgcc*) # Portland Group C compiler
13796 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'
13797 tmp_addflag=' $pic_flag'
13799 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13800 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'
13801 tmp_addflag=' $pic_flag -Mnomain' ;;
13802 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13803 tmp_addflag=' -i_dynamic' ;;
13804 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13805 tmp_addflag=' -i_dynamic -nofor_main' ;;
13806 ifc* | ifort*) # Intel Fortran compiler
13807 tmp_addflag=' -nofor_main' ;;
13809 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13811 if test $supports_anon_versioning = yes; then
13812 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13814 $echo "local: *; };" >> $output_objdir/$libname.ver~
13815 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13824 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13827 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13833 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13838 *** create shared libraries on Solaris systems. Therefore, libtool
13839 *** is disabling shared libraries support. We urge you to upgrade GNU
13840 *** binutils to release 2.9.1 or newer. Another option is to modify
13841 *** your PATH or compiler configuration so that the native linker is
13842 *** used, and then restart.
13845 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13854 case `$LD -v 2>&1` in
13855 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13859 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13860 *** reliably create shared libraries on SCO systems. Therefore, libtool
13861 *** is disabling shared libraries support. We urge you to upgrade GNU
13862 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13863 *** your PATH or compiler configuration so that the native linker is
13864 *** used, and then restart.
13869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13870 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13871 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13872 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13881 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13883 hardcode_direct_F77=yes
13884 hardcode_shlibpath_var_F77=no
13888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13889 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13890 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13897 if test "$ld_shlibs_F77" = no; then
13899 hardcode_libdir_flag_spec_F77=
13900 export_dynamic_flag_spec_F77=
13901 whole_archive_flag_spec_F77=
13904 # PORTME fill in a description of your system's linker (not GNU ld)
13907 allow_undefined_flag_F77=unsupported
13908 always_export_symbols_F77=yes
13909 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'
13910 # Note: this linker hardcodes the directories in LIBPATH if there
13911 # are no directories specified by -L.
13912 hardcode_minus_L_F77=yes
13913 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13914 # Neither direct hardcoding nor static linking is supported with a
13916 hardcode_direct_F77=unsupported
13921 if test "$host_cpu" = ia64; then
13922 # On IA64, the linker does run time linking by default, so we don't
13923 # have to do anything special.
13924 aix_use_runtimelinking=no
13925 exp_sym_flag='-Bexport'
13928 # If we're using GNU nm, then we don't want the "-C" option.
13929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13931 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'
13933 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'
13935 aix_use_runtimelinking=no
13937 # Test if we are trying to use run time linking or normal
13938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13939 # need to do runtime linking.
13940 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13941 for ld_flag in $LDFLAGS; do
13942 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13943 aix_use_runtimelinking=yes
13950 exp_sym_flag='-bexport'
13951 no_entry_flag='-bnoentry'
13954 # When large executables or shared objects are built, AIX ld can
13955 # have problems creating the table of contents. If linking a library
13956 # or program results in "error TOC overflow" add -mminimal-toc to
13957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13960 archive_cmds_F77=''
13961 hardcode_direct_F77=yes
13962 hardcode_libdir_separator_F77=':'
13963 link_all_deplibs_F77=yes
13965 if test "$GCC" = yes; then
13966 case $host_os in aix4.[012]|aix4.[012].*)
13967 # We only want to do this on AIX 4.2 and lower, the check
13968 # below for broken collect2 doesn't work under 4.3+
13969 collect2name=`${CC} -print-prog-name=collect2`
13970 if test -f "$collect2name" && \
13971 strings "$collect2name" | grep resolve_lib_name >/dev/null
13973 # We have reworked collect2
13974 hardcode_direct_F77=yes
13976 # We have old collect2
13977 hardcode_direct_F77=unsupported
13978 # It fails to find uninstalled libraries when the uninstalled
13979 # path is not listed in the libpath. Setting hardcode_minus_L
13980 # to unsupported forces relinking
13981 hardcode_minus_L_F77=yes
13982 hardcode_libdir_flag_spec_F77='-L$libdir'
13983 hardcode_libdir_separator_F77=
13987 shared_flag='-shared'
13988 if test "$aix_use_runtimelinking" = yes; then
13989 shared_flag="$shared_flag "'${wl}-G'
13993 if test "$host_cpu" = ia64; then
13994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13995 # chokes on -Wl,-G. The following line is correct:
13998 if test "$aix_use_runtimelinking" = yes; then
13999 shared_flag='${wl}-G'
14001 shared_flag='${wl}-bM:SRE'
14006 # It seems that -bexpall does not export symbols beginning with
14007 # underscore (_), so it is better to generate a list of symbols to export.
14008 always_export_symbols_F77=yes
14009 if test "$aix_use_runtimelinking" = yes; then
14010 # Warning - without using the other runtime loading flags (-brtl),
14011 # -berok will link without error, but may produce a broken library.
14012 allow_undefined_flag_F77='-berok'
14013 # Determine the default libpath from the value encoded in an empty executable.
14014 cat >conftest.$ac_ext <<_ACEOF
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021 (eval $ac_link) 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_f77_werror_flag"
14029 || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14042 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14044 # Check for a 64-bit object if we didn't find anything.
14045 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; }
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14052 rm -f conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14056 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14057 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"
14059 if test "$host_cpu" = ia64; then
14060 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14061 allow_undefined_flag_F77="-z nodefs"
14062 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"
14064 # Determine the default libpath from the value encoded in an empty executable.
14065 cat >conftest.$ac_ext <<_ACEOF
14070 rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14072 (eval $ac_link) 2>conftest.er1
14074 grep -v '^ *+' conftest.er1 >conftest.err
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -z "$ac_f77_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest$ac_exeext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14095 # Check for a 64-bit object if we didn't find anything.
14096 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; }
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14103 rm -f conftest.err conftest.$ac_objext \
14104 conftest$ac_exeext conftest.$ac_ext
14105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14107 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14108 # Warning - without using the other run time loading flags,
14109 # -berok will link without error, but may produce a broken library.
14110 no_undefined_flag_F77=' ${wl}-bernotok'
14111 allow_undefined_flag_F77=' ${wl}-berok'
14112 # Exported symbols can be pulled into shared objects from archives
14113 whole_archive_flag_spec_F77='$convenience'
14114 archive_cmds_need_lc_F77=yes
14115 # This is similar to how AIX traditionally builds its shared libraries.
14116 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'
14122 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)'
14123 hardcode_libdir_flag_spec_F77='-L$libdir'
14124 hardcode_minus_L_F77=yes
14125 # see comment about different semantics on the GNU ld section
14130 export_dynamic_flag_spec_F77=-rdynamic
14133 cygwin* | mingw* | pw32*)
14134 # When not using gcc, we currently assume that we are using
14135 # Microsoft Visual C++.
14136 # hardcode_libdir_flag_spec is actually meaningless, as there is
14137 # no search path for DLLs.
14138 hardcode_libdir_flag_spec_F77=' '
14139 allow_undefined_flag_F77=unsupported
14140 # Tell ltmain to make .lib files, not .a files.
14142 # Tell ltmain to make .dll files, not .so files.
14144 # FIXME: Setting linknames here is a bad hack.
14145 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14146 # The linker will automatically build a .lib file if we build a DLL.
14147 old_archive_From_new_cmds_F77='true'
14148 # FIXME: Should let the user specify the lib program.
14149 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14150 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14151 enable_shared_with_static_runtimes_F77=yes
14154 darwin* | rhapsody*)
14156 rhapsody* | darwin1.[012])
14157 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14160 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14161 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14163 case ${MACOSX_DEPLOYMENT_TARGET} in
14165 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14168 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14174 archive_cmds_need_lc_F77=no
14175 hardcode_direct_F77=no
14176 hardcode_automatic_F77=yes
14177 hardcode_shlibpath_var_F77=unsupported
14178 whole_archive_flag_spec_F77=''
14179 link_all_deplibs_F77=yes
14180 if test "$GCC" = yes ; then
14181 output_verbose_link_cmd='echo'
14182 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14183 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14185 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}'
14186 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}'
14188 case $cc_basename in
14190 output_verbose_link_cmd='echo'
14191 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14192 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14194 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}'
14195 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}'
14205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14206 hardcode_libdir_flag_spec_F77='-L$libdir'
14207 hardcode_shlibpath_var_F77=no
14214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14215 # support. Future versions do this automatically, but an explicit c++rt0.o
14216 # does not break anything, and helps significantly (at the cost of a little
14219 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14220 hardcode_libdir_flag_spec_F77='-R$libdir'
14221 hardcode_direct_F77=yes
14222 hardcode_shlibpath_var_F77=no
14225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14227 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14228 hardcode_direct_F77=yes
14229 hardcode_minus_L_F77=yes
14230 hardcode_shlibpath_var_F77=no
14233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14234 freebsd* | kfreebsd*-gnu | dragonfly*)
14235 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14236 hardcode_libdir_flag_spec_F77='-R$libdir'
14237 hardcode_direct_F77=yes
14238 hardcode_shlibpath_var_F77=no
14242 if test "$GCC" = yes; then
14243 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'
14245 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'
14247 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14248 hardcode_libdir_separator_F77=:
14249 hardcode_direct_F77=yes
14251 # hardcode_minus_L: Not really in the search PATH,
14252 # but as the default location of the library.
14253 hardcode_minus_L_F77=yes
14254 export_dynamic_flag_spec_F77='${wl}-E'
14258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14259 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14261 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14263 if test "$with_gnu_ld" = no; then
14264 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14265 hardcode_libdir_separator_F77=:
14267 hardcode_direct_F77=yes
14268 export_dynamic_flag_spec_F77='${wl}-E'
14270 # hardcode_minus_L: Not really in the search PATH,
14271 # but as the default location of the library.
14272 hardcode_minus_L_F77=yes
14277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14280 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14283 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14286 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14292 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14295 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14298 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14302 if test "$with_gnu_ld" = no; then
14303 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14304 hardcode_libdir_separator_F77=:
14308 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14309 hardcode_direct_F77=no
14310 hardcode_shlibpath_var_F77=no
14313 hardcode_direct_F77=yes
14314 export_dynamic_flag_spec_F77='${wl}-E'
14316 # hardcode_minus_L: Not really in the search PATH,
14317 # but as the default location of the library.
14318 hardcode_minus_L_F77=yes
14324 irix5* | irix6* | nonstopux*)
14325 if test "$GCC" = yes; then
14326 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'
14328 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'
14329 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14331 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14332 hardcode_libdir_separator_F77=:
14333 link_all_deplibs_F77=yes
14337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14338 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14340 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14342 hardcode_libdir_flag_spec_F77='-R$libdir'
14343 hardcode_direct_F77=yes
14344 hardcode_shlibpath_var_F77=no
14348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349 hardcode_direct_F77=yes
14350 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14351 hardcode_libdir_separator_F77=:
14352 hardcode_shlibpath_var_F77=no
14356 hardcode_direct_F77=yes
14357 hardcode_shlibpath_var_F77=no
14358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14359 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14360 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14361 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14362 export_dynamic_flag_spec_F77='${wl}-E'
14365 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14366 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14367 hardcode_libdir_flag_spec_F77='-R$libdir'
14370 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14371 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14378 hardcode_libdir_flag_spec_F77='-L$libdir'
14379 hardcode_minus_L_F77=yes
14380 allow_undefined_flag_F77=unsupported
14381 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'
14382 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14386 if test "$GCC" = yes; then
14387 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14388 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'
14390 allow_undefined_flag_F77=' -expect_unresolved \*'
14391 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'
14393 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14394 hardcode_libdir_separator_F77=:
14397 osf4* | osf5*) # as osf3* with the addition of -msym flag
14398 if test "$GCC" = yes; then
14399 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14400 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'
14401 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14403 allow_undefined_flag_F77=' -expect_unresolved \*'
14404 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'
14405 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~
14406 $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'
14408 # Both c and cxx compiler support -rpath directly
14409 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14411 hardcode_libdir_separator_F77=:
14415 no_undefined_flag_F77=' -z text'
14416 if test "$GCC" = yes; then
14418 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14419 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14420 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14423 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14425 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14427 hardcode_libdir_flag_spec_F77='-R$libdir'
14428 hardcode_shlibpath_var_F77=no
14430 solaris2.[0-5] | solaris2.[0-5].*) ;;
14432 # The compiler driver will combine linker options so we
14433 # cannot just pass the convience library names through
14434 # without $wl, iff we do not link with $LD.
14435 # Luckily, gcc supports the same syntax we need for Sun Studio.
14436 # Supported since Solaris 2.6 (maybe 2.5.1?)
14439 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14441 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' ;;
14444 link_all_deplibs_F77=yes
14448 if test "x$host_vendor" = xsequent; then
14449 # Use $CC to link under sequent, because it throws in some extra .o
14450 # files that make .init and .fini sections work.
14451 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14453 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14455 hardcode_libdir_flag_spec_F77='-L$libdir'
14456 hardcode_direct_F77=yes
14457 hardcode_minus_L_F77=yes
14458 hardcode_shlibpath_var_F77=no
14462 case $host_vendor in
14464 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14465 hardcode_direct_F77=yes # is this really true???
14468 ## LD is ld it makes a PLAMLIB
14469 ## CC just makes a GrossModule.
14470 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14471 reload_cmds_F77='$CC -r -o $output$reload_objs'
14472 hardcode_direct_F77=no
14475 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14476 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14479 runpath_var='LD_RUN_PATH'
14480 hardcode_shlibpath_var_F77=no
14484 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14485 hardcode_shlibpath_var_F77=no
14486 export_dynamic_flag_spec_F77='-Bexport'
14490 if test -d /usr/nec; then
14491 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14492 hardcode_shlibpath_var_F77=no
14493 runpath_var=LD_RUN_PATH
14494 hardcode_runpath_var=yes
14499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14500 no_undefined_flag_F77='${wl}-z,text'
14501 archive_cmds_need_lc_F77=no
14502 hardcode_shlibpath_var_F77=no
14503 runpath_var='LD_RUN_PATH'
14505 if test "$GCC" = yes; then
14506 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 sysv5* | sco3.2v5* | sco5v6*)
14515 # Note: We can NOT use -z defs as we might desire, because we do not
14516 # link with -lc, and that would cause any symbols used from libc to
14517 # always be unresolved, which means just about no library would
14518 # ever link correctly. If we're not using GNU ld we use -z text
14519 # though, which does catch some bad symbols but isn't as heavy-handed
14521 no_undefined_flag_F77='${wl}-z,text'
14522 allow_undefined_flag_F77='${wl}-z,nodefs'
14523 archive_cmds_need_lc_F77=no
14524 hardcode_shlibpath_var_F77=no
14525 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14526 hardcode_libdir_separator_F77=':'
14527 link_all_deplibs_F77=yes
14528 export_dynamic_flag_spec_F77='${wl}-Bexport'
14529 runpath_var='LD_RUN_PATH'
14531 if test "$GCC" = yes; then
14532 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14533 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14535 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14536 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14542 hardcode_libdir_flag_spec_F77='-L$libdir'
14543 hardcode_shlibpath_var_F77=no
14552 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14553 echo "${ECHO_T}$ld_shlibs_F77" >&6
14554 test "$ld_shlibs_F77" = no && can_build_shared=no
14557 # Do we need to explicitly link libc?
14559 case "x$archive_cmds_need_lc_F77" in
14561 # Assume -lc should be added
14562 archive_cmds_need_lc_F77=yes
14564 if test "$enable_shared" = yes && test "$GCC" = yes; then
14565 case $archive_cmds_F77 in
14567 # FIXME: we may have to deal with multi-command sequences.
14570 # Test whether the compiler implicitly links with -lc since on some
14571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14572 # to ld, don't add -lc before -lgcc.
14573 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14574 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579 (eval $ac_compile) 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } 2>conftest.err; then
14585 libobjs=conftest.$ac_objext
14587 wl=$lt_prog_compiler_wl_F77
14588 pic_flag=$lt_prog_compiler_pic_F77
14594 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14595 allow_undefined_flag_F77=
14596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14597 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }
14602 archive_cmds_need_lc_F77=no
14604 archive_cmds_need_lc_F77=yes
14606 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14608 cat conftest.err 1>&5
14611 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14612 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14619 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14621 library_names_spec=
14622 libname_spec='lib$name'
14626 postuninstall_cmds=
14630 shlibpath_overrides_runpath=unknown
14632 dynamic_linker="$host_os ld.so"
14633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14634 if test "$GCC" = yes; then
14635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14637 # if the path contains ";" then we assume it to be the separator
14638 # otherwise default to the standard path separator (i.e. ":") - it is
14639 # assumed that no part of a normal pathname contains ";" but that should
14640 # okay in the real world where ";" in dirpaths is itself problematic.
14641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14648 need_lib_prefix=unknown
14649 hardcode_into_libs=no
14651 # when you set need_version to no, make sure it does not cause -set_version
14652 # flags to be left without arguments
14653 need_version=unknown
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14659 shlibpath_var=LIBPATH
14661 # AIX 3 has no versioning support, so we append a major version to the name.
14662 soname_spec='${libname}${release}${shared_ext}$major'
14669 hardcode_into_libs=yes
14670 if test "$host_cpu" = ia64; then
14671 # AIX 5 supports IA64
14672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14673 shlibpath_var=LD_LIBRARY_PATH
14675 # With GCC up to 2.95.x, collect2 would create an import file
14676 # for dependence libraries. The import file would start with
14677 # the line `#! .'. This would cause the generated library to
14678 # depend on `.', always an invalid library. This was fixed in
14679 # development snapshots of GCC prior to 3.0.
14681 aix4 | aix4.[01] | aix4.[01].*)
14682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14687 can_build_shared=no
14691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14692 # soname into executable. Probably we can add versioning support to
14693 # collect2, so additional links can be useful in future.
14694 if test "$aix_use_runtimelinking" = yes; then
14695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14696 # instead of lib<name>.a to let people know that these are not
14697 # typical AIX shared libraries.
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 # We preserve .a as extension for shared libraries through AIX4.2
14701 # and later when we are not doing run time linking.
14702 library_names_spec='${libname}${release}.a $libname.a'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14705 shlibpath_var=LIBPATH
14710 library_names_spec='$libname.ixlibrary $libname.a'
14711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14712 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'
14716 library_names_spec='${libname}${shared_ext}'
14717 dynamic_linker="$host_os ld.so"
14718 shlibpath_var=LIBRARY_PATH
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14730 # the default ld.so.conf also contains /usr/contrib/lib and
14731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14732 # libtool to hard-code these into programs
14735 cygwin* | mingw* | pw32*)
14736 version_type=windows
14741 case $GCC,$host_os in
14742 yes,cygwin* | yes,mingw* | yes,pw32*)
14743 library_names_spec='$libname.dll.a'
14744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14745 postinstall_cmds='base_file=`basename \${file}`~
14746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14747 dldir=$destdir/`dirname \$dlpath`~
14748 test -d \$dldir || mkdir -p \$dldir~
14749 $install_prog $dir/$dlname \$dldir/$dlname~
14750 chmod a+x \$dldir/$dlname'
14751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14752 dlpath=$dir/\$dldll~
14754 shlibpath_overrides_runpath=yes
14758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14763 # MinGW DLLs use traditional 'lib' prefix
14764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14767 # It is most probably a Windows format PATH printed by
14768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14769 # path with ; separators, and with drive letters. We can handle the
14770 # drive letters (cygwin fileutils understands them), so leave them,
14771 # especially as we might pass files found there to a mingw objdump,
14772 # which wouldn't understand a cygwinified path. Ahh.
14773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14779 # pw32 DLLs use 'pw' prefix rather than 'lib'
14780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14786 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14788 supports_anon_versioning=no
14789 case `$LD -v 2>/dev/null` in
14790 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14791 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14792 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14793 *\ 2.11.*) ;; # other 2.11 versions
14794 *) supports_anon_versioning=yes ;;
14796 if test $supports_anon_versioning = yes; then
14797 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14799 $echo "local: *; };" >> $output_objdir/$libname.ver~
14800 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14802 $archive_expsym_cmds="$archive_cmds"
14810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14813 dynamic_linker='Win32 ld.exe'
14814 # FIXME: first we should search . and the directory the executable is in
14818 darwin* | rhapsody*)
14819 dynamic_linker="$host_os dyld"
14820 version_type=darwin
14823 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14824 soname_spec='${libname}${release}${major}$shared_ext'
14825 shlibpath_overrides_runpath=yes
14826 shlibpath_var=DYLD_LIBRARY_PATH
14827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14828 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14829 if test "$GCC" = yes; then
14830 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"`
14832 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 shlibpath_var=LD_LIBRARY_PATH
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=no
14858 hardcode_into_libs=yes
14859 dynamic_linker='GNU ld.so'
14862 freebsd* | dragonfly*)
14863 # DragonFly does not have aout. When/if they implement a new
14864 # versioning mechanism, adjust this.
14865 if test -x /usr/bin/objformat; then
14866 objformat=`/usr/bin/objformat`
14869 freebsd[123]*) objformat=aout ;;
14870 *) objformat=elf ;;
14873 # Handle Gentoo/FreeBSD as it was Linux
14874 case $host_vendor in
14876 version_type=linux ;;
14878 version_type=freebsd-$objformat ;;
14881 case $version_type in
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14893 soname_spec='${libname}${release}${shared_ext}$major'
14898 shlibpath_var=LD_LIBRARY_PATH
14901 shlibpath_overrides_runpath=yes
14903 freebsd3.[01]* | freebsdelf3.[01]*)
14904 shlibpath_overrides_runpath=yes
14905 hardcode_into_libs=yes
14907 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14908 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14909 shlibpath_overrides_runpath=no
14910 hardcode_into_libs=yes
14912 freebsd*) # from 4.6 on
14913 shlibpath_overrides_runpath=yes
14914 hardcode_into_libs=yes
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 hardcode_into_libs=yes
14929 hpux9* | hpux10* | hpux11*)
14930 # Give a soname corresponding to the major version so that dld.sl refuses to
14931 # link against other versions.
14938 hardcode_into_libs=yes
14939 dynamic_linker="$host_os dld.so"
14940 shlibpath_var=LD_LIBRARY_PATH
14941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 if test "X$HPUX_IA64_MODE" = X32; then
14945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14953 hardcode_into_libs=yes
14954 dynamic_linker="$host_os dld.sl"
14955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14964 dynamic_linker="$host_os dld.sl"
14965 shlibpath_var=SHLIB_PATH
14966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14971 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14972 postinstall_cmds='chmod 555 $lib'
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 shlibpath_overrides_runpath=no
14984 hardcode_into_libs=yes
14987 irix5* | irix6* | nonstopux*)
14989 nonstopux*) version_type=nonstopux ;;
14991 if test "$lt_cv_prog_gnu_ld" = yes; then
14999 soname_spec='${libname}${release}${shared_ext}$major'
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15002 irix5* | nonstopux*)
15003 libsuff= shlibsuff=
15006 case $LD in # libtool.m4 will add one of these switches to LD
15007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15008 libsuff= shlibsuff= libmagic=32-bit;;
15009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15010 libsuff=32 shlibsuff=N32 libmagic=N32;;
15011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15013 *) libsuff= shlibsuff= libmagic=never-match;;
15017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15018 shlibpath_overrides_runpath=no
15019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15021 hardcode_into_libs=yes
15024 # No shared lib support for Linux oldld, aout, or coff.
15025 linux*oldld* | linux*aout* | linux*coff*)
15029 # This must be Linux ELF.
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 shlibpath_overrides_runpath=no
15039 # This implies no fast_install, which is unacceptable.
15040 # Some rework will be needed to allow for fast_install
15041 # before this can be enabled.
15042 hardcode_into_libs=yes
15044 # Append ld.so.conf contents to the search path
15045 if test -f /etc/ld.so.conf; then
15046 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' ' '`
15047 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15050 # We used to test for /lib/ld.so.1 and disable shared libraries on
15051 # powerpc, because MkLinux only supported shared libraries with the
15052 # GNU dynamic linker. Since this was broken with cross compilers,
15053 # most powerpc-linux boxes support dynamic linking these days and
15054 # people can always --disable-shared, the test was removed, and we
15055 # assume the GNU/Linux dynamic linker is in use.
15056 dynamic_linker='GNU/Linux ld.so'
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15064 soname_spec='${libname}${release}${shared_ext}$major'
15065 shlibpath_var=LD_LIBRARY_PATH
15066 shlibpath_overrides_runpath=no
15067 hardcode_into_libs=yes
15068 dynamic_linker='GNU ld.so'
15075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15078 dynamic_linker='NetBSD (a.out) ld.so'
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15082 dynamic_linker='NetBSD ld.elf_so'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 shlibpath_overrides_runpath=yes
15086 hardcode_into_libs=yes
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092 shlibpath_var=LD_LIBRARY_PATH
15093 shlibpath_overrides_runpath=yes
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 shlibpath_overrides_runpath=yes
15108 sys_lib_dlsearch_path_spec="/usr/lib"
15110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15112 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15113 *) need_version=no ;;
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15120 openbsd2.[89] | openbsd2.[89].*)
15121 shlibpath_overrides_runpath=no
15124 shlibpath_overrides_runpath=yes
15128 shlibpath_overrides_runpath=yes
15133 libname_spec='$name'
15136 library_names_spec='$libname${shared_ext} $libname.a'
15137 dynamic_linker='OS/2 ld.exe'
15138 shlibpath_var=LIBPATH
15141 osf3* | osf4* | osf5*)
15145 soname_spec='${libname}${release}${shared_ext}$major'
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 shlibpath_var=LD_LIBRARY_PATH
15148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 shlibpath_overrides_runpath=yes
15160 hardcode_into_libs=yes
15161 # ldd complains unless libraries are executable
15162 postinstall_cmds='chmod +x $lib'
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15169 shlibpath_var=LD_LIBRARY_PATH
15170 shlibpath_overrides_runpath=yes
15171 if test "$with_gnu_ld" = yes; then
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 case $host_vendor in
15184 shlibpath_overrides_runpath=no
15186 export_dynamic_flag_spec='${wl}-Blargedynsym'
15187 runpath_var=LD_RUN_PATH
15195 shlibpath_overrides_runpath=no
15196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15202 if test -d /usr/nec ;then
15204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15205 soname_spec='$libname${shared_ext}.$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15211 version_type=freebsd-elf
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 hardcode_into_libs=yes
15218 if test "$with_gnu_ld" = yes; then
15219 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15220 shlibpath_overrides_runpath=no
15222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15223 shlibpath_overrides_runpath=yes
15226 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15230 sys_lib_dlsearch_path_spec='/usr/lib'
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15244 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15245 echo "${ECHO_T}$dynamic_linker" >&6
15246 test "$dynamic_linker" = no && can_build_shared=no
15248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15249 if test "$GCC" = yes; then
15250 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15253 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15254 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15255 hardcode_action_F77=
15256 if test -n "$hardcode_libdir_flag_spec_F77" || \
15257 test -n "$runpath_var_F77" || \
15258 test "X$hardcode_automatic_F77" = "Xyes" ; then
15260 # We can hardcode non-existant directories.
15261 if test "$hardcode_direct_F77" != no &&
15262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15263 # have to relink, otherwise we might link with an installed library
15264 # when we should be linking with a yet-to-be-installed one
15265 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15266 test "$hardcode_minus_L_F77" != no; then
15267 # Linking always hardcodes the temporary library directory.
15268 hardcode_action_F77=relink
15270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15271 hardcode_action_F77=immediate
15274 # We cannot hardcode anything, or else we can only hardcode existing
15276 hardcode_action_F77=unsupported
15278 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15279 echo "${ECHO_T}$hardcode_action_F77" >&6
15281 if test "$hardcode_action_F77" = relink; then
15282 # Fast installation is not supported
15283 enable_fast_install=no
15284 elif test "$shlibpath_overrides_runpath" = yes ||
15285 test "$enable_shared" = no; then
15286 # Fast installation is not necessary
15287 enable_fast_install=needless
15291 # The else clause should only fire when bootstrapping the
15292 # libtool distribution, otherwise you forgot to ship ltmain.sh
15293 # with your package, and you will get complaints that there are
15294 # no rules to generate ltmain.sh.
15295 if test -f "$ltmain"; then
15296 # See if we are running on zsh, and set the options which allow our commands through
15297 # without removal of \ escapes.
15298 if test -n "${ZSH_VERSION+set}" ; then
15299 setopt NO_GLOB_SUBST
15301 # Now quote all the things that may contain metacharacters while being
15302 # careful not to overquote the AC_SUBSTed values. We take copies of the
15303 # variables and quote the copies for generation of the libtool script.
15304 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15306 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15307 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15308 deplibs_check_method reload_flag reload_cmds need_locks \
15309 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15310 lt_cv_sys_global_symbol_to_c_name_address \
15311 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15312 old_postinstall_cmds old_postuninstall_cmds \
15316 lt_prog_compiler_wl_F77 \
15317 lt_prog_compiler_pic_F77 \
15318 lt_prog_compiler_static_F77 \
15319 lt_prog_compiler_no_builtin_flag_F77 \
15320 export_dynamic_flag_spec_F77 \
15321 thread_safe_flag_spec_F77 \
15322 whole_archive_flag_spec_F77 \
15323 enable_shared_with_static_runtimes_F77 \
15324 old_archive_cmds_F77 \
15325 old_archive_from_new_cmds_F77 \
15326 predep_objects_F77 \
15327 postdep_objects_F77 \
15330 compiler_lib_search_path_F77 \
15332 archive_expsym_cmds_F77 \
15333 postinstall_cmds_F77 \
15334 postuninstall_cmds_F77 \
15335 old_archive_from_expsyms_cmds_F77 \
15336 allow_undefined_flag_F77 \
15337 no_undefined_flag_F77 \
15338 export_symbols_cmds_F77 \
15339 hardcode_libdir_flag_spec_F77 \
15340 hardcode_libdir_flag_spec_ld_F77 \
15341 hardcode_libdir_separator_F77 \
15342 hardcode_automatic_F77 \
15344 module_expsym_cmds_F77 \
15345 lt_cv_prog_compiler_c_o_F77 \
15346 exclude_expsyms_F77 \
15347 include_expsyms_F77; do
15350 old_archive_cmds_F77 | \
15351 old_archive_from_new_cmds_F77 | \
15352 archive_cmds_F77 | \
15353 archive_expsym_cmds_F77 | \
15354 module_cmds_F77 | \
15355 module_expsym_cmds_F77 | \
15356 old_archive_from_expsyms_cmds_F77 | \
15357 export_symbols_cmds_F77 | \
15358 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15359 postinstall_cmds | postuninstall_cmds | \
15360 old_postinstall_cmds | old_postuninstall_cmds | \
15361 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15362 # Double-quote double-evaled strings.
15363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15372 *'\$0 --fallback-echo"')
15373 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15379 cat <<__EOF__ >> "$cfgfile"
15380 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15384 # Shell to use when invoking shell scripts.
15387 # Whether or not to build shared libraries.
15388 build_libtool_libs=$enable_shared
15390 # Whether or not to build static libraries.
15391 build_old_libs=$enable_static
15393 # Whether or not to add -lc for building shared libraries.
15394 build_libtool_need_lc=$archive_cmds_need_lc_F77
15396 # Whether or not to disallow shared libs when runtime libs are static
15397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15399 # Whether or not to optimize for fast installation.
15400 fast_install=$enable_fast_install
15403 host_alias=$host_alias
15407 # The build system.
15408 build_alias=$build_alias
15412 # An echo program that does not interpret backslashes.
15417 AR_FLAGS=$lt_AR_FLAGS
15422 # LTCC compiler flags.
15423 LTCFLAGS=$lt_LTCFLAGS
15425 # A language-specific compiler.
15426 CC=$lt_compiler_F77
15428 # Is the compiler the GNU C compiler?
15434 # The linker used to build libraries.
15437 # Whether we need hard or soft links.
15440 # A BSD-compatible nm program.
15443 # A symbol stripping program
15446 # Used to examine libraries when file_magic_cmd begins "file"
15447 MAGIC_CMD=$MAGIC_CMD
15449 # Used on cygwin: DLL creation program.
15452 # Used on cygwin: object dumper.
15455 # Used on cygwin: assembler.
15458 # The name of the directory that contains temporary libtool files.
15461 # How to create reloadable object files.
15462 reload_flag=$lt_reload_flag
15463 reload_cmds=$lt_reload_cmds
15465 # How to pass a linker flag through the compiler.
15466 wl=$lt_lt_prog_compiler_wl_F77
15468 # Object file suffix (normally "o").
15469 objext="$ac_objext"
15471 # Old archive suffix (normally "a").
15474 # Shared library suffix (normally ".so").
15475 shrext_cmds='$shrext_cmds'
15477 # Executable file suffix (normally "").
15480 # Additional compiler flags for building library objects.
15481 pic_flag=$lt_lt_prog_compiler_pic_F77
15484 # What is the maximum length of a command?
15485 max_cmd_len=$lt_cv_sys_max_cmd_len
15487 # Does compiler simultaneously support -c and -o options?
15488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15490 # Must we lock files when doing compilation?
15491 need_locks=$lt_need_locks
15493 # Do we need the lib prefix for modules?
15494 need_lib_prefix=$need_lib_prefix
15496 # Do we need a version for libraries?
15497 need_version=$need_version
15499 # Whether dlopen is supported.
15500 dlopen_support=$enable_dlopen
15502 # Whether dlopen of programs is supported.
15503 dlopen_self=$enable_dlopen_self
15505 # Whether dlopen of statically linked programs is supported.
15506 dlopen_self_static=$enable_dlopen_self_static
15508 # Compiler flag to prevent dynamic linking.
15509 link_static_flag=$lt_lt_prog_compiler_static_F77
15511 # Compiler flag to turn off builtin functions.
15512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15514 # Compiler flag to allow reflexive dlopens.
15515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15517 # Compiler flag to generate shared objects directly from archives.
15518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15520 # Compiler flag to generate thread-safe objects.
15521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15523 # Library versioning type.
15524 version_type=$version_type
15526 # Format of library name prefix.
15527 libname_spec=$lt_libname_spec
15529 # List of archive names. First name is the real one, the rest are links.
15530 # The last name is the one that the linker finds with -lNAME.
15531 library_names_spec=$lt_library_names_spec
15533 # The coded name of the library, if different from the real name.
15534 soname_spec=$lt_soname_spec
15536 # Commands used to build and install an old-style archive.
15538 old_archive_cmds=$lt_old_archive_cmds_F77
15539 old_postinstall_cmds=$lt_old_postinstall_cmds
15540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15542 # Create an old-style archive from a shared archive.
15543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15545 # Create a temporary old-style archive to link instead of a shared archive.
15546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15548 # Commands used to build and install a shared archive.
15549 archive_cmds=$lt_archive_cmds_F77
15550 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15551 postinstall_cmds=$lt_postinstall_cmds
15552 postuninstall_cmds=$lt_postuninstall_cmds
15554 # Commands used to build a loadable module (assumed same as above if empty)
15555 module_cmds=$lt_module_cmds_F77
15556 module_expsym_cmds=$lt_module_expsym_cmds_F77
15558 # Commands to strip libraries.
15559 old_striplib=$lt_old_striplib
15560 striplib=$lt_striplib
15562 # Dependencies to place before the objects being linked to create a
15564 predep_objects=$lt_predep_objects_F77
15566 # Dependencies to place after the objects being linked to create a
15568 postdep_objects=$lt_postdep_objects_F77
15570 # Dependencies to place before the objects being linked to create a
15572 predeps=$lt_predeps_F77
15574 # Dependencies to place after the objects being linked to create a
15576 postdeps=$lt_postdeps_F77
15578 # The library search path used internally by the compiler when linking
15579 # a shared library.
15580 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15582 # Method to check whether dependent libraries are shared objects.
15583 deplibs_check_method=$lt_deplibs_check_method
15585 # Command to use when deplibs_check_method == file_magic.
15586 file_magic_cmd=$lt_file_magic_cmd
15588 # Flag that allows shared libraries with undefined symbols to be built.
15589 allow_undefined_flag=$lt_allow_undefined_flag_F77
15591 # Flag that forces no undefined symbols.
15592 no_undefined_flag=$lt_no_undefined_flag_F77
15594 # Commands used to finish a libtool library installation in a directory.
15595 finish_cmds=$lt_finish_cmds
15597 # Same as above, but a single script fragment to be evaled but not shown.
15598 finish_eval=$lt_finish_eval
15600 # Take the output of nm and produce a listing of raw symbols and C names.
15601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15603 # Transform the output of nm in a proper C declaration
15604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15606 # Transform the output of nm in a C name address pair
15607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15609 # This is the shared library runtime path variable.
15610 runpath_var=$runpath_var
15612 # This is the shared library path variable.
15613 shlibpath_var=$shlibpath_var
15615 # Is shlibpath searched before the hard-coded library search path?
15616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15618 # How to hardcode a shared library path into an executable.
15619 hardcode_action=$hardcode_action_F77
15621 # Whether we should hardcode library paths into libraries.
15622 hardcode_into_libs=$hardcode_into_libs
15624 # Flag to hardcode \$libdir into a binary during linking.
15625 # This must work even if \$libdir does not exist.
15626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15628 # If ld is used when linking, flag to hardcode \$libdir into
15629 # a binary during linking. This must work even if \$libdir does
15631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15633 # Whether we need a single -rpath flag with a separated argument.
15634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15637 # resulting binary.
15638 hardcode_direct=$hardcode_direct_F77
15640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15641 # resulting binary.
15642 hardcode_minus_L=$hardcode_minus_L_F77
15644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15645 # the resulting binary.
15646 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15648 # Set to yes if building a shared library automatically hardcodes DIR into the library
15649 # and all subsequent libraries and executables linked against it.
15650 hardcode_automatic=$hardcode_automatic_F77
15652 # Variables whose values should be saved in libtool wrapper scripts and
15653 # restored at relink time.
15654 variables_saved_for_relink="$variables_saved_for_relink"
15656 # Whether libtool must link a program against all its dependency libraries.
15657 link_all_deplibs=$link_all_deplibs_F77
15659 # Compile-time system search path for libraries
15660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15662 # Run-time system search path for libraries
15663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15665 # Fix the shell variable \$srcfile for the compiler.
15666 fix_srcfile_path="$fix_srcfile_path_F77"
15668 # Set to yes if exported symbols are required.
15669 always_export_symbols=$always_export_symbols_F77
15671 # The commands to list exported symbols.
15672 export_symbols_cmds=$lt_export_symbols_cmds_F77
15674 # The commands to extract the exported symbol list from a shared archive.
15675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15677 # Symbols that should not be listed in the preloaded symbols.
15678 exclude_expsyms=$lt_exclude_expsyms_F77
15680 # Symbols that must always be exported.
15681 include_expsyms=$lt_include_expsyms_F77
15683 # ### END LIBTOOL TAG CONFIG: $tagname
15689 # If there is no Makefile yet, we rely on a make rule to execute
15690 # `config.status --recheck' to rerun these tests and create the
15691 # libtool script then.
15692 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15693 if test -f "$ltmain_in"; then
15694 test -f Makefile && make "$ltmain"
15700 ac_cpp='$CPP $CPPFLAGS'
15701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15713 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15717 # Source file extension for Java test sources.
15720 # Object file extension for compiled Java test sources.
15724 # Code to be used in simple compile tests
15725 lt_simple_compile_test_code="class foo {}\n"
15727 # Code to be used in simple link tests
15728 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15732 # If no C compiler was specified, use CC.
15735 # If no C compiler flags were specified, use CFLAGS.
15736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15738 # Allow CC to be a program name with arguments.
15742 # save warnings/boilerplate of simple test code
15743 ac_outfile=conftest.$ac_objext
15744 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15746 _lt_compiler_boilerplate=`cat conftest.err`
15749 ac_outfile=conftest.$ac_objext
15750 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15752 _lt_linker_boilerplate=`cat conftest.err`
15756 # Allow CC to be a program name with arguments.
15761 for cc_temp in $compiler""; do
15763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15769 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15772 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15773 archive_cmds_need_lc_GCJ=no
15775 old_archive_cmds_GCJ=$old_archive_cmds
15778 lt_prog_compiler_no_builtin_flag_GCJ=
15780 if test "$GCC" = yes; then
15781 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15784 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15785 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15786 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 lt_cv_prog_compiler_rtti_exceptions=no
15790 ac_outfile=conftest.$ac_objext
15791 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15792 lt_compiler_flag="-fno-rtti -fno-exceptions"
15793 # Insert the option either (1) after the last *FLAGS variable, or
15794 # (2) before a word containing "conftest.", or (3) at the end.
15795 # Note that $ac_compile itself does not contain backslashes and begins
15796 # with a dollar sign (not a hyphen), so the echo should work correctly.
15797 # The option is referenced via a variable to avoid confusing sed.
15798 lt_compile=`echo "$ac_compile" | $SED \
15799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15801 -e 's:$: $lt_compiler_flag:'`
15802 (eval echo "\"\$as_me:15802: $lt_compile\"" >&5)
15803 (eval "$lt_compile" 2>conftest.err)
15805 cat conftest.err >&5
15806 echo "$as_me:15806: \$? = $ac_status" >&5
15807 if (exit $ac_status) && test -s "$ac_outfile"; then
15808 # The compiler can only warn and ignore the option if not recognized
15809 # So say no if there are warnings other than the usual output.
15810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15813 lt_cv_prog_compiler_rtti_exceptions=yes
15819 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15820 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15822 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15823 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15830 lt_prog_compiler_wl_GCJ=
15831 lt_prog_compiler_pic_GCJ=
15832 lt_prog_compiler_static_GCJ=
15834 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15837 if test "$GCC" = yes; then
15838 lt_prog_compiler_wl_GCJ='-Wl,'
15839 lt_prog_compiler_static_GCJ='-static'
15843 # All AIX code is PIC.
15844 if test "$host_cpu" = ia64; then
15845 # AIX 5 now supports IA64 processor
15846 lt_prog_compiler_static_GCJ='-Bstatic'
15851 # FIXME: we need at least 68020 code to build shared libraries, but
15852 # adding the `-m68020' flag to GCC prevents building anything better,
15854 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15857 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15858 # PIC is the default for these OSes.
15861 mingw* | pw32* | os2*)
15862 # This hack is so that the source file can tell whether it is being
15863 # built for inclusion in a dll (and should export symbols for example).
15864 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15867 darwin* | rhapsody*)
15868 # PIC is the default on this platform
15869 # Common symbols not allowed in MH_DYLIB files
15870 lt_prog_compiler_pic_GCJ='-fno-common'
15874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15875 # Instead, we relocate shared libraries at runtime.
15879 # Just because we use GCC doesn't mean we suddenly get shared libraries
15880 # on systems that don't support them.
15881 lt_prog_compiler_can_build_shared_GCJ=no
15886 if test -d /usr/nec; then
15887 lt_prog_compiler_pic_GCJ=-Kconform_pic
15892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15893 # not for PA HP-UX.
15899 lt_prog_compiler_pic_GCJ='-fPIC'
15905 lt_prog_compiler_pic_GCJ='-fPIC'
15909 # PORTME Check for flag to pass linker flags through the system compiler.
15912 lt_prog_compiler_wl_GCJ='-Wl,'
15913 if test "$host_cpu" = ia64; then
15914 # AIX 5 now supports IA64 processor
15915 lt_prog_compiler_static_GCJ='-Bstatic'
15917 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15921 # PIC is the default on this platform
15922 # Common symbols not allowed in MH_DYLIB files
15923 case $cc_basename in
15925 lt_prog_compiler_pic_GCJ='-qnocommon'
15926 lt_prog_compiler_wl_GCJ='-Wl,'
15931 mingw* | pw32* | os2*)
15932 # This hack is so that the source file can tell whether it is being
15933 # built for inclusion in a dll (and should export symbols for example).
15934 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15937 hpux9* | hpux10* | hpux11*)
15938 lt_prog_compiler_wl_GCJ='-Wl,'
15939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15940 # not for PA HP-UX.
15946 lt_prog_compiler_pic_GCJ='+Z'
15949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15950 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15953 irix5* | irix6* | nonstopux*)
15954 lt_prog_compiler_wl_GCJ='-Wl,'
15955 # PIC (with -KPIC) is the default.
15956 lt_prog_compiler_static_GCJ='-non_shared'
15960 lt_prog_compiler_pic_GCJ='-KPIC'
15961 lt_prog_compiler_static_GCJ='-Bstatic'
15965 case $cc_basename in
15967 lt_prog_compiler_wl_GCJ='-Wl,'
15968 lt_prog_compiler_pic_GCJ='-KPIC'
15969 lt_prog_compiler_static_GCJ='-static'
15971 pgcc* | pgf77* | pgf90* | pgf95*)
15972 # Portland Group compilers (*not* the Pentium gcc compiler,
15973 # which looks to be a dead project)
15974 lt_prog_compiler_wl_GCJ='-Wl,'
15975 lt_prog_compiler_pic_GCJ='-fpic'
15976 lt_prog_compiler_static_GCJ='-Bstatic'
15979 lt_prog_compiler_wl_GCJ='-Wl,'
15980 # All Alpha code is PIC.
15981 lt_prog_compiler_static_GCJ='-non_shared'
15986 osf3* | osf4* | osf5*)
15987 lt_prog_compiler_wl_GCJ='-Wl,'
15988 # All OSF/1 code is PIC.
15989 lt_prog_compiler_static_GCJ='-non_shared'
15993 lt_prog_compiler_pic_GCJ='-KPIC'
15994 lt_prog_compiler_static_GCJ='-Bstatic'
15995 case $cc_basename in
15996 f77* | f90* | f95*)
15997 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15999 lt_prog_compiler_wl_GCJ='-Wl,';;
16004 lt_prog_compiler_wl_GCJ='-Qoption ld '
16005 lt_prog_compiler_pic_GCJ='-PIC'
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16009 sysv4 | sysv4.2uw2* | sysv4.3*)
16010 lt_prog_compiler_wl_GCJ='-Wl,'
16011 lt_prog_compiler_pic_GCJ='-KPIC'
16012 lt_prog_compiler_static_GCJ='-Bstatic'
16016 if test -d /usr/nec ;then
16017 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16018 lt_prog_compiler_static_GCJ='-Bstatic'
16022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16023 lt_prog_compiler_wl_GCJ='-Wl,'
16024 lt_prog_compiler_pic_GCJ='-KPIC'
16025 lt_prog_compiler_static_GCJ='-Bstatic'
16029 lt_prog_compiler_wl_GCJ='-Wl,'
16030 lt_prog_compiler_can_build_shared_GCJ=no
16034 lt_prog_compiler_pic_GCJ='-pic'
16035 lt_prog_compiler_static_GCJ='-Bstatic'
16039 lt_prog_compiler_can_build_shared_GCJ=no
16044 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16045 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16048 # Check to make sure the PIC flag actually works.
16050 if test -n "$lt_prog_compiler_pic_GCJ"; then
16052 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16054 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 lt_prog_compiler_pic_works_GCJ=no
16058 ac_outfile=conftest.$ac_objext
16059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16060 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16061 # Insert the option either (1) after the last *FLAGS variable, or
16062 # (2) before a word containing "conftest.", or (3) at the end.
16063 # Note that $ac_compile itself does not contain backslashes and begins
16064 # with a dollar sign (not a hyphen), so the echo should work correctly.
16065 # The option is referenced via a variable to avoid confusing sed.
16066 lt_compile=`echo "$ac_compile" | $SED \
16067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16069 -e 's:$: $lt_compiler_flag:'`
16070 (eval echo "\"\$as_me:16070: $lt_compile\"" >&5)
16071 (eval "$lt_compile" 2>conftest.err)
16073 cat conftest.err >&5
16074 echo "$as_me:16074: \$? = $ac_status" >&5
16075 if (exit $ac_status) && test -s "$ac_outfile"; then
16076 # The compiler can only warn and ignore the option if not recognized
16077 # So say no if there are warnings other than the usual output.
16078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16081 lt_prog_compiler_pic_works_GCJ=yes
16087 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16088 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16090 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16091 case $lt_prog_compiler_pic_GCJ in
16093 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16096 lt_prog_compiler_pic_GCJ=
16097 lt_prog_compiler_can_build_shared_GCJ=no
16102 # For platforms which do not support PIC, -DPIC is meaningless:
16104 lt_prog_compiler_pic_GCJ=
16107 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16112 # Check to make sure the static flag actually works.
16114 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16115 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16116 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16117 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 lt_prog_compiler_static_works_GCJ=no
16121 save_LDFLAGS="$LDFLAGS"
16122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16123 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16125 # The linker can only warn and ignore the option if not recognized
16126 # So say no if there are warnings
16127 if test -s conftest.err; then
16128 # Append any errors to the config.log.
16129 cat conftest.err 1>&5
16130 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16132 if diff conftest.exp conftest.er2 >/dev/null; then
16133 lt_prog_compiler_static_works_GCJ=yes
16136 lt_prog_compiler_static_works_GCJ=yes
16140 LDFLAGS="$save_LDFLAGS"
16143 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16144 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16146 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16149 lt_prog_compiler_static_GCJ=
16153 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16155 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 lt_cv_prog_compiler_c_o_GCJ=no
16159 $rm -r conftest 2>/dev/null
16163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16165 lt_compiler_flag="-o out/conftest2.$ac_objext"
16166 # Insert the option either (1) after the last *FLAGS variable, or
16167 # (2) before a word containing "conftest.", or (3) at the end.
16168 # Note that $ac_compile itself does not contain backslashes and begins
16169 # with a dollar sign (not a hyphen), so the echo should work correctly.
16170 lt_compile=`echo "$ac_compile" | $SED \
16171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16173 -e 's:$: $lt_compiler_flag:'`
16174 (eval echo "\"\$as_me:16174: $lt_compile\"" >&5)
16175 (eval "$lt_compile" 2>out/conftest.err)
16177 cat out/conftest.err >&5
16178 echo "$as_me:16178: \$? = $ac_status" >&5
16179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16181 # The compiler can only warn and ignore the option if not recognized
16182 # So say no if there are warnings
16183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16186 lt_cv_prog_compiler_c_o_GCJ=yes
16191 # SGI C++ compiler will create directory out/ii_files/ for
16192 # template instantiation
16193 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16194 $rm out/* && rmdir out
16200 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16201 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16204 hard_links="nottested"
16205 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16206 # do not overwrite the value of need_locks provided by the user
16207 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16208 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16213 ln conftest.a conftest.b 2>&5 || hard_links=no
16214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16215 echo "$as_me:$LINENO: result: $hard_links" >&5
16216 echo "${ECHO_T}$hard_links" >&6
16217 if test "$hard_links" = no; then
16218 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16219 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16226 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16230 allow_undefined_flag_GCJ=
16231 enable_shared_with_static_runtimes_GCJ=no
16233 archive_expsym_cmds_GCJ=
16234 old_archive_From_new_cmds_GCJ=
16235 old_archive_from_expsyms_cmds_GCJ=
16236 export_dynamic_flag_spec_GCJ=
16237 whole_archive_flag_spec_GCJ=
16238 thread_safe_flag_spec_GCJ=
16239 hardcode_libdir_flag_spec_GCJ=
16240 hardcode_libdir_flag_spec_ld_GCJ=
16241 hardcode_libdir_separator_GCJ=
16242 hardcode_direct_GCJ=no
16243 hardcode_minus_L_GCJ=no
16244 hardcode_shlibpath_var_GCJ=unsupported
16245 link_all_deplibs_GCJ=unknown
16246 hardcode_automatic_GCJ=no
16248 module_expsym_cmds_GCJ=
16249 always_export_symbols_GCJ=no
16250 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16251 # include_expsyms should be a list of space-separated symbols to be *always*
16252 # included in the symbol list
16253 include_expsyms_GCJ=
16254 # exclude_expsyms can be an extended regexp of symbols to exclude
16255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16257 # as well as any symbol that contains `d'.
16258 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16260 # platforms (ab)use it in PIC code, but their linkers get confused if
16261 # the symbol is explicitly referenced. Since portable code cannot
16262 # rely on this symbol name, it's probably fine to never include it in
16263 # preloaded symbol tables.
16264 extract_expsyms_cmds=
16265 # Just being paranoid about ensuring that cc_basename is set.
16266 for cc_temp in $compiler""; do
16268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16277 cygwin* | mingw* | pw32*)
16278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16279 # When not using gcc, we currently assume that we are using
16280 # Microsoft Visual C++.
16281 if test "$GCC" != yes; then
16286 # we just hope/assume this is gcc and not c89 (= MSVC++)
16295 if test "$with_gnu_ld" = yes; then
16296 # If archive_cmds runs LD, not CC, wlarc should be empty
16299 # Set some defaults for GNU ld with shared library support. These
16300 # are reset later if shared libraries are not supported. Putting them
16301 # here allows them to be overridden if necessary.
16302 runpath_var=LD_RUN_PATH
16303 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16304 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16305 # ancient GNU ld didn't support --whole-archive et. al.
16306 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16307 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16309 whole_archive_flag_spec_GCJ=
16311 supports_anon_versioning=no
16312 case `$LD -v 2>/dev/null` in
16313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16316 *\ 2.11.*) ;; # other 2.11 versions
16317 *) supports_anon_versioning=yes ;;
16320 # See if GNU ld supports shared libraries.
16322 aix3* | aix4* | aix5*)
16323 # On AIX/PPC, the GNU linker is very broken
16324 if test "$host_cpu" != ia64; then
16328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16329 *** to be unable to reliably create shared libraries on AIX.
16330 *** Therefore, libtool is disabling shared libraries support. If you
16331 *** really care for shared libraries, you may want to modify your PATH
16332 *** so that a non-GNU linker is found, and then restart.
16339 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)'
16340 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16341 hardcode_minus_L_GCJ=yes
16343 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16344 # that the semantics of dynamic libraries on AmigaOS, at least up
16345 # to version 4, is to share data among multiple programs linked
16346 # with the same dynamic library. Since this doesn't match the
16347 # behavior of shared libraries on other platforms, we can't use
16353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16354 allow_undefined_flag_GCJ=unsupported
16355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16356 # support --undefined. This deserves some investigation. FIXME
16357 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16363 cygwin* | mingw* | pw32*)
16364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16365 # as there is no search path for DLLs.
16366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16367 allow_undefined_flag_GCJ=unsupported
16368 always_export_symbols_GCJ=no
16369 enable_shared_with_static_runtimes_GCJ=yes
16370 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16374 # If the export-symbols file already is a .def file (1st line
16375 # is EXPORTS), use it as is; otherwise, prepend...
16376 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16377 cp $export_symbols $output_objdir/$soname.def;
16379 echo EXPORTS > $output_objdir/$soname.def;
16380 cat $export_symbols >> $output_objdir/$soname.def;
16382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16389 hardcode_direct_GCJ=no
16390 hardcode_shlibpath_var_GCJ=no
16391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16392 export_dynamic_flag_spec_GCJ='${wl}-E'
16393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16394 # Instead, shared libraries are loaded at an image base (0x10000000 by
16395 # default) and relocated if they conflict, which is a slow very memory
16396 # consuming and fragmenting process. To avoid this, we pick a random,
16397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16399 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'
16400 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'
16404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16406 case $cc_basename,$host_cpu in
16407 pgcc*) # Portland Group C compiler
16408 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'
16409 tmp_addflag=' $pic_flag'
16411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16412 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'
16413 tmp_addflag=' $pic_flag -Mnomain' ;;
16414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16415 tmp_addflag=' -i_dynamic' ;;
16416 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16417 tmp_addflag=' -i_dynamic -nofor_main' ;;
16418 ifc* | ifort*) # Intel Fortran compiler
16419 tmp_addflag=' -nofor_main' ;;
16421 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16423 if test $supports_anon_versioning = yes; then
16424 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16426 $echo "local: *; };" >> $output_objdir/$libname.ver~
16427 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16436 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16439 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16440 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16445 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16450 *** create shared libraries on Solaris systems. Therefore, libtool
16451 *** is disabling shared libraries support. We urge you to upgrade GNU
16452 *** binutils to release 2.9.1 or newer. Another option is to modify
16453 *** your PATH or compiler configuration so that the native linker is
16454 *** used, and then restart.
16457 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16458 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16459 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16466 case `$LD -v 2>&1` in
16467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16472 *** reliably create shared libraries on SCO systems. Therefore, libtool
16473 *** is disabling shared libraries support. We urge you to upgrade GNU
16474 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16475 *** your PATH or compiler configuration so that the native linker is
16476 *** used, and then restart.
16481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16482 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16484 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16493 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_direct_GCJ=yes
16496 hardcode_shlibpath_var_GCJ=no
16500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16502 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16509 if test "$ld_shlibs_GCJ" = no; then
16511 hardcode_libdir_flag_spec_GCJ=
16512 export_dynamic_flag_spec_GCJ=
16513 whole_archive_flag_spec_GCJ=
16516 # PORTME fill in a description of your system's linker (not GNU ld)
16519 allow_undefined_flag_GCJ=unsupported
16520 always_export_symbols_GCJ=yes
16521 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'
16522 # Note: this linker hardcodes the directories in LIBPATH if there
16523 # are no directories specified by -L.
16524 hardcode_minus_L_GCJ=yes
16525 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16526 # Neither direct hardcoding nor static linking is supported with a
16528 hardcode_direct_GCJ=unsupported
16533 if test "$host_cpu" = ia64; then
16534 # On IA64, the linker does run time linking by default, so we don't
16535 # have to do anything special.
16536 aix_use_runtimelinking=no
16537 exp_sym_flag='-Bexport'
16540 # If we're using GNU nm, then we don't want the "-C" option.
16541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16543 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'
16545 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'
16547 aix_use_runtimelinking=no
16549 # Test if we are trying to use run time linking or normal
16550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16551 # need to do runtime linking.
16552 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16553 for ld_flag in $LDFLAGS; do
16554 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16555 aix_use_runtimelinking=yes
16562 exp_sym_flag='-bexport'
16563 no_entry_flag='-bnoentry'
16566 # When large executables or shared objects are built, AIX ld can
16567 # have problems creating the table of contents. If linking a library
16568 # or program results in "error TOC overflow" add -mminimal-toc to
16569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16572 archive_cmds_GCJ=''
16573 hardcode_direct_GCJ=yes
16574 hardcode_libdir_separator_GCJ=':'
16575 link_all_deplibs_GCJ=yes
16577 if test "$GCC" = yes; then
16578 case $host_os in aix4.[012]|aix4.[012].*)
16579 # We only want to do this on AIX 4.2 and lower, the check
16580 # below for broken collect2 doesn't work under 4.3+
16581 collect2name=`${CC} -print-prog-name=collect2`
16582 if test -f "$collect2name" && \
16583 strings "$collect2name" | grep resolve_lib_name >/dev/null
16585 # We have reworked collect2
16586 hardcode_direct_GCJ=yes
16588 # We have old collect2
16589 hardcode_direct_GCJ=unsupported
16590 # It fails to find uninstalled libraries when the uninstalled
16591 # path is not listed in the libpath. Setting hardcode_minus_L
16592 # to unsupported forces relinking
16593 hardcode_minus_L_GCJ=yes
16594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16595 hardcode_libdir_separator_GCJ=
16599 shared_flag='-shared'
16600 if test "$aix_use_runtimelinking" = yes; then
16601 shared_flag="$shared_flag "'${wl}-G'
16605 if test "$host_cpu" = ia64; then
16606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16607 # chokes on -Wl,-G. The following line is correct:
16610 if test "$aix_use_runtimelinking" = yes; then
16611 shared_flag='${wl}-G'
16613 shared_flag='${wl}-bM:SRE'
16618 # It seems that -bexpall does not export symbols beginning with
16619 # underscore (_), so it is better to generate a list of symbols to export.
16620 always_export_symbols_GCJ=yes
16621 if test "$aix_use_runtimelinking" = yes; then
16622 # Warning - without using the other runtime loading flags (-brtl),
16623 # -berok will link without error, but may produce a broken library.
16624 allow_undefined_flag_GCJ='-berok'
16625 # Determine the default libpath from the value encoded in an empty executable.
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643 (eval $ac_link) 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -z "$ac_c_werror_flag"
16651 || test ! -s conftest.err'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest$ac_exeext'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16666 # Check for a 64-bit object if we didn't find anything.
16667 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; }
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16674 rm -f conftest.err conftest.$ac_objext \
16675 conftest$ac_exeext conftest.$ac_ext
16676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16678 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16679 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"
16681 if test "$host_cpu" = ia64; then
16682 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16683 allow_undefined_flag_GCJ="-z nodefs"
16684 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"
16686 # Determine the default libpath from the value encoded in an empty executable.
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16727 # Check for a 64-bit object if we didn't find anything.
16728 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; }
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16735 rm -f conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16740 # Warning - without using the other run time loading flags,
16741 # -berok will link without error, but may produce a broken library.
16742 no_undefined_flag_GCJ=' ${wl}-bernotok'
16743 allow_undefined_flag_GCJ=' ${wl}-berok'
16744 # Exported symbols can be pulled into shared objects from archives
16745 whole_archive_flag_spec_GCJ='$convenience'
16746 archive_cmds_need_lc_GCJ=yes
16747 # This is similar to how AIX traditionally builds its shared libraries.
16748 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'
16754 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)'
16755 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16756 hardcode_minus_L_GCJ=yes
16757 # see comment about different semantics on the GNU ld section
16762 export_dynamic_flag_spec_GCJ=-rdynamic
16765 cygwin* | mingw* | pw32*)
16766 # When not using gcc, we currently assume that we are using
16767 # Microsoft Visual C++.
16768 # hardcode_libdir_flag_spec is actually meaningless, as there is
16769 # no search path for DLLs.
16770 hardcode_libdir_flag_spec_GCJ=' '
16771 allow_undefined_flag_GCJ=unsupported
16772 # Tell ltmain to make .lib files, not .a files.
16774 # Tell ltmain to make .dll files, not .so files.
16776 # FIXME: Setting linknames here is a bad hack.
16777 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16778 # The linker will automatically build a .lib file if we build a DLL.
16779 old_archive_From_new_cmds_GCJ='true'
16780 # FIXME: Should let the user specify the lib program.
16781 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16782 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16783 enable_shared_with_static_runtimes_GCJ=yes
16786 darwin* | rhapsody*)
16788 rhapsody* | darwin1.[012])
16789 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16792 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16793 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16795 case ${MACOSX_DEPLOYMENT_TARGET} in
16797 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16800 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16806 archive_cmds_need_lc_GCJ=no
16807 hardcode_direct_GCJ=no
16808 hardcode_automatic_GCJ=yes
16809 hardcode_shlibpath_var_GCJ=unsupported
16810 whole_archive_flag_spec_GCJ=''
16811 link_all_deplibs_GCJ=yes
16812 if test "$GCC" = yes ; then
16813 output_verbose_link_cmd='echo'
16814 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16815 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16816 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16817 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}'
16818 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}'
16820 case $cc_basename in
16822 output_verbose_link_cmd='echo'
16823 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16824 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16826 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}'
16827 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}'
16837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16838 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16839 hardcode_shlibpath_var_GCJ=no
16846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16847 # support. Future versions do this automatically, but an explicit c++rt0.o
16848 # does not break anything, and helps significantly (at the cost of a little
16851 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16852 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16853 hardcode_direct_GCJ=yes
16854 hardcode_shlibpath_var_GCJ=no
16857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16859 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16860 hardcode_direct_GCJ=yes
16861 hardcode_minus_L_GCJ=yes
16862 hardcode_shlibpath_var_GCJ=no
16865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16866 freebsd* | kfreebsd*-gnu | dragonfly*)
16867 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16868 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16869 hardcode_direct_GCJ=yes
16870 hardcode_shlibpath_var_GCJ=no
16874 if test "$GCC" = yes; then
16875 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'
16877 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'
16879 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16880 hardcode_libdir_separator_GCJ=:
16881 hardcode_direct_GCJ=yes
16883 # hardcode_minus_L: Not really in the search PATH,
16884 # but as the default location of the library.
16885 hardcode_minus_L_GCJ=yes
16886 export_dynamic_flag_spec_GCJ='${wl}-E'
16890 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16891 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16893 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16895 if test "$with_gnu_ld" = no; then
16896 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16897 hardcode_libdir_separator_GCJ=:
16899 hardcode_direct_GCJ=yes
16900 export_dynamic_flag_spec_GCJ='${wl}-E'
16902 # hardcode_minus_L: Not really in the search PATH,
16903 # but as the default location of the library.
16904 hardcode_minus_L_GCJ=yes
16909 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16912 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16915 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16918 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16924 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16927 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16930 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16934 if test "$with_gnu_ld" = no; then
16935 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16936 hardcode_libdir_separator_GCJ=:
16940 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16941 hardcode_direct_GCJ=no
16942 hardcode_shlibpath_var_GCJ=no
16945 hardcode_direct_GCJ=yes
16946 export_dynamic_flag_spec_GCJ='${wl}-E'
16948 # hardcode_minus_L: Not really in the search PATH,
16949 # but as the default location of the library.
16950 hardcode_minus_L_GCJ=yes
16956 irix5* | irix6* | nonstopux*)
16957 if test "$GCC" = yes; then
16958 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'
16960 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'
16961 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16964 hardcode_libdir_separator_GCJ=:
16965 link_all_deplibs_GCJ=yes
16969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16970 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16972 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16974 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16975 hardcode_direct_GCJ=yes
16976 hardcode_shlibpath_var_GCJ=no
16980 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16981 hardcode_direct_GCJ=yes
16982 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16983 hardcode_libdir_separator_GCJ=:
16984 hardcode_shlibpath_var_GCJ=no
16988 hardcode_direct_GCJ=yes
16989 hardcode_shlibpath_var_GCJ=no
16990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16991 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16992 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16994 export_dynamic_flag_spec_GCJ='${wl}-E'
16997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16998 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16999 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17002 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17011 hardcode_minus_L_GCJ=yes
17012 allow_undefined_flag_GCJ=unsupported
17013 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'
17014 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17018 if test "$GCC" = yes; then
17019 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17020 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'
17022 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17023 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'
17025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17026 hardcode_libdir_separator_GCJ=:
17029 osf4* | osf5*) # as osf3* with the addition of -msym flag
17030 if test "$GCC" = yes; then
17031 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17032 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'
17033 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17035 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17036 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'
17037 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~
17038 $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'
17040 # Both c and cxx compiler support -rpath directly
17041 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17043 hardcode_libdir_separator_GCJ=:
17047 no_undefined_flag_GCJ=' -z text'
17048 if test "$GCC" = yes; then
17050 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17052 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17055 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17056 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17059 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17060 hardcode_shlibpath_var_GCJ=no
17062 solaris2.[0-5] | solaris2.[0-5].*) ;;
17064 # The compiler driver will combine linker options so we
17065 # cannot just pass the convience library names through
17066 # without $wl, iff we do not link with $LD.
17067 # Luckily, gcc supports the same syntax we need for Sun Studio.
17068 # Supported since Solaris 2.6 (maybe 2.5.1?)
17071 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17073 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' ;;
17076 link_all_deplibs_GCJ=yes
17080 if test "x$host_vendor" = xsequent; then
17081 # Use $CC to link under sequent, because it throws in some extra .o
17082 # files that make .init and .fini sections work.
17083 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17085 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17087 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17088 hardcode_direct_GCJ=yes
17089 hardcode_minus_L_GCJ=yes
17090 hardcode_shlibpath_var_GCJ=no
17094 case $host_vendor in
17096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17097 hardcode_direct_GCJ=yes # is this really true???
17100 ## LD is ld it makes a PLAMLIB
17101 ## CC just makes a GrossModule.
17102 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17103 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17104 hardcode_direct_GCJ=no
17107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17108 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17111 runpath_var='LD_RUN_PATH'
17112 hardcode_shlibpath_var_GCJ=no
17116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117 hardcode_shlibpath_var_GCJ=no
17118 export_dynamic_flag_spec_GCJ='-Bexport'
17122 if test -d /usr/nec; then
17123 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17124 hardcode_shlibpath_var_GCJ=no
17125 runpath_var=LD_RUN_PATH
17126 hardcode_runpath_var=yes
17131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17132 no_undefined_flag_GCJ='${wl}-z,text'
17133 archive_cmds_need_lc_GCJ=no
17134 hardcode_shlibpath_var_GCJ=no
17135 runpath_var='LD_RUN_PATH'
17137 if test "$GCC" = yes; then
17138 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17139 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17141 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17142 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17146 sysv5* | sco3.2v5* | sco5v6*)
17147 # Note: We can NOT use -z defs as we might desire, because we do not
17148 # link with -lc, and that would cause any symbols used from libc to
17149 # always be unresolved, which means just about no library would
17150 # ever link correctly. If we're not using GNU ld we use -z text
17151 # though, which does catch some bad symbols but isn't as heavy-handed
17153 no_undefined_flag_GCJ='${wl}-z,text'
17154 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17155 archive_cmds_need_lc_GCJ=no
17156 hardcode_shlibpath_var_GCJ=no
17157 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17158 hardcode_libdir_separator_GCJ=':'
17159 link_all_deplibs_GCJ=yes
17160 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17161 runpath_var='LD_RUN_PATH'
17163 if test "$GCC" = yes; then
17164 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17165 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17168 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17175 hardcode_shlibpath_var_GCJ=no
17184 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17185 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17186 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17189 # Do we need to explicitly link libc?
17191 case "x$archive_cmds_need_lc_GCJ" in
17193 # Assume -lc should be added
17194 archive_cmds_need_lc_GCJ=yes
17196 if test "$enable_shared" = yes && test "$GCC" = yes; then
17197 case $archive_cmds_GCJ in
17199 # FIXME: we may have to deal with multi-command sequences.
17202 # Test whether the compiler implicitly links with -lc since on some
17203 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17204 # to ld, don't add -lc before -lgcc.
17205 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17206 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17211 (eval $ac_compile) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } 2>conftest.err; then
17217 libobjs=conftest.$ac_objext
17219 wl=$lt_prog_compiler_wl_GCJ
17220 pic_flag=$lt_prog_compiler_pic_GCJ
17226 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17227 allow_undefined_flag_GCJ=
17228 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17229 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }
17234 archive_cmds_need_lc_GCJ=no
17236 archive_cmds_need_lc_GCJ=yes
17238 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17240 cat conftest.err 1>&5
17243 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17244 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17251 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17252 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17253 library_names_spec=
17254 libname_spec='lib$name'
17258 postuninstall_cmds=
17262 shlibpath_overrides_runpath=unknown
17264 dynamic_linker="$host_os ld.so"
17265 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17266 if test "$GCC" = yes; then
17267 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17268 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17269 # if the path contains ";" then we assume it to be the separator
17270 # otherwise default to the standard path separator (i.e. ":") - it is
17271 # assumed that no part of a normal pathname contains ";" but that should
17272 # okay in the real world where ";" in dirpaths is itself problematic.
17273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17278 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17280 need_lib_prefix=unknown
17281 hardcode_into_libs=no
17283 # when you set need_version to no, make sure it does not cause -set_version
17284 # flags to be left without arguments
17285 need_version=unknown
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17291 shlibpath_var=LIBPATH
17293 # AIX 3 has no versioning support, so we append a major version to the name.
17294 soname_spec='${libname}${release}${shared_ext}$major'
17301 hardcode_into_libs=yes
17302 if test "$host_cpu" = ia64; then
17303 # AIX 5 supports IA64
17304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17305 shlibpath_var=LD_LIBRARY_PATH
17307 # With GCC up to 2.95.x, collect2 would create an import file
17308 # for dependence libraries. The import file would start with
17309 # the line `#! .'. This would cause the generated library to
17310 # depend on `.', always an invalid library. This was fixed in
17311 # development snapshots of GCC prior to 3.0.
17313 aix4 | aix4.[01] | aix4.[01].*)
17314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17316 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17319 can_build_shared=no
17323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17324 # soname into executable. Probably we can add versioning support to
17325 # collect2, so additional links can be useful in future.
17326 if test "$aix_use_runtimelinking" = yes; then
17327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17328 # instead of lib<name>.a to let people know that these are not
17329 # typical AIX shared libraries.
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332 # We preserve .a as extension for shared libraries through AIX4.2
17333 # and later when we are not doing run time linking.
17334 library_names_spec='${libname}${release}.a $libname.a'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17337 shlibpath_var=LIBPATH
17342 library_names_spec='$libname.ixlibrary $libname.a'
17343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17344 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'
17348 library_names_spec='${libname}${shared_ext}'
17349 dynamic_linker="$host_os ld.so"
17350 shlibpath_var=LIBRARY_PATH
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17362 # the default ld.so.conf also contains /usr/contrib/lib and
17363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17364 # libtool to hard-code these into programs
17367 cygwin* | mingw* | pw32*)
17368 version_type=windows
17373 case $GCC,$host_os in
17374 yes,cygwin* | yes,mingw* | yes,pw32*)
17375 library_names_spec='$libname.dll.a'
17376 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17377 postinstall_cmds='base_file=`basename \${file}`~
17378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17379 dldir=$destdir/`dirname \$dlpath`~
17380 test -d \$dldir || mkdir -p \$dldir~
17381 $install_prog $dir/$dlname \$dldir/$dlname~
17382 chmod a+x \$dldir/$dlname'
17383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17384 dlpath=$dir/\$dldll~
17386 shlibpath_overrides_runpath=yes
17390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17395 # MinGW DLLs use traditional 'lib' prefix
17396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17399 # It is most probably a Windows format PATH printed by
17400 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17401 # path with ; separators, and with drive letters. We can handle the
17402 # drive letters (cygwin fileutils understands them), so leave them,
17403 # especially as we might pass files found there to a mingw objdump,
17404 # which wouldn't understand a cygwinified path. Ahh.
17405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17411 # pw32 DLLs use 'pw' prefix rather than 'lib'
17412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17418 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420 supports_anon_versioning=no
17421 case `$LD -v 2>/dev/null` in
17422 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17423 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17424 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17425 *\ 2.11.*) ;; # other 2.11 versions
17426 *) supports_anon_versioning=yes ;;
17428 if test $supports_anon_versioning = yes; then
17429 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17431 $echo "local: *; };" >> $output_objdir/$libname.ver~
17432 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17434 $archive_expsym_cmds="$archive_cmds"
17442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17445 dynamic_linker='Win32 ld.exe'
17446 # FIXME: first we should search . and the directory the executable is in
17450 darwin* | rhapsody*)
17451 dynamic_linker="$host_os dyld"
17452 version_type=darwin
17455 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17456 soname_spec='${libname}${release}${major}$shared_ext'
17457 shlibpath_overrides_runpath=yes
17458 shlibpath_var=DYLD_LIBRARY_PATH
17459 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17460 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17461 if test "$GCC" = yes; then
17462 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"`
17464 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17474 soname_spec='${libname}${release}${shared_ext}$major'
17475 shlibpath_var=LD_LIBRARY_PATH
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 shlibpath_overrides_runpath=no
17490 hardcode_into_libs=yes
17491 dynamic_linker='GNU ld.so'
17494 freebsd* | dragonfly*)
17495 # DragonFly does not have aout. When/if they implement a new
17496 # versioning mechanism, adjust this.
17497 if test -x /usr/bin/objformat; then
17498 objformat=`/usr/bin/objformat`
17501 freebsd[123]*) objformat=aout ;;
17502 *) objformat=elf ;;
17505 # Handle Gentoo/FreeBSD as it was Linux
17506 case $host_vendor in
17508 version_type=linux ;;
17510 version_type=freebsd-$objformat ;;
17513 case $version_type in
17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17525 soname_spec='${libname}${release}${shared_ext}$major'
17530 shlibpath_var=LD_LIBRARY_PATH
17533 shlibpath_overrides_runpath=yes
17535 freebsd3.[01]* | freebsdelf3.[01]*)
17536 shlibpath_overrides_runpath=yes
17537 hardcode_into_libs=yes
17539 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17540 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17541 shlibpath_overrides_runpath=no
17542 hardcode_into_libs=yes
17544 freebsd*) # from 4.6 on
17545 shlibpath_overrides_runpath=yes
17546 hardcode_into_libs=yes
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17556 soname_spec='${libname}${release}${shared_ext}$major'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 hardcode_into_libs=yes
17561 hpux9* | hpux10* | hpux11*)
17562 # Give a soname corresponding to the major version so that dld.sl refuses to
17563 # link against other versions.
17570 hardcode_into_libs=yes
17571 dynamic_linker="$host_os dld.so"
17572 shlibpath_var=LD_LIBRARY_PATH
17573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575 soname_spec='${libname}${release}${shared_ext}$major'
17576 if test "X$HPUX_IA64_MODE" = X32; then
17577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17585 hardcode_into_libs=yes
17586 dynamic_linker="$host_os dld.sl"
17587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590 soname_spec='${libname}${release}${shared_ext}$major'
17591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17596 dynamic_linker="$host_os dld.sl"
17597 shlibpath_var=SHLIB_PATH
17598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17603 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17604 postinstall_cmds='chmod 555 $lib'
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17614 shlibpath_var=LD_LIBRARY_PATH
17615 shlibpath_overrides_runpath=no
17616 hardcode_into_libs=yes
17619 irix5* | irix6* | nonstopux*)
17621 nonstopux*) version_type=nonstopux ;;
17623 if test "$lt_cv_prog_gnu_ld" = yes; then
17631 soname_spec='${libname}${release}${shared_ext}$major'
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17634 irix5* | nonstopux*)
17635 libsuff= shlibsuff=
17638 case $LD in # libtool.m4 will add one of these switches to LD
17639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17640 libsuff= shlibsuff= libmagic=32-bit;;
17641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17642 libsuff=32 shlibsuff=N32 libmagic=N32;;
17643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17644 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17645 *) libsuff= shlibsuff= libmagic=never-match;;
17649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17650 shlibpath_overrides_runpath=no
17651 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17652 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17653 hardcode_into_libs=yes
17656 # No shared lib support for Linux oldld, aout, or coff.
17657 linux*oldld* | linux*aout* | linux*coff*)
17661 # This must be Linux ELF.
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667 soname_spec='${libname}${release}${shared_ext}$major'
17668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17669 shlibpath_var=LD_LIBRARY_PATH
17670 shlibpath_overrides_runpath=no
17671 # This implies no fast_install, which is unacceptable.
17672 # Some rework will be needed to allow for fast_install
17673 # before this can be enabled.
17674 hardcode_into_libs=yes
17676 # Append ld.so.conf contents to the search path
17677 if test -f /etc/ld.so.conf; then
17678 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' ' '`
17679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17682 # We used to test for /lib/ld.so.1 and disable shared libraries on
17683 # powerpc, because MkLinux only supported shared libraries with the
17684 # GNU dynamic linker. Since this was broken with cross compilers,
17685 # most powerpc-linux boxes support dynamic linking these days and
17686 # people can always --disable-shared, the test was removed, and we
17687 # assume the GNU/Linux dynamic linker is in use.
17688 dynamic_linker='GNU/Linux ld.so'
17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17696 soname_spec='${libname}${release}${shared_ext}$major'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 shlibpath_overrides_runpath=no
17699 hardcode_into_libs=yes
17700 dynamic_linker='GNU ld.so'
17707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17710 dynamic_linker='NetBSD (a.out) ld.so'
17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17713 soname_spec='${libname}${release}${shared_ext}$major'
17714 dynamic_linker='NetBSD ld.elf_so'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 shlibpath_overrides_runpath=yes
17718 hardcode_into_libs=yes
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724 shlibpath_var=LD_LIBRARY_PATH
17725 shlibpath_overrides_runpath=yes
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733 soname_spec='${libname}${release}${shared_ext}$major'
17734 shlibpath_var=LD_LIBRARY_PATH
17735 shlibpath_overrides_runpath=yes
17740 sys_lib_dlsearch_path_spec="/usr/lib"
17742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17745 *) need_version=no ;;
17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17749 shlibpath_var=LD_LIBRARY_PATH
17750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17752 openbsd2.[89] | openbsd2.[89].*)
17753 shlibpath_overrides_runpath=no
17756 shlibpath_overrides_runpath=yes
17760 shlibpath_overrides_runpath=yes
17765 libname_spec='$name'
17768 library_names_spec='$libname${shared_ext} $libname.a'
17769 dynamic_linker='OS/2 ld.exe'
17770 shlibpath_var=LIBPATH
17773 osf3* | osf4* | osf5*)
17777 soname_spec='${libname}${release}${shared_ext}$major'
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 shlibpath_var=LD_LIBRARY_PATH
17780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789 soname_spec='${libname}${release}${shared_ext}$major'
17790 shlibpath_var=LD_LIBRARY_PATH
17791 shlibpath_overrides_runpath=yes
17792 hardcode_into_libs=yes
17793 # ldd complains unless libraries are executable
17794 postinstall_cmds='chmod +x $lib'
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17801 shlibpath_var=LD_LIBRARY_PATH
17802 shlibpath_overrides_runpath=yes
17803 if test "$with_gnu_ld" = yes; then
17811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812 soname_spec='${libname}${release}${shared_ext}$major'
17813 shlibpath_var=LD_LIBRARY_PATH
17814 case $host_vendor in
17816 shlibpath_overrides_runpath=no
17818 export_dynamic_flag_spec='${wl}-Blargedynsym'
17819 runpath_var=LD_RUN_PATH
17827 shlibpath_overrides_runpath=no
17828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17834 if test -d /usr/nec ;then
17836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17837 soname_spec='$libname${shared_ext}.$major'
17838 shlibpath_var=LD_LIBRARY_PATH
17842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17843 version_type=freebsd-elf
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 hardcode_into_libs=yes
17850 if test "$with_gnu_ld" = yes; then
17851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17852 shlibpath_overrides_runpath=no
17854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17855 shlibpath_overrides_runpath=yes
17858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17862 sys_lib_dlsearch_path_spec='/usr/lib'
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868 soname_spec='${libname}${release}${shared_ext}$major'
17869 shlibpath_var=LD_LIBRARY_PATH
17876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17877 echo "${ECHO_T}$dynamic_linker" >&6
17878 test "$dynamic_linker" = no && can_build_shared=no
17880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17881 if test "$GCC" = yes; then
17882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17885 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17887 hardcode_action_GCJ=
17888 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17889 test -n "$runpath_var_GCJ" || \
17890 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17892 # We can hardcode non-existant directories.
17893 if test "$hardcode_direct_GCJ" != no &&
17894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17895 # have to relink, otherwise we might link with an installed library
17896 # when we should be linking with a yet-to-be-installed one
17897 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17898 test "$hardcode_minus_L_GCJ" != no; then
17899 # Linking always hardcodes the temporary library directory.
17900 hardcode_action_GCJ=relink
17902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17903 hardcode_action_GCJ=immediate
17906 # We cannot hardcode anything, or else we can only hardcode existing
17908 hardcode_action_GCJ=unsupported
17910 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17911 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17913 if test "$hardcode_action_GCJ" = relink; then
17914 # Fast installation is not supported
17915 enable_fast_install=no
17916 elif test "$shlibpath_overrides_runpath" = yes ||
17917 test "$enable_shared" = no; then
17918 # Fast installation is not necessary
17919 enable_fast_install=needless
17923 # The else clause should only fire when bootstrapping the
17924 # libtool distribution, otherwise you forgot to ship ltmain.sh
17925 # with your package, and you will get complaints that there are
17926 # no rules to generate ltmain.sh.
17927 if test -f "$ltmain"; then
17928 # See if we are running on zsh, and set the options which allow our commands through
17929 # without removal of \ escapes.
17930 if test -n "${ZSH_VERSION+set}" ; then
17931 setopt NO_GLOB_SUBST
17933 # Now quote all the things that may contain metacharacters while being
17934 # careful not to overquote the AC_SUBSTed values. We take copies of the
17935 # variables and quote the copies for generation of the libtool script.
17936 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17940 deplibs_check_method reload_flag reload_cmds need_locks \
17941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17942 lt_cv_sys_global_symbol_to_c_name_address \
17943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17944 old_postinstall_cmds old_postuninstall_cmds \
17948 lt_prog_compiler_wl_GCJ \
17949 lt_prog_compiler_pic_GCJ \
17950 lt_prog_compiler_static_GCJ \
17951 lt_prog_compiler_no_builtin_flag_GCJ \
17952 export_dynamic_flag_spec_GCJ \
17953 thread_safe_flag_spec_GCJ \
17954 whole_archive_flag_spec_GCJ \
17955 enable_shared_with_static_runtimes_GCJ \
17956 old_archive_cmds_GCJ \
17957 old_archive_from_new_cmds_GCJ \
17958 predep_objects_GCJ \
17959 postdep_objects_GCJ \
17962 compiler_lib_search_path_GCJ \
17964 archive_expsym_cmds_GCJ \
17965 postinstall_cmds_GCJ \
17966 postuninstall_cmds_GCJ \
17967 old_archive_from_expsyms_cmds_GCJ \
17968 allow_undefined_flag_GCJ \
17969 no_undefined_flag_GCJ \
17970 export_symbols_cmds_GCJ \
17971 hardcode_libdir_flag_spec_GCJ \
17972 hardcode_libdir_flag_spec_ld_GCJ \
17973 hardcode_libdir_separator_GCJ \
17974 hardcode_automatic_GCJ \
17976 module_expsym_cmds_GCJ \
17977 lt_cv_prog_compiler_c_o_GCJ \
17978 exclude_expsyms_GCJ \
17979 include_expsyms_GCJ; do
17982 old_archive_cmds_GCJ | \
17983 old_archive_from_new_cmds_GCJ | \
17984 archive_cmds_GCJ | \
17985 archive_expsym_cmds_GCJ | \
17986 module_cmds_GCJ | \
17987 module_expsym_cmds_GCJ | \
17988 old_archive_from_expsyms_cmds_GCJ | \
17989 export_symbols_cmds_GCJ | \
17990 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17991 postinstall_cmds | postuninstall_cmds | \
17992 old_postinstall_cmds | old_postuninstall_cmds | \
17993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17994 # Double-quote double-evaled strings.
17995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18004 *'\$0 --fallback-echo"')
18005 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18011 cat <<__EOF__ >> "$cfgfile"
18012 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18016 # Shell to use when invoking shell scripts.
18019 # Whether or not to build shared libraries.
18020 build_libtool_libs=$enable_shared
18022 # Whether or not to build static libraries.
18023 build_old_libs=$enable_static
18025 # Whether or not to add -lc for building shared libraries.
18026 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18028 # Whether or not to disallow shared libs when runtime libs are static
18029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18031 # Whether or not to optimize for fast installation.
18032 fast_install=$enable_fast_install
18035 host_alias=$host_alias
18039 # The build system.
18040 build_alias=$build_alias
18044 # An echo program that does not interpret backslashes.
18049 AR_FLAGS=$lt_AR_FLAGS
18054 # LTCC compiler flags.
18055 LTCFLAGS=$lt_LTCFLAGS
18057 # A language-specific compiler.
18058 CC=$lt_compiler_GCJ
18060 # Is the compiler the GNU C compiler?
18066 # The linker used to build libraries.
18069 # Whether we need hard or soft links.
18072 # A BSD-compatible nm program.
18075 # A symbol stripping program
18078 # Used to examine libraries when file_magic_cmd begins "file"
18079 MAGIC_CMD=$MAGIC_CMD
18081 # Used on cygwin: DLL creation program.
18084 # Used on cygwin: object dumper.
18087 # Used on cygwin: assembler.
18090 # The name of the directory that contains temporary libtool files.
18093 # How to create reloadable object files.
18094 reload_flag=$lt_reload_flag
18095 reload_cmds=$lt_reload_cmds
18097 # How to pass a linker flag through the compiler.
18098 wl=$lt_lt_prog_compiler_wl_GCJ
18100 # Object file suffix (normally "o").
18101 objext="$ac_objext"
18103 # Old archive suffix (normally "a").
18106 # Shared library suffix (normally ".so").
18107 shrext_cmds='$shrext_cmds'
18109 # Executable file suffix (normally "").
18112 # Additional compiler flags for building library objects.
18113 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18116 # What is the maximum length of a command?
18117 max_cmd_len=$lt_cv_sys_max_cmd_len
18119 # Does compiler simultaneously support -c and -o options?
18120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18122 # Must we lock files when doing compilation?
18123 need_locks=$lt_need_locks
18125 # Do we need the lib prefix for modules?
18126 need_lib_prefix=$need_lib_prefix
18128 # Do we need a version for libraries?
18129 need_version=$need_version
18131 # Whether dlopen is supported.
18132 dlopen_support=$enable_dlopen
18134 # Whether dlopen of programs is supported.
18135 dlopen_self=$enable_dlopen_self
18137 # Whether dlopen of statically linked programs is supported.
18138 dlopen_self_static=$enable_dlopen_self_static
18140 # Compiler flag to prevent dynamic linking.
18141 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18143 # Compiler flag to turn off builtin functions.
18144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18146 # Compiler flag to allow reflexive dlopens.
18147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18149 # Compiler flag to generate shared objects directly from archives.
18150 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18152 # Compiler flag to generate thread-safe objects.
18153 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18155 # Library versioning type.
18156 version_type=$version_type
18158 # Format of library name prefix.
18159 libname_spec=$lt_libname_spec
18161 # List of archive names. First name is the real one, the rest are links.
18162 # The last name is the one that the linker finds with -lNAME.
18163 library_names_spec=$lt_library_names_spec
18165 # The coded name of the library, if different from the real name.
18166 soname_spec=$lt_soname_spec
18168 # Commands used to build and install an old-style archive.
18170 old_archive_cmds=$lt_old_archive_cmds_GCJ
18171 old_postinstall_cmds=$lt_old_postinstall_cmds
18172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18174 # Create an old-style archive from a shared archive.
18175 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18177 # Create a temporary old-style archive to link instead of a shared archive.
18178 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18180 # Commands used to build and install a shared archive.
18181 archive_cmds=$lt_archive_cmds_GCJ
18182 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18183 postinstall_cmds=$lt_postinstall_cmds
18184 postuninstall_cmds=$lt_postuninstall_cmds
18186 # Commands used to build a loadable module (assumed same as above if empty)
18187 module_cmds=$lt_module_cmds_GCJ
18188 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18190 # Commands to strip libraries.
18191 old_striplib=$lt_old_striplib
18192 striplib=$lt_striplib
18194 # Dependencies to place before the objects being linked to create a
18196 predep_objects=$lt_predep_objects_GCJ
18198 # Dependencies to place after the objects being linked to create a
18200 postdep_objects=$lt_postdep_objects_GCJ
18202 # Dependencies to place before the objects being linked to create a
18204 predeps=$lt_predeps_GCJ
18206 # Dependencies to place after the objects being linked to create a
18208 postdeps=$lt_postdeps_GCJ
18210 # The library search path used internally by the compiler when linking
18211 # a shared library.
18212 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18214 # Method to check whether dependent libraries are shared objects.
18215 deplibs_check_method=$lt_deplibs_check_method
18217 # Command to use when deplibs_check_method == file_magic.
18218 file_magic_cmd=$lt_file_magic_cmd
18220 # Flag that allows shared libraries with undefined symbols to be built.
18221 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18223 # Flag that forces no undefined symbols.
18224 no_undefined_flag=$lt_no_undefined_flag_GCJ
18226 # Commands used to finish a libtool library installation in a directory.
18227 finish_cmds=$lt_finish_cmds
18229 # Same as above, but a single script fragment to be evaled but not shown.
18230 finish_eval=$lt_finish_eval
18232 # Take the output of nm and produce a listing of raw symbols and C names.
18233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18235 # Transform the output of nm in a proper C declaration
18236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18238 # Transform the output of nm in a C name address pair
18239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18241 # This is the shared library runtime path variable.
18242 runpath_var=$runpath_var
18244 # This is the shared library path variable.
18245 shlibpath_var=$shlibpath_var
18247 # Is shlibpath searched before the hard-coded library search path?
18248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18250 # How to hardcode a shared library path into an executable.
18251 hardcode_action=$hardcode_action_GCJ
18253 # Whether we should hardcode library paths into libraries.
18254 hardcode_into_libs=$hardcode_into_libs
18256 # Flag to hardcode \$libdir into a binary during linking.
18257 # This must work even if \$libdir does not exist.
18258 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18260 # If ld is used when linking, flag to hardcode \$libdir into
18261 # a binary during linking. This must work even if \$libdir does
18263 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18265 # Whether we need a single -rpath flag with a separated argument.
18266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18268 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18269 # resulting binary.
18270 hardcode_direct=$hardcode_direct_GCJ
18272 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18273 # resulting binary.
18274 hardcode_minus_L=$hardcode_minus_L_GCJ
18276 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18277 # the resulting binary.
18278 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18280 # Set to yes if building a shared library automatically hardcodes DIR into the library
18281 # and all subsequent libraries and executables linked against it.
18282 hardcode_automatic=$hardcode_automatic_GCJ
18284 # Variables whose values should be saved in libtool wrapper scripts and
18285 # restored at relink time.
18286 variables_saved_for_relink="$variables_saved_for_relink"
18288 # Whether libtool must link a program against all its dependency libraries.
18289 link_all_deplibs=$link_all_deplibs_GCJ
18291 # Compile-time system search path for libraries
18292 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18294 # Run-time system search path for libraries
18295 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18297 # Fix the shell variable \$srcfile for the compiler.
18298 fix_srcfile_path="$fix_srcfile_path_GCJ"
18300 # Set to yes if exported symbols are required.
18301 always_export_symbols=$always_export_symbols_GCJ
18303 # The commands to list exported symbols.
18304 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18306 # The commands to extract the exported symbol list from a shared archive.
18307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18309 # Symbols that should not be listed in the preloaded symbols.
18310 exclude_expsyms=$lt_exclude_expsyms_GCJ
18312 # Symbols that must always be exported.
18313 include_expsyms=$lt_include_expsyms_GCJ
18315 # ### END LIBTOOL TAG CONFIG: $tagname
18321 # If there is no Makefile yet, we rely on a make rule to execute
18322 # `config.status --recheck' to rerun these tests and create the
18323 # libtool script then.
18324 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18325 if test -f "$ltmain_in"; then
18326 test -f Makefile && make "$ltmain"
18332 ac_cpp='$CPP $CPPFLAGS'
18333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18348 # Source file extension for RC test sources.
18351 # Object file extension for compiled RC test sources.
18355 # Code to be used in simple compile tests
18356 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18358 # Code to be used in simple link tests
18359 lt_simple_link_test_code="$lt_simple_compile_test_code"
18361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18363 # If no C compiler was specified, use CC.
18366 # If no C compiler flags were specified, use CFLAGS.
18367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18369 # Allow CC to be a program name with arguments.
18373 # save warnings/boilerplate of simple test code
18374 ac_outfile=conftest.$ac_objext
18375 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18377 _lt_compiler_boilerplate=`cat conftest.err`
18380 ac_outfile=conftest.$ac_objext
18381 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18383 _lt_linker_boilerplate=`cat conftest.err`
18387 # Allow CC to be a program name with arguments.
18392 for cc_temp in $compiler""; do
18394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18402 lt_cv_prog_compiler_c_o_RC=yes
18404 # The else clause should only fire when bootstrapping the
18405 # libtool distribution, otherwise you forgot to ship ltmain.sh
18406 # with your package, and you will get complaints that there are
18407 # no rules to generate ltmain.sh.
18408 if test -f "$ltmain"; then
18409 # See if we are running on zsh, and set the options which allow our commands through
18410 # without removal of \ escapes.
18411 if test -n "${ZSH_VERSION+set}" ; then
18412 setopt NO_GLOB_SUBST
18414 # Now quote all the things that may contain metacharacters while being
18415 # careful not to overquote the AC_SUBSTed values. We take copies of the
18416 # variables and quote the copies for generation of the libtool script.
18417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18421 deplibs_check_method reload_flag reload_cmds need_locks \
18422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18423 lt_cv_sys_global_symbol_to_c_name_address \
18424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18425 old_postinstall_cmds old_postuninstall_cmds \
18429 lt_prog_compiler_wl_RC \
18430 lt_prog_compiler_pic_RC \
18431 lt_prog_compiler_static_RC \
18432 lt_prog_compiler_no_builtin_flag_RC \
18433 export_dynamic_flag_spec_RC \
18434 thread_safe_flag_spec_RC \
18435 whole_archive_flag_spec_RC \
18436 enable_shared_with_static_runtimes_RC \
18437 old_archive_cmds_RC \
18438 old_archive_from_new_cmds_RC \
18439 predep_objects_RC \
18440 postdep_objects_RC \
18443 compiler_lib_search_path_RC \
18445 archive_expsym_cmds_RC \
18446 postinstall_cmds_RC \
18447 postuninstall_cmds_RC \
18448 old_archive_from_expsyms_cmds_RC \
18449 allow_undefined_flag_RC \
18450 no_undefined_flag_RC \
18451 export_symbols_cmds_RC \
18452 hardcode_libdir_flag_spec_RC \
18453 hardcode_libdir_flag_spec_ld_RC \
18454 hardcode_libdir_separator_RC \
18455 hardcode_automatic_RC \
18457 module_expsym_cmds_RC \
18458 lt_cv_prog_compiler_c_o_RC \
18459 exclude_expsyms_RC \
18460 include_expsyms_RC; do
18463 old_archive_cmds_RC | \
18464 old_archive_from_new_cmds_RC | \
18465 archive_cmds_RC | \
18466 archive_expsym_cmds_RC | \
18468 module_expsym_cmds_RC | \
18469 old_archive_from_expsyms_cmds_RC | \
18470 export_symbols_cmds_RC | \
18471 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18472 postinstall_cmds | postuninstall_cmds | \
18473 old_postinstall_cmds | old_postuninstall_cmds | \
18474 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18475 # Double-quote double-evaled strings.
18476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18485 *'\$0 --fallback-echo"')
18486 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18492 cat <<__EOF__ >> "$cfgfile"
18493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18497 # Shell to use when invoking shell scripts.
18500 # Whether or not to build shared libraries.
18501 build_libtool_libs=$enable_shared
18503 # Whether or not to build static libraries.
18504 build_old_libs=$enable_static
18506 # Whether or not to add -lc for building shared libraries.
18507 build_libtool_need_lc=$archive_cmds_need_lc_RC
18509 # Whether or not to disallow shared libs when runtime libs are static
18510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18512 # Whether or not to optimize for fast installation.
18513 fast_install=$enable_fast_install
18516 host_alias=$host_alias
18520 # The build system.
18521 build_alias=$build_alias
18525 # An echo program that does not interpret backslashes.
18530 AR_FLAGS=$lt_AR_FLAGS
18535 # LTCC compiler flags.
18536 LTCFLAGS=$lt_LTCFLAGS
18538 # A language-specific compiler.
18541 # Is the compiler the GNU C compiler?
18547 # The linker used to build libraries.
18550 # Whether we need hard or soft links.
18553 # A BSD-compatible nm program.
18556 # A symbol stripping program
18559 # Used to examine libraries when file_magic_cmd begins "file"
18560 MAGIC_CMD=$MAGIC_CMD
18562 # Used on cygwin: DLL creation program.
18565 # Used on cygwin: object dumper.
18568 # Used on cygwin: assembler.
18571 # The name of the directory that contains temporary libtool files.
18574 # How to create reloadable object files.
18575 reload_flag=$lt_reload_flag
18576 reload_cmds=$lt_reload_cmds
18578 # How to pass a linker flag through the compiler.
18579 wl=$lt_lt_prog_compiler_wl_RC
18581 # Object file suffix (normally "o").
18582 objext="$ac_objext"
18584 # Old archive suffix (normally "a").
18587 # Shared library suffix (normally ".so").
18588 shrext_cmds='$shrext_cmds'
18590 # Executable file suffix (normally "").
18593 # Additional compiler flags for building library objects.
18594 pic_flag=$lt_lt_prog_compiler_pic_RC
18597 # What is the maximum length of a command?
18598 max_cmd_len=$lt_cv_sys_max_cmd_len
18600 # Does compiler simultaneously support -c and -o options?
18601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18603 # Must we lock files when doing compilation?
18604 need_locks=$lt_need_locks
18606 # Do we need the lib prefix for modules?
18607 need_lib_prefix=$need_lib_prefix
18609 # Do we need a version for libraries?
18610 need_version=$need_version
18612 # Whether dlopen is supported.
18613 dlopen_support=$enable_dlopen
18615 # Whether dlopen of programs is supported.
18616 dlopen_self=$enable_dlopen_self
18618 # Whether dlopen of statically linked programs is supported.
18619 dlopen_self_static=$enable_dlopen_self_static
18621 # Compiler flag to prevent dynamic linking.
18622 link_static_flag=$lt_lt_prog_compiler_static_RC
18624 # Compiler flag to turn off builtin functions.
18625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18627 # Compiler flag to allow reflexive dlopens.
18628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18630 # Compiler flag to generate shared objects directly from archives.
18631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18633 # Compiler flag to generate thread-safe objects.
18634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18636 # Library versioning type.
18637 version_type=$version_type
18639 # Format of library name prefix.
18640 libname_spec=$lt_libname_spec
18642 # List of archive names. First name is the real one, the rest are links.
18643 # The last name is the one that the linker finds with -lNAME.
18644 library_names_spec=$lt_library_names_spec
18646 # The coded name of the library, if different from the real name.
18647 soname_spec=$lt_soname_spec
18649 # Commands used to build and install an old-style archive.
18651 old_archive_cmds=$lt_old_archive_cmds_RC
18652 old_postinstall_cmds=$lt_old_postinstall_cmds
18653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18655 # Create an old-style archive from a shared archive.
18656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18658 # Create a temporary old-style archive to link instead of a shared archive.
18659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18661 # Commands used to build and install a shared archive.
18662 archive_cmds=$lt_archive_cmds_RC
18663 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18664 postinstall_cmds=$lt_postinstall_cmds
18665 postuninstall_cmds=$lt_postuninstall_cmds
18667 # Commands used to build a loadable module (assumed same as above if empty)
18668 module_cmds=$lt_module_cmds_RC
18669 module_expsym_cmds=$lt_module_expsym_cmds_RC
18671 # Commands to strip libraries.
18672 old_striplib=$lt_old_striplib
18673 striplib=$lt_striplib
18675 # Dependencies to place before the objects being linked to create a
18677 predep_objects=$lt_predep_objects_RC
18679 # Dependencies to place after the objects being linked to create a
18681 postdep_objects=$lt_postdep_objects_RC
18683 # Dependencies to place before the objects being linked to create a
18685 predeps=$lt_predeps_RC
18687 # Dependencies to place after the objects being linked to create a
18689 postdeps=$lt_postdeps_RC
18691 # The library search path used internally by the compiler when linking
18692 # a shared library.
18693 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18695 # Method to check whether dependent libraries are shared objects.
18696 deplibs_check_method=$lt_deplibs_check_method
18698 # Command to use when deplibs_check_method == file_magic.
18699 file_magic_cmd=$lt_file_magic_cmd
18701 # Flag that allows shared libraries with undefined symbols to be built.
18702 allow_undefined_flag=$lt_allow_undefined_flag_RC
18704 # Flag that forces no undefined symbols.
18705 no_undefined_flag=$lt_no_undefined_flag_RC
18707 # Commands used to finish a libtool library installation in a directory.
18708 finish_cmds=$lt_finish_cmds
18710 # Same as above, but a single script fragment to be evaled but not shown.
18711 finish_eval=$lt_finish_eval
18713 # Take the output of nm and produce a listing of raw symbols and C names.
18714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18716 # Transform the output of nm in a proper C declaration
18717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18719 # Transform the output of nm in a C name address pair
18720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18722 # This is the shared library runtime path variable.
18723 runpath_var=$runpath_var
18725 # This is the shared library path variable.
18726 shlibpath_var=$shlibpath_var
18728 # Is shlibpath searched before the hard-coded library search path?
18729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18731 # How to hardcode a shared library path into an executable.
18732 hardcode_action=$hardcode_action_RC
18734 # Whether we should hardcode library paths into libraries.
18735 hardcode_into_libs=$hardcode_into_libs
18737 # Flag to hardcode \$libdir into a binary during linking.
18738 # This must work even if \$libdir does not exist.
18739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18741 # If ld is used when linking, flag to hardcode \$libdir into
18742 # a binary during linking. This must work even if \$libdir does
18744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18746 # Whether we need a single -rpath flag with a separated argument.
18747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18750 # resulting binary.
18751 hardcode_direct=$hardcode_direct_RC
18753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18754 # resulting binary.
18755 hardcode_minus_L=$hardcode_minus_L_RC
18757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18758 # the resulting binary.
18759 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18761 # Set to yes if building a shared library automatically hardcodes DIR into the library
18762 # and all subsequent libraries and executables linked against it.
18763 hardcode_automatic=$hardcode_automatic_RC
18765 # Variables whose values should be saved in libtool wrapper scripts and
18766 # restored at relink time.
18767 variables_saved_for_relink="$variables_saved_for_relink"
18769 # Whether libtool must link a program against all its dependency libraries.
18770 link_all_deplibs=$link_all_deplibs_RC
18772 # Compile-time system search path for libraries
18773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18775 # Run-time system search path for libraries
18776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18778 # Fix the shell variable \$srcfile for the compiler.
18779 fix_srcfile_path="$fix_srcfile_path_RC"
18781 # Set to yes if exported symbols are required.
18782 always_export_symbols=$always_export_symbols_RC
18784 # The commands to list exported symbols.
18785 export_symbols_cmds=$lt_export_symbols_cmds_RC
18787 # The commands to extract the exported symbol list from a shared archive.
18788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18790 # Symbols that should not be listed in the preloaded symbols.
18791 exclude_expsyms=$lt_exclude_expsyms_RC
18793 # Symbols that must always be exported.
18794 include_expsyms=$lt_include_expsyms_RC
18796 # ### END LIBTOOL TAG CONFIG: $tagname
18802 # If there is no Makefile yet, we rely on a make rule to execute
18803 # `config.status --recheck' to rerun these tests and create the
18804 # libtool script then.
18805 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18806 if test -f "$ltmain_in"; then
18807 test -f Makefile && make "$ltmain"
18813 ac_cpp='$CPP $CPPFLAGS'
18814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18823 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18824 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18825 { (exit 1); exit 1; }; }
18829 # Append the new tag name to the list of available tags.
18830 if test -n "$tagname" ; then
18831 available_tags="$available_tags $tagname"
18837 # Now substitute the updated list of available tags.
18838 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18839 mv "${ofile}T" "$ofile"
18843 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18844 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18845 { (exit 1); exit 1; }; }
18851 # This can be used to rebuild libtool when needed
18852 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18854 # Always use our own libtool.
18855 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18857 # Prevent multiple expansion
18879 # Checks for header files.
18880 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18881 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18882 if test "${ac_cv_header_stdc+set}" = set; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 #include <stdlib.h>
18892 #include <stdarg.h>
18893 #include <string.h>
18904 rm -f conftest.$ac_objext
18905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18906 (eval $ac_compile) 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest.$ac_objext'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926 ac_cv_header_stdc=yes
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ac_cv_header_stdc=no
18933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18935 if test $ac_cv_header_stdc = yes; then
18936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 #include <string.h>
18946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18947 $EGREP "memchr" >/dev/null 2>&1; then
18950 ac_cv_header_stdc=no
18956 if test $ac_cv_header_stdc = yes; then
18957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 #include <stdlib.h>
18967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18968 $EGREP "free" >/dev/null 2>&1; then
18971 ac_cv_header_stdc=no
18977 if test $ac_cv_header_stdc = yes; then
18978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18979 if test "$cross_compiling" = yes; then
18982 cat >conftest.$ac_ext <<_ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18989 #if ((' ' & 0x0FF) == 0x020)
18990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18993 # define ISLOWER(c) \
18994 (('a' <= (c) && (c) <= 'i') \
18995 || ('j' <= (c) && (c) <= 'r') \
18996 || ('s' <= (c) && (c) <= 'z'))
18997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19005 for (i = 0; i < 256; i++)
19006 if (XOR (islower (i), ISLOWER (i))
19007 || toupper (i) != TOUPPER (i))
19012 rm -f conftest$ac_exeext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014 (eval $ac_link) 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19025 echo "$as_me: program exited with status $ac_status" >&5
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19029 ( exit $ac_status )
19030 ac_cv_header_stdc=no
19032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19038 if test $ac_cv_header_stdc = yes; then
19040 cat >>confdefs.h <<\_ACEOF
19041 #define STDC_HEADERS 1
19050 for ac_header in fcntl.h stdlib.h string.h unistd.h
19052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19054 echo "$as_me:$LINENO: checking for $ac_header" >&5
19055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19062 # Is the header compilable?
19063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19065 cat >conftest.$ac_ext <<_ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 $ac_includes_default
19072 #include <$ac_header>
19074 rm -f conftest.$ac_objext
19075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076 (eval $ac_compile) 2>conftest.er1
19078 grep -v '^ *+' conftest.er1 >conftest.err
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
19083 { ac_try='test -z "$ac_c_werror_flag"
19084 || test ! -s conftest.err'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096 ac_header_compiler=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_header_compiler=no
19103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105 echo "${ECHO_T}$ac_header_compiler" >&6
19107 # Is the header present?
19108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19110 cat >conftest.$ac_ext <<_ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 #include <$ac_header>
19118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19121 grep -v '^ *+' conftest.er1 >conftest.err
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } >/dev/null; then
19126 if test -s conftest.err; then
19127 ac_cpp_err=$ac_c_preproc_warn_flag
19128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19135 if test -z "$ac_cpp_err"; then
19136 ac_header_preproc=yes
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 ac_header_preproc=no
19143 rm -f conftest.err conftest.$ac_ext
19144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145 echo "${ECHO_T}$ac_header_preproc" >&6
19147 # So? What about this header?
19148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19154 ac_header_preproc=yes
19157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19171 ## -------------------------------------------- ##
19172 ## Report this to sebastian.marsching@suphp.org ##
19173 ## -------------------------------------------- ##
19176 sed "s/^/$as_me: WARNING: /" >&2
19179 echo "$as_me:$LINENO: checking for $ac_header" >&5
19180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 eval "$as_ac_Header=\$ac_header_preproc"
19186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19191 cat >>confdefs.h <<_ACEOF
19192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19205 if test "$ac_cv_emxos2" = "yes"; then
19206 # Scripts don't pass test -x on OS/2
19212 echo "$as_me:$LINENO: checking for APR" >&5
19213 echo $ECHO_N "checking for APR... $ECHO_C" >&6
19215 # Check whether --with-apr or --without-apr was given.
19216 if test "${with_apr+set}" = set; then
19217 withval="$with_apr"
19219 if test "$withval" = "no" || test "$withval" = "yes"; then
19220 { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
19221 echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
19222 { (exit 1); exit 1; }; }
19225 if $TEST_X "$withval/bin/apr-config"; then
19227 apr_config="$withval/bin/apr-config"
19228 elif $TEST_X "$withval/apr-config"; then
19230 apr_config="$withval/apr-config"
19231 elif $TEST_X "$withval/bin/apr-1-config"; then
19233 apr_config="$withval/bin/apr-1-config"
19234 elif $TEST_X "$withval/apr-1-config"; then
19236 apr_config="$withval/apr-1-config"
19237 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19239 apr_config="$withval"
19242 if test "$apr_found" != "yes"; then
19243 { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
19244 build directory, or an apr-config file." >&5
19245 echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
19246 build directory, or an apr-config file." >&2;}
19247 { (exit 1); exit 1; }; }
19252 if test -d ""; then
19253 apr_temp_abs_srcdir="`cd && pwd`"
19254 apr_found="reconfig"
19255 if test -n ""; then
19256 apr_config="/apr-config"
19258 apr_config="/apr-config"
19261 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
19262 if apr-config --help > /dev/null 2>&1 ; then
19264 apr_config="apr-config"
19266 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
19267 if $TEST_X "$lookdir/bin/apr-config"; then
19269 apr_config="$lookdir/bin/apr-config"
19278 echo "$as_me:$LINENO: result: $apr_found" >&5
19279 echo "${ECHO_T}$apr_found" >&6
19282 # Determine Apache version and find apxs
19284 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
19285 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
19287 # Check whether --with-apxs or --without-apxs was given.
19288 if test "${with_apxs+set}" = set; then
19289 withval="$with_apxs"
19291 if test "$withval" = "yes"; then
19299 if test -z "$APXS"; then
19303 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
19304 for i in /usr/sbin /usr/local/apache/bin ; do
19305 if test -f "$i/apxs"; then
19311 if test -n "$APXS"; then
19314 APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
19315 | grep "Server version" \
19319 major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
19320 if test "$major_version" = "2.0" -o "$major_version" = "2.2"; then
19321 APACHE_VERSION_2=true
19322 APACHE_VERSION_1_3=false
19324 APACHE_VERSION_2=false
19325 APACHE_VERSION_1_3=true
19330 APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
19331 APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
19332 if test x"${APACHE_VERSION_2}" = xtrue ; then \
19333 APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
19335 if test x"${APACHE_VERSION_1_3}" = xtrue; then \
19336 APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
19342 echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
19343 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
19348 echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6
19352 if test x"${APACHE_VERSION_2}" = xtrue ; then \
19353 if test x"${apr_found}" = xyes ; then \
19354 APR_INCLUDEDIR=`${apr_config} --includedir`
19356 APR_CPPFLAGS=`${apr_config} --cppflags`
19359 { { echo "$as_me:$LINENO: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&5
19360 echo "$as_me: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&2;}
19361 { (exit 1); exit 1; }; }
19367 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
19368 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
19370 # Check whether --with-setid-mode or --without-setid-mode was given.
19371 if test "${with_setid_mode+set}" = set; then
19372 withval="$with_setid_mode"
19374 if test "$withval" = "yes"; then
19375 SETID_MODE="paranoid"
19377 SETID_MODE="$withval"
19382 if test -z "$SETID_MODE" ; then
19383 SETID_MODE="paranoid"
19386 if test -n "$SETID_MODE"; then
19387 case "$SETID_MODE" in
19389 OPT_APACHEMOD_USERGROUP_DEF=""
19392 cat >>confdefs.h <<\_ACEOF
19393 #define OPT_USERGROUP_OWNER 1
19398 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
19401 cat >>confdefs.h <<\_ACEOF
19402 #define OPT_USERGROUP_FORCE 1
19407 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
19410 cat >>confdefs.h <<\_ACEOF
19411 #define OPT_USERGROUP_PARANOID 1
19416 { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
19417 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
19418 { (exit 1); exit 1; }; }
19421 echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
19422 echo "${ECHO_T}ok - using $SETID_MODE" >&6
19426 # Checkpath (docroot) option
19429 # Check whether --enable-checkpath or --disable-checkpath was given.
19430 if test "${enable_checkpath+set}" = set; then
19431 enableval="$enable_checkpath"
19433 if test "$enableval" = "no"; then
19436 cat >>confdefs.h <<\_ACEOF
19437 #define OPT_DISABLE_CHECKPATH 1
19448 # Check whether --with-min-uid or --without-min-uid was given.
19449 if test "${with_min_uid+set}" = set; then
19450 withval="$with_min_uid"
19452 if test "$withval" -a ! "$withval" = "yes" ; then
19454 cat >>confdefs.h <<_ACEOF
19455 #define OPT_MIN_UID $withval
19463 cat >>confdefs.h <<\_ACEOF
19464 #define OPT_MIN_UID 100
19473 # Check whether --with-min-gid or --without-min-gid was given.
19474 if test "${with_min_gid+set}" = set; then
19475 withval="$with_min_gid"
19477 if test "$withval" -a ! "$withval" = "yes" ; then
19479 cat >>confdefs.h <<_ACEOF
19480 #define OPT_MIN_GID $withval
19488 cat >>confdefs.h <<\_ACEOF
19489 #define OPT_MIN_GID 100
19499 # Check whether --with-apache-user or --without-apache-user was given.
19500 if test "${with_apache_user+set}" = set; then
19501 withval="$with_apache_user"
19503 if test "$withval" -a ! "$withval" = "yes" ; then
19505 cat >>confdefs.h <<_ACEOF
19506 #define OPT_APACHE_USER "$withval"
19514 cat >>confdefs.h <<_ACEOF
19515 #define OPT_APACHE_USER "wwwrun"
19524 # Check whether --with-logfile or --without-logfile was given.
19525 if test "${with_logfile+set}" = set; then
19526 withval="$with_logfile"
19528 if test "$withval" -a ! "$withval" = "yes" ; then
19530 cat >>confdefs.h <<_ACEOF
19531 #define OPT_LOGFILE "$withval"
19539 cat >>confdefs.h <<_ACEOF
19540 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
19547 # Conditional building of Apache module
19550 if test x"$APACHE_VERSION_1_3" = xtrue; then
19552 COND_AP13_FALSE='#'
19560 if test x"$APACHE_VERSION_2" = xtrue; then
19562 COND_AP20_FALSE='#'
19569 # Conditionally include UserGroup support
19572 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
19573 COND_APUSERGROUP_TRUE=
19574 COND_APUSERGROUP_FALSE='#'
19576 COND_APUSERGROUP_TRUE='#'
19577 COND_APUSERGROUP_FALSE=
19581 ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
19583 cat >confcache <<\_ACEOF
19584 # This file is a shell script that caches the results of configure
19585 # tests run on this system so they can be shared between configure
19586 # scripts and configure runs, see configure's option --config-cache.
19587 # It is not useful on other systems. If it contains results you don't
19588 # want to keep, you may remove or edit it.
19590 # config.status only pays attention to the cache file if you give it
19591 # the --recheck option to rerun configure.
19593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19595 # following values.
19599 # The following way of writing the cache mishandles newlines in values,
19600 # but we know of no workaround that is simple, portable, and efficient.
19601 # So, don't put newlines in cache variables' values.
19602 # Ultrix sh set writes to stderr and can't be redirected directly,
19603 # and sets the high bit in the cache file unless we assign to the vars.
19606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19608 # `set' does not quote correctly, so add quotes (double-quote
19609 # substitution turns \\\\ into \\, and sed turns \\ into \).
19612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19615 # `set' quotes correctly as required by POSIX, so do not add quotes.
19617 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19626 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19628 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19629 if test -w $cache_file; then
19630 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19631 cat confcache >$cache_file
19633 echo "not updating unwritable cache $cache_file"
19638 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19639 # Let make expand exec_prefix.
19640 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19644 # trailing colons and then remove the whole line if VPATH becomes empty
19645 # (actually we leave an empty line to preserve line numbers).
19646 if test "x$srcdir" = x.; then
19647 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19648 s/:*\$(srcdir):*/:/;
19649 s/:*\${srcdir}:*/:/;
19651 s/^\([^=]*=[ ]*\):*/\1/;
19657 DEFS=-DHAVE_CONFIG_H
19661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19662 # 1. Remove the extension, and $U if already installed.
19663 ac_i=`echo "$ac_i" |
19664 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19666 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19667 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19669 LIBOBJS=$ac_libobjs
19671 LTLIBOBJS=$ac_ltlibobjs
19674 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19675 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19676 Usually this means the macro was only invoked conditionally." >&5
19677 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19678 Usually this means the macro was only invoked conditionally." >&2;}
19679 { (exit 1); exit 1; }; }
19681 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19682 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19683 Usually this means the macro was only invoked conditionally." >&5
19684 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19685 Usually this means the macro was only invoked conditionally." >&2;}
19686 { (exit 1); exit 1; }; }
19688 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19689 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19690 Usually this means the macro was only invoked conditionally." >&5
19691 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19692 Usually this means the macro was only invoked conditionally." >&2;}
19693 { (exit 1); exit 1; }; }
19695 if test -z "${COND_AP13_TRUE}" && test -z "${COND_AP13_FALSE}"; then
19696 { { echo "$as_me:$LINENO: error: conditional \"COND_AP13\" was never defined.
19697 Usually this means the macro was only invoked conditionally." >&5
19698 echo "$as_me: error: conditional \"COND_AP13\" was never defined.
19699 Usually this means the macro was only invoked conditionally." >&2;}
19700 { (exit 1); exit 1; }; }
19702 if test -z "${COND_AP20_TRUE}" && test -z "${COND_AP20_FALSE}"; then
19703 { { echo "$as_me:$LINENO: error: conditional \"COND_AP20\" was never defined.
19704 Usually this means the macro was only invoked conditionally." >&5
19705 echo "$as_me: error: conditional \"COND_AP20\" was never defined.
19706 Usually this means the macro was only invoked conditionally." >&2;}
19707 { (exit 1); exit 1; }; }
19709 if test -z "${COND_APUSERGROUP_TRUE}" && test -z "${COND_APUSERGROUP_FALSE}"; then
19710 { { echo "$as_me:$LINENO: error: conditional \"COND_APUSERGROUP\" was never defined.
19711 Usually this means the macro was only invoked conditionally." >&5
19712 echo "$as_me: error: conditional \"COND_APUSERGROUP\" was never defined.
19713 Usually this means the macro was only invoked conditionally." >&2;}
19714 { (exit 1); exit 1; }; }
19717 : ${CONFIG_STATUS=./config.status}
19718 ac_clean_files_save=$ac_clean_files
19719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19720 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19722 cat >$CONFIG_STATUS <<_ACEOF
19724 # Generated by $as_me.
19725 # Run this file to recreate the current configuration.
19726 # Compiler output produced by configure, useful for debugging
19727 # configure, is in config.log if it exists.
19730 ac_cs_recheck=false
19732 SHELL=\${CONFIG_SHELL-$SHELL}
19735 cat >>$CONFIG_STATUS <<\_ACEOF
19736 ## --------------------- ##
19737 ## M4sh Initialization. ##
19738 ## --------------------- ##
19740 # Be Bourne compatible
19741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19744 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19745 # is contrary to our usage. Disable this feature.
19746 alias -g '${1+"$@"}'='"$@"'
19747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19750 DUALCASE=1; export DUALCASE # for MKS sh
19752 # Support unset when possible.
19753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19760 # Work around bugs in pre-3.0 UWIN ksh.
19761 $as_unset ENV MAIL MAILPATH
19768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19770 LC_TELEPHONE LC_TIME
19772 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19773 eval $as_var=C; export $as_var
19779 # Required to use basename.
19780 if expr a : '\(a\)' >/dev/null 2>&1; then
19786 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19787 as_basename=basename
19793 # Name of the executable.
19794 as_me=`$as_basename "$0" ||
19795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19796 X"$0" : 'X\(//\)$' \| \
19797 X"$0" : 'X\(/\)$' \| \
19798 . : '\(.\)' 2>/dev/null ||
19800 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19801 /^X\/\(\/\/\)$/{ s//\1/; q; }
19802 /^X\/\(\/\).*/{ s//\1/; q; }
19806 # PATH needs CR, and LINENO needs CR and PATH.
19807 # Avoid depending upon Character Ranges.
19808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19811 as_cr_digits='0123456789'
19812 as_cr_alnum=$as_cr_Letters$as_cr_digits
19814 # The user is always right.
19815 if test "${PATH_SEPARATOR+set}" != set; then
19816 echo "#! /bin/sh" >conf$$.sh
19817 echo "exit 0" >>conf$$.sh
19819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19828 as_lineno_1=$LINENO
19829 as_lineno_2=$LINENO
19830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19831 test "x$as_lineno_1" != "x$as_lineno_2" &&
19832 test "x$as_lineno_3" = "x$as_lineno_2" || {
19833 # Find who we are. Look in the path if we contain no path at all
19836 *[\\/]* ) as_myself=$0 ;;
19837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19838 for as_dir in $PATH
19841 test -z "$as_dir" && as_dir=.
19842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19847 # We did not find ourselves, most probably we were run as `sh COMMAND'
19848 # in which case we are not to be found in the path.
19849 if test "x$as_myself" = x; then
19852 if test ! -f "$as_myself"; then
19853 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19855 { (exit 1); exit 1; }; }
19857 case $CONFIG_SHELL in
19859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19863 test -z "$as_dir" && as_dir=.
19864 for as_base in sh bash ksh sh5; do
19867 if ("$as_dir/$as_base" -c '
19868 as_lineno_1=$LINENO
19869 as_lineno_2=$LINENO
19870 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19871 test "x$as_lineno_1" != "x$as_lineno_2" &&
19872 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19873 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19874 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19875 CONFIG_SHELL=$as_dir/$as_base
19876 export CONFIG_SHELL
19877 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19886 # uniformly replaced by the line number. The first 'sed' inserts a
19887 # line-number line before each line; the second 'sed' does the real
19888 # work. The second script uses 'N' to pair each line-number line
19889 # with the numbered line, and appends trailing '-' during
19890 # substitution so that $LINENO is not a special case at line end.
19891 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19892 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19893 sed '=' <$as_myself |
19898 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19901 s,^['$as_cr_digits']*\n,,
19902 ' >$as_me.lineno &&
19903 chmod +x $as_me.lineno ||
19904 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19906 { (exit 1); exit 1; }; }
19908 # Don't try to exec as it changes $[0], causing all sort of problems
19909 # (the dirname of $[0] is not the place where we might find the
19910 # original and so on. Autoconf is especially sensible to this).
19912 # Exit status is that of the last command.
19917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19918 *c*,-n*) ECHO_N= ECHO_C='
19920 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19921 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19924 if expr a : '\(a\)' >/dev/null 2>&1; then
19930 rm -f conf$$ conf$$.exe conf$$.file
19932 if ln -s conf$$.file conf$$ 2>/dev/null; then
19933 # We could just check for DJGPP; but this test a) works b) is more generic
19934 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19935 if test -f conf$$.exe; then
19936 # Don't use ln at all; we don't have any links
19941 elif ln conf$$.file conf$$ 2>/dev/null; then
19946 rm -f conf$$ conf$$.exe conf$$.file
19948 if mkdir -p . 2>/dev/null; then
19951 test -d ./-p && rmdir ./-p
19955 as_executable_p="test -f"
19957 # Sed expression to map a string onto a valid CPP name.
19958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19960 # Sed expression to map a string onto a valid variable name.
19961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19965 # We need space, tab and new line, in precisely that order.
19975 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19976 # report actual input values of CONFIG_FILES etc. instead of their
19977 # values after options handling. Logging --version etc. is OK.
19981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19982 ## Running $as_me. ##
19987 This file was extended by suPHP $as_me 0.6.2, which was
19988 generated by GNU Autoconf 2.59. Invocation command line was
19990 CONFIG_FILES = $CONFIG_FILES
19991 CONFIG_HEADERS = $CONFIG_HEADERS
19992 CONFIG_LINKS = $CONFIG_LINKS
19993 CONFIG_COMMANDS = $CONFIG_COMMANDS
19997 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20001 # Files that config.status was made for.
20002 if test -n "$ac_config_files"; then
20003 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20006 if test -n "$ac_config_headers"; then
20007 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20010 if test -n "$ac_config_links"; then
20011 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20014 if test -n "$ac_config_commands"; then
20015 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20018 cat >>$CONFIG_STATUS <<\_ACEOF
20021 \`$as_me' instantiates files from templates according to the
20022 current configuration.
20024 Usage: $0 [OPTIONS] [FILE]...
20026 -h, --help print this help, then exit
20027 -V, --version print version number, then exit
20028 -q, --quiet do not print progress messages
20029 -d, --debug don't remove temporary files
20030 --recheck update $as_me by reconfiguring in the same conditions
20031 --file=FILE[:TEMPLATE]
20032 instantiate the configuration file FILE
20033 --header=FILE[:TEMPLATE]
20034 instantiate the configuration header FILE
20036 Configuration files:
20039 Configuration headers:
20042 Configuration commands:
20045 Report bugs to <bug-autoconf@gnu.org>."
20048 cat >>$CONFIG_STATUS <<_ACEOF
20050 suPHP config.status 0.6.2
20051 configured by $0, generated by GNU Autoconf 2.59,
20052 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20054 Copyright (C) 2003 Free Software Foundation, Inc.
20055 This config.status script is free software; the Free Software Foundation
20056 gives unlimited permission to copy, distribute and modify it."
20061 cat >>$CONFIG_STATUS <<\_ACEOF
20062 # If no file are specified by the user, then we need to provide default
20063 # value. By we need to know if files were specified by the user.
20069 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20070 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20078 *) # This is not an option, so the user has probably given explicit
20081 ac_need_defaults=false;;
20085 # Handling of the options.
20087 cat >>$CONFIG_STATUS <<\_ACEOF
20088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20090 --version | --vers* | -V )
20091 echo "$ac_cs_version"; exit 0 ;;
20093 # Conflict between --help and --header
20094 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20095 Try \`$0 --help' for more information." >&5
20096 echo "$as_me: error: ambiguous option: $1
20097 Try \`$0 --help' for more information." >&2;}
20098 { (exit 1); exit 1; }; };;
20099 --help | --hel | -h )
20100 echo "$ac_cs_usage"; exit 0 ;;
20101 --debug | --d* | -d )
20103 --file | --fil | --fi | --f )
20105 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20106 ac_need_defaults=false;;
20107 --header | --heade | --head | --hea )
20109 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20110 ac_need_defaults=false;;
20111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20112 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20115 # This is an error.
20116 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20117 Try \`$0 --help' for more information." >&5
20118 echo "$as_me: error: unrecognized option: $1
20119 Try \`$0 --help' for more information." >&2;}
20120 { (exit 1); exit 1; }; } ;;
20122 *) ac_config_targets="$ac_config_targets $1" ;;
20128 ac_configure_extra_args=
20130 if $ac_cs_silent; then
20132 ac_configure_extra_args="$ac_configure_extra_args --silent"
20136 cat >>$CONFIG_STATUS <<_ACEOF
20137 if \$ac_cs_recheck; then
20138 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20139 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20144 cat >>$CONFIG_STATUS <<_ACEOF
20146 # INIT-COMMANDS section.
20149 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20155 cat >>$CONFIG_STATUS <<\_ACEOF
20156 for ac_config_target in $ac_config_targets
20158 case "$ac_config_target" in
20159 # Handling of arguments.
20160 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20161 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20162 "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
20163 "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
20164 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20165 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20166 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20167 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20168 { (exit 1); exit 1; }; };;
20172 # If the user did not use the arguments to specify the items to instantiate,
20173 # then the envvar interface is used. Set only those that are not.
20174 # We use the long form for the default assignment because of an extremely
20175 # bizarre bug on SunOS 4.1.3.
20176 if $ac_need_defaults; then
20177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20179 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20182 # Have a temporary directory for convenience. Make it in the build tree
20183 # simply because there is no reason to put it here, and in addition,
20184 # creating and moving files from /tmp can sometimes cause problems.
20185 # Create a temporary directory, and hook for its removal unless debugging.
20188 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20189 trap '{ (exit 1); exit 1; }' 1 2 13 15
20192 # Create a (secure) tmp directory for tmp files.
20195 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20196 test -n "$tmp" && test -d "$tmp"
20199 tmp=./confstat$$-$RANDOM
20200 (umask 077 && mkdir $tmp)
20203 echo "$me: cannot create a temporary directory in ." >&2
20204 { (exit 1); exit 1; }
20209 cat >>$CONFIG_STATUS <<_ACEOF
20212 # CONFIG_FILES section.
20215 # No need to generate the scripts if there are no CONFIG_FILES.
20216 # This happens for instance when ./config.status config.h
20217 if test -n "\$CONFIG_FILES"; then
20218 # Protect against being on the right side of a sed subst in config.status.
20219 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20220 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20221 s,@SHELL@,$SHELL,;t t
20222 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20223 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20224 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20225 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20226 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20227 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20228 s,@exec_prefix@,$exec_prefix,;t t
20229 s,@prefix@,$prefix,;t t
20230 s,@program_transform_name@,$program_transform_name,;t t
20231 s,@bindir@,$bindir,;t t
20232 s,@sbindir@,$sbindir,;t t
20233 s,@libexecdir@,$libexecdir,;t t
20234 s,@datadir@,$datadir,;t t
20235 s,@sysconfdir@,$sysconfdir,;t t
20236 s,@sharedstatedir@,$sharedstatedir,;t t
20237 s,@localstatedir@,$localstatedir,;t t
20238 s,@libdir@,$libdir,;t t
20239 s,@includedir@,$includedir,;t t
20240 s,@oldincludedir@,$oldincludedir,;t t
20241 s,@infodir@,$infodir,;t t
20242 s,@mandir@,$mandir,;t t
20243 s,@build_alias@,$build_alias,;t t
20244 s,@host_alias@,$host_alias,;t t
20245 s,@target_alias@,$target_alias,;t t
20246 s,@DEFS@,$DEFS,;t t
20247 s,@ECHO_C@,$ECHO_C,;t t
20248 s,@ECHO_N@,$ECHO_N,;t t
20249 s,@ECHO_T@,$ECHO_T,;t t
20250 s,@LIBS@,$LIBS,;t t
20251 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20252 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20253 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20254 s,@CYGPATH_W@,$CYGPATH_W,;t t
20255 s,@PACKAGE@,$PACKAGE,;t t
20256 s,@VERSION@,$VERSION,;t t
20257 s,@ACLOCAL@,$ACLOCAL,;t t
20258 s,@AUTOCONF@,$AUTOCONF,;t t
20259 s,@AUTOMAKE@,$AUTOMAKE,;t t
20260 s,@AUTOHEADER@,$AUTOHEADER,;t t
20261 s,@MAKEINFO@,$MAKEINFO,;t t
20262 s,@install_sh@,$install_sh,;t t
20263 s,@STRIP@,$STRIP,;t t
20264 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20265 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20266 s,@mkdir_p@,$mkdir_p,;t t
20268 s,@SET_MAKE@,$SET_MAKE,;t t
20269 s,@am__leading_dot@,$am__leading_dot,;t t
20270 s,@AMTAR@,$AMTAR,;t t
20271 s,@am__tar@,$am__tar,;t t
20272 s,@am__untar@,$am__untar,;t t
20274 s,@CFLAGS@,$CFLAGS,;t t
20275 s,@LDFLAGS@,$LDFLAGS,;t t
20276 s,@CPPFLAGS@,$CPPFLAGS,;t t
20277 s,@ac_ct_CC@,$ac_ct_CC,;t t
20278 s,@EXEEXT@,$EXEEXT,;t t
20279 s,@OBJEXT@,$OBJEXT,;t t
20280 s,@DEPDIR@,$DEPDIR,;t t
20281 s,@am__include@,$am__include,;t t
20282 s,@am__quote@,$am__quote,;t t
20283 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20284 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20285 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20286 s,@CCDEPMODE@,$CCDEPMODE,;t t
20287 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20288 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20290 s,@CXXFLAGS@,$CXXFLAGS,;t t
20291 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20292 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20293 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20294 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20295 s,@build@,$build,;t t
20296 s,@build_cpu@,$build_cpu,;t t
20297 s,@build_vendor@,$build_vendor,;t t
20298 s,@build_os@,$build_os,;t t
20299 s,@host@,$host,;t t
20300 s,@host_cpu@,$host_cpu,;t t
20301 s,@host_vendor@,$host_vendor,;t t
20302 s,@host_os@,$host_os,;t t
20303 s,@EGREP@,$EGREP,;t t
20304 s,@LN_S@,$LN_S,;t t
20305 s,@ECHO@,$ECHO,;t t
20307 s,@ac_ct_AR@,$ac_ct_AR,;t t
20308 s,@RANLIB@,$RANLIB,;t t
20309 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20311 s,@CXXCPP@,$CXXCPP,;t t
20313 s,@FFLAGS@,$FFLAGS,;t t
20314 s,@ac_ct_F77@,$ac_ct_F77,;t t
20315 s,@LIBTOOL@,$LIBTOOL,;t t
20316 s,@APXS@,$APXS,;t t
20317 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
20318 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
20319 s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
20320 s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
20321 s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
20322 s,@APR_INCLUDEDIR@,$APR_INCLUDEDIR,;t t
20323 s,@APR_CPPFLAGS@,$APR_CPPFLAGS,;t t
20324 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
20325 s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
20326 s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
20327 s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
20328 s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
20329 s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
20330 s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
20331 s,@LIBOBJS@,$LIBOBJS,;t t
20332 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20337 cat >>$CONFIG_STATUS <<\_ACEOF
20338 # Split the substitutions into bite-sized pieces for seds with
20339 # small command number limits, like on Digital OSF/1 and HP-UX.
20340 ac_max_sed_lines=48
20341 ac_sed_frag=1 # Number of current file.
20342 ac_beg=1 # First line for current file.
20343 ac_end=$ac_max_sed_lines # Line after last line for current file.
20346 while $ac_more_lines; do
20347 if test $ac_beg -gt 1; then
20348 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20350 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20352 if test ! -s $tmp/subs.frag; then
20353 ac_more_lines=false
20355 # The purpose of the label and of the branching condition is to
20356 # speed up the sed processing (if there are no `@' at all, there
20357 # is no need to browse any of the substitutions).
20358 # These are the two extra sed commands mentioned above.
20360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20361 if test -z "$ac_sed_cmds"; then
20362 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20364 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20366 ac_sed_frag=`expr $ac_sed_frag + 1`
20368 ac_end=`expr $ac_end + $ac_max_sed_lines`
20371 if test -z "$ac_sed_cmds"; then
20374 fi # test -n "$CONFIG_FILES"
20377 cat >>$CONFIG_STATUS <<\_ACEOF
20378 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20379 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20381 - | *:- | *:-:* ) # input from stdin
20383 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20384 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20385 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20386 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20387 * ) ac_file_in=$ac_file.in ;;
20390 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20391 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20393 X"$ac_file" : 'X\(//\)[^/]' \| \
20394 X"$ac_file" : 'X\(//\)$' \| \
20395 X"$ac_file" : 'X\(/\)' \| \
20396 . : '\(.\)' 2>/dev/null ||
20398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20400 /^X\(\/\/\)$/{ s//\1/; q; }
20401 /^X\(\/\).*/{ s//\1/; q; }
20403 { if $as_mkdir_p; then
20408 while test ! -d "$as_dir"; do
20409 as_dirs="$as_dir $as_dirs"
20410 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20412 X"$as_dir" : 'X\(//\)[^/]' \| \
20413 X"$as_dir" : 'X\(//\)$' \| \
20414 X"$as_dir" : 'X\(/\)' \| \
20415 . : '\(.\)' 2>/dev/null ||
20417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20419 /^X\(\/\/\)$/{ s//\1/; q; }
20420 /^X\(\/\).*/{ s//\1/; q; }
20423 test ! -n "$as_dirs" || mkdir $as_dirs
20424 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20425 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20426 { (exit 1); exit 1; }; }; }
20430 if test "$ac_dir" != .; then
20431 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20432 # A "../" for each directory in $ac_dir_suffix.
20433 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20435 ac_dir_suffix= ac_top_builddir=
20439 .) # No --srcdir option. We are building in place.
20441 if test -z "$ac_top_builddir"; then
20444 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20446 [\\/]* | ?:[\\/]* ) # Absolute path.
20447 ac_srcdir=$srcdir$ac_dir_suffix;
20448 ac_top_srcdir=$srcdir ;;
20449 *) # Relative path.
20450 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20451 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20454 # Do not use `cd foo && pwd` to compute absolute paths, because
20455 # the directories may not exist.
20457 .) ac_abs_builddir="$ac_dir";;
20460 .) ac_abs_builddir=`pwd`;;
20461 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20462 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20465 case $ac_abs_builddir in
20466 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20468 case ${ac_top_builddir}. in
20469 .) ac_abs_top_builddir=$ac_abs_builddir;;
20470 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20471 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20474 case $ac_abs_builddir in
20475 .) ac_abs_srcdir=$ac_srcdir;;
20478 .) ac_abs_srcdir=$ac_abs_builddir;;
20479 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20480 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20483 case $ac_abs_builddir in
20484 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20486 case $ac_top_srcdir in
20487 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20488 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20489 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20496 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20499 if test x"$ac_file" != x-; then
20500 { echo "$as_me:$LINENO: creating $ac_file" >&5
20501 echo "$as_me: creating $ac_file" >&6;}
20504 # Let's still pretend it is `configure' which instantiates (i.e., don't
20505 # use $as_me), people would be surprised to read:
20506 # /* config.h. Generated by config.status. */
20507 if test x"$ac_file" = x-; then
20510 configure_input="$ac_file. "
20512 configure_input=$configure_input"Generated from `echo $ac_file_in |
20513 sed 's,.*/,,'` by configure."
20515 # First look for the input files in the build tree, otherwise in the
20517 ac_file_inputs=`IFS=:
20518 for f in $ac_file_in; do
20520 -) echo $tmp/stdin ;;
20522 # Absolute (can't be DOS-style, as IFS=:)
20523 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20524 echo "$as_me: error: cannot find input file: $f" >&2;}
20525 { (exit 1); exit 1; }; }
20528 if test -f "$f"; then
20531 elif test -f "$srcdir/$f"; then
20536 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20537 echo "$as_me: error: cannot find input file: $f" >&2;}
20538 { (exit 1); exit 1; }; }
20541 done` || { (exit 1); exit 1; }
20543 cat >>$CONFIG_STATUS <<_ACEOF
20547 cat >>$CONFIG_STATUS <<\_ACEOF
20549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20550 s,@configure_input@,$configure_input,;t t
20551 s,@srcdir@,$ac_srcdir,;t t
20552 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20553 s,@top_srcdir@,$ac_top_srcdir,;t t
20554 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20555 s,@builddir@,$ac_builddir,;t t
20556 s,@abs_builddir@,$ac_abs_builddir,;t t
20557 s,@top_builddir@,$ac_top_builddir,;t t
20558 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20559 s,@INSTALL@,$ac_INSTALL,;t t
20560 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20562 if test x"$ac_file" != x-; then
20563 mv $tmp/out $ac_file
20571 cat >>$CONFIG_STATUS <<\_ACEOF
20574 # CONFIG_HEADER section.
20577 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20578 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20580 # ac_d sets the value in "#define NAME VALUE" lines.
20581 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20582 ac_dB='[ ].*$,\1#\2'
20585 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20586 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20587 ac_uB='$,\1#\2define\3'
20591 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20594 - | *:- | *:-:* ) # input from stdin
20596 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20597 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20598 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20600 * ) ac_file_in=$ac_file.in ;;
20603 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20604 echo "$as_me: creating $ac_file" >&6;}
20606 # First look for the input files in the build tree, otherwise in the
20608 ac_file_inputs=`IFS=:
20609 for f in $ac_file_in; do
20611 -) echo $tmp/stdin ;;
20613 # Absolute (can't be DOS-style, as IFS=:)
20614 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20615 echo "$as_me: error: cannot find input file: $f" >&2;}
20616 { (exit 1); exit 1; }; }
20617 # Do quote $f, to prevent DOS paths from being IFS'd.
20620 if test -f "$f"; then
20623 elif test -f "$srcdir/$f"; then
20628 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20629 echo "$as_me: error: cannot find input file: $f" >&2;}
20630 { (exit 1); exit 1; }; }
20633 done` || { (exit 1); exit 1; }
20634 # Remove the trailing spaces.
20635 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20639 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20640 # `conftest.undefs', that substitutes the proper values into
20641 # config.h.in to produce config.h. The first handles `#define'
20642 # templates, and the second `#undef' templates.
20643 # And first: Protect against being on the right side of a sed subst in
20644 # config.status. Protect against being in an unquoted here document
20645 # in config.status.
20646 rm -f conftest.defines conftest.undefs
20647 # Using a here document instead of a string reduces the quoting nightmare.
20648 # Putting comments in sed scripts is not portable.
20650 # `end' is used to avoid that the second main sed command (meant for
20651 # 0-ary CPP macros) applies to n-ary macro definitions.
20652 # See the Autoconf documentation for `clear'.
20653 cat >confdef2sed.sed <<\_ACEOF
20658 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20660 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20663 # If some macros were called several times there might be several times
20664 # the same #defines, which is useless. Nevertheless, we may not want to
20665 # sort them, since we want the *last* AC-DEFINE to be honored.
20666 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20667 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20668 rm -f confdef2sed.sed
20670 # This sed command replaces #undef with comments. This is necessary, for
20671 # example, in the case of _POSIX_SOURCE, which is predefined and required
20672 # on some systems where configure will not decide to define it.
20673 cat >>conftest.undefs <<\_ACEOF
20674 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20677 # Break up conftest.defines because some shells have a limit on the size
20678 # of here documents, and old seds have small limits too (100 cmds).
20679 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20680 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20681 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20682 echo ' :' >>$CONFIG_STATUS
20683 rm -f conftest.tail
20684 while grep . conftest.defines >/dev/null
20686 # Write a limited-size here document to $tmp/defines.sed.
20687 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20688 # Speed up: don't consider the non `#define' lines.
20689 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20690 # Work around the forget-to-reset-the-flag bug.
20691 echo 't clr' >>$CONFIG_STATUS
20692 echo ': clr' >>$CONFIG_STATUS
20693 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20695 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20697 mv $tmp/out $tmp/in
20699 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20700 rm -f conftest.defines
20701 mv conftest.tail conftest.defines
20703 rm -f conftest.defines
20704 echo ' fi # grep' >>$CONFIG_STATUS
20705 echo >>$CONFIG_STATUS
20707 # Break up conftest.undefs because some shells have a limit on the size
20708 # of here documents, and old seds have small limits too (100 cmds).
20709 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20710 rm -f conftest.tail
20711 while grep . conftest.undefs >/dev/null
20713 # Write a limited-size here document to $tmp/undefs.sed.
20714 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20715 # Speed up: don't consider the non `#undef'
20716 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20717 # Work around the forget-to-reset-the-flag bug.
20718 echo 't clr' >>$CONFIG_STATUS
20719 echo ': clr' >>$CONFIG_STATUS
20720 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20722 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20724 mv $tmp/out $tmp/in
20726 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20727 rm -f conftest.undefs
20728 mv conftest.tail conftest.undefs
20730 rm -f conftest.undefs
20732 cat >>$CONFIG_STATUS <<\_ACEOF
20733 # Let's still pretend it is `configure' which instantiates (i.e., don't
20734 # use $as_me), people would be surprised to read:
20735 # /* config.h. Generated by config.status. */
20736 if test x"$ac_file" = x-; then
20737 echo "/* Generated by configure. */" >$tmp/config.h
20739 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20741 cat $tmp/in >>$tmp/config.h
20743 if test x"$ac_file" != x-; then
20744 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20745 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20746 echo "$as_me: $ac_file is unchanged" >&6;}
20748 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20750 X"$ac_file" : 'X\(//\)[^/]' \| \
20751 X"$ac_file" : 'X\(//\)$' \| \
20752 X"$ac_file" : 'X\(/\)' \| \
20753 . : '\(.\)' 2>/dev/null ||
20755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20757 /^X\(\/\/\)$/{ s//\1/; q; }
20758 /^X\(\/\).*/{ s//\1/; q; }
20760 { if $as_mkdir_p; then
20765 while test ! -d "$as_dir"; do
20766 as_dirs="$as_dir $as_dirs"
20767 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20769 X"$as_dir" : 'X\(//\)[^/]' \| \
20770 X"$as_dir" : 'X\(//\)$' \| \
20771 X"$as_dir" : 'X\(/\)' \| \
20772 . : '\(.\)' 2>/dev/null ||
20774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20776 /^X\(\/\/\)$/{ s//\1/; q; }
20777 /^X\(\/\).*/{ s//\1/; q; }
20780 test ! -n "$as_dirs" || mkdir $as_dirs
20781 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20783 { (exit 1); exit 1; }; }; }
20786 mv $tmp/config.h $ac_file
20790 rm -f $tmp/config.h
20792 # Compute $ac_file's index in $config_headers.
20794 for _am_header in $config_headers :; do
20795 case $_am_header in
20796 $ac_file | $ac_file:* )
20799 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20802 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20803 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20804 X$ac_file : 'X\(//\)[^/]' \| \
20805 X$ac_file : 'X\(//\)$' \| \
20806 X$ac_file : 'X\(/\)' \| \
20807 . : '\(.\)' 2>/dev/null ||
20809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20811 /^X\(\/\/\)$/{ s//\1/; q; }
20812 /^X\(\/\).*/{ s//\1/; q; }
20813 s/.*/./; q'`/stamp-h$_am_stamp_count
20816 cat >>$CONFIG_STATUS <<\_ACEOF
20819 # CONFIG_COMMANDS section.
20821 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20822 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20823 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20824 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20825 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20826 X"$ac_dest" : 'X\(//\)[^/]' \| \
20827 X"$ac_dest" : 'X\(//\)$' \| \
20828 X"$ac_dest" : 'X\(/\)' \| \
20829 . : '\(.\)' 2>/dev/null ||
20831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20833 /^X\(\/\/\)$/{ s//\1/; q; }
20834 /^X\(\/\).*/{ s//\1/; q; }
20836 { if $as_mkdir_p; then
20841 while test ! -d "$as_dir"; do
20842 as_dirs="$as_dir $as_dirs"
20843 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20845 X"$as_dir" : 'X\(//\)[^/]' \| \
20846 X"$as_dir" : 'X\(//\)$' \| \
20847 X"$as_dir" : 'X\(/\)' \| \
20848 . : '\(.\)' 2>/dev/null ||
20850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20852 /^X\(\/\/\)$/{ s//\1/; q; }
20853 /^X\(\/\).*/{ s//\1/; q; }
20856 test ! -n "$as_dirs" || mkdir $as_dirs
20857 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20858 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20859 { (exit 1); exit 1; }; }; }
20863 if test "$ac_dir" != .; then
20864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20865 # A "../" for each directory in $ac_dir_suffix.
20866 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20868 ac_dir_suffix= ac_top_builddir=
20872 .) # No --srcdir option. We are building in place.
20874 if test -z "$ac_top_builddir"; then
20877 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20879 [\\/]* | ?:[\\/]* ) # Absolute path.
20880 ac_srcdir=$srcdir$ac_dir_suffix;
20881 ac_top_srcdir=$srcdir ;;
20882 *) # Relative path.
20883 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20884 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20887 # Do not use `cd foo && pwd` to compute absolute paths, because
20888 # the directories may not exist.
20890 .) ac_abs_builddir="$ac_dir";;
20893 .) ac_abs_builddir=`pwd`;;
20894 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20895 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20898 case $ac_abs_builddir in
20899 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20901 case ${ac_top_builddir}. in
20902 .) ac_abs_top_builddir=$ac_abs_builddir;;
20903 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20904 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20907 case $ac_abs_builddir in
20908 .) ac_abs_srcdir=$ac_srcdir;;
20911 .) ac_abs_srcdir=$ac_abs_builddir;;
20912 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20913 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20916 case $ac_abs_builddir in
20917 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20919 case $ac_top_srcdir in
20920 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20921 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20922 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20927 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20928 echo "$as_me: executing $ac_dest commands" >&6;}
20930 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20931 # Strip MF so we end up with the name of the file.
20932 mf=`echo "$mf" | sed -e 's/:.*$//'`
20933 # Check whether this is an Automake generated Makefile or not.
20934 # We used to match only the files named `Makefile.in', but
20935 # some people rename them; so instead we look at the file content.
20936 # Grep'ing the first line is not enough: some people post-process
20937 # each Makefile.in and add a new line on top of each file to say so.
20938 # So let's grep whole file.
20939 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20940 dirpart=`(dirname "$mf") 2>/dev/null ||
20941 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20942 X"$mf" : 'X\(//\)[^/]' \| \
20943 X"$mf" : 'X\(//\)$' \| \
20944 X"$mf" : 'X\(/\)' \| \
20945 . : '\(.\)' 2>/dev/null ||
20947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20949 /^X\(\/\/\)$/{ s//\1/; q; }
20950 /^X\(\/\).*/{ s//\1/; q; }
20955 # Extract the definition of DEPDIR, am__include, and am__quote
20956 # from the Makefile without running `make'.
20957 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20958 test -z "$DEPDIR" && continue
20959 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20960 test -z "am__include" && continue
20961 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20962 # When using ansi2knr, U may be empty or an underscore; expand it
20963 U=`sed -n 's/^U = //p' < "$mf"`
20964 # Find all dependency output files, they are included files with
20965 # $(DEPDIR) in their names. We invoke sed twice because it is the
20966 # simplest approach to changing $(DEPDIR) to its actual value in the
20968 for file in `sed -n "
20969 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20970 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20971 # Make sure the directory exists.
20972 test -f "$dirpart/$file" && continue
20973 fdir=`(dirname "$file") 2>/dev/null ||
20974 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20975 X"$file" : 'X\(//\)[^/]' \| \
20976 X"$file" : 'X\(//\)$' \| \
20977 X"$file" : 'X\(/\)' \| \
20978 . : '\(.\)' 2>/dev/null ||
20980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20982 /^X\(\/\/\)$/{ s//\1/; q; }
20983 /^X\(\/\).*/{ s//\1/; q; }
20985 { if $as_mkdir_p; then
20986 mkdir -p $dirpart/$fdir
20988 as_dir=$dirpart/$fdir
20990 while test ! -d "$as_dir"; do
20991 as_dirs="$as_dir $as_dirs"
20992 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20994 X"$as_dir" : 'X\(//\)[^/]' \| \
20995 X"$as_dir" : 'X\(//\)$' \| \
20996 X"$as_dir" : 'X\(/\)' \| \
20997 . : '\(.\)' 2>/dev/null ||
20999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21001 /^X\(\/\/\)$/{ s//\1/; q; }
21002 /^X\(\/\).*/{ s//\1/; q; }
21005 test ! -n "$as_dirs" || mkdir $as_dirs
21006 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21007 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21008 { (exit 1); exit 1; }; }; }
21010 # echo "creating $dirpart/$file"
21011 echo '# dummy' > "$dirpart/$file"
21019 cat >>$CONFIG_STATUS <<\_ACEOF
21021 { (exit 0); exit 0; }
21023 chmod +x $CONFIG_STATUS
21024 ac_clean_files=$ac_clean_files_save
21027 # configure is writing to config.log, and then calls config.status.
21028 # config.status does its own redirection, appending to config.log.
21029 # Unfortunately, on DOS this fails, as config.log is still kept open
21030 # by configure, so config.status won't be able to write to it; its
21031 # output is simply discarded. So we exec the FD to /dev/null,
21032 # effectively closing config.log, so it can be properly (re)opened and
21033 # appended to by config.status. When coming back to configure, we
21034 # need to make the FD available again.
21035 if test "$no_create" != yes; then
21037 ac_config_status_args=
21038 test "$silent" = yes &&
21039 ac_config_status_args="$ac_config_status_args --quiet"
21041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21044 # would make configure fail if this is the last instruction.
21045 $ac_cs_success || { (exit 1); exit 1; }
21049 if test "$APXS" = "/notfound/"; then
21050 { echo "$as_me:$LINENO: WARNING:
21051 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21052 !!*** APXS was not found, so mod_suphp will not be built! ***!!
21053 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21055 echo "$as_me: WARNING:
21056 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21057 !!*** APXS was not found, so mod_suphp will not be built! ***!!
21058 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!