2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for OpenPAM 20050201.
5 # Report bugs to <des@freebsd.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='OpenPAM'
425 PACKAGE_TARNAME='openpam'
426 PACKAGE_VERSION='20050201'
427 PACKAGE_STRING='OpenPAM 20050201'
428 PACKAGE_BUGREPORT='des@freebsd.org'
430 ac_unique_file="lib/pam_start.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIB_MAJ OPENPAM_MODULES_DIR WITH_PAM_SU_TRUE WITH_PAM_SU_FALSE WITH_PAM_UNIX_TRUE WITH_PAM_UNIX_FALSE DL_LIBS CRYPT_LIBS LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures OpenPAM 20050201 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 --target=TARGET configure for building compilers for TARGET [HOST]
1022 if test -n "$ac_init_help"; then
1023 case $ac_init_help in
1024 short | recursive ) echo "Configuration of OpenPAM 20050201:";;
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=no]
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
1037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --disable-unversioned-modules
1041 support loading of unversioned modules
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --with-modules-dir=DIR OpenPAM modules directory
1052 --with-pam-su compile example version of /bin/su
1053 --with-pam-unix compile example version of pam_unix.so
1055 Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1063 CXX C++ compiler command
1064 CXXFLAGS C++ compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <des@freebsd.org>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1168 OpenPAM configure 20050201
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by OpenPAM $as_me 20050201, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 ac_config_headers="$ac_config_headers config.h"
1523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524 if test -f $ac_dir/install-sh; then
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1528 elif test -f $ac_dir/install.sh; then
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1532 elif test -f $ac_dir/shtool; then
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1538 if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541 { (exit 1); exit 1; }; }
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1547 # Make sure we can run config.sub.
1548 $ac_config_sub sun4 >/dev/null 2>&1 ||
1549 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1550 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1551 { (exit 1); exit 1; }; }
1553 echo "$as_me:$LINENO: checking build system type" >&5
1554 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1555 if test "${ac_cv_build+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 ac_cv_build_alias=$build_alias
1559 test -z "$ac_cv_build_alias" &&
1560 ac_cv_build_alias=`$ac_config_guess`
1561 test -z "$ac_cv_build_alias" &&
1562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1564 { (exit 1); exit 1; }; }
1565 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1566 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1567 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1568 { (exit 1); exit 1; }; }
1571 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572 echo "${ECHO_T}$ac_cv_build" >&6
1574 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579 echo "$as_me:$LINENO: checking host system type" >&5
1580 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1581 if test "${ac_cv_host+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 ac_cv_host_alias=$host_alias
1585 test -z "$ac_cv_host_alias" &&
1586 ac_cv_host_alias=$ac_cv_build_alias
1587 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1594 echo "${ECHO_T}$ac_cv_host" >&6
1596 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$as_me:$LINENO: checking target system type" >&5
1602 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1603 if test "${ac_cv_target+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 ac_cv_target_alias=$target_alias
1607 test "x$ac_cv_target_alias" = "x" &&
1608 ac_cv_target_alias=$ac_cv_host_alias
1609 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1616 echo "${ECHO_T}$ac_cv_target" >&6
1617 target=$ac_cv_target
1618 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 # The aliases save the names the user supplied, while $host etc.
1624 # will get canonicalized.
1625 test -n "$target_alias" &&
1626 test "$program_prefix$program_suffix$program_transform_name" = \
1628 program_prefix=${target_alias}-
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1890 if test -z "$CC"; then
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1979 ac_clean_files_save=$ac_clean_files
1980 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1981 # Try to create an executable without -o first, disregard a.out.
1982 # It will help us diagnose broken compilers, and finding out an intuition
1984 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1985 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1986 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1987 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1988 (eval $ac_link_default) 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; then
1992 # Find the output, starting from the most likely. This scheme is
1993 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1996 # Be careful to initialize this variable, since it used to be cached.
1997 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1999 # b.out is created by i960 compilers.
2000 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2002 test -f "$ac_file" || continue
2004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2007 # This is the source file.
2010 # We found the default executable, but exeext='' is most
2014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2015 # FIXME: I believe we export ac_cv_exeext for Libtool,
2016 # but it would be cool to find out if it's true. Does anybody
2017 # maintain Libtool? --akim.
2025 echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2029 See \`config.log' for more details." >&5
2030 echo "$as_me: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&2;}
2032 { (exit 77); exit 77; }; }
2035 ac_exeext=$ac_cv_exeext
2036 echo "$as_me:$LINENO: result: $ac_file" >&5
2037 echo "${ECHO_T}$ac_file" >&6
2039 # Check the compiler produces executables we can run. If not, either
2040 # the compiler is broken, or we cross compile.
2041 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2042 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2043 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2044 # If not cross compiling, check that we can run a simple program.
2045 if test "$cross_compiling" != yes; then
2046 if { ac_try='./$ac_file'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 if test "$cross_compiling" = maybe; then
2057 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'.
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: cannot run C compiled programs.
2061 If you meant to cross compile, use \`--host'.
2062 See \`config.log' for more details." >&2;}
2063 { (exit 1); exit 1; }; }
2067 echo "$as_me:$LINENO: result: yes" >&5
2068 echo "${ECHO_T}yes" >&6
2070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2071 ac_clean_files=$ac_clean_files_save
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2076 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2077 echo "${ECHO_T}$cross_compiling" >&6
2079 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082 (eval $ac_link) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; then
2086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2087 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2088 # work properly (i.e., refer to `conftest.exe'), while it won't with
2090 for ac_file in conftest.exe conftest conftest.*; do
2091 test -f "$ac_file" || continue
2093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2101 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 rm -f conftest.o conftest.obj
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; then
2141 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2149 echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 cat >conftest.$ac_ext <<_ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>conftest.er1
2192 grep -v '^ *+' conftest.er1 >conftest.err
2194 cat conftest.err >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -z "$ac_c_werror_flag"
2198 || test ! -s conftest.err'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2221 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2222 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2223 GCC=`test $ac_compiler_gnu = yes && echo yes`
2224 ac_test_CFLAGS=${CFLAGS+set}
2225 ac_save_CFLAGS=$CFLAGS
2227 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_g+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 cat >conftest.$ac_ext <<_ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2251 grep -v '^ *+' conftest.er1 >conftest.err
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2280 if test "$ac_test_CFLAGS" = set; then
2281 CFLAGS=$ac_save_CFLAGS
2282 elif test $ac_cv_prog_cc_g = yes; then
2283 if test "$GCC" = yes; then
2289 if test "$GCC" = yes; then
2295 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2296 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 ac_cv_prog_cc_stdc=no
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2310 #include <sys/types.h>
2311 #include <sys/stat.h>
2312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2313 struct buf { int x; };
2314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (p, i)
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2326 s = g (p, va_arg (v,int));
2331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2332 function prototypes and stuff, but not '\xHH' hex character constants.
2333 These don't provoke an error unfortunately, instead are silently treated
2334 as 'x'. The following induces an error, until -std1 is added to get
2335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2336 array size at least. It's necessary to write '\x00'==0 to get something
2337 that's true only with -std1. */
2338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2340 int test (int i, double x);
2341 struct s1 {int (*f) (int a);};
2342 struct s2 {int (*f) (double a);};
2343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2349 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2354 # Don't try gcc -ansi; that turns off useful extensions and
2355 # breaks some systems' header files.
2356 # AIX -qlanglvl=ansi
2357 # Ultrix and OSF/1 -std1
2358 # HP-UX 10.20 and later -Ae
2359 # HP-UX older versions -Aa -D_HPUX_SOURCE
2360 # SVR4 -Xc -D__EXTENSIONS__
2361 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2363 CC="$ac_save_CC $ac_arg"
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2368 grep -v '^ *+' conftest.er1 >conftest.err
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 ac_cv_prog_cc_stdc=$ac_arg
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2393 rm -f conftest.err conftest.$ac_objext
2395 rm -f conftest.$ac_ext conftest.$ac_objext
2400 case "x$ac_cv_prog_cc_stdc" in
2402 echo "$as_me:$LINENO: result: none needed" >&5
2403 echo "${ECHO_T}none needed" >&6 ;;
2405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2407 CC="$CC $ac_cv_prog_cc_stdc" ;;
2410 # Some people use a C++ compiler to compile C. Since we use `exit',
2411 # in C++ we need to declare it. In case someone uses the same compiler
2412 # for both compiling C and C++ we need to have the C++ compiler decide
2413 # the declaration of exit, since it's the most demanding environment.
2414 cat >conftest.$ac_ext <<_ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2423 grep -v '^ *+' conftest.er1 >conftest.err
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 for ac_declaration in \
2443 'extern "C" void std::exit (int) throw (); using std::exit;' \
2444 'extern "C" void std::exit (int); using std::exit;' \
2445 'extern "C" void exit (int) throw ();' \
2446 'extern "C" void exit (int);' \
2449 cat >conftest.$ac_ext <<_ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2469 grep -v '^ *+' conftest.er1 >conftest.err
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 cat >conftest.$ac_ext <<_ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>conftest.er1
2514 grep -v '^ *+' conftest.er1 >conftest.err
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -z "$ac_c_werror_flag"
2520 || test ! -s conftest.err'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 if test -n "$ac_declaration"; then
2542 echo '#ifdef __cplusplus' >>confdefs.h
2543 echo $ac_declaration >>confdefs.h
2544 echo '#endif' >>confdefs.h
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 echo "$as_me:$LINENO: checking for working volatile" >&5
2561 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
2562 if test "${ac_cv_c_volatile+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 cat >conftest.$ac_ext <<_ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_cv_c_volatile=yes
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
2614 echo "${ECHO_T}$ac_cv_c_volatile" >&6
2615 if test $ac_cv_c_volatile = no; then
2617 cat >>confdefs.h <<\_ACEOF
2623 # Check whether --enable-static or --disable-static was given.
2624 if test "${enable_static+set}" = set; then
2625 enableval="$enable_static"
2626 p=${PACKAGE-default}
2628 yes) enable_static=yes ;;
2629 no) enable_static=no ;;
2632 # Look at the argument we got. We use all the common list separators.
2633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2634 for pkg in $enableval; do
2636 if test "X$pkg" = "X$p"; then
2648 # Check whether --enable-shared or --disable-shared was given.
2649 if test "${enable_shared+set}" = set; then
2650 enableval="$enable_shared"
2651 p=${PACKAGE-default}
2653 yes) enable_shared=yes ;;
2654 no) enable_shared=no ;;
2657 # Look at the argument we got. We use all the common list separators.
2658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2659 for pkg in $enableval; do
2661 if test "X$pkg" = "X$p"; then
2672 # Check whether --enable-fast-install or --disable-fast-install was given.
2673 if test "${enable_fast_install+set}" = set; then
2674 enableval="$enable_fast_install"
2675 p=${PACKAGE-default}
2677 yes) enable_fast_install=yes ;;
2678 no) enable_fast_install=no ;;
2680 enable_fast_install=no
2681 # Look at the argument we got. We use all the common list separators.
2682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2683 for pkg in $enableval; do
2685 if test "X$pkg" = "X$p"; then
2686 enable_fast_install=yes
2693 enable_fast_install=yes
2696 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2697 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2698 if test "${lt_cv_path_SED+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 # Loop through the user's path and test for sed and gsed.
2702 # Then use that list of sed's as ones to test for truncation.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for lt_ac_prog in sed gsed; do
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2711 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2718 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2719 # along with /bin/sed that truncates output.
2720 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2721 test ! -f $lt_ac_sed && continue
2722 cat /dev/null > conftest.in
2724 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2725 # Check for GNU sed and select it if it is found.
2726 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2727 lt_cv_path_SED=$lt_ac_sed
2731 cat conftest.in conftest.in >conftest.tmp
2732 mv conftest.tmp conftest.in
2733 cp conftest.in conftest.nl
2735 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2736 cmp -s conftest.out conftest.nl || break
2737 # 10000 chars as input seems more than enough
2738 test $lt_ac_count -gt 10 && break
2739 lt_ac_count=`expr $lt_ac_count + 1`
2740 if test $lt_ac_count -gt $lt_ac_max; then
2741 lt_ac_max=$lt_ac_count
2742 lt_cv_path_SED=$lt_ac_sed
2750 echo "$as_me:$LINENO: result: $SED" >&5
2751 echo "${ECHO_T}$SED" >&6
2753 echo "$as_me:$LINENO: checking for egrep" >&5
2754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2755 if test "${ac_cv_prog_egrep+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2759 then ac_cv_prog_egrep='grep -E'
2760 else ac_cv_prog_egrep='egrep'
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2765 EGREP=$ac_cv_prog_egrep
2769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2770 if test "${with_gnu_ld+set}" = set; then
2771 withval="$with_gnu_ld"
2772 test "$withval" = no || with_gnu_ld=yes
2777 if test "$GCC" = yes; then
2778 # Check if gcc -print-prog-name=ld gives a path.
2779 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2780 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2783 # gcc leaves a trailing carriage return which upsets mingw
2784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2789 # Accept absolute paths.
2791 re_direlt='/[^/][^/]*/\.\./'
2792 # Canonicalize the pathname of ld
2793 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2795 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2797 test -z "$LD" && LD="$ac_prog"
2800 # If it fails, then pretend we aren't using GCC.
2804 # If it is relative, then search for the first ld in PATH.
2808 elif test "$with_gnu_ld" = yes; then
2809 echo "$as_me:$LINENO: checking for GNU ld" >&5
2810 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2812 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2813 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2815 if test "${lt_cv_path_LD+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -z "$LD"; then
2819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2820 for ac_dir in $PATH; do
2822 test -z "$ac_dir" && ac_dir=.
2823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2824 lt_cv_path_LD="$ac_dir/$ac_prog"
2825 # Check to see if the program is GNU ld. I'd rather use --version,
2826 # but apparently some GNU ld's only accept -v.
2827 # Break only if it was the GNU/non-GNU ld that we prefer.
2828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2829 *GNU* | *'with BFD'*)
2830 test "$with_gnu_ld" != no && break
2833 test "$with_gnu_ld" != yes && break
2840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2845 if test -n "$LD"; then
2846 echo "$as_me:$LINENO: result: $LD" >&5
2847 echo "${ECHO_T}$LD" >&6
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2852 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2853 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2854 { (exit 1); exit 1; }; }
2855 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2856 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2857 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2861 case `$LD -v 2>&1 </dev/null` in
2862 *GNU* | *'with BFD'*)
2863 lt_cv_prog_gnu_ld=yes
2866 lt_cv_prog_gnu_ld=no
2870 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2871 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2872 with_gnu_ld=$lt_cv_prog_gnu_ld
2875 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2876 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2877 if test "${lt_cv_ld_reload_flag+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 lt_cv_ld_reload_flag='-r'
2882 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2883 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2884 reload_flag=$lt_cv_ld_reload_flag
2885 case $reload_flag in
2887 *) reload_flag=" $reload_flag" ;;
2889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2892 if test "$GCC" = yes; then
2893 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2900 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2901 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2902 if test "${lt_cv_path_NM+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 if test -n "$NM"; then
2906 # Let the user override the test.
2909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2910 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2912 test -z "$ac_dir" && ac_dir=.
2913 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2915 # Check to see if the nm accepts a BSD-compat flag.
2916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2917 # nm: unknown option "B" ignored
2918 # Tru64's nm complains that /dev/null is an invalid object file
2919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2920 */dev/null* | *'Invalid file or object type'*)
2921 lt_cv_path_NM="$tmp_nm -B"
2925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2927 lt_cv_path_NM="$tmp_nm -p"
2931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2932 continue # so that we can try to find one that supports BSD flags
2939 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2942 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2943 echo "${ECHO_T}$lt_cv_path_NM" >&6
2946 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2949 if test "$LN_S" = "ln -s"; then
2950 echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6
2953 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2954 echo "${ECHO_T}no, using $LN_S" >&6
2957 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2958 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2959 if test "${lt_cv_deplibs_check_method+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 lt_cv_file_magic_cmd='$MAGIC_CMD'
2963 lt_cv_file_magic_test_file=
2964 lt_cv_deplibs_check_method='unknown'
2965 # Need to set the preceding variable on all platforms that support
2966 # interlibrary dependencies.
2967 # 'none' -- dependencies not supported.
2968 # `unknown' -- same as none, but documents that we really don't know.
2969 # 'pass_all' -- all dependencies passed with no checks.
2970 # 'test_compile' -- check by making test program.
2971 # 'file_magic [[regex]]' -- check by looking for files in library path
2972 # which responds to the $file_magic_cmd with a given extended regex.
2973 # If you have `file' or equivalent on your system and you're not sure
2974 # whether `pass_all' will *always* work, you probably want this one.
2978 lt_cv_deplibs_check_method=pass_all
2982 lt_cv_deplibs_check_method=pass_all
2986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2987 lt_cv_file_magic_cmd='/usr/bin/file -L'
2988 lt_cv_file_magic_test_file=/shlib/libc.so
2992 # func_win32_libid is a shell function defined in ltmain.sh
2993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2994 lt_cv_file_magic_cmd='func_win32_libid'
2998 # Base MSYS/MinGW do not provide the 'file' command needed by
2999 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3001 lt_cv_file_magic_cmd='$OBJDUMP -f'
3004 darwin* | rhapsody*)
3005 lt_cv_deplibs_check_method=pass_all
3008 freebsd* | kfreebsd*-gnu | dragonfly*)
3009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3012 # Not sure whether the presence of OpenBSD here was a mistake.
3013 # Let's accept both of them until this is cleared up.
3014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3015 lt_cv_file_magic_cmd=/usr/bin/file
3016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3020 lt_cv_deplibs_check_method=pass_all
3025 lt_cv_deplibs_check_method=pass_all
3028 hpux10.20* | hpux11*)
3029 lt_cv_file_magic_cmd=/usr/bin/file
3032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3036 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]'
3037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3046 irix5* | irix6* | nonstopux*)
3048 *-32|*"-32 ") libmagic=32-bit;;
3049 *-n32|*"-n32 ") libmagic=N32;;
3050 *-64|*"-64 ") libmagic=64-bit;;
3051 *) libmagic=never-match;;
3053 lt_cv_deplibs_check_method=pass_all
3056 # This must be Linux ELF.
3058 lt_cv_deplibs_check_method=pass_all
3062 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3071 lt_cv_file_magic_cmd=/usr/bin/file
3072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3076 lt_cv_deplibs_check_method=unknown
3080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3087 osf3* | osf4* | osf5*)
3088 lt_cv_deplibs_check_method=pass_all
3092 lt_cv_deplibs_check_method=pass_all
3096 lt_cv_deplibs_check_method=pass_all
3099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3100 case $host_vendor in
3102 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]'
3103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3106 lt_cv_deplibs_check_method=pass_all
3109 lt_cv_file_magic_cmd='/bin/file'
3110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3113 lt_cv_file_magic_cmd='/bin/file'
3114 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3115 lt_cv_file_magic_test_file=/lib/libc.so
3118 lt_cv_deplibs_check_method=pass_all
3123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3124 lt_cv_deplibs_check_method=pass_all
3129 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3130 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3131 file_magic_cmd=$lt_cv_file_magic_cmd
3132 deplibs_check_method=$lt_cv_deplibs_check_method
3133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3138 # If no C compiler was specified, use CC.
3141 # Allow CC to be a program name with arguments.
3144 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3145 if test "${enable_libtool_lock+set}" = set; then
3146 enableval="$enable_libtool_lock"
3149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3151 # Some flags need to be propagated to the compiler or linker for good
3155 # Find out which ABI we are using.
3156 echo 'int i;' > conftest.$ac_ext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; then
3162 case `/usr/bin/file conftest.$ac_objext` in
3174 # Find out which ABI we are using.
3175 echo '#line 3175 "configure"' > conftest.$ac_ext
3176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177 (eval $ac_compile) 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; then
3181 if test "$lt_cv_prog_gnu_ld" = yes; then
3182 case `/usr/bin/file conftest.$ac_objext` in
3184 LD="${LD-ld} -melf32bsmip"
3187 LD="${LD-ld} -melf32bmipn32"
3190 LD="${LD-ld} -melf64bmip"
3194 case `/usr/bin/file conftest.$ac_objext` in
3210 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3211 # Find out which ABI we are using.
3212 echo 'int i;' > conftest.$ac_ext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; then
3218 case "`/usr/bin/file conftest.o`" in
3222 LD="${LD-ld} -m elf_i386"
3224 ppc64-*linux*|powerpc64-*linux*)
3225 LD="${LD-ld} -m elf32ppclinux"
3228 LD="${LD-ld} -m elf_s390"
3231 LD="${LD-ld} -m elf32_sparc"
3238 LD="${LD-ld} -m elf_x86_64"
3240 ppc*-*linux*|powerpc*-*linux*)
3241 LD="${LD-ld} -m elf64ppc"
3244 LD="${LD-ld} -m elf64_s390"
3247 LD="${LD-ld} -m elf64_sparc"
3257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3258 SAVE_CFLAGS="$CFLAGS"
3259 CFLAGS="$CFLAGS -belf"
3260 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3261 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3262 if test "${lt_cv_cc_needs_belf+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3286 rm -f conftest.$ac_objext conftest$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288 (eval $ac_link) 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -z "$ac_c_werror_flag"
3296 || test ! -s conftest.err'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; } &&
3302 { ac_try='test -s conftest$ac_exeext'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 lt_cv_cc_needs_belf=yes
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 lt_cv_cc_needs_belf=no
3315 rm -f conftest.err conftest.$ac_objext \
3316 conftest$ac_exeext conftest.$ac_ext
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3325 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3328 CFLAGS="$SAVE_CFLAGS"
3334 need_locks="$enable_libtool_lock"
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3344 # On Suns, sometimes $CPP names a directory.
3345 if test -n "$CPP" && test -d "$CPP"; then
3348 if test -z "$CPP"; then
3349 if test "${ac_cv_prog_CPP+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 # Double quotes because CPP needs to be expanded
3353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3356 for ac_c_preproc_warn_flag in '' yes
3358 # Use a header file that comes with gcc, so configuring glibc
3359 # with a fresh cross-compiler works.
3360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361 # <limits.h> exists even on freestanding compilers.
3362 # On the NeXT, cc -E runs the code through the compiler's parser,
3363 # not just through cpp. "Syntax error" is here to catch this case.
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3371 # include <limits.h>
3373 # include <assert.h>
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3380 grep -v '^ *+' conftest.er1 >conftest.err
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } >/dev/null; then
3385 if test -s conftest.err; then
3386 ac_cpp_err=$ac_c_preproc_warn_flag
3387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3394 if test -z "$ac_cpp_err"; then
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3403 rm -f conftest.err conftest.$ac_ext
3405 # OK, works on sane cases. Now check whether non-existent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <ac_nonexistent.h>
3415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3433 # Broken: success on invalid input.
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3460 echo "$as_me:$LINENO: result: $CPP" >&5
3461 echo "${ECHO_T}$CPP" >&6
3463 for ac_c_preproc_warn_flag in '' yes
3465 # Use a header file that comes with gcc, so configuring glibc
3466 # with a fresh cross-compiler works.
3467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3468 # <limits.h> exists even on freestanding compilers.
3469 # On the NeXT, cc -E runs the code through the compiler's parser,
3470 # not just through cpp. "Syntax error" is here to catch this case.
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3478 # include <limits.h>
3480 # include <assert.h>
3484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null; then
3492 if test -s conftest.err; then
3493 ac_cpp_err=$ac_c_preproc_warn_flag
3494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3501 if test -z "$ac_cpp_err"; then
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 # Broken: fails on valid input.
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether non-existent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev/null; then
3530 if test -s conftest.err; then
3531 ac_cpp_err=$ac_c_preproc_warn_flag
3532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539 if test -z "$ac_cpp_err"; then
3540 # Broken: success on invalid input.
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 # Passes both tests.
3550 rm -f conftest.err conftest.$ac_ext
3553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3554 rm -f conftest.err conftest.$ac_ext
3555 if $ac_preproc_ok; then
3558 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&5
3560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3561 See \`config.log' for more details." >&2;}
3562 { (exit 1); exit 1; }; }
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3573 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3574 if test "${ac_cv_header_stdc+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_header_stdc=yes
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 ac_cv_header_stdc=no
3625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627 if test $ac_cv_header_stdc = yes; then
3628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 $EGREP "memchr" >/dev/null 2>&1; then
3642 ac_cv_header_stdc=no
3648 if test $ac_cv_header_stdc = yes; then
3649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660 $EGREP "free" >/dev/null 2>&1; then
3663 ac_cv_header_stdc=no
3669 if test $ac_cv_header_stdc = yes; then
3670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3671 if test "$cross_compiling" = yes; then
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 #if ((' ' & 0x0FF) == 0x020)
3682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685 # define ISLOWER(c) \
3686 (('a' <= (c) && (c) <= 'i') \
3687 || ('j' <= (c) && (c) <= 'r') \
3688 || ('s' <= (c) && (c) <= 'z'))
3689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3697 for (i = 0; i < 256; i++)
3698 if (XOR (islower (i), ISLOWER (i))
3699 || toupper (i) != TOUPPER (i))
3704 rm -f conftest$ac_exeext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_cv_header_stdc=no
3724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3730 if test $ac_cv_header_stdc = yes; then
3732 cat >>confdefs.h <<\_ACEOF
3733 #define STDC_HEADERS 1
3738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3749 inttypes.h stdint.h unistd.h
3751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 $ac_includes_default
3765 #include <$ac_header>
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 eval "$as_ac_Header=yes"
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 eval "$as_ac_Header=no"
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801 cat >>confdefs.h <<_ACEOF
3802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3811 for ac_header in dlfcn.h
3813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3815 echo "$as_me:$LINENO: checking for $ac_header" >&5
3816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3823 # Is the header compilable?
3824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 $ac_includes_default
3833 #include <$ac_header>
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_c_werror_flag"
3845 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_header_compiler=yes
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_header_compiler=no
3864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3866 echo "${ECHO_T}$ac_header_compiler" >&6
3868 # Is the header present?
3869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 #include <$ac_header>
3879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } >/dev/null; then
3887 if test -s conftest.err; then
3888 ac_cpp_err=$ac_c_preproc_warn_flag
3889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3896 if test -z "$ac_cpp_err"; then
3897 ac_header_preproc=yes
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_header_preproc=no
3904 rm -f conftest.err conftest.$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3906 echo "${ECHO_T}$ac_header_preproc" >&6
3908 # So? What about this header?
3909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3915 ac_header_preproc=yes
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3932 ## ------------------------------ ##
3933 ## Report this to des@freebsd.org ##
3934 ## ------------------------------ ##
3937 sed "s/^/$as_me: WARNING: /" >&2
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 eval "$as_ac_Header=\$ac_header_preproc"
3947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3952 cat >>confdefs.h <<_ACEOF
3953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3961 ac_cpp='$CXXCPP $CPPFLAGS'
3962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3965 if test -n "$ac_tool_prefix"; then
3966 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_CXX+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 if test -n "$CXX"; then
3976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$CXX"; then
3996 echo "$as_me:$LINENO: result: $CXX" >&5
3997 echo "${ECHO_T}$CXX" >&6
3999 echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4003 test -n "$CXX" && break
4006 if test -z "$CXX"; then
4008 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4010 # Extract the first word of "$ac_prog", so it can be a program name with args.
4011 set dummy $ac_prog; ac_word=$2
4012 echo "$as_me:$LINENO: checking for $ac_word" >&5
4013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4014 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 if test -n "$ac_ct_CXX"; then
4018 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_prog_ac_ct_CXX="$ac_prog"
4028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4039 echo "${ECHO_T}$ac_ct_CXX" >&6
4041 echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4045 test -n "$ac_ct_CXX" && break
4047 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4053 # Provide some information about the compiler.
4054 echo "$as_me:$LINENO:" \
4055 "checking for C++ compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4058 (eval $ac_compiler --version </dev/null >&5) 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }
4062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4063 (eval $ac_compiler -v </dev/null >&5) 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }
4067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4068 (eval $ac_compiler -V </dev/null >&5) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }
4073 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4074 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4075 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4096 rm -f conftest.$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -z "$ac_cxx_werror_flag"
4106 || test ! -s conftest.err'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try='test -s conftest.$ac_objext'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4129 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4130 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4131 GXX=`test $ac_compiler_gnu = yes && echo yes`
4132 ac_test_CXXFLAGS=${CXXFLAGS+set}
4133 ac_save_CXXFLAGS=$CXXFLAGS
4135 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4136 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4137 if test "${ac_cv_prog_cxx_g+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_cxx_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_prog_cxx_g=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4188 if test "$ac_test_CXXFLAGS" = set; then
4189 CXXFLAGS=$ac_save_CXXFLAGS
4190 elif test $ac_cv_prog_cxx_g = yes; then
4191 if test "$GXX" = yes; then
4197 if test "$GXX" = yes; then
4203 for ac_declaration in \
4205 'extern "C" void std::exit (int) throw (); using std::exit;' \
4206 'extern "C" void std::exit (int); using std::exit;' \
4207 'extern "C" void exit (int) throw ();' \
4208 'extern "C" void exit (int);' \
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_cxx_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274 (eval $ac_compile) 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_cxx_werror_flag"
4282 || test ! -s conftest.err'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; } &&
4288 { ac_try='test -s conftest.$ac_objext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 if test -n "$ac_declaration"; then
4304 echo '#ifdef __cplusplus' >>confdefs.h
4305 echo $ac_declaration >>confdefs.h
4306 echo '#endif' >>confdefs.h
4310 ac_cpp='$CXXCPP $CPPFLAGS'
4311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4317 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4318 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4319 (test "X$CXX" != "Xg++"))) ; then
4321 ac_cpp='$CXXCPP $CPPFLAGS'
4322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4325 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4326 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4327 if test -z "$CXXCPP"; then
4328 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 # Double quotes because CXXCPP needs to be expanded
4332 for CXXCPP in "$CXX -E" "/lib/cpp"
4335 for ac_cxx_preproc_warn_flag in '' yes
4337 # Use a header file that comes with gcc, so configuring glibc
4338 # with a fresh cross-compiler works.
4339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340 # <limits.h> exists even on freestanding compilers.
4341 # On the NeXT, cc -E runs the code through the compiler's parser,
4342 # not just through cpp. "Syntax error" is here to catch this case.
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4350 # include <limits.h>
4352 # include <assert.h>
4356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } >/dev/null; then
4364 if test -s conftest.err; then
4365 ac_cpp_err=$ac_cxx_preproc_warn_flag
4366 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4373 if test -z "$ac_cpp_err"; then
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 # Broken: fails on valid input.
4382 rm -f conftest.err conftest.$ac_ext
4384 # OK, works on sane cases. Now check whether non-existent headers
4385 # can be detected and how.
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 #include <ac_nonexistent.h>
4394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } >/dev/null; then
4402 if test -s conftest.err; then
4403 ac_cpp_err=$ac_cxx_preproc_warn_flag
4404 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4411 if test -z "$ac_cpp_err"; then
4412 # Broken: success on invalid input.
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 # Passes both tests.
4422 rm -f conftest.err conftest.$ac_ext
4425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426 rm -f conftest.err conftest.$ac_ext
4427 if $ac_preproc_ok; then
4432 ac_cv_prog_CXXCPP=$CXXCPP
4435 CXXCPP=$ac_cv_prog_CXXCPP
4437 ac_cv_prog_CXXCPP=$CXXCPP
4439 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4440 echo "${ECHO_T}$CXXCPP" >&6
4442 for ac_cxx_preproc_warn_flag in '' yes
4444 # Use a header file that comes with gcc, so configuring glibc
4445 # with a fresh cross-compiler works.
4446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4447 # <limits.h> exists even on freestanding compilers.
4448 # On the NeXT, cc -E runs the code through the compiler's parser,
4449 # not just through cpp. "Syntax error" is here to catch this case.
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4457 # include <limits.h>
4459 # include <assert.h>
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null; then
4471 if test -s conftest.err; then
4472 ac_cpp_err=$ac_cxx_preproc_warn_flag
4473 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4480 if test -z "$ac_cpp_err"; then
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 # Broken: fails on valid input.
4489 rm -f conftest.err conftest.$ac_ext
4491 # OK, works on sane cases. Now check whether non-existent headers
4492 # can be detected and how.
4493 cat >conftest.$ac_ext <<_ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #include <ac_nonexistent.h>
4501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4504 grep -v '^ *+' conftest.er1 >conftest.err
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null; then
4509 if test -s conftest.err; then
4510 ac_cpp_err=$ac_cxx_preproc_warn_flag
4511 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4518 if test -z "$ac_cpp_err"; then
4519 # Broken: success on invalid input.
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 # Passes both tests.
4529 rm -f conftest.err conftest.$ac_ext
4532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4533 rm -f conftest.err conftest.$ac_ext
4534 if $ac_preproc_ok; then
4537 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4538 See \`config.log' for more details." >&5
4539 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4540 See \`config.log' for more details." >&2;}
4541 { (exit 1); exit 1; }; }
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4554 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4555 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4557 if test -n "$ac_tool_prefix"; then
4558 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4562 echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564 if test "${ac_cv_prog_F77+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 if test -n "$F77"; then
4568 ac_cv_prog_F77="$F77" # Let the user override the test.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 if test -n "$F77"; then
4588 echo "$as_me:$LINENO: result: $F77" >&5
4589 echo "${ECHO_T}$F77" >&6
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4595 test -n "$F77" && break
4598 if test -z "$F77"; then
4600 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4602 # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -n "$ac_ct_F77"; then
4610 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_ac_ct_F77="$ac_prog"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4629 if test -n "$ac_ct_F77"; then
4630 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4631 echo "${ECHO_T}$ac_ct_F77" >&6
4633 echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4637 test -n "$ac_ct_F77" && break
4644 # Provide some information about the compiler.
4645 echo "$as_me:4645:" \
4646 "checking for Fortran 77 compiler version" >&5
4647 ac_compiler=`set X $ac_compile; echo $2`
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4649 (eval $ac_compiler --version </dev/null >&5) 2>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }
4653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4654 (eval $ac_compiler -v </dev/null >&5) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }
4658 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4659 (eval $ac_compiler -V </dev/null >&5) 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }
4665 # If we don't use `.F' as extension, the preprocessor is not run on the
4666 # input file. (Note that this only needs to work for GNU compilers.)
4669 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4670 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4671 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 cat >conftest.$ac_ext <<_ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_f77_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4715 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4716 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4718 ac_test_FFLAGS=${FFLAGS+set}
4719 ac_save_FFLAGS=$FFLAGS
4721 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4722 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4723 if test "${ac_cv_prog_f77_g+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 cat >conftest.$ac_ext <<_ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -z "$ac_f77_werror_flag"
4742 || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_prog_f77_g=yes
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4765 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4766 if test "$ac_test_FFLAGS" = set; then
4767 FFLAGS=$ac_save_FFLAGS
4768 elif test $ac_cv_prog_f77_g = yes; then
4769 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4775 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4782 G77=`test $ac_compiler_gnu = yes && echo yes`
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4793 # find the maximum length of command line arguments
4794 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4795 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4796 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 # On DJGPP, this test can blow up pretty badly due to problems in libc
4805 # (any single argument exceeding 2000 bytes causes a buffer overrun
4806 # during glob expansion). Even if it were fixed, the result of this
4807 # check would be larger than it should be.
4808 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4812 # Under GNU Hurd, this test is not required because there is
4813 # no limit to the length of command line arguments.
4814 # Libtool will interpret -1 as no limit whatsoever
4815 lt_cv_sys_max_cmd_len=-1;
4819 # On Win9x/ME, this test blows up -- it succeeds, but takes
4820 # about 5 minutes as the teststring grows exponentially.
4821 # Worse, since 9x/ME are not pre-emptively multitasking,
4822 # you end up with a "frozen" computer, even though with patience
4823 # the test eventually succeeds (with a max line length of 256k).
4824 # Instead, let's just punt: use the minimum linelength reported by
4825 # all of the supported platforms: 8192 (on NT/2K/XP).
4826 lt_cv_sys_max_cmd_len=8192;
4830 # On AmigaOS with pdksh, this test takes hours, literally.
4831 # So we just punt and use a minimum line length of 8192.
4832 lt_cv_sys_max_cmd_len=8192;
4835 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4836 # This has been around since 386BSD, at least. Likely further.
4837 if test -x /sbin/sysctl; then
4838 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4839 elif test -x /usr/sbin/sysctl; then
4840 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4842 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4844 # And add a safety zone
4845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4848 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4849 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4850 # nice to cause kernel panics so lets avoid the loop below.
4851 # First set a reasonable default.
4852 lt_cv_sys_max_cmd_len=16384
4854 if test -x /sbin/sysconfig; then
4855 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4856 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4861 # If test is not a shell built-in, we'll probably end up computing a
4862 # maximum length that is only half of the actual maximum length, but
4864 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4865 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4866 = "XX$teststring") >/dev/null 2>&1 &&
4867 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4868 lt_cv_sys_max_cmd_len=$new_result &&
4869 test $i != 17 # 1/2 MB should be enough
4872 teststring=$teststring$teststring
4875 # Add a significant safety factor because C++ compilers can tack on massive
4876 # amounts of additional arguments before passing them to the linker.
4877 # It appears as though 1/2 is a usable value.
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4884 if test -n $lt_cv_sys_max_cmd_len ; then
4885 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4886 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4888 echo "$as_me:$LINENO: result: none" >&5
4889 echo "${ECHO_T}none" >&6
4895 # Check for command to grab the raw symbol name followed by C symbol from nm.
4896 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4897 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4898 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 # These are sane defaults that work on at least a few old systems.
4903 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4905 # Character class describing NM global symbol codes.
4906 symcode='[BCDEGRST]'
4908 # Regexp to match symbols that can be accessed directly from C.
4909 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4911 # Transform an extracted symbol line into a proper C declaration
4912 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4914 # Transform an extracted symbol line into symbol name and symbol address
4915 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'"
4917 # Define system-specific variables.
4922 cygwin* | mingw* | pw32*)
4923 symcode='[ABCDGISTW]'
4925 hpux*) # Its linker distinguishes data from code symbols
4926 if test "$host_cpu" = ia64; then
4927 symcode='[ABCDEGRST]'
4929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4930 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'"
4933 if test "$host_cpu" = ia64; then
4934 symcode='[ABCDGIRSTW]'
4935 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4936 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'"
4940 symcode='[BCDEGRST]'
4943 symcode='[BCDEGQRST]'
4953 # Handle CRLF in mingw tool chain
4957 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4961 # If we're using GNU nm, then use its standard symbol codes.
4962 case `$NM -V 2>&1` in
4963 *GNU* | *'with BFD'*)
4964 symcode='[ABCDGIRSTW]' ;;
4967 # Try without a prefix undercore, then with it.
4968 for ac_symprfx in "" "_"; do
4970 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4971 symxfrm="\\1 $ac_symprfx\\2 \\2"
4973 # Write the raw and C identifiers.
4974 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4976 # Check to see that the pipe works correctly.
4980 cat > conftest.$ac_ext <<EOF
4985 void nm_test_func(){}
4989 int main(){nm_test_var='a';nm_test_func();return(0);}
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; then
4997 # Now try to grab the symbols.
4999 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5000 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && test -s "$nlist"; then
5004 # Try sorting and uniquifying the output.
5005 if sort "$nlist" | uniq > "$nlist"T; then
5006 mv -f "$nlist"T "$nlist"
5011 # Make sure that we snagged all the symbols we need.
5012 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5013 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5014 cat <<EOF > conftest.$ac_ext
5020 # Now generate the symbol file.
5021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5023 cat <<EOF >> conftest.$ac_ext
5024 #if defined (__STDC__) && __STDC__
5025 # define lt_ptr_t void *
5027 # define lt_ptr_t char *
5031 /* The mapping between symbol names and symbols. */
5036 lt_preloaded_symbols[] =
5039 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5040 cat <<\EOF >> conftest.$ac_ext
5048 # Now try linking the two files.
5049 mv conftest.$ac_objext conftstm.$ac_objext
5050 lt_save_LIBS="$LIBS"
5051 lt_save_CFLAGS="$CFLAGS"
5052 LIBS="conftstm.$ac_objext"
5053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5055 (eval $ac_link) 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5061 LIBS="$lt_save_LIBS"
5062 CFLAGS="$lt_save_CFLAGS"
5064 echo "cannot find nm_test_func in $nlist" >&5
5067 echo "cannot find nm_test_var in $nlist" >&5
5070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5073 echo "$progname: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 rm -f conftest* conftst*
5078 # Do not use the global_symbol_pipe unless it works.
5079 if test "$pipe_works" = yes; then
5082 lt_cv_sys_global_symbol_pipe=
5088 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5089 lt_cv_sys_global_symbol_to_cdecl=
5091 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5092 echo "$as_me:$LINENO: result: failed" >&5
5093 echo "${ECHO_T}failed" >&6
5095 echo "$as_me:$LINENO: result: ok" >&5
5096 echo "${ECHO_T}ok" >&6
5099 echo "$as_me:$LINENO: checking for objdir" >&5
5100 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5101 if test "${lt_cv_objdir+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 rm -f .libs 2>/dev/null
5105 mkdir .libs 2>/dev/null
5106 if test -d .libs; then
5109 # MS-DOS does not allow filenames that begin with a dot.
5112 rmdir .libs 2>/dev/null
5114 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5115 echo "${ECHO_T}$lt_cv_objdir" >&6
5116 objdir=$lt_cv_objdir
5124 # AIX sometimes has problems with the GCC collect2 program. For some
5125 # reason, if we set the COLLECT_NAMES environment variable, the problems
5126 # vanish in a puff of smoke.
5127 if test "X${COLLECT_NAMES+set}" != Xset; then
5129 export COLLECT_NAMES
5134 # Sed substitution that helps us do robust quoting. It backslashifies
5135 # metacharacters that are still active within double-quoted strings.
5136 Xsed='sed -e s/^X//'
5137 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5139 # Same as above, but do not quote variable references.
5140 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5142 # Sed substitution to delay expansion of an escaped shell variable in a
5143 # double_quote_subst'ed string.
5144 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5146 # Sed substitution to avoid accidental globbing in evaled expressions
5147 no_glob_subst='s/\*/\\\*/g'
5153 default_ofile=libtool
5154 can_build_shared=yes
5156 # All known linkers require a `.a' archive for static linking (except M$VC,
5157 # which needs '.lib').
5159 ltmain="$ac_aux_dir/ltmain.sh"
5160 ofile="$default_ofile"
5161 with_gnu_ld="$lt_cv_prog_gnu_ld"
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5165 set dummy ${ac_tool_prefix}ar; ac_word=$2
5166 echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168 if test "${ac_cv_prog_AR+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 if test -n "$AR"; then
5172 ac_cv_prog_AR="$AR" # Let the user override the test.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_AR="${ac_tool_prefix}ar"
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 if test -n "$AR"; then
5192 echo "$as_me:$LINENO: result: $AR" >&5
5193 echo "${ECHO_T}$AR" >&6
5195 echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5200 if test -z "$ac_cv_prog_AR"; then
5202 # Extract the first word of "ar", so it can be a program name with args.
5203 set dummy ar; ac_word=$2
5204 echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 if test -n "$ac_ct_AR"; then
5210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_ac_ct_AR="ar"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5230 if test -n "$ac_ct_AR"; then
5231 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5232 echo "${ECHO_T}$ac_ct_AR" >&6
5234 echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6
5243 if test -n "$ac_tool_prefix"; then
5244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5246 echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5248 if test "${ac_cv_prog_RANLIB+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 if test -n "$RANLIB"; then
5252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 RANLIB=$ac_cv_prog_RANLIB
5271 if test -n "$RANLIB"; then
5272 echo "$as_me:$LINENO: result: $RANLIB" >&5
5273 echo "${ECHO_T}$RANLIB" >&6
5275 echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5280 if test -z "$ac_cv_prog_RANLIB"; then
5281 ac_ct_RANLIB=$RANLIB
5282 # Extract the first word of "ranlib", so it can be a program name with args.
5283 set dummy ranlib; ac_word=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 if test -n "$ac_ct_RANLIB"; then
5290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299 ac_cv_prog_ac_ct_RANLIB="ranlib"
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5310 if test -n "$ac_ct_RANLIB"; then
5311 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5312 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5318 RANLIB=$ac_ct_RANLIB
5320 RANLIB="$ac_cv_prog_RANLIB"
5323 if test -n "$ac_tool_prefix"; then
5324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5325 set dummy ${ac_tool_prefix}strip; ac_word=$2
5326 echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5328 if test "${ac_cv_prog_STRIP+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 if test -n "$STRIP"; then
5332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 STRIP=$ac_cv_prog_STRIP
5351 if test -n "$STRIP"; then
5352 echo "$as_me:$LINENO: result: $STRIP" >&5
5353 echo "${ECHO_T}$STRIP" >&6
5355 echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5360 if test -z "$ac_cv_prog_STRIP"; then
5362 # Extract the first word of "strip", so it can be a program name with args.
5363 set dummy strip; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -n "$ac_ct_STRIP"; then
5370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_ac_ct_STRIP="strip"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5390 if test -n "$ac_ct_STRIP"; then
5391 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5392 echo "${ECHO_T}$ac_ct_STRIP" >&6
5394 echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6
5400 STRIP="$ac_cv_prog_STRIP"
5405 old_CFLAGS="$CFLAGS"
5407 # Set sane defaults for various variables
5408 test -z "$AR" && AR=ar
5409 test -z "$AR_FLAGS" && AR_FLAGS=cru
5410 test -z "$AS" && AS=as
5411 test -z "$CC" && CC=cc
5412 test -z "$LTCC" && LTCC=$CC
5413 test -z "$DLLTOOL" && DLLTOOL=dlltool
5414 test -z "$LD" && LD=ld
5415 test -z "$LN_S" && LN_S="ln -s"
5416 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5417 test -z "$NM" && NM=nm
5418 test -z "$SED" && SED=sed
5419 test -z "$OBJDUMP" && OBJDUMP=objdump
5420 test -z "$RANLIB" && RANLIB=:
5421 test -z "$STRIP" && STRIP=:
5422 test -z "$ac_objext" && ac_objext=o
5424 # Determine commands to create old-style static archives.
5425 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5426 old_postinstall_cmds='chmod 644 $oldlib'
5427 old_postuninstall_cmds=
5429 if test -n "$RANLIB"; then
5432 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5435 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5438 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5441 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5443 # Only perform the check for file, if the check method requires it
5444 case $deplibs_check_method in
5446 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5447 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5448 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5457 lt_save_MAGIC_CMD="$MAGIC_CMD"
5458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5460 for ac_dir in $ac_dummy; do
5462 test -z "$ac_dir" && ac_dir=.
5463 if test -f $ac_dir/${ac_tool_prefix}file; then
5464 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5465 if test -n "$file_magic_test_file"; then
5466 case $deplibs_check_method in
5468 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5471 $EGREP "$file_magic_regex" > /dev/null; then
5476 *** Warning: the command libtool uses to detect shared libraries,
5477 *** $file_magic_cmd, produces output that libtool cannot recognize.
5478 *** The result is that libtool may fail to recognize shared libraries
5479 *** as such. This will affect the creation of libtool libraries that
5480 *** depend on shared libraries, but programs linked with such libtool
5481 *** libraries will work regardless of this problem. Nevertheless, you
5482 *** may want to report the problem to your system manager and/or to
5483 *** bug-libtool@gnu.org
5493 MAGIC_CMD="$lt_save_MAGIC_CMD"
5498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5499 if test -n "$MAGIC_CMD"; then
5500 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5501 echo "${ECHO_T}$MAGIC_CMD" >&6
5503 echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5507 if test -z "$lt_cv_path_MAGIC_CMD"; then
5508 if test -n "$ac_tool_prefix"; then
5509 echo "$as_me:$LINENO: checking for file" >&5
5510 echo $ECHO_N "checking for file... $ECHO_C" >&6
5511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5519 lt_save_MAGIC_CMD="$MAGIC_CMD"
5520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5521 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5522 for ac_dir in $ac_dummy; do
5524 test -z "$ac_dir" && ac_dir=.
5525 if test -f $ac_dir/file; then
5526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5527 if test -n "$file_magic_test_file"; then
5528 case $deplibs_check_method in
5530 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5533 $EGREP "$file_magic_regex" > /dev/null; then
5538 *** Warning: the command libtool uses to detect shared libraries,
5539 *** $file_magic_cmd, produces output that libtool cannot recognize.
5540 *** The result is that libtool may fail to recognize shared libraries
5541 *** as such. This will affect the creation of libtool libraries that
5542 *** depend on shared libraries, but programs linked with such libtool
5543 *** libraries will work regardless of this problem. Nevertheless, you
5544 *** may want to report the problem to your system manager and/or to
5545 *** bug-libtool@gnu.org
5555 MAGIC_CMD="$lt_save_MAGIC_CMD"
5560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5561 if test -n "$MAGIC_CMD"; then
5562 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5563 echo "${ECHO_T}$MAGIC_CMD" >&6
5565 echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5581 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5582 if test "${enable_libtool_lock+set}" = set; then
5583 enableval="$enable_libtool_lock"
5586 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5589 # Check whether --with-pic or --without-pic was given.
5590 if test "${with_pic+set}" = set; then
5596 test -z "$pic_mode" && pic_mode=default
5598 # Use C for the default configuration in the libtool script
5602 ac_cpp='$CPP $CPPFLAGS'
5603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5608 # Source file extension for C test sources.
5611 # Object file extension for compiled C test sources.
5615 # Code to be used in simple compile tests
5616 lt_simple_compile_test_code="int some_variable = 0;\n"
5618 # Code to be used in simple link tests
5619 lt_simple_link_test_code='int main(){return(0);}\n'
5622 # If no C compiler was specified, use CC.
5625 # Allow CC to be a program name with arguments.
5630 # Check for any special shared library compilation flags.
5633 if test "$GCC" = no; then
5636 lt_prog_cc_shlib='-belf'
5640 if test -n "$lt_prog_cc_shlib"; then
5641 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5642 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5643 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5645 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5646 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5647 lt_cv_prog_cc_can_build_shared=no
5653 # Check to make sure the static flag actually works.
5655 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5656 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5657 if test "${lt_prog_compiler_static_works+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 lt_prog_compiler_static_works=no
5661 save_LDFLAGS="$LDFLAGS"
5662 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5663 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5665 # The compiler can only warn and ignore the option if not recognized
5666 # So say no if there are warnings
5667 if test -s conftest.err; then
5668 # Append any errors to the config.log.
5669 cat conftest.err 1>&5
5671 lt_prog_compiler_static_works=yes
5675 LDFLAGS="$save_LDFLAGS"
5678 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5679 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5681 if test x"$lt_prog_compiler_static_works" = xyes; then
5684 lt_prog_compiler_static=
5690 lt_prog_compiler_no_builtin_flag=
5692 if test "$GCC" = yes; then
5693 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5696 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5697 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5698 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 lt_cv_prog_compiler_rtti_exceptions=no
5702 ac_outfile=conftest.$ac_objext
5703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5704 lt_compiler_flag="-fno-rtti -fno-exceptions"
5705 # Insert the option either (1) after the last *FLAGS variable, or
5706 # (2) before a word containing "conftest.", or (3) at the end.
5707 # Note that $ac_compile itself does not contain backslashes and begins
5708 # with a dollar sign (not a hyphen), so the echo should work correctly.
5709 # The option is referenced via a variable to avoid confusing sed.
5710 lt_compile=`echo "$ac_compile" | $SED \
5711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5713 -e 's:$: $lt_compiler_flag:'`
5714 (eval echo "\"\$as_me:5714: $lt_compile\"" >&5)
5715 (eval "$lt_compile" 2>conftest.err)
5717 cat conftest.err >&5
5718 echo "$as_me:5718: \$? = $ac_status" >&5
5719 if (exit $ac_status) && test -s "$ac_outfile"; then
5720 # The compiler can only warn and ignore the option if not recognized
5721 # So say no if there are warnings
5722 if test ! -s conftest.err; then
5723 lt_cv_prog_compiler_rtti_exceptions=yes
5729 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5733 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5740 lt_prog_compiler_wl=
5741 lt_prog_compiler_pic=
5742 lt_prog_compiler_static=
5744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5747 if test "$GCC" = yes; then
5748 lt_prog_compiler_wl='-Wl,'
5749 lt_prog_compiler_static='-static'
5753 # All AIX code is PIC.
5754 if test "$host_cpu" = ia64; then
5755 # AIX 5 now supports IA64 processor
5756 lt_prog_compiler_static='-Bstatic'
5761 # FIXME: we need at least 68020 code to build shared libraries, but
5762 # adding the `-m68020' flag to GCC prevents building anything better,
5764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5767 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5768 # PIC is the default for these OSes.
5771 mingw* | pw32* | os2*)
5772 # This hack is so that the source file can tell whether it is being
5773 # built for inclusion in a dll (and should export symbols for example).
5774 lt_prog_compiler_pic='-DDLL_EXPORT'
5777 darwin* | rhapsody*)
5778 # PIC is the default on this platform
5779 # Common symbols not allowed in MH_DYLIB files
5780 lt_prog_compiler_pic='-fno-common'
5784 # Just because we use GCC doesn't mean we suddenly get shared libraries
5785 # on systems that don't support them.
5786 lt_prog_compiler_can_build_shared=no
5791 if test -d /usr/nec; then
5792 lt_prog_compiler_pic=-Kconform_pic
5797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5804 lt_prog_compiler_pic='-fPIC'
5810 lt_prog_compiler_pic='-fPIC'
5814 # PORTME Check for flag to pass linker flags through the system compiler.
5817 lt_prog_compiler_wl='-Wl,'
5818 if test "$host_cpu" = ia64; then
5819 # AIX 5 now supports IA64 processor
5820 lt_prog_compiler_static='-Bstatic'
5822 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5826 # PIC is the default on this platform
5827 # Common symbols not allowed in MH_DYLIB files
5828 case "$cc_basename" in
5830 lt_prog_compiler_pic='-qnocommon'
5831 lt_prog_compiler_wl='-Wl,'
5836 mingw* | pw32* | os2*)
5837 # This hack is so that the source file can tell whether it is being
5838 # built for inclusion in a dll (and should export symbols for example).
5839 lt_prog_compiler_pic='-DDLL_EXPORT'
5842 hpux9* | hpux10* | hpux11*)
5843 lt_prog_compiler_wl='-Wl,'
5844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5851 lt_prog_compiler_pic='+Z'
5854 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5855 lt_prog_compiler_static='${wl}-a ${wl}archive'
5858 irix5* | irix6* | nonstopux*)
5859 lt_prog_compiler_wl='-Wl,'
5860 # PIC (with -KPIC) is the default.
5861 lt_prog_compiler_static='-non_shared'
5865 lt_prog_compiler_pic='-KPIC'
5866 lt_prog_compiler_static='-Bstatic'
5870 case $cc_basename in
5872 lt_prog_compiler_wl='-Wl,'
5873 lt_prog_compiler_pic='-KPIC'
5874 lt_prog_compiler_static='-static'
5876 pgcc | pgf77 | pgf90)
5877 # Portland Group compilers (*not* the Pentium gcc compiler,
5878 # which looks to be a dead project)
5879 lt_prog_compiler_wl='-Wl,'
5880 lt_prog_compiler_pic='-fpic'
5881 lt_prog_compiler_static='-static'
5884 lt_prog_compiler_wl='-Wl,'
5885 # All Alpha code is PIC.
5886 lt_prog_compiler_static='-non_shared'
5891 osf3* | osf4* | osf5*)
5892 lt_prog_compiler_wl='-Wl,'
5893 # All OSF/1 code is PIC.
5894 lt_prog_compiler_static='-non_shared'
5898 lt_prog_compiler_pic='-Kpic'
5899 lt_prog_compiler_static='-dn'
5903 lt_prog_compiler_wl='-Wl,'
5904 lt_prog_compiler_pic='-KPIC'
5905 lt_prog_compiler_static='-Bstatic'
5909 lt_prog_compiler_wl='-Qoption ld '
5910 lt_prog_compiler_pic='-PIC'
5911 lt_prog_compiler_static='-Bstatic'
5914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5915 lt_prog_compiler_wl='-Wl,'
5916 lt_prog_compiler_pic='-KPIC'
5917 lt_prog_compiler_static='-Bstatic'
5921 if test -d /usr/nec ;then
5922 lt_prog_compiler_pic='-Kconform_pic'
5923 lt_prog_compiler_static='-Bstatic'
5928 lt_prog_compiler_wl='-Wl,'
5929 lt_prog_compiler_can_build_shared=no
5933 lt_prog_compiler_pic='-pic'
5934 lt_prog_compiler_static='-Bstatic'
5938 lt_prog_compiler_can_build_shared=no
5943 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5944 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5947 # Check to make sure the PIC flag actually works.
5949 if test -n "$lt_prog_compiler_pic"; then
5951 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5952 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5953 if test "${lt_prog_compiler_pic_works+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 lt_prog_compiler_pic_works=no
5957 ac_outfile=conftest.$ac_objext
5958 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5959 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5960 # Insert the option either (1) after the last *FLAGS variable, or
5961 # (2) before a word containing "conftest.", or (3) at the end.
5962 # Note that $ac_compile itself does not contain backslashes and begins
5963 # with a dollar sign (not a hyphen), so the echo should work correctly.
5964 # The option is referenced via a variable to avoid confusing sed.
5965 lt_compile=`echo "$ac_compile" | $SED \
5966 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5968 -e 's:$: $lt_compiler_flag:'`
5969 (eval echo "\"\$as_me:5969: $lt_compile\"" >&5)
5970 (eval "$lt_compile" 2>conftest.err)
5972 cat conftest.err >&5
5973 echo "$as_me:5973: \$? = $ac_status" >&5
5974 if (exit $ac_status) && test -s "$ac_outfile"; then
5975 # The compiler can only warn and ignore the option if not recognized
5976 # So say no if there are warnings
5977 if test ! -s conftest.err; then
5978 lt_prog_compiler_pic_works=yes
5984 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5985 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5987 if test x"$lt_prog_compiler_pic_works" = xyes; then
5988 case $lt_prog_compiler_pic in
5990 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5993 lt_prog_compiler_pic=
5994 lt_prog_compiler_can_build_shared=no
5999 # For platforms which do not support PIC, -DPIC is meaningless:
6001 lt_prog_compiler_pic=
6004 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6008 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 lt_cv_prog_compiler_c_o=no
6014 $rm -r conftest 2>/dev/null
6018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6020 lt_compiler_flag="-o out/conftest2.$ac_objext"
6021 # Insert the option either (1) after the last *FLAGS variable, or
6022 # (2) before a word containing "conftest.", or (3) at the end.
6023 # Note that $ac_compile itself does not contain backslashes and begins
6024 # with a dollar sign (not a hyphen), so the echo should work correctly.
6025 lt_compile=`echo "$ac_compile" | $SED \
6026 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6028 -e 's:$: $lt_compiler_flag:'`
6029 (eval echo "\"\$as_me:6029: $lt_compile\"" >&5)
6030 (eval "$lt_compile" 2>out/conftest.err)
6032 cat out/conftest.err >&5
6033 echo "$as_me:6033: \$? = $ac_status" >&5
6034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6036 # The compiler can only warn and ignore the option if not recognized
6037 # So say no if there are warnings
6038 if test ! -s out/conftest.err; then
6039 lt_cv_prog_compiler_c_o=yes
6044 # SGI C++ compiler will create directory out/ii_files/ for
6045 # template instantiation
6046 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6047 $rm out/* && rmdir out
6053 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6057 hard_links="nottested"
6058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6059 # do not overwrite the value of need_locks provided by the user
6060 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6066 ln conftest.a conftest.b 2>&5 || hard_links=no
6067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6068 echo "$as_me:$LINENO: result: $hard_links" >&5
6069 echo "${ECHO_T}$hard_links" >&6
6070 if test "$hard_links" = no; then
6071 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6079 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6083 allow_undefined_flag=
6084 enable_shared_with_static_runtimes=no
6086 archive_expsym_cmds=
6087 old_archive_From_new_cmds=
6088 old_archive_from_expsyms_cmds=
6089 export_dynamic_flag_spec=
6090 whole_archive_flag_spec=
6091 thread_safe_flag_spec=
6092 hardcode_libdir_flag_spec=
6093 hardcode_libdir_flag_spec_ld=
6094 hardcode_libdir_separator=
6097 hardcode_shlibpath_var=unsupported
6098 link_all_deplibs=unknown
6099 hardcode_automatic=no
6102 always_export_symbols=no
6103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6104 # include_expsyms should be a list of space-separated symbols to be *always*
6105 # included in the symbol list
6107 # exclude_expsyms can be an extended regexp of symbols to exclude
6108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6110 # as well as any symbol that contains `d'.
6111 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6113 # platforms (ab)use it in PIC code, but their linkers get confused if
6114 # the symbol is explicitly referenced. Since portable code cannot
6115 # rely on this symbol name, it's probably fine to never include it in
6116 # preloaded symbol tables.
6117 extract_expsyms_cmds=
6120 cygwin* | mingw* | pw32*)
6121 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6122 # When not using gcc, we currently assume that we are using
6123 # Microsoft Visual C++.
6124 if test "$GCC" != yes; then
6134 if test "$with_gnu_ld" = yes; then
6135 # If archive_cmds runs LD, not CC, wlarc should be empty
6138 # See if GNU ld supports shared libraries.
6140 aix3* | aix4* | aix5*)
6141 # On AIX/PPC, the GNU linker is very broken
6142 if test "$host_cpu" != ia64; then
6146 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6147 *** to be unable to reliably create shared libraries on AIX.
6148 *** Therefore, libtool is disabling shared libraries support. If you
6149 *** really care for shared libraries, you may want to modify your PATH
6150 *** so that a non-GNU linker is found, and then restart.
6157 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)'
6158 hardcode_libdir_flag_spec='-L$libdir'
6159 hardcode_minus_L=yes
6161 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6162 # that the semantics of dynamic libraries on AmigaOS, at least up
6163 # to version 4, is to share data among multiple programs linked
6164 # with the same dynamic library. Since this doesn't match the
6165 # behavior of shared libraries on other platforms, we can't use
6171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6172 allow_undefined_flag=unsupported
6173 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6174 # support --undefined. This deserves some investigation. FIXME
6175 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6181 cygwin* | mingw* | pw32*)
6182 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6183 # as there is no search path for DLLs.
6184 hardcode_libdir_flag_spec='-L$libdir'
6185 allow_undefined_flag=unsupported
6186 always_export_symbols=no
6187 enable_shared_with_static_runtimes=yes
6188 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6190 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6192 # If the export-symbols file already is a .def file (1st line
6193 # is EXPORTS), use it as is; otherwise, prepend...
6194 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6195 cp $export_symbols $output_objdir/$soname.def;
6197 echo EXPORTS > $output_objdir/$soname.def;
6198 cat $export_symbols >> $output_objdir/$soname.def;
6200 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6208 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6217 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6221 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6222 *** create shared libraries on Solaris systems. Therefore, libtool
6223 *** is disabling shared libraries support. We urge you to upgrade GNU
6224 *** binutils to release 2.9.1 or newer. Another option is to modify
6225 *** your PATH or compiler configuration so that the native linker is
6226 *** used, and then restart.
6229 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6238 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6241 hardcode_shlibpath_var=no
6245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6247 case $CC,$host_cpu in
6248 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6249 tmp_addflag=' -fpic' ;;
6250 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6251 tmp_addflag=' -i_dynamic' ;;
6252 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6253 tmp_addflag=' -i_dynamic -nofor_main' ;;
6254 ifc* | ifort*) # Intel Fortran compiler
6255 tmp_addflag=' -nofor_main' ;;
6257 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6258 supports_anon_versioning=no
6259 case `$LD -v 2>/dev/null` in
6260 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6263 *\ 2.11.*) ;; # other 2.11 versions
6264 *) supports_anon_versioning=yes ;;
6266 if test $supports_anon_versioning = yes; then
6267 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6269 $echo "local: *; };" >> $output_objdir/$libname.ver~
6270 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6272 archive_expsym_cmds=$archive_cmds
6280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6289 if test "$ld_shlibs" = yes; then
6290 runpath_var=LD_RUN_PATH
6291 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6292 export_dynamic_flag_spec='${wl}--export-dynamic'
6293 # ancient GNU ld didn't support --whole-archive et. al.
6294 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6295 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6297 whole_archive_flag_spec=
6301 # PORTME fill in a description of your system's linker (not GNU ld)
6304 allow_undefined_flag=unsupported
6305 always_export_symbols=yes
6306 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'
6307 # Note: this linker hardcodes the directories in LIBPATH if there
6308 # are no directories specified by -L.
6309 hardcode_minus_L=yes
6310 if test "$GCC" = yes && test -z "$link_static_flag"; then
6311 # Neither direct hardcoding nor static linking is supported with a
6313 hardcode_direct=unsupported
6318 if test "$host_cpu" = ia64; then
6319 # On IA64, the linker does run time linking by default, so we don't
6320 # have to do anything special.
6321 aix_use_runtimelinking=no
6322 exp_sym_flag='-Bexport'
6325 # If we're using GNU nm, then we don't want the "-C" option.
6326 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6327 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6328 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'
6330 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'
6332 aix_use_runtimelinking=no
6334 # Test if we are trying to use run time linking or normal
6335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6336 # need to do runtime linking.
6337 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6338 for ld_flag in $LDFLAGS; do
6339 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6340 aix_use_runtimelinking=yes
6346 exp_sym_flag='-bexport'
6347 no_entry_flag='-bnoentry'
6350 # When large executables or shared objects are built, AIX ld can
6351 # have problems creating the table of contents. If linking a library
6352 # or program results in "error TOC overflow" add -mminimal-toc to
6353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6358 hardcode_libdir_separator=':'
6359 link_all_deplibs=yes
6361 if test "$GCC" = yes; then
6362 case $host_os in aix4.[012]|aix4.[012].*)
6363 # We only want to do this on AIX 4.2 and lower, the check
6364 # below for broken collect2 doesn't work under 4.3+
6365 collect2name=`${CC} -print-prog-name=collect2`
6366 if test -f "$collect2name" && \
6367 strings "$collect2name" | grep resolve_lib_name >/dev/null
6369 # We have reworked collect2
6372 # We have old collect2
6373 hardcode_direct=unsupported
6374 # It fails to find uninstalled libraries when the uninstalled
6375 # path is not listed in the libpath. Setting hardcode_minus_L
6376 # to unsupported forces relinking
6377 hardcode_minus_L=yes
6378 hardcode_libdir_flag_spec='-L$libdir'
6379 hardcode_libdir_separator=
6382 shared_flag='-shared'
6383 if test "$aix_use_runtimelinking" = yes; then
6384 shared_flag="$shared_flag "'${wl}-G'
6388 if test "$host_cpu" = ia64; then
6389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6390 # chokes on -Wl,-G. The following line is correct:
6393 if test "$aix_use_runtimelinking" = yes; then
6394 shared_flag='${wl}-G'
6396 shared_flag='${wl}-bM:SRE'
6401 # It seems that -bexpall does not export symbols beginning with
6402 # underscore (_), so it is better to generate a list of symbols to export.
6403 always_export_symbols=yes
6404 if test "$aix_use_runtimelinking" = yes; then
6405 # Warning - without using the other runtime loading flags (-brtl),
6406 # -berok will link without error, but may produce a broken library.
6407 allow_undefined_flag='-berok'
6408 # Determine the default libpath from the value encoded in an empty executable.
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag"
6434 || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try='test -s conftest$ac_exeext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6449 # Check for a 64-bit object if we didn't find anything.
6450 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; }
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6457 rm -f conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6462 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6464 if test "$host_cpu" = ia64; then
6465 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6466 allow_undefined_flag="-z nodefs"
6467 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6469 # Determine the default libpath from the value encoded in an empty executable.
6470 cat >conftest.$ac_ext <<_ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6485 rm -f conftest.$ac_objext conftest$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487 (eval $ac_link) 2>conftest.er1
6489 grep -v '^ *+' conftest.er1 >conftest.err
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -z "$ac_c_werror_flag"
6495 || test ! -s conftest.err'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try='test -s conftest$ac_exeext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6508 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6510 # Check for a 64-bit object if we didn't find anything.
6511 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; }
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6518 rm -f conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6522 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6523 # Warning - without using the other run time loading flags,
6524 # -berok will link without error, but may produce a broken library.
6525 no_undefined_flag=' ${wl}-bernotok'
6526 allow_undefined_flag=' ${wl}-berok'
6527 # -bexpall does not export symbols beginning with underscore (_)
6528 always_export_symbols=yes
6529 # Exported symbols can be pulled into shared objects from archives
6530 whole_archive_flag_spec=' '
6531 archive_cmds_need_lc=yes
6532 # This is similar to how AIX traditionally builds it's shared libraries.
6533 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6539 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)'
6540 hardcode_libdir_flag_spec='-L$libdir'
6541 hardcode_minus_L=yes
6542 # see comment about different semantics on the GNU ld section
6547 export_dynamic_flag_spec=-rdynamic
6550 cygwin* | mingw* | pw32*)
6551 # When not using gcc, we currently assume that we are using
6552 # Microsoft Visual C++.
6553 # hardcode_libdir_flag_spec is actually meaningless, as there is
6554 # no search path for DLLs.
6555 hardcode_libdir_flag_spec=' '
6556 allow_undefined_flag=unsupported
6557 # Tell ltmain to make .lib files, not .a files.
6559 # Tell ltmain to make .dll files, not .so files.
6561 # FIXME: Setting linknames here is a bad hack.
6562 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6563 # The linker will automatically build a .lib file if we build a DLL.
6564 old_archive_From_new_cmds='true'
6565 # FIXME: Should let the user specify the lib program.
6566 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6567 fix_srcfile_path='`cygpath -w "$srcfile"`'
6568 enable_shared_with_static_runtimes=yes
6571 darwin* | rhapsody*)
6573 rhapsody* | darwin1.[012])
6574 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6577 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6578 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6580 case ${MACOSX_DEPLOYMENT_TARGET} in
6582 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6585 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6591 archive_cmds_need_lc=no
6593 hardcode_automatic=yes
6594 hardcode_shlibpath_var=unsupported
6595 whole_archive_flag_spec=''
6596 link_all_deplibs=yes
6597 if test "$GCC" = yes ; then
6598 output_verbose_link_cmd='echo'
6599 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6600 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6601 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6602 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}'
6603 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}'
6605 case "$cc_basename" in
6607 output_verbose_link_cmd='echo'
6608 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6609 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6611 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}'
6612 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}'
6622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6623 hardcode_libdir_flag_spec='-L$libdir'
6624 hardcode_shlibpath_var=no
6631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6632 # support. Future versions do this automatically, but an explicit c++rt0.o
6633 # does not break anything, and helps significantly (at the cost of a little
6636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6637 hardcode_libdir_flag_spec='-R$libdir'
6639 hardcode_shlibpath_var=no
6642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6646 hardcode_minus_L=yes
6647 hardcode_shlibpath_var=no
6650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6651 freebsd* | kfreebsd*-gnu | dragonfly*)
6652 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6653 hardcode_libdir_flag_spec='-R$libdir'
6655 hardcode_shlibpath_var=no
6659 if test "$GCC" = yes; then
6660 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'
6662 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'
6664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6665 hardcode_libdir_separator=:
6668 # hardcode_minus_L: Not really in the search PATH,
6669 # but as the default location of the library.
6670 hardcode_minus_L=yes
6671 export_dynamic_flag_spec='${wl}-E'
6675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6678 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6681 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6687 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6694 if test "$with_gnu_ld" = no; then
6697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6698 hardcode_libdir_flag_spec_ld='+b $libdir'
6699 hardcode_libdir_separator=:
6701 hardcode_shlibpath_var=no
6704 hardcode_libdir_flag_spec='-L$libdir'
6706 hardcode_shlibpath_var=no
6708 # hardcode_minus_L: Not really in the search PATH,
6709 # but as the default location of the library.
6710 hardcode_minus_L=yes
6713 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6714 hardcode_libdir_separator=:
6716 export_dynamic_flag_spec='${wl}-E'
6718 # hardcode_minus_L: Not really in the search PATH,
6719 # but as the default location of the library.
6720 hardcode_minus_L=yes
6726 irix5* | irix6* | nonstopux*)
6727 if test "$GCC" = yes; then
6728 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'
6730 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'
6731 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6734 hardcode_libdir_separator=:
6735 link_all_deplibs=yes
6739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6742 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6744 hardcode_libdir_flag_spec='-R$libdir'
6746 hardcode_shlibpath_var=no
6750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6753 hardcode_libdir_separator=:
6754 hardcode_shlibpath_var=no
6759 hardcode_shlibpath_var=no
6760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6762 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6764 export_dynamic_flag_spec='${wl}-E'
6767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6769 hardcode_libdir_flag_spec='-R$libdir'
6772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6780 hardcode_libdir_flag_spec='-L$libdir'
6781 hardcode_minus_L=yes
6782 allow_undefined_flag=unsupported
6783 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'
6784 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6788 if test "$GCC" = yes; then
6789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6790 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'
6792 allow_undefined_flag=' -expect_unresolved \*'
6793 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'
6795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6796 hardcode_libdir_separator=:
6799 osf4* | osf5*) # as osf3* with the addition of -msym flag
6800 if test "$GCC" = yes; then
6801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6802 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'
6803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6805 allow_undefined_flag=' -expect_unresolved \*'
6806 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'
6807 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6808 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6810 # Both c and cxx compiler support -rpath directly
6811 hardcode_libdir_flag_spec='-rpath $libdir'
6813 hardcode_libdir_separator=:
6817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6818 hardcode_shlibpath_var=no
6819 export_dynamic_flag_spec='${wl}-Bexport'
6820 runpath_var=LD_RUN_PATH
6821 hardcode_runpath_var=yes
6825 no_undefined_flag=' -z text'
6826 if test "$GCC" = yes; then
6827 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6828 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6829 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6831 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6832 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6835 hardcode_libdir_flag_spec='-R$libdir'
6836 hardcode_shlibpath_var=no
6838 solaris2.[0-5] | solaris2.[0-5].*) ;;
6839 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6840 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
6842 link_all_deplibs=yes
6846 if test "x$host_vendor" = xsequent; then
6847 # Use $CC to link under sequent, because it throws in some extra .o
6848 # files that make .init and .fini sections work.
6849 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6851 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6853 hardcode_libdir_flag_spec='-L$libdir'
6855 hardcode_minus_L=yes
6856 hardcode_shlibpath_var=no
6860 case $host_vendor in
6862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6863 hardcode_direct=yes # is this really true???
6866 ## LD is ld it makes a PLAMLIB
6867 ## CC just makes a GrossModule.
6868 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6869 reload_cmds='$CC -r -o $output$reload_objs'
6873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6874 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6877 runpath_var='LD_RUN_PATH'
6878 hardcode_shlibpath_var=no
6882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6883 hardcode_shlibpath_var=no
6884 export_dynamic_flag_spec='-Bexport'
6888 if test -d /usr/nec; then
6889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6890 hardcode_shlibpath_var=no
6891 runpath_var=LD_RUN_PATH
6892 hardcode_runpath_var=yes
6898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6901 hardcode_shlibpath_var=no
6902 hardcode_runpath_var=yes
6903 runpath_var=LD_RUN_PATH
6906 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6907 no_undefined_flag='${wl}-z ${wl}text'
6908 if test "$GCC" = yes; then
6909 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6911 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6913 runpath_var='LD_RUN_PATH'
6914 hardcode_shlibpath_var=no
6918 no_undefined_flag=' -z text'
6919 # $CC -shared without GNU ld will not create a library from C++
6920 # object files and a static libstdc++, better avoid it by now
6921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6924 hardcode_libdir_flag_spec=
6925 hardcode_shlibpath_var=no
6926 runpath_var='LD_RUN_PATH'
6930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6931 hardcode_libdir_flag_spec='-L$libdir'
6932 hardcode_shlibpath_var=no
6941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6942 echo "${ECHO_T}$ld_shlibs" >&6
6943 test "$ld_shlibs" = no && can_build_shared=no
6945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6946 if test "$GCC" = yes; then
6947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6951 # Do we need to explicitly link libc?
6953 case "x$archive_cmds_need_lc" in
6955 # Assume -lc should be added
6956 archive_cmds_need_lc=yes
6958 if test "$enable_shared" = yes && test "$GCC" = yes; then
6959 case $archive_cmds in
6961 # FIXME: we may have to deal with multi-command sequences.
6964 # Test whether the compiler implicitly links with -lc since on some
6965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6966 # to ld, don't add -lc before -lgcc.
6967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } 2>conftest.err; then
6979 libobjs=conftest.$ac_objext
6981 wl=$lt_prog_compiler_wl
6987 lt_save_allow_undefined_flag=$allow_undefined_flag
6988 allow_undefined_flag=
6989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6990 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }
6995 archive_cmds_need_lc=no
6997 archive_cmds_need_lc=yes
6999 allow_undefined_flag=$lt_save_allow_undefined_flag
7001 cat conftest.err 1>&5
7004 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7015 libname_spec='lib$name'
7023 shlibpath_overrides_runpath=unknown
7025 dynamic_linker="$host_os ld.so"
7026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7027 if test "$GCC" = yes; then
7028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7030 # if the path contains ";" then we assume it to be the separator
7031 # otherwise default to the standard path separator (i.e. ":") - it is
7032 # assumed that no part of a normal pathname contains ";" but that should
7033 # okay in the real world where ";" in dirpaths is itself problematic.
7034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7041 need_lib_prefix=unknown
7042 hardcode_into_libs=no
7044 # when you set need_version to no, make sure it does not cause -set_version
7045 # flags to be left without arguments
7046 need_version=unknown
7051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7052 shlibpath_var=LIBPATH
7054 # AIX 3 has no versioning support, so we append a major version to the name.
7055 soname_spec='${libname}${release}${shared_ext}$major'
7062 hardcode_into_libs=yes
7063 if test "$host_cpu" = ia64; then
7064 # AIX 5 supports IA64
7065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7066 shlibpath_var=LD_LIBRARY_PATH
7068 # With GCC up to 2.95.x, collect2 would create an import file
7069 # for dependence libraries. The import file would start with
7070 # the line `#! .'. This would cause the generated library to
7071 # depend on `.', always an invalid library. This was fixed in
7072 # development snapshots of GCC prior to 3.0.
7074 aix4 | aix4.[01] | aix4.[01].*)
7075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7085 # soname into executable. Probably we can add versioning support to
7086 # collect2, so additional links can be useful in future.
7087 if test "$aix_use_runtimelinking" = yes; then
7088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7089 # instead of lib<name>.a to let people know that these are not
7090 # typical AIX shared libraries.
7091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7093 # We preserve .a as extension for shared libraries through AIX4.2
7094 # and later when we are not doing run time linking.
7095 library_names_spec='${libname}${release}.a $libname.a'
7096 soname_spec='${libname}${release}${shared_ext}$major'
7098 shlibpath_var=LIBPATH
7103 library_names_spec='$libname.ixlibrary $libname.a'
7104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7105 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'
7109 library_names_spec='${libname}${shared_ext}'
7110 dynamic_linker="$host_os ld.so"
7111 shlibpath_var=LIBRARY_PATH
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7118 soname_spec='${libname}${release}${shared_ext}$major'
7119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7120 shlibpath_var=LD_LIBRARY_PATH
7121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7123 # the default ld.so.conf also contains /usr/contrib/lib and
7124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7125 # libtool to hard-code these into programs
7128 cygwin* | mingw* | pw32*)
7129 version_type=windows
7134 case $GCC,$host_os in
7135 yes,cygwin* | yes,mingw* | yes,pw32*)
7136 library_names_spec='$libname.dll.a'
7137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7138 postinstall_cmds='base_file=`basename \${file}`~
7139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7140 dldir=$destdir/`dirname \$dlpath`~
7141 test -d \$dldir || mkdir -p \$dldir~
7142 $install_prog $dir/$dlname \$dldir/$dlname'
7143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7144 dlpath=$dir/\$dldll~
7146 shlibpath_overrides_runpath=yes
7150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7152 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7155 # MinGW DLLs use traditional 'lib' prefix
7156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7158 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7159 # It is most probably a Windows format PATH printed by
7160 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7161 # path with ; separators, and with drive letters. We can handle the
7162 # drive letters (cygwin fileutils understands them), so leave them,
7163 # especially as we might pass files found there to a mingw objdump,
7164 # which wouldn't understand a cygwinified path. Ahh.
7165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7171 # pw32 DLLs use 'pw' prefix rather than 'lib'
7172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7181 dynamic_linker='Win32 ld.exe'
7182 # FIXME: first we should search . and the directory the executable is in
7186 darwin* | rhapsody*)
7187 dynamic_linker="$host_os dyld"
7191 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7192 soname_spec='${libname}${release}${major}$shared_ext'
7193 shlibpath_overrides_runpath=yes
7194 shlibpath_var=DYLD_LIBRARY_PATH
7195 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7196 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7197 if test "$GCC" = yes; then
7198 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"`
7200 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7210 soname_spec='${libname}${release}${shared_ext}$major'
7211 shlibpath_var=LD_LIBRARY_PATH
7222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7223 soname_spec='${libname}${release}${shared_ext}$major'
7224 shlibpath_var=LD_LIBRARY_PATH
7225 shlibpath_overrides_runpath=no
7226 hardcode_into_libs=yes
7227 dynamic_linker='GNU ld.so'
7230 freebsd* | dragonfly*)
7231 # DragonFly does not have aout. When/if they implement a new
7232 # versioning mechanism, adjust this.
7233 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7234 version_type=freebsd-$objformat
7235 case $version_type in
7237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7246 shlibpath_var=LD_LIBRARY_PATH
7249 shlibpath_overrides_runpath=yes
7251 freebsd3.[01]* | freebsdelf3.[01]*)
7252 shlibpath_overrides_runpath=yes
7253 hardcode_into_libs=yes
7256 shlibpath_overrides_runpath=no
7257 hardcode_into_libs=yes
7266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7267 soname_spec='${libname}${release}${shared_ext}$major'
7268 shlibpath_var=LD_LIBRARY_PATH
7269 hardcode_into_libs=yes
7272 hpux9* | hpux10* | hpux11*)
7273 # Give a soname corresponding to the major version so that dld.sl refuses to
7274 # link against other versions.
7281 hardcode_into_libs=yes
7282 dynamic_linker="$host_os dld.so"
7283 shlibpath_var=LD_LIBRARY_PATH
7284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7286 soname_spec='${libname}${release}${shared_ext}$major'
7287 if test "X$HPUX_IA64_MODE" = X32; then
7288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7296 hardcode_into_libs=yes
7297 dynamic_linker="$host_os dld.sl"
7298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7301 soname_spec='${libname}${release}${shared_ext}$major'
7302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7307 dynamic_linker="$host_os dld.sl"
7308 shlibpath_var=SHLIB_PATH
7309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7311 soname_spec='${libname}${release}${shared_ext}$major'
7314 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7315 postinstall_cmds='chmod 555 $lib'
7318 irix5* | irix6* | nonstopux*)
7320 nonstopux*) version_type=nonstopux ;;
7322 if test "$lt_cv_prog_gnu_ld" = yes; then
7330 soname_spec='${libname}${release}${shared_ext}$major'
7331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7333 irix5* | nonstopux*)
7337 case $LD in # libtool.m4 will add one of these switches to LD
7338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7339 libsuff= shlibsuff= libmagic=32-bit;;
7340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7341 libsuff=32 shlibsuff=N32 libmagic=N32;;
7342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7344 *) libsuff= shlibsuff= libmagic=never-match;;
7348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7349 shlibpath_overrides_runpath=no
7350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7352 hardcode_into_libs=yes
7355 # No shared lib support for Linux oldld, aout, or coff.
7356 linux*oldld* | linux*aout* | linux*coff*)
7360 # This must be Linux ELF.
7365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7366 soname_spec='${libname}${release}${shared_ext}$major'
7367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7368 shlibpath_var=LD_LIBRARY_PATH
7369 shlibpath_overrides_runpath=no
7370 # This implies no fast_install, which is unacceptable.
7371 # Some rework will be needed to allow for fast_install
7372 # before this can be enabled.
7373 hardcode_into_libs=yes
7375 # Append ld.so.conf contents to the search path
7376 if test -f /etc/ld.so.conf; then
7377 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7381 # We used to test for /lib/ld.so.1 and disable shared libraries on
7382 # powerpc, because MkLinux only supported shared libraries with the
7383 # GNU dynamic linker. Since this was broken with cross compilers,
7384 # most powerpc-linux boxes support dynamic linking these days and
7385 # people can always --disable-shared, the test was removed, and we
7386 # assume the GNU/Linux dynamic linker is in use.
7387 dynamic_linker='GNU/Linux ld.so'
7394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7395 soname_spec='${libname}${release}${shared_ext}$major'
7396 shlibpath_var=LD_LIBRARY_PATH
7397 shlibpath_overrides_runpath=no
7398 hardcode_into_libs=yes
7399 dynamic_linker='GNU ld.so'
7406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7409 dynamic_linker='NetBSD (a.out) ld.so'
7411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7412 soname_spec='${libname}${release}${shared_ext}$major'
7413 dynamic_linker='NetBSD ld.elf_so'
7415 shlibpath_var=LD_LIBRARY_PATH
7416 shlibpath_overrides_runpath=yes
7417 hardcode_into_libs=yes
7422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7423 shlibpath_var=LD_LIBRARY_PATH
7424 shlibpath_overrides_runpath=yes
7431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7432 soname_spec='${libname}${release}${shared_ext}$major'
7433 shlibpath_var=LD_LIBRARY_PATH
7434 shlibpath_overrides_runpath=yes
7441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7443 shlibpath_var=LD_LIBRARY_PATH
7444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7446 openbsd2.[89] | openbsd2.[89].*)
7447 shlibpath_overrides_runpath=no
7450 shlibpath_overrides_runpath=yes
7454 shlibpath_overrides_runpath=yes
7459 libname_spec='$name'
7462 library_names_spec='$libname${shared_ext} $libname.a'
7463 dynamic_linker='OS/2 ld.exe'
7464 shlibpath_var=LIBPATH
7467 osf3* | osf4* | osf5*)
7471 soname_spec='${libname}${release}${shared_ext}$major'
7472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7473 shlibpath_var=LD_LIBRARY_PATH
7474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7480 soname_spec='${libname}${release}${shared_ext}$major'
7481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7482 shlibpath_var=LD_LIBRARY_PATH
7489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7490 soname_spec='${libname}${release}${shared_ext}$major'
7491 shlibpath_var=LD_LIBRARY_PATH
7492 shlibpath_overrides_runpath=yes
7493 hardcode_into_libs=yes
7494 # ldd complains unless libraries are executable
7495 postinstall_cmds='chmod +x $lib'
7500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7502 shlibpath_var=LD_LIBRARY_PATH
7503 shlibpath_overrides_runpath=yes
7504 if test "$with_gnu_ld" = yes; then
7510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7513 soname_spec='${libname}${release}${shared_ext}$major'
7514 shlibpath_var=LD_LIBRARY_PATH
7515 case $host_vendor in
7517 shlibpath_overrides_runpath=no
7519 export_dynamic_flag_spec='${wl}-Blargedynsym'
7520 runpath_var=LD_RUN_PATH
7528 shlibpath_overrides_runpath=no
7529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7535 if test -d /usr/nec ;then
7537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7538 soname_spec='$libname${shared_ext}.$major'
7539 shlibpath_var=LD_LIBRARY_PATH
7545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7546 soname_spec='${libname}${release}${shared_ext}$major'
7547 shlibpath_var=LD_LIBRARY_PATH
7554 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7555 echo "${ECHO_T}$dynamic_linker" >&6
7556 test "$dynamic_linker" = no && can_build_shared=no
7558 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7559 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7561 if test -n "$hardcode_libdir_flag_spec" || \
7562 test -n "$runpath_var" || \
7563 test "X$hardcode_automatic" = "Xyes" ; then
7565 # We can hardcode non-existant directories.
7566 if test "$hardcode_direct" != no &&
7567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7568 # have to relink, otherwise we might link with an installed library
7569 # when we should be linking with a yet-to-be-installed one
7570 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7571 test "$hardcode_minus_L" != no; then
7572 # Linking always hardcodes the temporary library directory.
7573 hardcode_action=relink
7575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7576 hardcode_action=immediate
7579 # We cannot hardcode anything, or else we can only hardcode existing
7581 hardcode_action=unsupported
7583 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7584 echo "${ECHO_T}$hardcode_action" >&6
7586 if test "$hardcode_action" = relink; then
7587 # Fast installation is not supported
7588 enable_fast_install=no
7589 elif test "$shlibpath_overrides_runpath" = yes ||
7590 test "$enable_shared" = no; then
7591 # Fast installation is not necessary
7592 enable_fast_install=needless
7597 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7598 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7599 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7600 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7601 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7602 echo "$as_me:$LINENO: result: yes" >&5
7603 echo "${ECHO_T}yes" >&6
7605 # FIXME - insert some real tests, host_os isn't really good enough
7608 if test -n "$STRIP" ; then
7609 striplib="$STRIP -x"
7610 echo "$as_me:$LINENO: result: yes" >&5
7611 echo "${ECHO_T}yes" >&6
7613 echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7618 echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7624 if test "x$enable_dlopen" != xyes; then
7625 enable_dlopen=unknown
7626 enable_dlopen_self=unknown
7627 enable_dlopen_self_static=unknown
7634 lt_cv_dlopen="load_add_on"
7636 lt_cv_dlopen_self=yes
7640 lt_cv_dlopen="LoadLibrary"
7645 lt_cv_dlopen="dlopen"
7650 # if libdl is installed we need to link against it
7651 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7652 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 ac_check_lib_save_LIBS=$LIBS
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7665 /* Override any gcc2 internal prototype to avoid an error. */
7669 /* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7682 (eval $ac_link) 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag"
7690 || test ! -s conftest.err'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_lib_dl_dlopen=yes
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_cv_lib_dl_dlopen=no
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7713 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7714 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7715 if test $ac_cv_lib_dl_dlopen = yes; then
7716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7721 lt_cv_dlopen_self=yes
7728 echo "$as_me:$LINENO: checking for shl_load" >&5
7729 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7730 if test "${ac_cv_func_shl_load+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7741 #define shl_load innocuous_shl_load
7743 /* System header to define __stub macros and hopefully few prototypes,
7744 which can conflict with char shl_load (); below.
7745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746 <limits.h> exists even on freestanding compilers. */
7749 # include <limits.h>
7751 # include <assert.h>
7756 /* Override any gcc2 internal prototype to avoid an error. */
7761 /* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7764 /* The GNU C library defines this for functions which it implements
7765 to always fail with ENOSYS. Some functions are actually named
7766 something starting with __ and the normal name is an alias. */
7767 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7770 char (*f) () = shl_load;
7779 return f != shl_load;
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7786 (eval $ac_link) 2>conftest.er1
7788 grep -v '^ *+' conftest.er1 >conftest.err
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } &&
7793 { ac_try='test -z "$ac_c_werror_flag"
7794 || test ! -s conftest.err'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; } &&
7800 { ac_try='test -s conftest$ac_exeext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 ac_cv_func_shl_load=yes
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 ac_cv_func_shl_load=no
7813 rm -f conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7816 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7817 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7818 if test $ac_cv_func_shl_load = yes; then
7819 lt_cv_dlopen="shl_load"
7821 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7822 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7823 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 ac_check_lib_save_LIBS=$LIBS
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7835 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -z "$ac_c_werror_flag"
7860 || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 ac_cv_lib_dld_shl_load=yes
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 ac_cv_lib_dld_shl_load=no
7879 rm -f conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7884 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7885 if test $ac_cv_lib_dld_shl_load = yes; then
7886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7888 echo "$as_me:$LINENO: checking for dlopen" >&5
7889 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7890 if test "${ac_cv_func_dlopen+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 cat >conftest.$ac_ext <<_ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7901 #define dlopen innocuous_dlopen
7903 /* System header to define __stub macros and hopefully few prototypes,
7904 which can conflict with char dlopen (); below.
7905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7906 <limits.h> exists even on freestanding compilers. */
7909 # include <limits.h>
7911 # include <assert.h>
7916 /* Override any gcc2 internal prototype to avoid an error. */
7921 /* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */
7924 /* The GNU C library defines this for functions which it implements
7925 to always fail with ENOSYS. Some functions are actually named
7926 something starting with __ and the normal name is an alias. */
7927 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7930 char (*f) () = dlopen;
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_func_dlopen=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_func_dlopen=no
7973 rm -f conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7976 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7977 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7978 if test $ac_cv_func_dlopen = yes; then
7979 lt_cv_dlopen="dlopen"
7981 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7982 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7983 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 ac_check_lib_save_LIBS=$LIBS
7988 cat >conftest.$ac_ext <<_ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7995 /* Override any gcc2 internal prototype to avoid an error. */
7999 /* We use char because int might match the return type of a gcc2
8000 builtin and then its argument prototype would still apply. */
8010 rm -f conftest.$ac_objext conftest$ac_exeext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_lib_dl_dlopen=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_cv_lib_dl_dlopen=no
8039 rm -f conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 LIBS=$ac_check_lib_save_LIBS
8043 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8044 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8045 if test $ac_cv_lib_dl_dlopen = yes; then
8046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8048 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8049 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8050 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_check_lib_save_LIBS=$LIBS
8055 cat >conftest.$ac_ext <<_ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8062 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_cv_lib_svld_dlopen=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_cv_lib_svld_dlopen=no
8106 rm -f conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108 LIBS=$ac_check_lib_save_LIBS
8110 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8111 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8112 if test $ac_cv_lib_svld_dlopen = yes; then
8113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8115 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8116 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8117 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 ac_check_lib_save_LIBS=$LIBS
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8129 /* Override any gcc2 internal prototype to avoid an error. */
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146 (eval $ac_link) 2>conftest.er1
8148 grep -v '^ *+' conftest.er1 >conftest.err
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest$ac_exeext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_cv_lib_dld_dld_link=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_cv_lib_dld_dld_link=no
8173 rm -f conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 LIBS=$ac_check_lib_save_LIBS
8177 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8178 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8179 if test $ac_cv_lib_dld_dld_link = yes; then
8180 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8201 if test "x$lt_cv_dlopen" != xno; then
8207 case $lt_cv_dlopen in
8209 save_CPPFLAGS="$CPPFLAGS"
8210 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8212 save_LDFLAGS="$LDFLAGS"
8213 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8216 LIBS="$lt_cv_dlopen_libs $LIBS"
8218 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8219 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8220 if test "${lt_cv_dlopen_self+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 if test "$cross_compiling" = yes; then :
8224 lt_cv_dlopen_self=cross
8226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8227 lt_status=$lt_dlunknown
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8229 "configure"
8230 #include "confdefs.h"
8239 # define LT_DLGLOBAL RTLD_GLOBAL
8242 # define LT_DLGLOBAL DL_GLOBAL
8244 # define LT_DLGLOBAL 0
8248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8249 find out it does not work in some platform. */
8250 #ifndef LT_DLLAZY_OR_NOW
8252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8255 # define LT_DLLAZY_OR_NOW DL_LAZY
8258 # define LT_DLLAZY_OR_NOW RTLD_NOW
8261 # define LT_DLLAZY_OR_NOW DL_NOW
8263 # define LT_DLLAZY_OR_NOW 0
8271 extern "C" void exit (int);
8274 void fnord() { int i=42;}
8277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8278 int status = $lt_dlunknown;
8282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8284 /* dlclose (self); */
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8295 (./conftest; exit; ) 2>/dev/null
8298 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8299 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8300 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8303 # compilation failed
8304 lt_cv_dlopen_self=no
8311 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8312 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8314 if test "x$lt_cv_dlopen_self" = xyes; then
8315 LDFLAGS="$LDFLAGS $link_static_flag"
8316 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8317 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8318 if test "${lt_cv_dlopen_self_static+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 if test "$cross_compiling" = yes; then :
8322 lt_cv_dlopen_self_static=cross
8324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8325 lt_status=$lt_dlunknown
8326 cat > conftest.$ac_ext <<EOF
8327 #line 8327 "configure"
8328 #include "confdefs.h"
8337 # define LT_DLGLOBAL RTLD_GLOBAL
8340 # define LT_DLGLOBAL DL_GLOBAL
8342 # define LT_DLGLOBAL 0
8346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8347 find out it does not work in some platform. */
8348 #ifndef LT_DLLAZY_OR_NOW
8350 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8353 # define LT_DLLAZY_OR_NOW DL_LAZY
8356 # define LT_DLLAZY_OR_NOW RTLD_NOW
8359 # define LT_DLLAZY_OR_NOW DL_NOW
8361 # define LT_DLLAZY_OR_NOW 0
8369 extern "C" void exit (int);
8372 void fnord() { int i=42;}
8375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8376 int status = $lt_dlunknown;
8380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8381 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8382 /* dlclose (self); */
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8393 (./conftest; exit; ) 2>/dev/null
8396 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8397 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8398 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8401 # compilation failed
8402 lt_cv_dlopen_self_static=no
8409 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8410 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8413 CPPFLAGS="$save_CPPFLAGS"
8414 LDFLAGS="$save_LDFLAGS"
8419 case $lt_cv_dlopen_self in
8420 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8421 *) enable_dlopen_self=unknown ;;
8424 case $lt_cv_dlopen_self_static in
8425 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8426 *) enable_dlopen_self_static=unknown ;;
8431 # Report which librarie types wil actually be built
8432 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8433 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8434 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8435 echo "${ECHO_T}$can_build_shared" >&6
8437 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8438 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8439 test "$can_build_shared" = "no" && enable_shared=no
8441 # On AIX, shared libraries and static libraries use the same namespace, and
8442 # are all built from PIC.
8445 test "$enable_shared" = yes && enable_static=no
8446 if test -n "$RANLIB"; then
8447 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8448 postinstall_cmds='$RANLIB $lib'
8453 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8454 test "$enable_shared" = yes && enable_static=no
8458 echo "$as_me:$LINENO: result: $enable_shared" >&5
8459 echo "${ECHO_T}$enable_shared" >&6
8461 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8462 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8463 # Make sure either enable_shared or enable_static is yes.
8464 test "$enable_shared" = yes || enable_static=yes
8465 echo "$as_me:$LINENO: result: $enable_static" >&5
8466 echo "${ECHO_T}$enable_static" >&6
8468 # The else clause should only fire when bootstrapping the
8469 # libtool distribution, otherwise you forgot to ship ltmain.sh
8470 # with your package, and you will get complaints that there are
8471 # no rules to generate ltmain.sh.
8472 if test -f "$ltmain"; then
8473 # See if we are running on zsh, and set the options which allow our commands through
8474 # without removal of \ escapes.
8475 if test -n "${ZSH_VERSION+set}" ; then
8476 setopt NO_GLOB_SUBST
8478 # Now quote all the things that may contain metacharacters while being
8479 # careful not to overquote the AC_SUBSTed values. We take copies of the
8480 # variables and quote the copies for generation of the libtool script.
8481 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8483 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8484 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8485 deplibs_check_method reload_flag reload_cmds need_locks \
8486 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8487 lt_cv_sys_global_symbol_to_c_name_address \
8488 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8489 old_postinstall_cmds old_postuninstall_cmds \
8493 lt_prog_compiler_wl \
8494 lt_prog_compiler_pic \
8495 lt_prog_compiler_static \
8496 lt_prog_compiler_no_builtin_flag \
8497 export_dynamic_flag_spec \
8498 thread_safe_flag_spec \
8499 whole_archive_flag_spec \
8500 enable_shared_with_static_runtimes \
8502 old_archive_from_new_cmds \
8507 compiler_lib_search_path \
8509 archive_expsym_cmds \
8511 postuninstall_cmds \
8512 old_archive_from_expsyms_cmds \
8513 allow_undefined_flag \
8515 export_symbols_cmds \
8516 hardcode_libdir_flag_spec \
8517 hardcode_libdir_flag_spec_ld \
8518 hardcode_libdir_separator \
8519 hardcode_automatic \
8521 module_expsym_cmds \
8522 lt_cv_prog_compiler_c_o \
8527 old_archive_cmds | \
8528 old_archive_from_new_cmds | \
8530 archive_expsym_cmds | \
8532 module_expsym_cmds | \
8533 old_archive_from_expsyms_cmds | \
8534 export_symbols_cmds | \
8535 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8536 postinstall_cmds | postuninstall_cmds | \
8537 old_postinstall_cmds | old_postuninstall_cmds | \
8538 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8539 # Double-quote double-evaled strings.
8540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8549 *'\$0 --fallback-echo"')
8550 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8555 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8557 { echo "$as_me:$LINENO: creating $ofile" >&5
8558 echo "$as_me: creating $ofile" >&6;}
8560 cat <<__EOF__ >> "$cfgfile"
8563 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8564 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8565 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8567 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8568 # Free Software Foundation, Inc.
8570 # This file is part of GNU Libtool:
8571 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8573 # This program is free software; you can redistribute it and/or modify
8574 # it under the terms of the GNU General Public License as published by
8575 # the Free Software Foundation; either version 2 of the License, or
8576 # (at your option) any later version.
8578 # This program is distributed in the hope that it will be useful, but
8579 # WITHOUT ANY WARRANTY; without even the implied warranty of
8580 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8581 # General Public License for more details.
8583 # You should have received a copy of the GNU General Public License
8584 # along with this program; if not, write to the Free Software
8585 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8587 # As a special exception to the GNU General Public License, if you
8588 # distribute this file as part of a program that contains a
8589 # configuration script generated by Autoconf, you may include it under
8590 # the same distribution terms that you use for the rest of that program.
8592 # A sed program that does not truncate output.
8595 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8596 Xsed="$SED -e s/^X//"
8598 # The HP-UX ksh and POSIX shell print the target directory to stdout
8600 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8602 # The names of the tagged configurations supported by this script.
8605 # ### BEGIN LIBTOOL CONFIG
8607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8609 # Shell to use when invoking shell scripts.
8612 # Whether or not to build shared libraries.
8613 build_libtool_libs=$enable_shared
8615 # Whether or not to build static libraries.
8616 build_old_libs=$enable_static
8618 # Whether or not to add -lc for building shared libraries.
8619 build_libtool_need_lc=$archive_cmds_need_lc
8621 # Whether or not to disallow shared libs when runtime libs are static
8622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8624 # Whether or not to optimize for fast installation.
8625 fast_install=$enable_fast_install
8628 host_alias=$host_alias
8633 build_alias=$build_alias
8637 # An echo program that does not interpret backslashes.
8642 AR_FLAGS=$lt_AR_FLAGS
8647 # A language-specific compiler.
8650 # Is the compiler the GNU C compiler?
8656 # The linker used to build libraries.
8659 # Whether we need hard or soft links.
8662 # A BSD-compatible nm program.
8665 # A symbol stripping program
8668 # Used to examine libraries when file_magic_cmd begins "file"
8669 MAGIC_CMD=$MAGIC_CMD
8671 # Used on cygwin: DLL creation program.
8674 # Used on cygwin: object dumper.
8677 # Used on cygwin: assembler.
8680 # The name of the directory that contains temporary libtool files.
8683 # How to create reloadable object files.
8684 reload_flag=$lt_reload_flag
8685 reload_cmds=$lt_reload_cmds
8687 # How to pass a linker flag through the compiler.
8688 wl=$lt_lt_prog_compiler_wl
8690 # Object file suffix (normally "o").
8693 # Old archive suffix (normally "a").
8696 # Shared library suffix (normally ".so").
8697 shrext_cmds='$shrext_cmds'
8699 # Executable file suffix (normally "").
8702 # Additional compiler flags for building library objects.
8703 pic_flag=$lt_lt_prog_compiler_pic
8706 # What is the maximum length of a command?
8707 max_cmd_len=$lt_cv_sys_max_cmd_len
8709 # Does compiler simultaneously support -c and -o options?
8710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8712 # Must we lock files when doing compilation ?
8713 need_locks=$lt_need_locks
8715 # Do we need the lib prefix for modules?
8716 need_lib_prefix=$need_lib_prefix
8718 # Do we need a version for libraries?
8719 need_version=$need_version
8721 # Whether dlopen is supported.
8722 dlopen_support=$enable_dlopen
8724 # Whether dlopen of programs is supported.
8725 dlopen_self=$enable_dlopen_self
8727 # Whether dlopen of statically linked programs is supported.
8728 dlopen_self_static=$enable_dlopen_self_static
8730 # Compiler flag to prevent dynamic linking.
8731 link_static_flag=$lt_lt_prog_compiler_static
8733 # Compiler flag to turn off builtin functions.
8734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8736 # Compiler flag to allow reflexive dlopens.
8737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8739 # Compiler flag to generate shared objects directly from archives.
8740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8742 # Compiler flag to generate thread-safe objects.
8743 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8745 # Library versioning type.
8746 version_type=$version_type
8748 # Format of library name prefix.
8749 libname_spec=$lt_libname_spec
8751 # List of archive names. First name is the real one, the rest are links.
8752 # The last name is the one that the linker finds with -lNAME.
8753 library_names_spec=$lt_library_names_spec
8755 # The coded name of the library, if different from the real name.
8756 soname_spec=$lt_soname_spec
8758 # Commands used to build and install an old-style archive.
8760 old_archive_cmds=$lt_old_archive_cmds
8761 old_postinstall_cmds=$lt_old_postinstall_cmds
8762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8764 # Create an old-style archive from a shared archive.
8765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8767 # Create a temporary old-style archive to link instead of a shared archive.
8768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8770 # Commands used to build and install a shared archive.
8771 archive_cmds=$lt_archive_cmds
8772 archive_expsym_cmds=$lt_archive_expsym_cmds
8773 postinstall_cmds=$lt_postinstall_cmds
8774 postuninstall_cmds=$lt_postuninstall_cmds
8776 # Commands used to build a loadable module (assumed same as above if empty)
8777 module_cmds=$lt_module_cmds
8778 module_expsym_cmds=$lt_module_expsym_cmds
8780 # Commands to strip libraries.
8781 old_striplib=$lt_old_striplib
8782 striplib=$lt_striplib
8784 # Dependencies to place before the objects being linked to create a
8786 predep_objects=$lt_predep_objects
8788 # Dependencies to place after the objects being linked to create a
8790 postdep_objects=$lt_postdep_objects
8792 # Dependencies to place before the objects being linked to create a
8796 # Dependencies to place after the objects being linked to create a
8798 postdeps=$lt_postdeps
8800 # The library search path used internally by the compiler when linking
8802 compiler_lib_search_path=$lt_compiler_lib_search_path
8804 # Method to check whether dependent libraries are shared objects.
8805 deplibs_check_method=$lt_deplibs_check_method
8807 # Command to use when deplibs_check_method == file_magic.
8808 file_magic_cmd=$lt_file_magic_cmd
8810 # Flag that allows shared libraries with undefined symbols to be built.
8811 allow_undefined_flag=$lt_allow_undefined_flag
8813 # Flag that forces no undefined symbols.
8814 no_undefined_flag=$lt_no_undefined_flag
8816 # Commands used to finish a libtool library installation in a directory.
8817 finish_cmds=$lt_finish_cmds
8819 # Same as above, but a single script fragment to be evaled but not shown.
8820 finish_eval=$lt_finish_eval
8822 # Take the output of nm and produce a listing of raw symbols and C names.
8823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8825 # Transform the output of nm in a proper C declaration
8826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8828 # Transform the output of nm in a C name address pair
8829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8831 # This is the shared library runtime path variable.
8832 runpath_var=$runpath_var
8834 # This is the shared library path variable.
8835 shlibpath_var=$shlibpath_var
8837 # Is shlibpath searched before the hard-coded library search path?
8838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8840 # How to hardcode a shared library path into an executable.
8841 hardcode_action=$hardcode_action
8843 # Whether we should hardcode library paths into libraries.
8844 hardcode_into_libs=$hardcode_into_libs
8846 # Flag to hardcode \$libdir into a binary during linking.
8847 # This must work even if \$libdir does not exist.
8848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8850 # If ld is used when linking, flag to hardcode \$libdir into
8851 # a binary during linking. This must work even if \$libdir does
8853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8855 # Whether we need a single -rpath flag with a separated argument.
8856 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8860 hardcode_direct=$hardcode_direct
8862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8864 hardcode_minus_L=$hardcode_minus_L
8866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8867 # the resulting binary.
8868 hardcode_shlibpath_var=$hardcode_shlibpath_var
8870 # Set to yes if building a shared library automatically hardcodes DIR into the library
8871 # and all subsequent libraries and executables linked against it.
8872 hardcode_automatic=$hardcode_automatic
8874 # Variables whose values should be saved in libtool wrapper scripts and
8875 # restored at relink time.
8876 variables_saved_for_relink="$variables_saved_for_relink"
8878 # Whether libtool must link a program against all its dependency libraries.
8879 link_all_deplibs=$link_all_deplibs
8881 # Compile-time system search path for libraries
8882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8884 # Run-time system search path for libraries
8885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8887 # Fix the shell variable \$srcfile for the compiler.
8888 fix_srcfile_path="$fix_srcfile_path"
8890 # Set to yes if exported symbols are required.
8891 always_export_symbols=$always_export_symbols
8893 # The commands to list exported symbols.
8894 export_symbols_cmds=$lt_export_symbols_cmds
8896 # The commands to extract the exported symbol list from a shared archive.
8897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8899 # Symbols that should not be listed in the preloaded symbols.
8900 exclude_expsyms=$lt_exclude_expsyms
8902 # Symbols that must always be exported.
8903 include_expsyms=$lt_include_expsyms
8905 # ### END LIBTOOL CONFIG
8912 cat <<\EOF >> "$cfgfile"
8914 # AIX sometimes has problems with the GCC collect2 program. For some
8915 # reason, if we set the COLLECT_NAMES environment variable, the problems
8916 # vanish in a puff of smoke.
8917 if test "X${COLLECT_NAMES+set}" != Xset; then
8919 export COLLECT_NAMES
8925 # We use sed instead of cat because bash on DJGPP gets confused if
8926 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8927 # text mode, it properly converts lines to CR/LF. This bash problem
8928 # is reportedly fixed, but why not run on old versions too?
8929 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8931 mv -f "$cfgfile" "$ofile" || \
8932 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8936 # If there is no Makefile yet, we rely on a make rule to execute
8937 # `config.status --recheck' to rerun these tests and create the
8938 # libtool script then.
8939 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8940 if test -f "$ltmain_in"; then
8941 test -f Makefile && make "$ltmain"
8947 ac_cpp='$CPP $CPPFLAGS'
8948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8955 # Check whether --with-tags or --without-tags was given.
8956 if test "${with_tags+set}" = set; then
8957 withval="$with_tags"
8961 if test -f "$ltmain" && test -n "$tagnames"; then
8962 if test ! -f "${ofile}"; then
8963 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8964 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8967 if test -z "$LTCC"; then
8968 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8969 if test -z "$LTCC"; then
8970 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8971 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8973 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8974 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8978 # Extract list of available tagged configurations in $ofile.
8979 # Note that this assumes the entire list is on one line.
8980 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8982 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8983 for tagname in $tagnames; do
8985 # Check whether tagname contains only valid characters
8986 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8988 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8989 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8990 { (exit 1); exit 1; }; }
8994 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8996 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8997 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8998 { (exit 1); exit 1; }; }
9001 # Update the list of available tags.
9002 if test -n "$tagname"; then
9003 echo appending configuration tag \"$tagname\" to $ofile
9007 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9008 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9009 (test "X$CXX" != "Xg++"))) ; then
9011 ac_cpp='$CXXCPP $CPPFLAGS'
9012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9019 archive_cmds_need_lc_CXX=no
9020 allow_undefined_flag_CXX=
9021 always_export_symbols_CXX=no
9022 archive_expsym_cmds_CXX=
9023 export_dynamic_flag_spec_CXX=
9024 hardcode_direct_CXX=no
9025 hardcode_libdir_flag_spec_CXX=
9026 hardcode_libdir_flag_spec_ld_CXX=
9027 hardcode_libdir_separator_CXX=
9028 hardcode_minus_L_CXX=no
9029 hardcode_automatic_CXX=no
9031 module_expsym_cmds_CXX=
9032 link_all_deplibs_CXX=unknown
9033 old_archive_cmds_CXX=$old_archive_cmds
9034 no_undefined_flag_CXX=
9035 whole_archive_flag_spec_CXX=
9036 enable_shared_with_static_runtimes_CXX=no
9038 # Dependencies to place before and after the object being linked:
9040 postdep_objects_CXX=
9043 compiler_lib_search_path_CXX=
9045 # Source file extension for C++ test sources.
9048 # Object file extension for compiled C++ test sources.
9052 # Code to be used in simple compile tests
9053 lt_simple_compile_test_code="int some_variable = 0;\n"
9055 # Code to be used in simple link tests
9056 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9058 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9060 # If no C compiler was specified, use CC.
9063 # Allow CC to be a program name with arguments.
9067 # Allow CC to be a program name with arguments.
9072 lt_save_with_gnu_ld=$with_gnu_ld
9073 lt_save_path_LD=$lt_cv_path_LD
9074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9075 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9077 unset lt_cv_prog_gnu_ld
9079 if test -n "${lt_cv_path_LDCXX+set}"; then
9080 lt_cv_path_LD=$lt_cv_path_LDCXX
9084 test -z "${LDCXX+set}" || LD=$LDCXX
9088 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9090 # We don't want -fno-exception wen compiling C++ code, so set the
9091 # no_builtin_flag separately
9092 if test "$GXX" = yes; then
9093 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9095 lt_prog_compiler_no_builtin_flag_CXX=
9098 if test "$GXX" = yes; then
9099 # Set up default GNU C++ configuration
9102 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9103 if test "${with_gnu_ld+set}" = set; then
9104 withval="$with_gnu_ld"
9105 test "$withval" = no || with_gnu_ld=yes
9110 if test "$GCC" = yes; then
9111 # Check if gcc -print-prog-name=ld gives a path.
9112 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9113 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9116 # gcc leaves a trailing carriage return which upsets mingw
9117 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9119 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9122 # Accept absolute paths.
9124 re_direlt='/[^/][^/]*/\.\./'
9125 # Canonicalize the pathname of ld
9126 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9127 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9128 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9130 test -z "$LD" && LD="$ac_prog"
9133 # If it fails, then pretend we aren't using GCC.
9137 # If it is relative, then search for the first ld in PATH.
9141 elif test "$with_gnu_ld" = yes; then
9142 echo "$as_me:$LINENO: checking for GNU ld" >&5
9143 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9145 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9146 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9148 if test "${lt_cv_path_LD+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 if test -z "$LD"; then
9152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9153 for ac_dir in $PATH; do
9155 test -z "$ac_dir" && ac_dir=.
9156 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9157 lt_cv_path_LD="$ac_dir/$ac_prog"
9158 # Check to see if the program is GNU ld. I'd rather use --version,
9159 # but apparently some GNU ld's only accept -v.
9160 # Break only if it was the GNU/non-GNU ld that we prefer.
9161 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9162 *GNU* | *'with BFD'*)
9163 test "$with_gnu_ld" != no && break
9166 test "$with_gnu_ld" != yes && break
9173 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9178 if test -n "$LD"; then
9179 echo "$as_me:$LINENO: result: $LD" >&5
9180 echo "${ECHO_T}$LD" >&6
9182 echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6
9185 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9186 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9187 { (exit 1); exit 1; }; }
9188 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9189 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9190 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9194 case `$LD -v 2>&1 </dev/null` in
9195 *GNU* | *'with BFD'*)
9196 lt_cv_prog_gnu_ld=yes
9199 lt_cv_prog_gnu_ld=no
9203 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9204 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9205 with_gnu_ld=$lt_cv_prog_gnu_ld
9209 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9210 # archiving commands below assume that GNU ld is being used.
9211 if test "$with_gnu_ld" = yes; then
9212 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213 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'
9215 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9216 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9218 # If archive_cmds runs LD, not CC, wlarc should be empty
9219 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9220 # investigate it a little bit more. (MM)
9223 # ancient GNU ld didn't support --whole-archive et. al.
9224 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9225 grep 'no-whole-archive' > /dev/null; then
9226 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9228 whole_archive_flag_spec_CXX=
9234 # A generic and very simple default shared library creation
9235 # command for GNU C++ for the case where it uses the native
9236 # linker, instead of GNU ld. If possible, this setting should
9237 # overridden to take advantage of the native linker features on
9238 # the platform it is being used on.
9239 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9242 # Commands to make compiler produce verbose output that lists
9243 # what "hidden" libraries, object files and flags are used when
9244 # linking a shared library.
9245 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9253 # PORTME: fill in a description of your system's C++ link characteristics
9254 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9255 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9259 # FIXME: insert proper C++ library support
9263 if test "$host_cpu" = ia64; then
9264 # On IA64, the linker does run time linking by default, so we don't
9265 # have to do anything special.
9266 aix_use_runtimelinking=no
9267 exp_sym_flag='-Bexport'
9270 aix_use_runtimelinking=no
9272 # Test if we are trying to use run time linking or normal
9273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9274 # need to do runtime linking.
9275 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9276 for ld_flag in $LDFLAGS; do
9279 aix_use_runtimelinking=yes
9286 exp_sym_flag='-bexport'
9287 no_entry_flag='-bnoentry'
9290 # When large executables or shared objects are built, AIX ld can
9291 # have problems creating the table of contents. If linking a library
9292 # or program results in "error TOC overflow" add -mminimal-toc to
9293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9297 hardcode_direct_CXX=yes
9298 hardcode_libdir_separator_CXX=':'
9299 link_all_deplibs_CXX=yes
9301 if test "$GXX" = yes; then
9302 case $host_os in aix4.[012]|aix4.[012].*)
9303 # We only want to do this on AIX 4.2 and lower, the check
9304 # below for broken collect2 doesn't work under 4.3+
9305 collect2name=`${CC} -print-prog-name=collect2`
9306 if test -f "$collect2name" && \
9307 strings "$collect2name" | grep resolve_lib_name >/dev/null
9309 # We have reworked collect2
9310 hardcode_direct_CXX=yes
9312 # We have old collect2
9313 hardcode_direct_CXX=unsupported
9314 # It fails to find uninstalled libraries when the uninstalled
9315 # path is not listed in the libpath. Setting hardcode_minus_L
9316 # to unsupported forces relinking
9317 hardcode_minus_L_CXX=yes
9318 hardcode_libdir_flag_spec_CXX='-L$libdir'
9319 hardcode_libdir_separator_CXX=
9322 shared_flag='-shared'
9323 if test "$aix_use_runtimelinking" = yes; then
9324 shared_flag="$shared_flag "'${wl}-G'
9328 if test "$host_cpu" = ia64; then
9329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9330 # chokes on -Wl,-G. The following line is correct:
9333 if test "$aix_use_runtimelinking" = yes; then
9334 shared_flag='${wl}-G'
9336 shared_flag='${wl}-bM:SRE'
9341 # It seems that -bexpall does not export symbols beginning with
9342 # underscore (_), so it is better to generate a list of symbols to export.
9343 always_export_symbols_CXX=yes
9344 if test "$aix_use_runtimelinking" = yes; then
9345 # Warning - without using the other runtime loading flags (-brtl),
9346 # -berok will link without error, but may produce a broken library.
9347 allow_undefined_flag_CXX='-berok'
9348 # Determine the default libpath from the value encoded in an empty executable.
9349 cat >conftest.$ac_ext <<_ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366 (eval $ac_link) 2>conftest.er1
9368 grep -v '^ *+' conftest.er1 >conftest.err
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } &&
9373 { ac_try='test -z "$ac_cxx_werror_flag"
9374 || test ! -s conftest.err'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; } &&
9380 { ac_try='test -s conftest$ac_exeext'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; }; then
9387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9389 # Check for a 64-bit object if we didn't find anything.
9390 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; }
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9397 rm -f conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9401 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9403 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9405 if test "$host_cpu" = ia64; then
9406 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9407 allow_undefined_flag_CXX="-z nodefs"
9408 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9410 # Determine the default libpath from the value encoded in an empty executable.
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428 (eval $ac_link) 2>conftest.er1
9430 grep -v '^ *+' conftest.er1 >conftest.err
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } &&
9435 { ac_try='test -z "$ac_cxx_werror_flag"
9436 || test ! -s conftest.err'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; } &&
9442 { ac_try='test -s conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9451 # Check for a 64-bit object if we didn't find anything.
9452 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; }
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9459 rm -f conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9463 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9464 # Warning - without using the other run time loading flags,
9465 # -berok will link without error, but may produce a broken library.
9466 no_undefined_flag_CXX=' ${wl}-bernotok'
9467 allow_undefined_flag_CXX=' ${wl}-berok'
9468 # -bexpall does not export symbols beginning with underscore (_)
9469 always_export_symbols_CXX=yes
9470 # Exported symbols can be pulled into shared objects from archives
9471 whole_archive_flag_spec_CXX=' '
9472 archive_cmds_need_lc_CXX=yes
9473 # This is similar to how AIX traditionally builds it's shared libraries.
9474 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9479 case $cc_basename in
9481 # FIXME: insert proper C++ library support
9488 cygwin* | mingw* | pw32*)
9489 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9490 # as there is no search path for DLLs.
9491 hardcode_libdir_flag_spec_CXX='-L$libdir'
9492 allow_undefined_flag_CXX=unsupported
9493 always_export_symbols_CXX=no
9494 enable_shared_with_static_runtimes_CXX=yes
9496 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9498 # If the export-symbols file already is a .def file (1st line
9499 # is EXPORTS), use it as is; otherwise, prepend...
9500 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9501 cp $export_symbols $output_objdir/$soname.def;
9503 echo EXPORTS > $output_objdir/$soname.def;
9504 cat $export_symbols >> $output_objdir/$soname.def;
9506 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9511 darwin* | rhapsody*)
9513 rhapsody* | darwin1.[012])
9514 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9517 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9518 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9520 case ${MACOSX_DEPLOYMENT_TARGET} in
9522 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9525 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9531 archive_cmds_need_lc_CXX=no
9532 hardcode_direct_CXX=no
9533 hardcode_automatic_CXX=yes
9534 hardcode_shlibpath_var_CXX=unsupported
9535 whole_archive_flag_spec_CXX=''
9536 link_all_deplibs_CXX=yes
9538 if test "$GXX" = yes ; then
9539 lt_int_apple_cc_single_mod=no
9540 output_verbose_link_cmd='echo'
9541 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9542 lt_int_apple_cc_single_mod=yes
9544 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9545 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9547 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'
9549 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9550 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9551 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9552 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}'
9554 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}'
9556 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}'
9558 case "$cc_basename" in
9560 output_verbose_link_cmd='echo'
9561 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'
9562 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9563 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9564 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}'
9565 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}'
9575 case $cc_basename in
9577 # FIXME: insert proper C++ library support
9581 # Green Hills C++ Compiler
9582 # FIXME: insert proper C++ library support
9586 # FIXME: insert proper C++ library support
9592 # C++ shared libraries reported to be fairly broken before switch to ELF
9596 archive_cmds_need_lc_CXX=no
9598 freebsd* | kfreebsd*-gnu | dragonfly*)
9599 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9606 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9607 hardcode_libdir_separator_CXX=:
9608 export_dynamic_flag_spec_CXX='${wl}-E'
9609 hardcode_direct_CXX=yes
9610 hardcode_minus_L_CXX=yes # Not in the search PATH,
9611 # but as the default
9612 # location of the library.
9614 case $cc_basename in
9616 # FIXME: insert proper C++ library support
9620 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'
9621 # Commands to make compiler produce verbose output that lists
9622 # what "hidden" libraries, object files and flags are used when
9623 # linking a shared library.
9625 # There doesn't appear to be a way to prevent this compiler from
9626 # explicitly linking system object files so we need to strip them
9627 # from the output so that they don't get included in the library
9629 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'
9632 if test "$GXX" = yes; then
9633 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'
9635 # FIXME: insert proper C++ library support
9642 if test $with_gnu_ld = no; then
9645 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9646 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9647 hardcode_libdir_separator_CXX=:
9650 hardcode_libdir_flag_spec_CXX='-L$libdir'
9653 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9654 hardcode_libdir_separator_CXX=:
9655 export_dynamic_flag_spec_CXX='${wl}-E'
9661 hardcode_direct_CXX=no
9662 hardcode_shlibpath_var_CXX=no
9665 hardcode_direct_CXX=no
9666 hardcode_shlibpath_var_CXX=no
9667 hardcode_minus_L_CXX=yes # Not in the search PATH,
9668 # but as the default
9669 # location of the library.
9672 hardcode_direct_CXX=yes
9673 hardcode_minus_L_CXX=yes # Not in the search PATH,
9674 # but as the default
9675 # location of the library.
9679 case $cc_basename in
9681 # FIXME: insert proper C++ library support
9687 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9690 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9693 # Commands to make compiler produce verbose output that lists
9694 # what "hidden" libraries, object files and flags are used when
9695 # linking a shared library.
9697 # There doesn't appear to be a way to prevent this compiler from
9698 # explicitly linking system object files so we need to strip them
9699 # from the output so that they don't get included in the library
9701 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'
9704 if test "$GXX" = yes; then
9705 if test $with_gnu_ld = no; then
9708 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9711 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'
9716 # FIXME: insert proper C++ library support
9723 case $cc_basename in
9726 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9728 # Archives containing C++ object files must be created using
9729 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9730 # necessary to make sure instantiated templates are included
9732 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9735 if test "$GXX" = yes; then
9736 if test "$with_gnu_ld" = no; then
9737 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9739 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'
9742 link_all_deplibs_CXX=yes
9745 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9746 hardcode_libdir_separator_CXX=:
9749 case $cc_basename in
9751 # Kuck and Associates, Inc. (KAI) C++ Compiler
9753 # KCC will only create a shared library if the output file
9754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9755 # to its proper name (with version) after linking.
9756 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'
9757 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'
9758 # Commands to make compiler produce verbose output that lists
9759 # what "hidden" libraries, object files and flags are used when
9760 # linking a shared library.
9762 # There doesn't appear to be a way to prevent this compiler from
9763 # explicitly linking system object files so we need to strip them
9764 # from the output so that they don't get included in the library
9766 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'
9768 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9771 # Archives containing C++ object files must be created using
9772 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9773 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9778 # version 8.0 and above of icpc choke on multiply defined symbols
9779 # if we add $predep_objects and $postdep_objects, however 7.1 and
9780 # earlier do not add the objects themselves.
9781 case `$CC -V 2>&1` in
9783 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784 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'
9786 *) # Version 8.0 or newer
9789 ia64*) tmp_idyn=' -i_dynamic';;
9791 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9792 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'
9795 archive_cmds_need_lc_CXX=no
9796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9798 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9801 # Portland Group C++ compiler
9802 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9803 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'
9805 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9811 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'
9813 runpath_var=LD_RUN_PATH
9814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9815 hardcode_libdir_separator_CXX=:
9817 # Commands to make compiler produce verbose output that lists
9818 # what "hidden" libraries, object files and flags are used when
9819 # linking a shared library.
9821 # There doesn't appear to be a way to prevent this compiler from
9822 # explicitly linking system object files so we need to strip them
9823 # from the output so that they don't get included in the library
9825 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'
9830 # FIXME: insert proper C++ library support
9834 # FIXME: insert proper C++ library support
9838 case $cc_basename in
9840 # FIXME: insert proper C++ library support
9844 # FIXME: insert proper C++ library support
9850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9851 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9853 hardcode_libdir_flag_spec_CXX='-R$libdir'
9854 hardcode_direct_CXX=yes
9855 hardcode_shlibpath_var_CXX=no
9857 # Workaround some broken pre-1.5 toolchains
9858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9861 # C++ shared libraries are fairly broken
9865 hardcode_direct_CXX=yes
9866 hardcode_shlibpath_var_CXX=no
9867 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9868 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9870 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9871 export_dynamic_flag_spec_CXX='${wl}-E'
9872 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9874 output_verbose_link_cmd='echo'
9877 case $cc_basename in
9879 # Kuck and Associates, Inc. (KAI) C++ Compiler
9881 # KCC will only create a shared library if the output file
9882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9883 # to its proper name (with version) after linking.
9884 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'
9886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9887 hardcode_libdir_separator_CXX=:
9889 # Archives containing C++ object files must be created using
9890 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9891 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9895 # Rational C++ 2.4.1
9896 # FIXME: insert proper C++ library support
9900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9901 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9904 hardcode_libdir_separator_CXX=:
9906 # Commands to make compiler produce verbose output that lists
9907 # what "hidden" libraries, object files and flags are used when
9908 # linking a shared library.
9910 # There doesn't appear to be a way to prevent this compiler from
9911 # explicitly linking system object files so we need to strip them
9912 # from the output so that they don't get included in the library
9914 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'
9917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9919 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9922 hardcode_libdir_separator_CXX=:
9924 # Commands to make compiler produce verbose output that lists
9925 # what "hidden" libraries, object files and flags are used when
9926 # linking a shared library.
9927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9930 # FIXME: insert proper C++ library support
9937 case $cc_basename in
9939 # Kuck and Associates, Inc. (KAI) C++ Compiler
9941 # KCC will only create a shared library if the output file
9942 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9943 # to its proper name (with version) after linking.
9944 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'
9946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9947 hardcode_libdir_separator_CXX=:
9949 # Archives containing C++ object files must be created using
9950 # the KAI C++ compiler.
9951 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9954 # Rational C++ 2.4.1
9955 # FIXME: insert proper C++ library support
9959 allow_undefined_flag_CXX=' -expect_unresolved \*'
9960 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9961 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9962 echo "-hidden">> $lib.exp~
9963 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9967 hardcode_libdir_separator_CXX=:
9969 # Commands to make compiler produce verbose output that lists
9970 # what "hidden" libraries, object files and flags are used when
9971 # linking a shared library.
9973 # There doesn't appear to be a way to prevent this compiler from
9974 # explicitly linking system object files so we need to strip them
9975 # from the output so that they don't get included in the library
9977 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'
9980 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9981 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9982 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9985 hardcode_libdir_separator_CXX=:
9987 # Commands to make compiler produce verbose output that lists
9988 # what "hidden" libraries, object files and flags are used when
9989 # linking a shared library.
9990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9993 # FIXME: insert proper C++ library support
10000 # FIXME: insert proper C++ library support
10004 archive_cmds_need_lc_CXX=no
10005 case $cc_basename in
10007 # FIXME: insert proper C++ library support
10011 # FIXME: insert proper C++ library support
10017 case $cc_basename in
10020 # FIXME: insert proper C++ library support
10025 # FIXME: insert proper C++ library support
10029 # FIXME: insert proper C++ library support
10035 case $cc_basename in
10037 # Sun C++ 4.2, 5.x and Centerline C++
10038 no_undefined_flag_CXX=' -zdefs'
10039 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10040 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10041 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10043 hardcode_libdir_flag_spec_CXX='-R$libdir'
10044 hardcode_shlibpath_var_CXX=no
10046 solaris2.[0-5] | solaris2.[0-5].*) ;;
10048 # The C++ compiler is used as linker so we must use $wl
10049 # flag to pass the commands to the underlying system
10051 # Supported since Solaris 2.6 (maybe 2.5.1?)
10052 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10055 link_all_deplibs_CXX=yes
10057 # Commands to make compiler produce verbose output that lists
10058 # what "hidden" libraries, object files and flags are used when
10059 # linking a shared library.
10061 # There doesn't appear to be a way to prevent this compiler from
10062 # explicitly linking system object files so we need to strip them
10063 # from the output so that they don't get included in the library
10065 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10067 # Archives containing C++ object files must be created using
10068 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10069 # necessary to make sure instantiated templates are included
10071 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10074 # Green Hills C++ Compiler
10075 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10077 # The C++ compiler must be used to create the archive.
10078 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10081 # GNU C++ compiler with Solaris linker
10082 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10083 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10084 if $CC --version | grep -v '^2\.7' > /dev/null; then
10085 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10086 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10087 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10089 # Commands to make compiler produce verbose output that lists
10090 # what "hidden" libraries, object files and flags are used when
10091 # linking a shared library.
10092 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10094 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10096 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10097 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10098 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10100 # Commands to make compiler produce verbose output that lists
10101 # what "hidden" libraries, object files and flags are used when
10102 # linking a shared library.
10103 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10106 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10111 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10112 archive_cmds_need_lc_CXX=no
10115 case $cc_basename in
10117 # NonStop-UX NCC 3.20
10118 # FIXME: insert proper C++ library support
10122 # FIXME: insert proper C++ library support
10128 # FIXME: insert proper C++ library support
10132 # FIXME: insert proper C++ library support
10136 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10137 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10138 test "$ld_shlibs_CXX" = no && can_build_shared=no
10144 cat > conftest.$ac_ext <<EOF
10148 Foo (void) { a = 0; }
10154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10155 (eval $ac_compile) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; then
10159 # Parse the compiler output and extract the necessary
10160 # objects, libraries and library flags.
10162 # Sentinel used to keep track of whether or not we are before
10163 # the conftest object file.
10164 pre_test_object_deps_done=no
10166 # The `*' in the case matches for architectures that use `case' in
10167 # $output_verbose_cmd can trigger glob expansion during the loop
10168 # eval without this substitution.
10169 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10171 for p in `eval $output_verbose_link_cmd`; do
10175 # Some compilers place space between "-{L,R}" and the path.
10176 # Remove the space.
10177 if test $p = "-L" \
10178 || test $p = "-R"; then
10185 if test "$pre_test_object_deps_done" = no; then
10188 # Internal compiler library paths should come after those
10189 # provided the user. The postdeps already come after the
10190 # user supplied libs so there is no need to process them.
10191 if test -z "$compiler_lib_search_path_CXX"; then
10192 compiler_lib_search_path_CXX="${prev}${p}"
10194 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10197 # The "-l" case would never come before the object being
10198 # linked, so don't bother handling this case.
10201 if test -z "$postdeps_CXX"; then
10202 postdeps_CXX="${prev}${p}"
10204 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10210 # This assumes that the test object file only shows up
10211 # once in the compiler output.
10212 if test "$p" = "conftest.$objext"; then
10213 pre_test_object_deps_done=yes
10217 if test "$pre_test_object_deps_done" = no; then
10218 if test -z "$predep_objects_CXX"; then
10219 predep_objects_CXX="$p"
10221 predep_objects_CXX="$predep_objects_CXX $p"
10224 if test -z "$postdep_objects_CXX"; then
10225 postdep_objects_CXX="$p"
10227 postdep_objects_CXX="$postdep_objects_CXX $p"
10232 *) ;; # Ignore the rest.
10240 echo "libtool.m4: error: problem compiling CXX test program"
10243 $rm -f confest.$objext
10245 case " $postdeps_CXX " in
10246 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10249 lt_prog_compiler_wl_CXX=
10250 lt_prog_compiler_pic_CXX=
10251 lt_prog_compiler_static_CXX=
10253 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10256 # C++ specific cases for pic, static, wl, etc.
10257 if test "$GXX" = yes; then
10258 lt_prog_compiler_wl_CXX='-Wl,'
10259 lt_prog_compiler_static_CXX='-static'
10263 # All AIX code is PIC.
10264 if test "$host_cpu" = ia64; then
10265 # AIX 5 now supports IA64 processor
10266 lt_prog_compiler_static_CXX='-Bstatic'
10270 # FIXME: we need at least 68020 code to build shared libraries, but
10271 # adding the `-m68020' flag to GCC prevents building anything better,
10273 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10275 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10276 # PIC is the default for these OSes.
10278 mingw* | os2* | pw32*)
10279 # This hack is so that the source file can tell whether it is being
10280 # built for inclusion in a dll (and should export symbols for example).
10281 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10283 darwin* | rhapsody*)
10284 # PIC is the default on this platform
10285 # Common symbols not allowed in MH_DYLIB files
10286 lt_prog_compiler_pic_CXX='-fno-common'
10289 # DJGPP does not support shared libraries at all
10290 lt_prog_compiler_pic_CXX=
10293 if test -d /usr/nec; then
10294 lt_prog_compiler_pic_CXX=-Kconform_pic
10298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10299 # not for PA HP-UX.
10300 case "$host_cpu" in
10304 lt_prog_compiler_pic_CXX='-fPIC'
10309 lt_prog_compiler_pic_CXX='-fPIC'
10315 # All AIX code is PIC.
10316 if test "$host_cpu" = ia64; then
10317 # AIX 5 now supports IA64 processor
10318 lt_prog_compiler_static_CXX='-Bstatic'
10320 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10324 case $cc_basename in
10326 # Green Hills C++ Compiler
10327 # _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"
10332 # PIC is the default on this platform
10333 # Common symbols not allowed in MH_DYLIB files
10334 case "$cc_basename" in
10336 lt_prog_compiler_pic_CXX='-qnocommon'
10337 lt_prog_compiler_wl_CXX='-Wl,'
10342 case $cc_basename in
10344 lt_prog_compiler_pic_CXX='-KPIC'
10347 # Green Hills C++ Compiler
10348 lt_prog_compiler_pic_CXX='-pic'
10354 freebsd* | kfreebsd*-gnu | dragonfly*)
10355 # FreeBSD uses GNU C++
10357 hpux9* | hpux10* | hpux11*)
10358 case $cc_basename in
10360 lt_prog_compiler_wl_CXX='-Wl,'
10361 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10362 if test "$host_cpu" != ia64; then
10363 lt_prog_compiler_pic_CXX='+Z'
10367 lt_prog_compiler_wl_CXX='-Wl,'
10368 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10369 case "$host_cpu" in
10374 lt_prog_compiler_pic_CXX='+Z'
10382 irix5* | irix6* | nonstopux*)
10383 case $cc_basename in
10385 lt_prog_compiler_wl_CXX='-Wl,'
10386 lt_prog_compiler_static_CXX='-non_shared'
10387 # CC pic flag -KPIC is the default.
10394 case $cc_basename in
10397 lt_prog_compiler_wl_CXX='--backend -Wl,'
10398 lt_prog_compiler_pic_CXX='-fPIC'
10402 lt_prog_compiler_wl_CXX='-Wl,'
10403 lt_prog_compiler_pic_CXX='-KPIC'
10404 lt_prog_compiler_static_CXX='-static'
10407 # Portland Group C++ compiler.
10408 lt_prog_compiler_wl_CXX='-Wl,'
10409 lt_prog_compiler_pic_CXX='-fpic'
10410 lt_prog_compiler_static_CXX='-static'
10414 # Make sure the PIC flag is empty. It appears that all Alpha
10415 # Linux and Compaq Tru64 Unix objects are PIC.
10416 lt_prog_compiler_pic_CXX=
10417 lt_prog_compiler_static_CXX='-non_shared'
10428 case $cc_basename in
10430 lt_prog_compiler_pic_CXX='-W c,exportall'
10438 osf3* | osf4* | osf5*)
10439 case $cc_basename in
10441 lt_prog_compiler_wl_CXX='--backend -Wl,'
10444 # Rational C++ 2.4.1
10445 lt_prog_compiler_pic_CXX='-pic'
10448 # Digital/Compaq C++
10449 lt_prog_compiler_wl_CXX='-Wl,'
10450 # Make sure the PIC flag is empty. It appears that all Alpha
10451 # Linux and Compaq Tru64 Unix objects are PIC.
10452 lt_prog_compiler_pic_CXX=
10453 lt_prog_compiler_static_CXX='-non_shared'
10462 case $cc_basename in
10464 lt_prog_compiler_pic_CXX='-fPIC'
10471 case $cc_basename in
10473 # Sun C++ 4.2, 5.x and Centerline C++
10474 lt_prog_compiler_pic_CXX='-KPIC'
10475 lt_prog_compiler_static_CXX='-Bstatic'
10476 lt_prog_compiler_wl_CXX='-Qoption ld '
10479 # Green Hills C++ Compiler
10480 lt_prog_compiler_pic_CXX='-PIC'
10487 case $cc_basename in
10490 lt_prog_compiler_pic_CXX='-pic'
10491 lt_prog_compiler_static_CXX='-Bstatic'
10495 lt_prog_compiler_pic_CXX='-pic'
10502 case $cc_basename in
10504 # NonStop-UX NCC 3.20
10505 lt_prog_compiler_pic_CXX='-KPIC'
10516 lt_prog_compiler_can_build_shared_CXX=no
10521 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10522 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10525 # Check to make sure the PIC flag actually works.
10527 if test -n "$lt_prog_compiler_pic_CXX"; then
10529 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10530 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10531 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 lt_prog_compiler_pic_works_CXX=no
10535 ac_outfile=conftest.$ac_objext
10536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10537 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10538 # Insert the option either (1) after the last *FLAGS variable, or
10539 # (2) before a word containing "conftest.", or (3) at the end.
10540 # Note that $ac_compile itself does not contain backslashes and begins
10541 # with a dollar sign (not a hyphen), so the echo should work correctly.
10542 # The option is referenced via a variable to avoid confusing sed.
10543 lt_compile=`echo "$ac_compile" | $SED \
10544 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10546 -e 's:$: $lt_compiler_flag:'`
10547 (eval echo "\"\$as_me:10547: $lt_compile\"" >&5)
10548 (eval "$lt_compile" 2>conftest.err)
10550 cat conftest.err >&5
10551 echo "$as_me:10551: \$? = $ac_status" >&5
10552 if (exit $ac_status) && test -s "$ac_outfile"; then
10553 # The compiler can only warn and ignore the option if not recognized
10554 # So say no if there are warnings
10555 if test ! -s conftest.err; then
10556 lt_prog_compiler_pic_works_CXX=yes
10562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10563 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10565 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10566 case $lt_prog_compiler_pic_CXX in
10568 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10571 lt_prog_compiler_pic_CXX=
10572 lt_prog_compiler_can_build_shared_CXX=no
10577 # For platforms which do not support PIC, -DPIC is meaningless:
10579 lt_prog_compiler_pic_CXX=
10582 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10588 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 lt_cv_prog_compiler_c_o_CXX=no
10592 $rm -r conftest 2>/dev/null
10596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10598 lt_compiler_flag="-o out/conftest2.$ac_objext"
10599 # Insert the option either (1) after the last *FLAGS variable, or
10600 # (2) before a word containing "conftest.", or (3) at the end.
10601 # Note that $ac_compile itself does not contain backslashes and begins
10602 # with a dollar sign (not a hyphen), so the echo should work correctly.
10603 lt_compile=`echo "$ac_compile" | $SED \
10604 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10606 -e 's:$: $lt_compiler_flag:'`
10607 (eval echo "\"\$as_me:10607: $lt_compile\"" >&5)
10608 (eval "$lt_compile" 2>out/conftest.err)
10610 cat out/conftest.err >&5
10611 echo "$as_me:10611: \$? = $ac_status" >&5
10612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10614 # The compiler can only warn and ignore the option if not recognized
10615 # So say no if there are warnings
10616 if test ! -s out/conftest.err; then
10617 lt_cv_prog_compiler_c_o_CXX=yes
10622 # SGI C++ compiler will create directory out/ii_files/ for
10623 # template instantiation
10624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10625 $rm out/* && rmdir out
10631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10635 hard_links="nottested"
10636 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10637 # do not overwrite the value of need_locks provided by the user
10638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10644 ln conftest.a conftest.b 2>&5 || hard_links=no
10645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10646 echo "$as_me:$LINENO: result: $hard_links" >&5
10647 echo "${ECHO_T}$hard_links" >&6
10648 if test "$hard_links" = no; then
10649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10663 # If we're using GNU nm, then we don't want the "-C" option.
10664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10665 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10666 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'
10668 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'
10672 export_symbols_cmds_CXX="$ltdll_cmds"
10675 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'
10678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10682 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10683 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10684 test "$ld_shlibs_CXX" = no && can_build_shared=no
10686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10687 if test "$GCC" = yes; then
10688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10692 # Do we need to explicitly link libc?
10694 case "x$archive_cmds_need_lc_CXX" in
10696 # Assume -lc should be added
10697 archive_cmds_need_lc_CXX=yes
10699 if test "$enable_shared" = yes && test "$GCC" = yes; then
10700 case $archive_cmds_CXX in
10702 # FIXME: we may have to deal with multi-command sequences.
10705 # Test whether the compiler implicitly links with -lc since on some
10706 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10707 # to ld, don't add -lc before -lgcc.
10708 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10709 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10714 (eval $ac_compile) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } 2>conftest.err; then
10720 libobjs=conftest.$ac_objext
10722 wl=$lt_prog_compiler_wl_CXX
10728 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10729 allow_undefined_flag_CXX=
10730 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10731 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }
10736 archive_cmds_need_lc_CXX=no
10738 archive_cmds_need_lc_CXX=yes
10740 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10742 cat conftest.err 1>&5
10745 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10746 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10753 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10754 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10755 library_names_spec=
10756 libname_spec='lib$name'
10760 postuninstall_cmds=
10764 shlibpath_overrides_runpath=unknown
10766 dynamic_linker="$host_os ld.so"
10767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10768 if test "$GCC" = yes; then
10769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10770 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10771 # if the path contains ";" then we assume it to be the separator
10772 # otherwise default to the standard path separator (i.e. ":") - it is
10773 # assumed that no part of a normal pathname contains ";" but that should
10774 # okay in the real world where ";" in dirpaths is itself problematic.
10775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10782 need_lib_prefix=unknown
10783 hardcode_into_libs=no
10785 # when you set need_version to no, make sure it does not cause -set_version
10786 # flags to be left without arguments
10787 need_version=unknown
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10793 shlibpath_var=LIBPATH
10795 # AIX 3 has no versioning support, so we append a major version to the name.
10796 soname_spec='${libname}${release}${shared_ext}$major'
10803 hardcode_into_libs=yes
10804 if test "$host_cpu" = ia64; then
10805 # AIX 5 supports IA64
10806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10807 shlibpath_var=LD_LIBRARY_PATH
10809 # With GCC up to 2.95.x, collect2 would create an import file
10810 # for dependence libraries. The import file would start with
10811 # the line `#! .'. This would cause the generated library to
10812 # depend on `.', always an invalid library. This was fixed in
10813 # development snapshots of GCC prior to 3.0.
10815 aix4 | aix4.[01] | aix4.[01].*)
10816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10818 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10821 can_build_shared=no
10825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10826 # soname into executable. Probably we can add versioning support to
10827 # collect2, so additional links can be useful in future.
10828 if test "$aix_use_runtimelinking" = yes; then
10829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10830 # instead of lib<name>.a to let people know that these are not
10831 # typical AIX shared libraries.
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 # We preserve .a as extension for shared libraries through AIX4.2
10835 # and later when we are not doing run time linking.
10836 library_names_spec='${libname}${release}.a $libname.a'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LIBPATH
10844 library_names_spec='$libname.ixlibrary $libname.a'
10845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10846 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'
10850 library_names_spec='${libname}${shared_ext}'
10851 dynamic_linker="$host_os ld.so"
10852 shlibpath_var=LIBRARY_PATH
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10864 # the default ld.so.conf also contains /usr/contrib/lib and
10865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10866 # libtool to hard-code these into programs
10869 cygwin* | mingw* | pw32*)
10870 version_type=windows
10875 case $GCC,$host_os in
10876 yes,cygwin* | yes,mingw* | yes,pw32*)
10877 library_names_spec='$libname.dll.a'
10878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10879 postinstall_cmds='base_file=`basename \${file}`~
10880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10881 dldir=$destdir/`dirname \$dlpath`~
10882 test -d \$dldir || mkdir -p \$dldir~
10883 $install_prog $dir/$dlname \$dldir/$dlname'
10884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10885 dlpath=$dir/\$dldll~
10887 shlibpath_overrides_runpath=yes
10891 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10892 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10893 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10896 # MinGW DLLs use traditional 'lib' prefix
10897 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10899 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10900 # It is most probably a Windows format PATH printed by
10901 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10902 # path with ; separators, and with drive letters. We can handle the
10903 # drive letters (cygwin fileutils understands them), so leave them,
10904 # especially as we might pass files found there to a mingw objdump,
10905 # which wouldn't understand a cygwinified path. Ahh.
10906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10912 # pw32 DLLs use 'pw' prefix rather than 'lib'
10913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10922 dynamic_linker='Win32 ld.exe'
10923 # FIXME: first we should search . and the directory the executable is in
10927 darwin* | rhapsody*)
10928 dynamic_linker="$host_os dyld"
10929 version_type=darwin
10932 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10933 soname_spec='${libname}${release}${major}$shared_ext'
10934 shlibpath_overrides_runpath=yes
10935 shlibpath_var=DYLD_LIBRARY_PATH
10936 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10937 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10938 if test "$GCC" = yes; then
10939 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"`
10941 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 shlibpath_var=LD_LIBRARY_PATH
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967 hardcode_into_libs=yes
10968 dynamic_linker='GNU ld.so'
10971 freebsd* | dragonfly*)
10972 # DragonFly does not have aout. When/if they implement a new
10973 # versioning mechanism, adjust this.
10974 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10975 version_type=freebsd-$objformat
10976 case $version_type in
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10987 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=yes
10992 freebsd3.[01]* | freebsdelf3.[01]*)
10993 shlibpath_overrides_runpath=yes
10994 hardcode_into_libs=yes
10997 shlibpath_overrides_runpath=no
10998 hardcode_into_libs=yes
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 hardcode_into_libs=yes
11013 hpux9* | hpux10* | hpux11*)
11014 # Give a soname corresponding to the major version so that dld.sl refuses to
11015 # link against other versions.
11019 case "$host_cpu" in
11022 hardcode_into_libs=yes
11023 dynamic_linker="$host_os dld.so"
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 if test "X$HPUX_IA64_MODE" = X32; then
11029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11037 hardcode_into_libs=yes
11038 dynamic_linker="$host_os dld.sl"
11039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11048 dynamic_linker="$host_os dld.sl"
11049 shlibpath_var=SHLIB_PATH
11050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11056 postinstall_cmds='chmod 555 $lib'
11059 irix5* | irix6* | nonstopux*)
11061 nonstopux*) version_type=nonstopux ;;
11063 if test "$lt_cv_prog_gnu_ld" = yes; then
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11074 irix5* | nonstopux*)
11075 libsuff= shlibsuff=
11078 case $LD in # libtool.m4 will add one of these switches to LD
11079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11080 libsuff= shlibsuff= libmagic=32-bit;;
11081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11082 libsuff=32 shlibsuff=N32 libmagic=N32;;
11083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11085 *) libsuff= shlibsuff= libmagic=never-match;;
11089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11090 shlibpath_overrides_runpath=no
11091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11093 hardcode_into_libs=yes
11096 # No shared lib support for Linux oldld, aout, or coff.
11097 linux*oldld* | linux*aout* | linux*coff*)
11101 # This must be Linux ELF.
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=no
11111 # This implies no fast_install, which is unacceptable.
11112 # Some rework will be needed to allow for fast_install
11113 # before this can be enabled.
11114 hardcode_into_libs=yes
11116 # Append ld.so.conf contents to the search path
11117 if test -f /etc/ld.so.conf; then
11118 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11122 # We used to test for /lib/ld.so.1 and disable shared libraries on
11123 # powerpc, because MkLinux only supported shared libraries with the
11124 # GNU dynamic linker. Since this was broken with cross compilers,
11125 # most powerpc-linux boxes support dynamic linking these days and
11126 # people can always --disable-shared, the test was removed, and we
11127 # assume the GNU/Linux dynamic linker is in use.
11128 dynamic_linker='GNU/Linux ld.so'
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=no
11139 hardcode_into_libs=yes
11140 dynamic_linker='GNU ld.so'
11147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150 dynamic_linker='NetBSD (a.out) ld.so'
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 dynamic_linker='NetBSD ld.elf_so'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 shlibpath_overrides_runpath=yes
11158 hardcode_into_libs=yes
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11187 openbsd2.[89] | openbsd2.[89].*)
11188 shlibpath_overrides_runpath=no
11191 shlibpath_overrides_runpath=yes
11195 shlibpath_overrides_runpath=yes
11200 libname_spec='$name'
11203 library_names_spec='$libname${shared_ext} $libname.a'
11204 dynamic_linker='OS/2 ld.exe'
11205 shlibpath_var=LIBPATH
11208 osf3* | osf4* | osf5*)
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11216 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223 shlibpath_var=LD_LIBRARY_PATH
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11234 hardcode_into_libs=yes
11235 # ldd complains unless libraries are executable
11236 postinstall_cmds='chmod +x $lib'
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 if test "$with_gnu_ld" = yes; then
11251 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 soname_spec='${libname}${release}${shared_ext}$major'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 case $host_vendor in
11258 shlibpath_overrides_runpath=no
11260 export_dynamic_flag_spec='${wl}-Blargedynsym'
11261 runpath_var=LD_RUN_PATH
11269 shlibpath_overrides_runpath=no
11270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11276 if test -d /usr/nec ;then
11278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11279 soname_spec='$libname${shared_ext}.$major'
11280 shlibpath_var=LD_LIBRARY_PATH
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 shlibpath_var=LD_LIBRARY_PATH
11295 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11296 echo "${ECHO_T}$dynamic_linker" >&6
11297 test "$dynamic_linker" = no && can_build_shared=no
11299 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11300 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11301 hardcode_action_CXX=
11302 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11303 test -n "$runpath_var_CXX" || \
11304 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11306 # We can hardcode non-existant directories.
11307 if test "$hardcode_direct_CXX" != no &&
11308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11309 # have to relink, otherwise we might link with an installed library
11310 # when we should be linking with a yet-to-be-installed one
11311 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11312 test "$hardcode_minus_L_CXX" != no; then
11313 # Linking always hardcodes the temporary library directory.
11314 hardcode_action_CXX=relink
11316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11317 hardcode_action_CXX=immediate
11320 # We cannot hardcode anything, or else we can only hardcode existing
11322 hardcode_action_CXX=unsupported
11324 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11325 echo "${ECHO_T}$hardcode_action_CXX" >&6
11327 if test "$hardcode_action_CXX" = relink; then
11328 # Fast installation is not supported
11329 enable_fast_install=no
11330 elif test "$shlibpath_overrides_runpath" = yes ||
11331 test "$enable_shared" = no; then
11332 # Fast installation is not necessary
11333 enable_fast_install=needless
11338 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11339 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11340 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11341 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11342 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11343 echo "$as_me:$LINENO: result: yes" >&5
11344 echo "${ECHO_T}yes" >&6
11346 # FIXME - insert some real tests, host_os isn't really good enough
11349 if test -n "$STRIP" ; then
11350 striplib="$STRIP -x"
11351 echo "$as_me:$LINENO: result: yes" >&5
11352 echo "${ECHO_T}yes" >&6
11354 echo "$as_me:$LINENO: result: no" >&5
11355 echo "${ECHO_T}no" >&6
11359 echo "$as_me:$LINENO: result: no" >&5
11360 echo "${ECHO_T}no" >&6
11365 if test "x$enable_dlopen" != xyes; then
11366 enable_dlopen=unknown
11367 enable_dlopen_self=unknown
11368 enable_dlopen_self_static=unknown
11375 lt_cv_dlopen="load_add_on"
11377 lt_cv_dlopen_self=yes
11381 lt_cv_dlopen="LoadLibrary"
11386 lt_cv_dlopen="dlopen"
11391 # if libdl is installed we need to link against it
11392 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 ac_check_lib_save_LIBS=$LIBS
11399 cat >conftest.$ac_ext <<_ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11406 /* Override any gcc2 internal prototype to avoid an error. */
11410 /* We use char because int might match the return type of a gcc2
11411 builtin and then its argument prototype would still apply. */
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423 (eval $ac_link) 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_cxx_werror_flag"
11431 || test ! -s conftest.err'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try='test -s conftest$ac_exeext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 ac_cv_lib_dl_dlopen=yes
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11448 ac_cv_lib_dl_dlopen=no
11450 rm -f conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11454 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11455 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11456 if test $ac_cv_lib_dl_dlopen = yes; then
11457 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11460 lt_cv_dlopen="dyld"
11462 lt_cv_dlopen_self=yes
11469 echo "$as_me:$LINENO: checking for shl_load" >&5
11470 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11471 if test "${ac_cv_func_shl_load+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 cat >conftest.$ac_ext <<_ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11482 #define shl_load innocuous_shl_load
11484 /* System header to define __stub macros and hopefully few prototypes,
11485 which can conflict with char shl_load (); below.
11486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11487 <limits.h> exists even on freestanding compilers. */
11490 # include <limits.h>
11492 # include <assert.h>
11497 /* Override any gcc2 internal prototype to avoid an error. */
11502 /* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11505 /* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
11508 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11511 char (*f) () = shl_load;
11520 return f != shl_load;
11525 rm -f conftest.$ac_objext conftest$ac_exeext
11526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11527 (eval $ac_link) 2>conftest.er1
11529 grep -v '^ *+' conftest.er1 >conftest.err
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_cxx_werror_flag"
11535 || test ! -s conftest.err'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try='test -s conftest$ac_exeext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_func_shl_load=yes
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_cv_func_shl_load=no
11554 rm -f conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11557 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11558 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11559 if test $ac_cv_func_shl_load = yes; then
11560 lt_cv_dlopen="shl_load"
11562 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11563 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11564 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 ac_check_lib_save_LIBS=$LIBS
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11576 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_cxx_werror_flag"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_lib_dld_shl_load=yes
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 ac_cv_lib_dld_shl_load=no
11620 rm -f conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11624 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11625 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11626 if test $ac_cv_lib_dld_shl_load = yes; then
11627 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11629 echo "$as_me:$LINENO: checking for dlopen" >&5
11630 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11631 if test "${ac_cv_func_dlopen+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11642 #define dlopen innocuous_dlopen
11644 /* System header to define __stub macros and hopefully few prototypes,
11645 which can conflict with char dlopen (); below.
11646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 <limits.h> exists even on freestanding compilers. */
11650 # include <limits.h>
11652 # include <assert.h>
11657 /* Override any gcc2 internal prototype to avoid an error. */
11662 /* We use char because int might match the return type of a gcc2
11663 builtin and then its argument prototype would still apply. */
11665 /* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11671 char (*f) () = dlopen;
11680 return f != dlopen;
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11687 (eval $ac_link) 2>conftest.er1
11689 grep -v '^ *+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_cxx_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest$ac_exeext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_func_dlopen=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_func_dlopen=no
11714 rm -f conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11717 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11718 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11719 if test $ac_cv_func_dlopen = yes; then
11720 lt_cv_dlopen="dlopen"
11722 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 ac_check_lib_save_LIBS=$LIBS
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11736 /* Override any gcc2 internal prototype to avoid an error. */
11740 /* We use char because int might match the return type of a gcc2
11741 builtin and then its argument prototype would still apply. */
11751 rm -f conftest.$ac_objext conftest$ac_exeext
11752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11753 (eval $ac_link) 2>conftest.er1
11755 grep -v '^ *+' conftest.er1 >conftest.err
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -z "$ac_cxx_werror_flag"
11761 || test ! -s conftest.err'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; } &&
11767 { ac_try='test -s conftest$ac_exeext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_cv_lib_dl_dlopen=yes
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_cv_lib_dl_dlopen=no
11780 rm -f conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11786 if test $ac_cv_lib_dl_dlopen = yes; then
11787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11789 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11790 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-lsvld $LIBS"
11796 cat >conftest.$ac_ext <<_ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11803 /* Override any gcc2 internal prototype to avoid an error. */
11807 /* We use char because int might match the return type of a gcc2
11808 builtin and then its argument prototype would still apply. */
11818 rm -f conftest.$ac_objext conftest$ac_exeext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11820 (eval $ac_link) 2>conftest.er1
11822 grep -v '^ *+' conftest.er1 >conftest.err
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try='test -z "$ac_cxx_werror_flag"
11828 || test ! -s conftest.err'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest$ac_exeext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_cv_lib_svld_dlopen=yes
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_cv_lib_svld_dlopen=no
11847 rm -f conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 LIBS=$ac_check_lib_save_LIBS
11851 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11852 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11853 if test $ac_cv_lib_svld_dlopen = yes; then
11854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11856 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11857 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11858 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 ac_check_lib_save_LIBS=$LIBS
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11870 /* Override any gcc2 internal prototype to avoid an error. */
11874 /* We use char because int might match the return type of a gcc2
11875 builtin and then its argument prototype would still apply. */
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11887 (eval $ac_link) 2>conftest.er1
11889 grep -v '^ *+' conftest.er1 >conftest.err
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_cxx_werror_flag"
11895 || test ! -s conftest.err'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest$ac_exeext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 ac_cv_lib_dld_dld_link=yes
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 ac_cv_lib_dld_dld_link=no
11914 rm -f conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11916 LIBS=$ac_check_lib_save_LIBS
11918 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11919 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11920 if test $ac_cv_lib_dld_dld_link = yes; then
11921 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11942 if test "x$lt_cv_dlopen" != xno; then
11948 case $lt_cv_dlopen in
11950 save_CPPFLAGS="$CPPFLAGS"
11951 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11953 save_LDFLAGS="$LDFLAGS"
11954 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11957 LIBS="$lt_cv_dlopen_libs $LIBS"
11959 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11960 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11961 if test "${lt_cv_dlopen_self+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 if test "$cross_compiling" = yes; then :
11965 lt_cv_dlopen_self=cross
11967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11968 lt_status=$lt_dlunknown
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11970 "configure"
11971 #include "confdefs.h"
11980 # define LT_DLGLOBAL RTLD_GLOBAL
11983 # define LT_DLGLOBAL DL_GLOBAL
11985 # define LT_DLGLOBAL 0
11989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11990 find out it does not work in some platform. */
11991 #ifndef LT_DLLAZY_OR_NOW
11993 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11996 # define LT_DLLAZY_OR_NOW DL_LAZY
11999 # define LT_DLLAZY_OR_NOW RTLD_NOW
12002 # define LT_DLLAZY_OR_NOW DL_NOW
12004 # define LT_DLLAZY_OR_NOW 0
12012 extern "C" void exit (int);
12015 void fnord() { int i=42;}
12018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12019 int status = $lt_dlunknown;
12023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12024 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12025 /* dlclose (self); */
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12036 (./conftest; exit; ) 2>/dev/null
12038 case x$lt_status in
12039 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12040 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12041 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12044 # compilation failed
12045 lt_cv_dlopen_self=no
12052 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12053 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12055 if test "x$lt_cv_dlopen_self" = xyes; then
12056 LDFLAGS="$LDFLAGS $link_static_flag"
12057 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12058 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12059 if test "${lt_cv_dlopen_self_static+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 if test "$cross_compiling" = yes; then :
12063 lt_cv_dlopen_self_static=cross
12065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12066 lt_status=$lt_dlunknown
12067 cat > conftest.$ac_ext <<EOF
12068 #line 12068 "configure"
12069 #include "confdefs.h"
12078 # define LT_DLGLOBAL RTLD_GLOBAL
12081 # define LT_DLGLOBAL DL_GLOBAL
12083 # define LT_DLGLOBAL 0
12087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12088 find out it does not work in some platform. */
12089 #ifndef LT_DLLAZY_OR_NOW
12091 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12094 # define LT_DLLAZY_OR_NOW DL_LAZY
12097 # define LT_DLLAZY_OR_NOW RTLD_NOW
12100 # define LT_DLLAZY_OR_NOW DL_NOW
12102 # define LT_DLLAZY_OR_NOW 0
12110 extern "C" void exit (int);
12113 void fnord() { int i=42;}
12116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12117 int status = $lt_dlunknown;
12121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12122 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12123 /* dlclose (self); */
12129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12130 (eval $ac_link) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12134 (./conftest; exit; ) 2>/dev/null
12136 case x$lt_status in
12137 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12138 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12139 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12142 # compilation failed
12143 lt_cv_dlopen_self_static=no
12150 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12151 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12154 CPPFLAGS="$save_CPPFLAGS"
12155 LDFLAGS="$save_LDFLAGS"
12160 case $lt_cv_dlopen_self in
12161 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12162 *) enable_dlopen_self=unknown ;;
12165 case $lt_cv_dlopen_self_static in
12166 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12167 *) enable_dlopen_self_static=unknown ;;
12172 # The else clause should only fire when bootstrapping the
12173 # libtool distribution, otherwise you forgot to ship ltmain.sh
12174 # with your package, and you will get complaints that there are
12175 # no rules to generate ltmain.sh.
12176 if test -f "$ltmain"; then
12177 # See if we are running on zsh, and set the options which allow our commands through
12178 # without removal of \ escapes.
12179 if test -n "${ZSH_VERSION+set}" ; then
12180 setopt NO_GLOB_SUBST
12182 # Now quote all the things that may contain metacharacters while being
12183 # careful not to overquote the AC_SUBSTed values. We take copies of the
12184 # variables and quote the copies for generation of the libtool script.
12185 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12187 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12188 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12189 deplibs_check_method reload_flag reload_cmds need_locks \
12190 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12191 lt_cv_sys_global_symbol_to_c_name_address \
12192 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12193 old_postinstall_cmds old_postuninstall_cmds \
12197 lt_prog_compiler_wl_CXX \
12198 lt_prog_compiler_pic_CXX \
12199 lt_prog_compiler_static_CXX \
12200 lt_prog_compiler_no_builtin_flag_CXX \
12201 export_dynamic_flag_spec_CXX \
12202 thread_safe_flag_spec_CXX \
12203 whole_archive_flag_spec_CXX \
12204 enable_shared_with_static_runtimes_CXX \
12205 old_archive_cmds_CXX \
12206 old_archive_from_new_cmds_CXX \
12207 predep_objects_CXX \
12208 postdep_objects_CXX \
12211 compiler_lib_search_path_CXX \
12213 archive_expsym_cmds_CXX \
12214 postinstall_cmds_CXX \
12215 postuninstall_cmds_CXX \
12216 old_archive_from_expsyms_cmds_CXX \
12217 allow_undefined_flag_CXX \
12218 no_undefined_flag_CXX \
12219 export_symbols_cmds_CXX \
12220 hardcode_libdir_flag_spec_CXX \
12221 hardcode_libdir_flag_spec_ld_CXX \
12222 hardcode_libdir_separator_CXX \
12223 hardcode_automatic_CXX \
12225 module_expsym_cmds_CXX \
12226 lt_cv_prog_compiler_c_o_CXX \
12227 exclude_expsyms_CXX \
12228 include_expsyms_CXX; do
12231 old_archive_cmds_CXX | \
12232 old_archive_from_new_cmds_CXX | \
12233 archive_cmds_CXX | \
12234 archive_expsym_cmds_CXX | \
12235 module_cmds_CXX | \
12236 module_expsym_cmds_CXX | \
12237 old_archive_from_expsyms_cmds_CXX | \
12238 export_symbols_cmds_CXX | \
12239 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12240 postinstall_cmds | postuninstall_cmds | \
12241 old_postinstall_cmds | old_postuninstall_cmds | \
12242 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12243 # Double-quote double-evaled strings.
12244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12253 *'\$0 --fallback-echo"')
12254 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12260 cat <<__EOF__ >> "$cfgfile"
12261 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12263 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12265 # Shell to use when invoking shell scripts.
12268 # Whether or not to build shared libraries.
12269 build_libtool_libs=$enable_shared
12271 # Whether or not to build static libraries.
12272 build_old_libs=$enable_static
12274 # Whether or not to add -lc for building shared libraries.
12275 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12277 # Whether or not to disallow shared libs when runtime libs are static
12278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12280 # Whether or not to optimize for fast installation.
12281 fast_install=$enable_fast_install
12284 host_alias=$host_alias
12288 # The build system.
12289 build_alias=$build_alias
12293 # An echo program that does not interpret backslashes.
12298 AR_FLAGS=$lt_AR_FLAGS
12303 # A language-specific compiler.
12304 CC=$lt_compiler_CXX
12306 # Is the compiler the GNU C compiler?
12312 # The linker used to build libraries.
12315 # Whether we need hard or soft links.
12318 # A BSD-compatible nm program.
12321 # A symbol stripping program
12324 # Used to examine libraries when file_magic_cmd begins "file"
12325 MAGIC_CMD=$MAGIC_CMD
12327 # Used on cygwin: DLL creation program.
12330 # Used on cygwin: object dumper.
12333 # Used on cygwin: assembler.
12336 # The name of the directory that contains temporary libtool files.
12339 # How to create reloadable object files.
12340 reload_flag=$lt_reload_flag
12341 reload_cmds=$lt_reload_cmds
12343 # How to pass a linker flag through the compiler.
12344 wl=$lt_lt_prog_compiler_wl_CXX
12346 # Object file suffix (normally "o").
12347 objext="$ac_objext"
12349 # Old archive suffix (normally "a").
12352 # Shared library suffix (normally ".so").
12353 shrext_cmds='$shrext_cmds'
12355 # Executable file suffix (normally "").
12358 # Additional compiler flags for building library objects.
12359 pic_flag=$lt_lt_prog_compiler_pic_CXX
12362 # What is the maximum length of a command?
12363 max_cmd_len=$lt_cv_sys_max_cmd_len
12365 # Does compiler simultaneously support -c and -o options?
12366 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12368 # Must we lock files when doing compilation ?
12369 need_locks=$lt_need_locks
12371 # Do we need the lib prefix for modules?
12372 need_lib_prefix=$need_lib_prefix
12374 # Do we need a version for libraries?
12375 need_version=$need_version
12377 # Whether dlopen is supported.
12378 dlopen_support=$enable_dlopen
12380 # Whether dlopen of programs is supported.
12381 dlopen_self=$enable_dlopen_self
12383 # Whether dlopen of statically linked programs is supported.
12384 dlopen_self_static=$enable_dlopen_self_static
12386 # Compiler flag to prevent dynamic linking.
12387 link_static_flag=$lt_lt_prog_compiler_static_CXX
12389 # Compiler flag to turn off builtin functions.
12390 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12392 # Compiler flag to allow reflexive dlopens.
12393 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12395 # Compiler flag to generate shared objects directly from archives.
12396 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12398 # Compiler flag to generate thread-safe objects.
12399 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12401 # Library versioning type.
12402 version_type=$version_type
12404 # Format of library name prefix.
12405 libname_spec=$lt_libname_spec
12407 # List of archive names. First name is the real one, the rest are links.
12408 # The last name is the one that the linker finds with -lNAME.
12409 library_names_spec=$lt_library_names_spec
12411 # The coded name of the library, if different from the real name.
12412 soname_spec=$lt_soname_spec
12414 # Commands used to build and install an old-style archive.
12416 old_archive_cmds=$lt_old_archive_cmds_CXX
12417 old_postinstall_cmds=$lt_old_postinstall_cmds
12418 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12420 # Create an old-style archive from a shared archive.
12421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12423 # Create a temporary old-style archive to link instead of a shared archive.
12424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12426 # Commands used to build and install a shared archive.
12427 archive_cmds=$lt_archive_cmds_CXX
12428 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12429 postinstall_cmds=$lt_postinstall_cmds
12430 postuninstall_cmds=$lt_postuninstall_cmds
12432 # Commands used to build a loadable module (assumed same as above if empty)
12433 module_cmds=$lt_module_cmds_CXX
12434 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12436 # Commands to strip libraries.
12437 old_striplib=$lt_old_striplib
12438 striplib=$lt_striplib
12440 # Dependencies to place before the objects being linked to create a
12442 predep_objects=$lt_predep_objects_CXX
12444 # Dependencies to place after the objects being linked to create a
12446 postdep_objects=$lt_postdep_objects_CXX
12448 # Dependencies to place before the objects being linked to create a
12450 predeps=$lt_predeps_CXX
12452 # Dependencies to place after the objects being linked to create a
12454 postdeps=$lt_postdeps_CXX
12456 # The library search path used internally by the compiler when linking
12457 # a shared library.
12458 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12460 # Method to check whether dependent libraries are shared objects.
12461 deplibs_check_method=$lt_deplibs_check_method
12463 # Command to use when deplibs_check_method == file_magic.
12464 file_magic_cmd=$lt_file_magic_cmd
12466 # Flag that allows shared libraries with undefined symbols to be built.
12467 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12469 # Flag that forces no undefined symbols.
12470 no_undefined_flag=$lt_no_undefined_flag_CXX
12472 # Commands used to finish a libtool library installation in a directory.
12473 finish_cmds=$lt_finish_cmds
12475 # Same as above, but a single script fragment to be evaled but not shown.
12476 finish_eval=$lt_finish_eval
12478 # Take the output of nm and produce a listing of raw symbols and C names.
12479 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12481 # Transform the output of nm in a proper C declaration
12482 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12484 # Transform the output of nm in a C name address pair
12485 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12487 # This is the shared library runtime path variable.
12488 runpath_var=$runpath_var
12490 # This is the shared library path variable.
12491 shlibpath_var=$shlibpath_var
12493 # Is shlibpath searched before the hard-coded library search path?
12494 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12496 # How to hardcode a shared library path into an executable.
12497 hardcode_action=$hardcode_action_CXX
12499 # Whether we should hardcode library paths into libraries.
12500 hardcode_into_libs=$hardcode_into_libs
12502 # Flag to hardcode \$libdir into a binary during linking.
12503 # This must work even if \$libdir does not exist.
12504 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12506 # If ld is used when linking, flag to hardcode \$libdir into
12507 # a binary during linking. This must work even if \$libdir does
12509 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12511 # Whether we need a single -rpath flag with a separated argument.
12512 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12514 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12515 # resulting binary.
12516 hardcode_direct=$hardcode_direct_CXX
12518 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12519 # resulting binary.
12520 hardcode_minus_L=$hardcode_minus_L_CXX
12522 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12523 # the resulting binary.
12524 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12526 # Set to yes if building a shared library automatically hardcodes DIR into the library
12527 # and all subsequent libraries and executables linked against it.
12528 hardcode_automatic=$hardcode_automatic_CXX
12530 # Variables whose values should be saved in libtool wrapper scripts and
12531 # restored at relink time.
12532 variables_saved_for_relink="$variables_saved_for_relink"
12534 # Whether libtool must link a program against all its dependency libraries.
12535 link_all_deplibs=$link_all_deplibs_CXX
12537 # Compile-time system search path for libraries
12538 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12540 # Run-time system search path for libraries
12541 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12543 # Fix the shell variable \$srcfile for the compiler.
12544 fix_srcfile_path="$fix_srcfile_path_CXX"
12546 # Set to yes if exported symbols are required.
12547 always_export_symbols=$always_export_symbols_CXX
12549 # The commands to list exported symbols.
12550 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12552 # The commands to extract the exported symbol list from a shared archive.
12553 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12555 # Symbols that should not be listed in the preloaded symbols.
12556 exclude_expsyms=$lt_exclude_expsyms_CXX
12558 # Symbols that must always be exported.
12559 include_expsyms=$lt_include_expsyms_CXX
12561 # ### END LIBTOOL TAG CONFIG: $tagname
12567 # If there is no Makefile yet, we rely on a make rule to execute
12568 # `config.status --recheck' to rerun these tests and create the
12569 # libtool script then.
12570 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12571 if test -f "$ltmain_in"; then
12572 test -f Makefile && make "$ltmain"
12578 ac_cpp='$CPP $CPPFLAGS'
12579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12587 with_gnu_ldcxx=$with_gnu_ld
12588 with_gnu_ld=$lt_save_with_gnu_ld
12589 lt_cv_path_LDCXX=$lt_cv_path_LD
12590 lt_cv_path_LD=$lt_save_path_LD
12591 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12592 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12600 if test -n "$F77" && test "X$F77" != "Xno"; then
12603 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12604 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12608 archive_cmds_need_lc_F77=no
12609 allow_undefined_flag_F77=
12610 always_export_symbols_F77=no
12611 archive_expsym_cmds_F77=
12612 export_dynamic_flag_spec_F77=
12613 hardcode_direct_F77=no
12614 hardcode_libdir_flag_spec_F77=
12615 hardcode_libdir_flag_spec_ld_F77=
12616 hardcode_libdir_separator_F77=
12617 hardcode_minus_L_F77=no
12618 hardcode_automatic_F77=no
12620 module_expsym_cmds_F77=
12621 link_all_deplibs_F77=unknown
12622 old_archive_cmds_F77=$old_archive_cmds
12623 no_undefined_flag_F77=
12624 whole_archive_flag_spec_F77=
12625 enable_shared_with_static_runtimes_F77=no
12627 # Source file extension for f77 test sources.
12630 # Object file extension for compiled f77 test sources.
12634 # Code to be used in simple compile tests
12635 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12637 # Code to be used in simple link tests
12638 lt_simple_link_test_code=" program t\n end\n"
12640 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12642 # If no C compiler was specified, use CC.
12645 # Allow CC to be a program name with arguments.
12649 # Allow CC to be a program name with arguments.
12654 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12656 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12657 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12658 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12659 echo "${ECHO_T}$can_build_shared" >&6
12661 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12662 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12663 test "$can_build_shared" = "no" && enable_shared=no
12665 # On AIX, shared libraries and static libraries use the same namespace, and
12666 # are all built from PIC.
12669 test "$enable_shared" = yes && enable_static=no
12670 if test -n "$RANLIB"; then
12671 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12672 postinstall_cmds='$RANLIB $lib'
12676 test "$enable_shared" = yes && enable_static=no
12679 echo "$as_me:$LINENO: result: $enable_shared" >&5
12680 echo "${ECHO_T}$enable_shared" >&6
12682 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12683 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12684 # Make sure either enable_shared or enable_static is yes.
12685 test "$enable_shared" = yes || enable_static=yes
12686 echo "$as_me:$LINENO: result: $enable_static" >&5
12687 echo "${ECHO_T}$enable_static" >&6
12689 test "$ld_shlibs_F77" = no && can_build_shared=no
12694 lt_prog_compiler_wl_F77=
12695 lt_prog_compiler_pic_F77=
12696 lt_prog_compiler_static_F77=
12698 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12699 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12701 if test "$GCC" = yes; then
12702 lt_prog_compiler_wl_F77='-Wl,'
12703 lt_prog_compiler_static_F77='-static'
12707 # All AIX code is PIC.
12708 if test "$host_cpu" = ia64; then
12709 # AIX 5 now supports IA64 processor
12710 lt_prog_compiler_static_F77='-Bstatic'
12715 # FIXME: we need at least 68020 code to build shared libraries, but
12716 # adding the `-m68020' flag to GCC prevents building anything better,
12718 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12721 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12722 # PIC is the default for these OSes.
12725 mingw* | pw32* | os2*)
12726 # This hack is so that the source file can tell whether it is being
12727 # built for inclusion in a dll (and should export symbols for example).
12728 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12731 darwin* | rhapsody*)
12732 # PIC is the default on this platform
12733 # Common symbols not allowed in MH_DYLIB files
12734 lt_prog_compiler_pic_F77='-fno-common'
12738 # Just because we use GCC doesn't mean we suddenly get shared libraries
12739 # on systems that don't support them.
12740 lt_prog_compiler_can_build_shared_F77=no
12745 if test -d /usr/nec; then
12746 lt_prog_compiler_pic_F77=-Kconform_pic
12751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12752 # not for PA HP-UX.
12753 case "$host_cpu" in
12758 lt_prog_compiler_pic_F77='-fPIC'
12764 lt_prog_compiler_pic_F77='-fPIC'
12768 # PORTME Check for flag to pass linker flags through the system compiler.
12771 lt_prog_compiler_wl_F77='-Wl,'
12772 if test "$host_cpu" = ia64; then
12773 # AIX 5 now supports IA64 processor
12774 lt_prog_compiler_static_F77='-Bstatic'
12776 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12780 # PIC is the default on this platform
12781 # Common symbols not allowed in MH_DYLIB files
12782 case "$cc_basename" in
12784 lt_prog_compiler_pic_F77='-qnocommon'
12785 lt_prog_compiler_wl_F77='-Wl,'
12790 mingw* | pw32* | os2*)
12791 # This hack is so that the source file can tell whether it is being
12792 # built for inclusion in a dll (and should export symbols for example).
12793 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12796 hpux9* | hpux10* | hpux11*)
12797 lt_prog_compiler_wl_F77='-Wl,'
12798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12799 # not for PA HP-UX.
12800 case "$host_cpu" in
12805 lt_prog_compiler_pic_F77='+Z'
12808 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12809 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12812 irix5* | irix6* | nonstopux*)
12813 lt_prog_compiler_wl_F77='-Wl,'
12814 # PIC (with -KPIC) is the default.
12815 lt_prog_compiler_static_F77='-non_shared'
12819 lt_prog_compiler_pic_F77='-KPIC'
12820 lt_prog_compiler_static_F77='-Bstatic'
12824 case $cc_basename in
12826 lt_prog_compiler_wl_F77='-Wl,'
12827 lt_prog_compiler_pic_F77='-KPIC'
12828 lt_prog_compiler_static_F77='-static'
12830 pgcc | pgf77 | pgf90)
12831 # Portland Group compilers (*not* the Pentium gcc compiler,
12832 # which looks to be a dead project)
12833 lt_prog_compiler_wl_F77='-Wl,'
12834 lt_prog_compiler_pic_F77='-fpic'
12835 lt_prog_compiler_static_F77='-static'
12838 lt_prog_compiler_wl_F77='-Wl,'
12839 # All Alpha code is PIC.
12840 lt_prog_compiler_static_F77='-non_shared'
12845 osf3* | osf4* | osf5*)
12846 lt_prog_compiler_wl_F77='-Wl,'
12847 # All OSF/1 code is PIC.
12848 lt_prog_compiler_static_F77='-non_shared'
12852 lt_prog_compiler_pic_F77='-Kpic'
12853 lt_prog_compiler_static_F77='-dn'
12857 lt_prog_compiler_wl_F77='-Wl,'
12858 lt_prog_compiler_pic_F77='-KPIC'
12859 lt_prog_compiler_static_F77='-Bstatic'
12863 lt_prog_compiler_wl_F77='-Qoption ld '
12864 lt_prog_compiler_pic_F77='-PIC'
12865 lt_prog_compiler_static_F77='-Bstatic'
12868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12869 lt_prog_compiler_wl_F77='-Wl,'
12870 lt_prog_compiler_pic_F77='-KPIC'
12871 lt_prog_compiler_static_F77='-Bstatic'
12875 if test -d /usr/nec ;then
12876 lt_prog_compiler_pic_F77='-Kconform_pic'
12877 lt_prog_compiler_static_F77='-Bstatic'
12882 lt_prog_compiler_wl_F77='-Wl,'
12883 lt_prog_compiler_can_build_shared_F77=no
12887 lt_prog_compiler_pic_F77='-pic'
12888 lt_prog_compiler_static_F77='-Bstatic'
12892 lt_prog_compiler_can_build_shared_F77=no
12897 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12898 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12901 # Check to make sure the PIC flag actually works.
12903 if test -n "$lt_prog_compiler_pic_F77"; then
12905 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12906 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12907 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 lt_prog_compiler_pic_works_F77=no
12911 ac_outfile=conftest.$ac_objext
12912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12913 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12914 # Insert the option either (1) after the last *FLAGS variable, or
12915 # (2) before a word containing "conftest.", or (3) at the end.
12916 # Note that $ac_compile itself does not contain backslashes and begins
12917 # with a dollar sign (not a hyphen), so the echo should work correctly.
12918 # The option is referenced via a variable to avoid confusing sed.
12919 lt_compile=`echo "$ac_compile" | $SED \
12920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12922 -e 's:$: $lt_compiler_flag:'`
12923 (eval echo "\"\$as_me:12923: $lt_compile\"" >&5)
12924 (eval "$lt_compile" 2>conftest.err)
12926 cat conftest.err >&5
12927 echo "$as_me:12927: \$? = $ac_status" >&5
12928 if (exit $ac_status) && test -s "$ac_outfile"; then
12929 # The compiler can only warn and ignore the option if not recognized
12930 # So say no if there are warnings
12931 if test ! -s conftest.err; then
12932 lt_prog_compiler_pic_works_F77=yes
12938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12939 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12941 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12942 case $lt_prog_compiler_pic_F77 in
12944 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12947 lt_prog_compiler_pic_F77=
12948 lt_prog_compiler_can_build_shared_F77=no
12953 # For platforms which do not support PIC, -DPIC is meaningless:
12955 lt_prog_compiler_pic_F77=
12958 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12962 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12963 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12964 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 lt_cv_prog_compiler_c_o_F77=no
12968 $rm -r conftest 2>/dev/null
12972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12974 lt_compiler_flag="-o out/conftest2.$ac_objext"
12975 # Insert the option either (1) after the last *FLAGS variable, or
12976 # (2) before a word containing "conftest.", or (3) at the end.
12977 # Note that $ac_compile itself does not contain backslashes and begins
12978 # with a dollar sign (not a hyphen), so the echo should work correctly.
12979 lt_compile=`echo "$ac_compile" | $SED \
12980 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12982 -e 's:$: $lt_compiler_flag:'`
12983 (eval echo "\"\$as_me:12983: $lt_compile\"" >&5)
12984 (eval "$lt_compile" 2>out/conftest.err)
12986 cat out/conftest.err >&5
12987 echo "$as_me:12987: \$? = $ac_status" >&5
12988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12990 # The compiler can only warn and ignore the option if not recognized
12991 # So say no if there are warnings
12992 if test ! -s out/conftest.err; then
12993 lt_cv_prog_compiler_c_o_F77=yes
12998 # SGI C++ compiler will create directory out/ii_files/ for
12999 # template instantiation
13000 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13001 $rm out/* && rmdir out
13007 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13008 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13011 hard_links="nottested"
13012 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13013 # do not overwrite the value of need_locks provided by the user
13014 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13015 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13020 ln conftest.a conftest.b 2>&5 || hard_links=no
13021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13022 echo "$as_me:$LINENO: result: $hard_links" >&5
13023 echo "${ECHO_T}$hard_links" >&6
13024 if test "$hard_links" = no; then
13025 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13026 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13033 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13034 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13037 allow_undefined_flag_F77=
13038 enable_shared_with_static_runtimes_F77=no
13040 archive_expsym_cmds_F77=
13041 old_archive_From_new_cmds_F77=
13042 old_archive_from_expsyms_cmds_F77=
13043 export_dynamic_flag_spec_F77=
13044 whole_archive_flag_spec_F77=
13045 thread_safe_flag_spec_F77=
13046 hardcode_libdir_flag_spec_F77=
13047 hardcode_libdir_flag_spec_ld_F77=
13048 hardcode_libdir_separator_F77=
13049 hardcode_direct_F77=no
13050 hardcode_minus_L_F77=no
13051 hardcode_shlibpath_var_F77=unsupported
13052 link_all_deplibs_F77=unknown
13053 hardcode_automatic_F77=no
13055 module_expsym_cmds_F77=
13056 always_export_symbols_F77=no
13057 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13058 # include_expsyms should be a list of space-separated symbols to be *always*
13059 # included in the symbol list
13060 include_expsyms_F77=
13061 # exclude_expsyms can be an extended regexp of symbols to exclude
13062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13064 # as well as any symbol that contains `d'.
13065 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13067 # platforms (ab)use it in PIC code, but their linkers get confused if
13068 # the symbol is explicitly referenced. Since portable code cannot
13069 # rely on this symbol name, it's probably fine to never include it in
13070 # preloaded symbol tables.
13071 extract_expsyms_cmds=
13074 cygwin* | mingw* | pw32*)
13075 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13076 # When not using gcc, we currently assume that we are using
13077 # Microsoft Visual C++.
13078 if test "$GCC" != yes; then
13088 if test "$with_gnu_ld" = yes; then
13089 # If archive_cmds runs LD, not CC, wlarc should be empty
13092 # See if GNU ld supports shared libraries.
13094 aix3* | aix4* | aix5*)
13095 # On AIX/PPC, the GNU linker is very broken
13096 if test "$host_cpu" != ia64; then
13100 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13101 *** to be unable to reliably create shared libraries on AIX.
13102 *** Therefore, libtool is disabling shared libraries support. If you
13103 *** really care for shared libraries, you may want to modify your PATH
13104 *** so that a non-GNU linker is found, and then restart.
13111 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)'
13112 hardcode_libdir_flag_spec_F77='-L$libdir'
13113 hardcode_minus_L_F77=yes
13115 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13116 # that the semantics of dynamic libraries on AmigaOS, at least up
13117 # to version 4, is to share data among multiple programs linked
13118 # with the same dynamic library. Since this doesn't match the
13119 # behavior of shared libraries on other platforms, we can't use
13125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13126 allow_undefined_flag_F77=unsupported
13127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13128 # support --undefined. This deserves some investigation. FIXME
13129 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13135 cygwin* | mingw* | pw32*)
13136 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13137 # as there is no search path for DLLs.
13138 hardcode_libdir_flag_spec_F77='-L$libdir'
13139 allow_undefined_flag_F77=unsupported
13140 always_export_symbols_F77=no
13141 enable_shared_with_static_runtimes_F77=yes
13142 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13144 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13145 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13146 # If the export-symbols file already is a .def file (1st line
13147 # is EXPORTS), use it as is; otherwise, prepend...
13148 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13149 cp $export_symbols $output_objdir/$soname.def;
13151 echo EXPORTS > $output_objdir/$soname.def;
13152 cat $export_symbols >> $output_objdir/$soname.def;
13154 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13162 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13165 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13166 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13171 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13176 *** create shared libraries on Solaris systems. Therefore, libtool
13177 *** is disabling shared libraries support. We urge you to upgrade GNU
13178 *** binutils to release 2.9.1 or newer. Another option is to modify
13179 *** your PATH or compiler configuration so that the native linker is
13180 *** used, and then restart.
13183 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13184 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13192 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13194 hardcode_direct_F77=yes
13195 hardcode_shlibpath_var_F77=no
13199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13201 case $CC,$host_cpu in
13202 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13203 tmp_addflag=' -fpic' ;;
13204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13205 tmp_addflag=' -i_dynamic' ;;
13206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13207 tmp_addflag=' -i_dynamic -nofor_main' ;;
13208 ifc* | ifort*) # Intel Fortran compiler
13209 tmp_addflag=' -nofor_main' ;;
13211 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13212 supports_anon_versioning=no
13213 case `$LD -v 2>/dev/null` in
13214 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13215 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13216 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13217 *\ 2.11.*) ;; # other 2.11 versions
13218 *) supports_anon_versioning=yes ;;
13220 if test $supports_anon_versioning = yes; then
13221 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13223 $echo "local: *; };" >> $output_objdir/$libname.ver~
13224 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13226 archive_expsym_cmds_F77=$archive_cmds_F77
13234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13235 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13236 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13243 if test "$ld_shlibs_F77" = yes; then
13244 runpath_var=LD_RUN_PATH
13245 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13246 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13247 # ancient GNU ld didn't support --whole-archive et. al.
13248 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13249 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13251 whole_archive_flag_spec_F77=
13255 # PORTME fill in a description of your system's linker (not GNU ld)
13258 allow_undefined_flag_F77=unsupported
13259 always_export_symbols_F77=yes
13260 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'
13261 # Note: this linker hardcodes the directories in LIBPATH if there
13262 # are no directories specified by -L.
13263 hardcode_minus_L_F77=yes
13264 if test "$GCC" = yes && test -z "$link_static_flag"; then
13265 # Neither direct hardcoding nor static linking is supported with a
13267 hardcode_direct_F77=unsupported
13272 if test "$host_cpu" = ia64; then
13273 # On IA64, the linker does run time linking by default, so we don't
13274 # have to do anything special.
13275 aix_use_runtimelinking=no
13276 exp_sym_flag='-Bexport'
13279 # If we're using GNU nm, then we don't want the "-C" option.
13280 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13281 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13282 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'
13284 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'
13286 aix_use_runtimelinking=no
13288 # Test if we are trying to use run time linking or normal
13289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13290 # need to do runtime linking.
13291 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13292 for ld_flag in $LDFLAGS; do
13293 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13294 aix_use_runtimelinking=yes
13300 exp_sym_flag='-bexport'
13301 no_entry_flag='-bnoentry'
13304 # When large executables or shared objects are built, AIX ld can
13305 # have problems creating the table of contents. If linking a library
13306 # or program results in "error TOC overflow" add -mminimal-toc to
13307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13310 archive_cmds_F77=''
13311 hardcode_direct_F77=yes
13312 hardcode_libdir_separator_F77=':'
13313 link_all_deplibs_F77=yes
13315 if test "$GCC" = yes; then
13316 case $host_os in aix4.[012]|aix4.[012].*)
13317 # We only want to do this on AIX 4.2 and lower, the check
13318 # below for broken collect2 doesn't work under 4.3+
13319 collect2name=`${CC} -print-prog-name=collect2`
13320 if test -f "$collect2name" && \
13321 strings "$collect2name" | grep resolve_lib_name >/dev/null
13323 # We have reworked collect2
13324 hardcode_direct_F77=yes
13326 # We have old collect2
13327 hardcode_direct_F77=unsupported
13328 # It fails to find uninstalled libraries when the uninstalled
13329 # path is not listed in the libpath. Setting hardcode_minus_L
13330 # to unsupported forces relinking
13331 hardcode_minus_L_F77=yes
13332 hardcode_libdir_flag_spec_F77='-L$libdir'
13333 hardcode_libdir_separator_F77=
13336 shared_flag='-shared'
13337 if test "$aix_use_runtimelinking" = yes; then
13338 shared_flag="$shared_flag "'${wl}-G'
13342 if test "$host_cpu" = ia64; then
13343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13344 # chokes on -Wl,-G. The following line is correct:
13347 if test "$aix_use_runtimelinking" = yes; then
13348 shared_flag='${wl}-G'
13350 shared_flag='${wl}-bM:SRE'
13355 # It seems that -bexpall does not export symbols beginning with
13356 # underscore (_), so it is better to generate a list of symbols to export.
13357 always_export_symbols_F77=yes
13358 if test "$aix_use_runtimelinking" = yes; then
13359 # Warning - without using the other runtime loading flags (-brtl),
13360 # -berok will link without error, but may produce a broken library.
13361 allow_undefined_flag_F77='-berok'
13362 # Determine the default libpath from the value encoded in an empty executable.
13363 cat >conftest.$ac_ext <<_ACEOF
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370 (eval $ac_link) 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_f77_werror_flag"
13378 || test ! -s conftest.err'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } &&
13384 { ac_try='test -s conftest$ac_exeext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13393 # Check for a 64-bit object if we didn't find anything.
13394 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; }
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13401 rm -f conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
13403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13405 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13406 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13408 if test "$host_cpu" = ia64; then
13409 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13410 allow_undefined_flag_F77="-z nodefs"
13411 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13413 # Determine the default libpath from the value encoded in an empty executable.
13414 cat >conftest.$ac_ext <<_ACEOF
13419 rm -f conftest.$ac_objext conftest$ac_exeext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421 (eval $ac_link) 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_f77_werror_flag"
13429 || test ! -s conftest.err'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13444 # Check for a 64-bit object if we didn't find anything.
13445 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; }
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13452 rm -f conftest.err conftest.$ac_objext \
13453 conftest$ac_exeext conftest.$ac_ext
13454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13456 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13457 # Warning - without using the other run time loading flags,
13458 # -berok will link without error, but may produce a broken library.
13459 no_undefined_flag_F77=' ${wl}-bernotok'
13460 allow_undefined_flag_F77=' ${wl}-berok'
13461 # -bexpall does not export symbols beginning with underscore (_)
13462 always_export_symbols_F77=yes
13463 # Exported symbols can be pulled into shared objects from archives
13464 whole_archive_flag_spec_F77=' '
13465 archive_cmds_need_lc_F77=yes
13466 # This is similar to how AIX traditionally builds it's shared libraries.
13467 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13473 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)'
13474 hardcode_libdir_flag_spec_F77='-L$libdir'
13475 hardcode_minus_L_F77=yes
13476 # see comment about different semantics on the GNU ld section
13481 export_dynamic_flag_spec_F77=-rdynamic
13484 cygwin* | mingw* | pw32*)
13485 # When not using gcc, we currently assume that we are using
13486 # Microsoft Visual C++.
13487 # hardcode_libdir_flag_spec is actually meaningless, as there is
13488 # no search path for DLLs.
13489 hardcode_libdir_flag_spec_F77=' '
13490 allow_undefined_flag_F77=unsupported
13491 # Tell ltmain to make .lib files, not .a files.
13493 # Tell ltmain to make .dll files, not .so files.
13495 # FIXME: Setting linknames here is a bad hack.
13496 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13497 # The linker will automatically build a .lib file if we build a DLL.
13498 old_archive_From_new_cmds_F77='true'
13499 # FIXME: Should let the user specify the lib program.
13500 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13501 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13502 enable_shared_with_static_runtimes_F77=yes
13505 darwin* | rhapsody*)
13507 rhapsody* | darwin1.[012])
13508 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13512 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13514 case ${MACOSX_DEPLOYMENT_TARGET} in
13516 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13519 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13525 archive_cmds_need_lc_F77=no
13526 hardcode_direct_F77=no
13527 hardcode_automatic_F77=yes
13528 hardcode_shlibpath_var_F77=unsupported
13529 whole_archive_flag_spec_F77=''
13530 link_all_deplibs_F77=yes
13531 if test "$GCC" = yes ; then
13532 output_verbose_link_cmd='echo'
13533 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13534 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13536 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}'
13537 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}'
13539 case "$cc_basename" in
13541 output_verbose_link_cmd='echo'
13542 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13543 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13545 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}'
13546 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}'
13556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557 hardcode_libdir_flag_spec_F77='-L$libdir'
13558 hardcode_shlibpath_var_F77=no
13565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13566 # support. Future versions do this automatically, but an explicit c++rt0.o
13567 # does not break anything, and helps significantly (at the cost of a little
13570 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13571 hardcode_libdir_flag_spec_F77='-R$libdir'
13572 hardcode_direct_F77=yes
13573 hardcode_shlibpath_var_F77=no
13576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13579 hardcode_direct_F77=yes
13580 hardcode_minus_L_F77=yes
13581 hardcode_shlibpath_var_F77=no
13584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13585 freebsd* | kfreebsd*-gnu | dragonfly*)
13586 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13587 hardcode_libdir_flag_spec_F77='-R$libdir'
13588 hardcode_direct_F77=yes
13589 hardcode_shlibpath_var_F77=no
13593 if test "$GCC" = yes; then
13594 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'
13596 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'
13598 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13599 hardcode_libdir_separator_F77=:
13600 hardcode_direct_F77=yes
13602 # hardcode_minus_L: Not really in the search PATH,
13603 # but as the default location of the library.
13604 hardcode_minus_L_F77=yes
13605 export_dynamic_flag_spec_F77='${wl}-E'
13609 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13610 case "$host_cpu" in
13612 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13615 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13619 case "$host_cpu" in
13621 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13624 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13628 if test "$with_gnu_ld" = no; then
13629 case "$host_cpu" in
13631 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13632 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13633 hardcode_libdir_separator_F77=:
13634 hardcode_direct_F77=no
13635 hardcode_shlibpath_var_F77=no
13638 hardcode_libdir_flag_spec_F77='-L$libdir'
13639 hardcode_direct_F77=no
13640 hardcode_shlibpath_var_F77=no
13642 # hardcode_minus_L: Not really in the search PATH,
13643 # but as the default location of the library.
13644 hardcode_minus_L_F77=yes
13647 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13648 hardcode_libdir_separator_F77=:
13649 hardcode_direct_F77=yes
13650 export_dynamic_flag_spec_F77='${wl}-E'
13652 # hardcode_minus_L: Not really in the search PATH,
13653 # but as the default location of the library.
13654 hardcode_minus_L_F77=yes
13660 irix5* | irix6* | nonstopux*)
13661 if test "$GCC" = yes; then
13662 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'
13664 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'
13665 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13667 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13668 hardcode_libdir_separator_F77=:
13669 link_all_deplibs_F77=yes
13673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13674 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13676 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13678 hardcode_libdir_flag_spec_F77='-R$libdir'
13679 hardcode_direct_F77=yes
13680 hardcode_shlibpath_var_F77=no
13684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13685 hardcode_direct_F77=yes
13686 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13687 hardcode_libdir_separator_F77=:
13688 hardcode_shlibpath_var_F77=no
13692 hardcode_direct_F77=yes
13693 hardcode_shlibpath_var_F77=no
13694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13695 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13696 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13697 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13698 export_dynamic_flag_spec_F77='${wl}-E'
13701 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13702 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13703 hardcode_libdir_flag_spec_F77='-R$libdir'
13706 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13707 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13714 hardcode_libdir_flag_spec_F77='-L$libdir'
13715 hardcode_minus_L_F77=yes
13716 allow_undefined_flag_F77=unsupported
13717 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'
13718 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13722 if test "$GCC" = yes; then
13723 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13724 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'
13726 allow_undefined_flag_F77=' -expect_unresolved \*'
13727 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'
13729 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13730 hardcode_libdir_separator_F77=:
13733 osf4* | osf5*) # as osf3* with the addition of -msym flag
13734 if test "$GCC" = yes; then
13735 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13736 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'
13737 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13739 allow_undefined_flag_F77=' -expect_unresolved \*'
13740 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'
13741 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~
13742 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13744 # Both c and cxx compiler support -rpath directly
13745 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13747 hardcode_libdir_separator_F77=:
13751 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13752 hardcode_shlibpath_var_F77=no
13753 export_dynamic_flag_spec_F77='${wl}-Bexport'
13754 runpath_var=LD_RUN_PATH
13755 hardcode_runpath_var=yes
13759 no_undefined_flag_F77=' -z text'
13760 if test "$GCC" = yes; then
13761 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13763 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13765 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13766 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13767 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13769 hardcode_libdir_flag_spec_F77='-R$libdir'
13770 hardcode_shlibpath_var_F77=no
13772 solaris2.[0-5] | solaris2.[0-5].*) ;;
13773 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13774 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
13776 link_all_deplibs_F77=yes
13780 if test "x$host_vendor" = xsequent; then
13781 # Use $CC to link under sequent, because it throws in some extra .o
13782 # files that make .init and .fini sections work.
13783 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13785 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_libdir_flag_spec_F77='-L$libdir'
13788 hardcode_direct_F77=yes
13789 hardcode_minus_L_F77=yes
13790 hardcode_shlibpath_var_F77=no
13794 case $host_vendor in
13796 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13797 hardcode_direct_F77=yes # is this really true???
13800 ## LD is ld it makes a PLAMLIB
13801 ## CC just makes a GrossModule.
13802 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13803 reload_cmds_F77='$CC -r -o $output$reload_objs'
13804 hardcode_direct_F77=no
13807 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13808 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13811 runpath_var='LD_RUN_PATH'
13812 hardcode_shlibpath_var_F77=no
13816 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13817 hardcode_shlibpath_var_F77=no
13818 export_dynamic_flag_spec_F77='-Bexport'
13822 if test -d /usr/nec; then
13823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13824 hardcode_shlibpath_var_F77=no
13825 runpath_var=LD_RUN_PATH
13826 hardcode_runpath_var=yes
13832 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13833 hardcode_direct_F77=yes
13834 hardcode_minus_L_F77=no
13835 hardcode_shlibpath_var_F77=no
13836 hardcode_runpath_var=yes
13837 runpath_var=LD_RUN_PATH
13840 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13841 no_undefined_flag_F77='${wl}-z ${wl}text'
13842 if test "$GCC" = yes; then
13843 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13845 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13847 runpath_var='LD_RUN_PATH'
13848 hardcode_shlibpath_var_F77=no
13852 no_undefined_flag_F77=' -z text'
13853 # $CC -shared without GNU ld will not create a library from C++
13854 # object files and a static libstdc++, better avoid it by now
13855 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13856 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13857 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13858 hardcode_libdir_flag_spec_F77=
13859 hardcode_shlibpath_var_F77=no
13860 runpath_var='LD_RUN_PATH'
13864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13865 hardcode_libdir_flag_spec_F77='-L$libdir'
13866 hardcode_shlibpath_var_F77=no
13875 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13876 echo "${ECHO_T}$ld_shlibs_F77" >&6
13877 test "$ld_shlibs_F77" = no && can_build_shared=no
13879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13880 if test "$GCC" = yes; then
13881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13885 # Do we need to explicitly link libc?
13887 case "x$archive_cmds_need_lc_F77" in
13889 # Assume -lc should be added
13890 archive_cmds_need_lc_F77=yes
13892 if test "$enable_shared" = yes && test "$GCC" = yes; then
13893 case $archive_cmds_F77 in
13895 # FIXME: we may have to deal with multi-command sequences.
13898 # Test whether the compiler implicitly links with -lc since on some
13899 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13900 # to ld, don't add -lc before -lgcc.
13901 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13902 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } 2>conftest.err; then
13913 libobjs=conftest.$ac_objext
13915 wl=$lt_prog_compiler_wl_F77
13921 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13922 allow_undefined_flag_F77=
13923 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13924 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }
13929 archive_cmds_need_lc_F77=no
13931 archive_cmds_need_lc_F77=yes
13933 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13935 cat conftest.err 1>&5
13938 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13939 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13946 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13948 library_names_spec=
13949 libname_spec='lib$name'
13953 postuninstall_cmds=
13957 shlibpath_overrides_runpath=unknown
13959 dynamic_linker="$host_os ld.so"
13960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13961 if test "$GCC" = yes; then
13962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13963 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13964 # if the path contains ";" then we assume it to be the separator
13965 # otherwise default to the standard path separator (i.e. ":") - it is
13966 # assumed that no part of a normal pathname contains ";" but that should
13967 # okay in the real world where ";" in dirpaths is itself problematic.
13968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13975 need_lib_prefix=unknown
13976 hardcode_into_libs=no
13978 # when you set need_version to no, make sure it does not cause -set_version
13979 # flags to be left without arguments
13980 need_version=unknown
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13986 shlibpath_var=LIBPATH
13988 # AIX 3 has no versioning support, so we append a major version to the name.
13989 soname_spec='${libname}${release}${shared_ext}$major'
13996 hardcode_into_libs=yes
13997 if test "$host_cpu" = ia64; then
13998 # AIX 5 supports IA64
13999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14000 shlibpath_var=LD_LIBRARY_PATH
14002 # With GCC up to 2.95.x, collect2 would create an import file
14003 # for dependence libraries. The import file would start with
14004 # the line `#! .'. This would cause the generated library to
14005 # depend on `.', always an invalid library. This was fixed in
14006 # development snapshots of GCC prior to 3.0.
14008 aix4 | aix4.[01] | aix4.[01].*)
14009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14011 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14014 can_build_shared=no
14018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14019 # soname into executable. Probably we can add versioning support to
14020 # collect2, so additional links can be useful in future.
14021 if test "$aix_use_runtimelinking" = yes; then
14022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14023 # instead of lib<name>.a to let people know that these are not
14024 # typical AIX shared libraries.
14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027 # We preserve .a as extension for shared libraries through AIX4.2
14028 # and later when we are not doing run time linking.
14029 library_names_spec='${libname}${release}.a $libname.a'
14030 soname_spec='${libname}${release}${shared_ext}$major'
14032 shlibpath_var=LIBPATH
14037 library_names_spec='$libname.ixlibrary $libname.a'
14038 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14039 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'
14043 library_names_spec='${libname}${shared_ext}'
14044 dynamic_linker="$host_os ld.so"
14045 shlibpath_var=LIBRARY_PATH
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14054 shlibpath_var=LD_LIBRARY_PATH
14055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14057 # the default ld.so.conf also contains /usr/contrib/lib and
14058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14059 # libtool to hard-code these into programs
14062 cygwin* | mingw* | pw32*)
14063 version_type=windows
14068 case $GCC,$host_os in
14069 yes,cygwin* | yes,mingw* | yes,pw32*)
14070 library_names_spec='$libname.dll.a'
14071 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14072 postinstall_cmds='base_file=`basename \${file}`~
14073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14074 dldir=$destdir/`dirname \$dlpath`~
14075 test -d \$dldir || mkdir -p \$dldir~
14076 $install_prog $dir/$dlname \$dldir/$dlname'
14077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14078 dlpath=$dir/\$dldll~
14080 shlibpath_overrides_runpath=yes
14084 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14086 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14089 # MinGW DLLs use traditional 'lib' prefix
14090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14092 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14093 # It is most probably a Windows format PATH printed by
14094 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14095 # path with ; separators, and with drive letters. We can handle the
14096 # drive letters (cygwin fileutils understands them), so leave them,
14097 # especially as we might pass files found there to a mingw objdump,
14098 # which wouldn't understand a cygwinified path. Ahh.
14099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14105 # pw32 DLLs use 'pw' prefix rather than 'lib'
14106 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14115 dynamic_linker='Win32 ld.exe'
14116 # FIXME: first we should search . and the directory the executable is in
14120 darwin* | rhapsody*)
14121 dynamic_linker="$host_os dyld"
14122 version_type=darwin
14125 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14126 soname_spec='${libname}${release}${major}$shared_ext'
14127 shlibpath_overrides_runpath=yes
14128 shlibpath_var=DYLD_LIBRARY_PATH
14129 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14130 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14131 if test "$GCC" = yes; then
14132 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"`
14134 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14144 soname_spec='${libname}${release}${shared_ext}$major'
14145 shlibpath_var=LD_LIBRARY_PATH
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14157 soname_spec='${libname}${release}${shared_ext}$major'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 shlibpath_overrides_runpath=no
14160 hardcode_into_libs=yes
14161 dynamic_linker='GNU ld.so'
14164 freebsd* | dragonfly*)
14165 # DragonFly does not have aout. When/if they implement a new
14166 # versioning mechanism, adjust this.
14167 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14168 version_type=freebsd-$objformat
14169 case $version_type in
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14180 shlibpath_var=LD_LIBRARY_PATH
14183 shlibpath_overrides_runpath=yes
14185 freebsd3.[01]* | freebsdelf3.[01]*)
14186 shlibpath_overrides_runpath=yes
14187 hardcode_into_libs=yes
14190 shlibpath_overrides_runpath=no
14191 hardcode_into_libs=yes
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14201 soname_spec='${libname}${release}${shared_ext}$major'
14202 shlibpath_var=LD_LIBRARY_PATH
14203 hardcode_into_libs=yes
14206 hpux9* | hpux10* | hpux11*)
14207 # Give a soname corresponding to the major version so that dld.sl refuses to
14208 # link against other versions.
14212 case "$host_cpu" in
14215 hardcode_into_libs=yes
14216 dynamic_linker="$host_os dld.so"
14217 shlibpath_var=LD_LIBRARY_PATH
14218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220 soname_spec='${libname}${release}${shared_ext}$major'
14221 if test "X$HPUX_IA64_MODE" = X32; then
14222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14230 hardcode_into_libs=yes
14231 dynamic_linker="$host_os dld.sl"
14232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235 soname_spec='${libname}${release}${shared_ext}$major'
14236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14241 dynamic_linker="$host_os dld.sl"
14242 shlibpath_var=SHLIB_PATH
14243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14245 soname_spec='${libname}${release}${shared_ext}$major'
14248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14249 postinstall_cmds='chmod 555 $lib'
14252 irix5* | irix6* | nonstopux*)
14254 nonstopux*) version_type=nonstopux ;;
14256 if test "$lt_cv_prog_gnu_ld" = yes; then
14264 soname_spec='${libname}${release}${shared_ext}$major'
14265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14267 irix5* | nonstopux*)
14268 libsuff= shlibsuff=
14271 case $LD in # libtool.m4 will add one of these switches to LD
14272 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14273 libsuff= shlibsuff= libmagic=32-bit;;
14274 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14275 libsuff=32 shlibsuff=N32 libmagic=N32;;
14276 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14277 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14278 *) libsuff= shlibsuff= libmagic=never-match;;
14282 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14283 shlibpath_overrides_runpath=no
14284 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14285 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14286 hardcode_into_libs=yes
14289 # No shared lib support for Linux oldld, aout, or coff.
14290 linux*oldld* | linux*aout* | linux*coff*)
14294 # This must be Linux ELF.
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14302 shlibpath_var=LD_LIBRARY_PATH
14303 shlibpath_overrides_runpath=no
14304 # This implies no fast_install, which is unacceptable.
14305 # Some rework will be needed to allow for fast_install
14306 # before this can be enabled.
14307 hardcode_into_libs=yes
14309 # Append ld.so.conf contents to the search path
14310 if test -f /etc/ld.so.conf; then
14311 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14315 # We used to test for /lib/ld.so.1 and disable shared libraries on
14316 # powerpc, because MkLinux only supported shared libraries with the
14317 # GNU dynamic linker. Since this was broken with cross compilers,
14318 # most powerpc-linux boxes support dynamic linking these days and
14319 # people can always --disable-shared, the test was removed, and we
14320 # assume the GNU/Linux dynamic linker is in use.
14321 dynamic_linker='GNU/Linux ld.so'
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14329 soname_spec='${libname}${release}${shared_ext}$major'
14330 shlibpath_var=LD_LIBRARY_PATH
14331 shlibpath_overrides_runpath=no
14332 hardcode_into_libs=yes
14333 dynamic_linker='GNU ld.so'
14340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14343 dynamic_linker='NetBSD (a.out) ld.so'
14345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 dynamic_linker='NetBSD ld.elf_so'
14349 shlibpath_var=LD_LIBRARY_PATH
14350 shlibpath_overrides_runpath=yes
14351 hardcode_into_libs=yes
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 shlibpath_var=LD_LIBRARY_PATH
14358 shlibpath_overrides_runpath=yes
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 shlibpath_var=LD_LIBRARY_PATH
14368 shlibpath_overrides_runpath=yes
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14380 openbsd2.[89] | openbsd2.[89].*)
14381 shlibpath_overrides_runpath=no
14384 shlibpath_overrides_runpath=yes
14388 shlibpath_overrides_runpath=yes
14393 libname_spec='$name'
14396 library_names_spec='$libname${shared_ext} $libname.a'
14397 dynamic_linker='OS/2 ld.exe'
14398 shlibpath_var=LIBPATH
14401 osf3* | osf4* | osf5*)
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416 shlibpath_var=LD_LIBRARY_PATH
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 shlibpath_overrides_runpath=yes
14427 hardcode_into_libs=yes
14428 # ldd complains unless libraries are executable
14429 postinstall_cmds='chmod +x $lib'
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14436 shlibpath_var=LD_LIBRARY_PATH
14437 shlibpath_overrides_runpath=yes
14438 if test "$with_gnu_ld" = yes; then
14444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447 soname_spec='${libname}${release}${shared_ext}$major'
14448 shlibpath_var=LD_LIBRARY_PATH
14449 case $host_vendor in
14451 shlibpath_overrides_runpath=no
14453 export_dynamic_flag_spec='${wl}-Blargedynsym'
14454 runpath_var=LD_RUN_PATH
14462 shlibpath_overrides_runpath=no
14463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14469 if test -d /usr/nec ;then
14471 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14472 soname_spec='$libname${shared_ext}.$major'
14473 shlibpath_var=LD_LIBRARY_PATH
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480 soname_spec='${libname}${release}${shared_ext}$major'
14481 shlibpath_var=LD_LIBRARY_PATH
14488 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14489 echo "${ECHO_T}$dynamic_linker" >&6
14490 test "$dynamic_linker" = no && can_build_shared=no
14492 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14493 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14494 hardcode_action_F77=
14495 if test -n "$hardcode_libdir_flag_spec_F77" || \
14496 test -n "$runpath_var_F77" || \
14497 test "X$hardcode_automatic_F77" = "Xyes" ; then
14499 # We can hardcode non-existant directories.
14500 if test "$hardcode_direct_F77" != no &&
14501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14502 # have to relink, otherwise we might link with an installed library
14503 # when we should be linking with a yet-to-be-installed one
14504 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14505 test "$hardcode_minus_L_F77" != no; then
14506 # Linking always hardcodes the temporary library directory.
14507 hardcode_action_F77=relink
14509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14510 hardcode_action_F77=immediate
14513 # We cannot hardcode anything, or else we can only hardcode existing
14515 hardcode_action_F77=unsupported
14517 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14518 echo "${ECHO_T}$hardcode_action_F77" >&6
14520 if test "$hardcode_action_F77" = relink; then
14521 # Fast installation is not supported
14522 enable_fast_install=no
14523 elif test "$shlibpath_overrides_runpath" = yes ||
14524 test "$enable_shared" = no; then
14525 # Fast installation is not necessary
14526 enable_fast_install=needless
14531 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14532 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14533 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14534 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14535 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14536 echo "$as_me:$LINENO: result: yes" >&5
14537 echo "${ECHO_T}yes" >&6
14539 # FIXME - insert some real tests, host_os isn't really good enough
14542 if test -n "$STRIP" ; then
14543 striplib="$STRIP -x"
14544 echo "$as_me:$LINENO: result: yes" >&5
14545 echo "${ECHO_T}yes" >&6
14547 echo "$as_me:$LINENO: result: no" >&5
14548 echo "${ECHO_T}no" >&6
14552 echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6
14560 # The else clause should only fire when bootstrapping the
14561 # libtool distribution, otherwise you forgot to ship ltmain.sh
14562 # with your package, and you will get complaints that there are
14563 # no rules to generate ltmain.sh.
14564 if test -f "$ltmain"; then
14565 # See if we are running on zsh, and set the options which allow our commands through
14566 # without removal of \ escapes.
14567 if test -n "${ZSH_VERSION+set}" ; then
14568 setopt NO_GLOB_SUBST
14570 # Now quote all the things that may contain metacharacters while being
14571 # careful not to overquote the AC_SUBSTed values. We take copies of the
14572 # variables and quote the copies for generation of the libtool script.
14573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14577 deplibs_check_method reload_flag reload_cmds need_locks \
14578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14579 lt_cv_sys_global_symbol_to_c_name_address \
14580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14581 old_postinstall_cmds old_postuninstall_cmds \
14585 lt_prog_compiler_wl_F77 \
14586 lt_prog_compiler_pic_F77 \
14587 lt_prog_compiler_static_F77 \
14588 lt_prog_compiler_no_builtin_flag_F77 \
14589 export_dynamic_flag_spec_F77 \
14590 thread_safe_flag_spec_F77 \
14591 whole_archive_flag_spec_F77 \
14592 enable_shared_with_static_runtimes_F77 \
14593 old_archive_cmds_F77 \
14594 old_archive_from_new_cmds_F77 \
14595 predep_objects_F77 \
14596 postdep_objects_F77 \
14599 compiler_lib_search_path_F77 \
14601 archive_expsym_cmds_F77 \
14602 postinstall_cmds_F77 \
14603 postuninstall_cmds_F77 \
14604 old_archive_from_expsyms_cmds_F77 \
14605 allow_undefined_flag_F77 \
14606 no_undefined_flag_F77 \
14607 export_symbols_cmds_F77 \
14608 hardcode_libdir_flag_spec_F77 \
14609 hardcode_libdir_flag_spec_ld_F77 \
14610 hardcode_libdir_separator_F77 \
14611 hardcode_automatic_F77 \
14613 module_expsym_cmds_F77 \
14614 lt_cv_prog_compiler_c_o_F77 \
14615 exclude_expsyms_F77 \
14616 include_expsyms_F77; do
14619 old_archive_cmds_F77 | \
14620 old_archive_from_new_cmds_F77 | \
14621 archive_cmds_F77 | \
14622 archive_expsym_cmds_F77 | \
14623 module_cmds_F77 | \
14624 module_expsym_cmds_F77 | \
14625 old_archive_from_expsyms_cmds_F77 | \
14626 export_symbols_cmds_F77 | \
14627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14628 postinstall_cmds | postuninstall_cmds | \
14629 old_postinstall_cmds | old_postuninstall_cmds | \
14630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14631 # Double-quote double-evaled strings.
14632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14641 *'\$0 --fallback-echo"')
14642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14648 cat <<__EOF__ >> "$cfgfile"
14649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14653 # Shell to use when invoking shell scripts.
14656 # Whether or not to build shared libraries.
14657 build_libtool_libs=$enable_shared
14659 # Whether or not to build static libraries.
14660 build_old_libs=$enable_static
14662 # Whether or not to add -lc for building shared libraries.
14663 build_libtool_need_lc=$archive_cmds_need_lc_F77
14665 # Whether or not to disallow shared libs when runtime libs are static
14666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14668 # Whether or not to optimize for fast installation.
14669 fast_install=$enable_fast_install
14672 host_alias=$host_alias
14676 # The build system.
14677 build_alias=$build_alias
14681 # An echo program that does not interpret backslashes.
14686 AR_FLAGS=$lt_AR_FLAGS
14691 # A language-specific compiler.
14692 CC=$lt_compiler_F77
14694 # Is the compiler the GNU C compiler?
14700 # The linker used to build libraries.
14703 # Whether we need hard or soft links.
14706 # A BSD-compatible nm program.
14709 # A symbol stripping program
14712 # Used to examine libraries when file_magic_cmd begins "file"
14713 MAGIC_CMD=$MAGIC_CMD
14715 # Used on cygwin: DLL creation program.
14718 # Used on cygwin: object dumper.
14721 # Used on cygwin: assembler.
14724 # The name of the directory that contains temporary libtool files.
14727 # How to create reloadable object files.
14728 reload_flag=$lt_reload_flag
14729 reload_cmds=$lt_reload_cmds
14731 # How to pass a linker flag through the compiler.
14732 wl=$lt_lt_prog_compiler_wl_F77
14734 # Object file suffix (normally "o").
14735 objext="$ac_objext"
14737 # Old archive suffix (normally "a").
14740 # Shared library suffix (normally ".so").
14741 shrext_cmds='$shrext_cmds'
14743 # Executable file suffix (normally "").
14746 # Additional compiler flags for building library objects.
14747 pic_flag=$lt_lt_prog_compiler_pic_F77
14750 # What is the maximum length of a command?
14751 max_cmd_len=$lt_cv_sys_max_cmd_len
14753 # Does compiler simultaneously support -c and -o options?
14754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14756 # Must we lock files when doing compilation ?
14757 need_locks=$lt_need_locks
14759 # Do we need the lib prefix for modules?
14760 need_lib_prefix=$need_lib_prefix
14762 # Do we need a version for libraries?
14763 need_version=$need_version
14765 # Whether dlopen is supported.
14766 dlopen_support=$enable_dlopen
14768 # Whether dlopen of programs is supported.
14769 dlopen_self=$enable_dlopen_self
14771 # Whether dlopen of statically linked programs is supported.
14772 dlopen_self_static=$enable_dlopen_self_static
14774 # Compiler flag to prevent dynamic linking.
14775 link_static_flag=$lt_lt_prog_compiler_static_F77
14777 # Compiler flag to turn off builtin functions.
14778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14780 # Compiler flag to allow reflexive dlopens.
14781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14783 # Compiler flag to generate shared objects directly from archives.
14784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14786 # Compiler flag to generate thread-safe objects.
14787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14789 # Library versioning type.
14790 version_type=$version_type
14792 # Format of library name prefix.
14793 libname_spec=$lt_libname_spec
14795 # List of archive names. First name is the real one, the rest are links.
14796 # The last name is the one that the linker finds with -lNAME.
14797 library_names_spec=$lt_library_names_spec
14799 # The coded name of the library, if different from the real name.
14800 soname_spec=$lt_soname_spec
14802 # Commands used to build and install an old-style archive.
14804 old_archive_cmds=$lt_old_archive_cmds_F77
14805 old_postinstall_cmds=$lt_old_postinstall_cmds
14806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14808 # Create an old-style archive from a shared archive.
14809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14811 # Create a temporary old-style archive to link instead of a shared archive.
14812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14814 # Commands used to build and install a shared archive.
14815 archive_cmds=$lt_archive_cmds_F77
14816 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14817 postinstall_cmds=$lt_postinstall_cmds
14818 postuninstall_cmds=$lt_postuninstall_cmds
14820 # Commands used to build a loadable module (assumed same as above if empty)
14821 module_cmds=$lt_module_cmds_F77
14822 module_expsym_cmds=$lt_module_expsym_cmds_F77
14824 # Commands to strip libraries.
14825 old_striplib=$lt_old_striplib
14826 striplib=$lt_striplib
14828 # Dependencies to place before the objects being linked to create a
14830 predep_objects=$lt_predep_objects_F77
14832 # Dependencies to place after the objects being linked to create a
14834 postdep_objects=$lt_postdep_objects_F77
14836 # Dependencies to place before the objects being linked to create a
14838 predeps=$lt_predeps_F77
14840 # Dependencies to place after the objects being linked to create a
14842 postdeps=$lt_postdeps_F77
14844 # The library search path used internally by the compiler when linking
14845 # a shared library.
14846 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14848 # Method to check whether dependent libraries are shared objects.
14849 deplibs_check_method=$lt_deplibs_check_method
14851 # Command to use when deplibs_check_method == file_magic.
14852 file_magic_cmd=$lt_file_magic_cmd
14854 # Flag that allows shared libraries with undefined symbols to be built.
14855 allow_undefined_flag=$lt_allow_undefined_flag_F77
14857 # Flag that forces no undefined symbols.
14858 no_undefined_flag=$lt_no_undefined_flag_F77
14860 # Commands used to finish a libtool library installation in a directory.
14861 finish_cmds=$lt_finish_cmds
14863 # Same as above, but a single script fragment to be evaled but not shown.
14864 finish_eval=$lt_finish_eval
14866 # Take the output of nm and produce a listing of raw symbols and C names.
14867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14869 # Transform the output of nm in a proper C declaration
14870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14872 # Transform the output of nm in a C name address pair
14873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14875 # This is the shared library runtime path variable.
14876 runpath_var=$runpath_var
14878 # This is the shared library path variable.
14879 shlibpath_var=$shlibpath_var
14881 # Is shlibpath searched before the hard-coded library search path?
14882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14884 # How to hardcode a shared library path into an executable.
14885 hardcode_action=$hardcode_action_F77
14887 # Whether we should hardcode library paths into libraries.
14888 hardcode_into_libs=$hardcode_into_libs
14890 # Flag to hardcode \$libdir into a binary during linking.
14891 # This must work even if \$libdir does not exist.
14892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14894 # If ld is used when linking, flag to hardcode \$libdir into
14895 # a binary during linking. This must work even if \$libdir does
14897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14899 # Whether we need a single -rpath flag with a separated argument.
14900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14903 # resulting binary.
14904 hardcode_direct=$hardcode_direct_F77
14906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14907 # resulting binary.
14908 hardcode_minus_L=$hardcode_minus_L_F77
14910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14911 # the resulting binary.
14912 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14914 # Set to yes if building a shared library automatically hardcodes DIR into the library
14915 # and all subsequent libraries and executables linked against it.
14916 hardcode_automatic=$hardcode_automatic_F77
14918 # Variables whose values should be saved in libtool wrapper scripts and
14919 # restored at relink time.
14920 variables_saved_for_relink="$variables_saved_for_relink"
14922 # Whether libtool must link a program against all its dependency libraries.
14923 link_all_deplibs=$link_all_deplibs_F77
14925 # Compile-time system search path for libraries
14926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14928 # Run-time system search path for libraries
14929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14931 # Fix the shell variable \$srcfile for the compiler.
14932 fix_srcfile_path="$fix_srcfile_path_F77"
14934 # Set to yes if exported symbols are required.
14935 always_export_symbols=$always_export_symbols_F77
14937 # The commands to list exported symbols.
14938 export_symbols_cmds=$lt_export_symbols_cmds_F77
14940 # The commands to extract the exported symbol list from a shared archive.
14941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14943 # Symbols that should not be listed in the preloaded symbols.
14944 exclude_expsyms=$lt_exclude_expsyms_F77
14946 # Symbols that must always be exported.
14947 include_expsyms=$lt_include_expsyms_F77
14949 # ### END LIBTOOL TAG CONFIG: $tagname
14955 # If there is no Makefile yet, we rely on a make rule to execute
14956 # `config.status --recheck' to rerun these tests and create the
14957 # libtool script then.
14958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14959 if test -f "$ltmain_in"; then
14960 test -f Makefile && make "$ltmain"
14966 ac_cpp='$CPP $CPPFLAGS'
14967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14979 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14983 # Source file extension for Java test sources.
14986 # Object file extension for compiled Java test sources.
14990 # Code to be used in simple compile tests
14991 lt_simple_compile_test_code="class foo {}\n"
14993 # Code to be used in simple link tests
14994 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
14996 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14998 # If no C compiler was specified, use CC.
15001 # Allow CC to be a program name with arguments.
15005 # Allow CC to be a program name with arguments.
15011 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15012 archive_cmds_need_lc_GCJ=no
15015 lt_prog_compiler_no_builtin_flag_GCJ=
15017 if test "$GCC" = yes; then
15018 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15021 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15022 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15023 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 lt_cv_prog_compiler_rtti_exceptions=no
15027 ac_outfile=conftest.$ac_objext
15028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15029 lt_compiler_flag="-fno-rtti -fno-exceptions"
15030 # Insert the option either (1) after the last *FLAGS variable, or
15031 # (2) before a word containing "conftest.", or (3) at the end.
15032 # Note that $ac_compile itself does not contain backslashes and begins
15033 # with a dollar sign (not a hyphen), so the echo should work correctly.
15034 # The option is referenced via a variable to avoid confusing sed.
15035 lt_compile=`echo "$ac_compile" | $SED \
15036 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15038 -e 's:$: $lt_compiler_flag:'`
15039 (eval echo "\"\$as_me:15039: $lt_compile\"" >&5)
15040 (eval "$lt_compile" 2>conftest.err)
15042 cat conftest.err >&5
15043 echo "$as_me:15043: \$? = $ac_status" >&5
15044 if (exit $ac_status) && test -s "$ac_outfile"; then
15045 # The compiler can only warn and ignore the option if not recognized
15046 # So say no if there are warnings
15047 if test ! -s conftest.err; then
15048 lt_cv_prog_compiler_rtti_exceptions=yes
15054 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15055 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15057 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15058 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15065 lt_prog_compiler_wl_GCJ=
15066 lt_prog_compiler_pic_GCJ=
15067 lt_prog_compiler_static_GCJ=
15069 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15070 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15072 if test "$GCC" = yes; then
15073 lt_prog_compiler_wl_GCJ='-Wl,'
15074 lt_prog_compiler_static_GCJ='-static'
15078 # All AIX code is PIC.
15079 if test "$host_cpu" = ia64; then
15080 # AIX 5 now supports IA64 processor
15081 lt_prog_compiler_static_GCJ='-Bstatic'
15086 # FIXME: we need at least 68020 code to build shared libraries, but
15087 # adding the `-m68020' flag to GCC prevents building anything better,
15089 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15092 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15093 # PIC is the default for these OSes.
15096 mingw* | pw32* | os2*)
15097 # This hack is so that the source file can tell whether it is being
15098 # built for inclusion in a dll (and should export symbols for example).
15099 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15102 darwin* | rhapsody*)
15103 # PIC is the default on this platform
15104 # Common symbols not allowed in MH_DYLIB files
15105 lt_prog_compiler_pic_GCJ='-fno-common'
15109 # Just because we use GCC doesn't mean we suddenly get shared libraries
15110 # on systems that don't support them.
15111 lt_prog_compiler_can_build_shared_GCJ=no
15116 if test -d /usr/nec; then
15117 lt_prog_compiler_pic_GCJ=-Kconform_pic
15122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15123 # not for PA HP-UX.
15124 case "$host_cpu" in
15129 lt_prog_compiler_pic_GCJ='-fPIC'
15135 lt_prog_compiler_pic_GCJ='-fPIC'
15139 # PORTME Check for flag to pass linker flags through the system compiler.
15142 lt_prog_compiler_wl_GCJ='-Wl,'
15143 if test "$host_cpu" = ia64; then
15144 # AIX 5 now supports IA64 processor
15145 lt_prog_compiler_static_GCJ='-Bstatic'
15147 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15151 # PIC is the default on this platform
15152 # Common symbols not allowed in MH_DYLIB files
15153 case "$cc_basename" in
15155 lt_prog_compiler_pic_GCJ='-qnocommon'
15156 lt_prog_compiler_wl_GCJ='-Wl,'
15161 mingw* | pw32* | os2*)
15162 # This hack is so that the source file can tell whether it is being
15163 # built for inclusion in a dll (and should export symbols for example).
15164 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15167 hpux9* | hpux10* | hpux11*)
15168 lt_prog_compiler_wl_GCJ='-Wl,'
15169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15170 # not for PA HP-UX.
15171 case "$host_cpu" in
15176 lt_prog_compiler_pic_GCJ='+Z'
15179 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15180 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15183 irix5* | irix6* | nonstopux*)
15184 lt_prog_compiler_wl_GCJ='-Wl,'
15185 # PIC (with -KPIC) is the default.
15186 lt_prog_compiler_static_GCJ='-non_shared'
15190 lt_prog_compiler_pic_GCJ='-KPIC'
15191 lt_prog_compiler_static_GCJ='-Bstatic'
15195 case $cc_basename in
15197 lt_prog_compiler_wl_GCJ='-Wl,'
15198 lt_prog_compiler_pic_GCJ='-KPIC'
15199 lt_prog_compiler_static_GCJ='-static'
15201 pgcc | pgf77 | pgf90)
15202 # Portland Group compilers (*not* the Pentium gcc compiler,
15203 # which looks to be a dead project)
15204 lt_prog_compiler_wl_GCJ='-Wl,'
15205 lt_prog_compiler_pic_GCJ='-fpic'
15206 lt_prog_compiler_static_GCJ='-static'
15209 lt_prog_compiler_wl_GCJ='-Wl,'
15210 # All Alpha code is PIC.
15211 lt_prog_compiler_static_GCJ='-non_shared'
15216 osf3* | osf4* | osf5*)
15217 lt_prog_compiler_wl_GCJ='-Wl,'
15218 # All OSF/1 code is PIC.
15219 lt_prog_compiler_static_GCJ='-non_shared'
15223 lt_prog_compiler_pic_GCJ='-Kpic'
15224 lt_prog_compiler_static_GCJ='-dn'
15228 lt_prog_compiler_wl_GCJ='-Wl,'
15229 lt_prog_compiler_pic_GCJ='-KPIC'
15230 lt_prog_compiler_static_GCJ='-Bstatic'
15234 lt_prog_compiler_wl_GCJ='-Qoption ld '
15235 lt_prog_compiler_pic_GCJ='-PIC'
15236 lt_prog_compiler_static_GCJ='-Bstatic'
15239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15240 lt_prog_compiler_wl_GCJ='-Wl,'
15241 lt_prog_compiler_pic_GCJ='-KPIC'
15242 lt_prog_compiler_static_GCJ='-Bstatic'
15246 if test -d /usr/nec ;then
15247 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15248 lt_prog_compiler_static_GCJ='-Bstatic'
15253 lt_prog_compiler_wl_GCJ='-Wl,'
15254 lt_prog_compiler_can_build_shared_GCJ=no
15258 lt_prog_compiler_pic_GCJ='-pic'
15259 lt_prog_compiler_static_GCJ='-Bstatic'
15263 lt_prog_compiler_can_build_shared_GCJ=no
15268 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15269 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15272 # Check to make sure the PIC flag actually works.
15274 if test -n "$lt_prog_compiler_pic_GCJ"; then
15276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15278 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 lt_prog_compiler_pic_works_GCJ=no
15282 ac_outfile=conftest.$ac_objext
15283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15284 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15285 # Insert the option either (1) after the last *FLAGS variable, or
15286 # (2) before a word containing "conftest.", or (3) at the end.
15287 # Note that $ac_compile itself does not contain backslashes and begins
15288 # with a dollar sign (not a hyphen), so the echo should work correctly.
15289 # The option is referenced via a variable to avoid confusing sed.
15290 lt_compile=`echo "$ac_compile" | $SED \
15291 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15293 -e 's:$: $lt_compiler_flag:'`
15294 (eval echo "\"\$as_me:15294: $lt_compile\"" >&5)
15295 (eval "$lt_compile" 2>conftest.err)
15297 cat conftest.err >&5
15298 echo "$as_me:15298: \$? = $ac_status" >&5
15299 if (exit $ac_status) && test -s "$ac_outfile"; then
15300 # The compiler can only warn and ignore the option if not recognized
15301 # So say no if there are warnings
15302 if test ! -s conftest.err; then
15303 lt_prog_compiler_pic_works_GCJ=yes
15309 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15310 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15312 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15313 case $lt_prog_compiler_pic_GCJ in
15315 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15318 lt_prog_compiler_pic_GCJ=
15319 lt_prog_compiler_can_build_shared_GCJ=no
15324 # For platforms which do not support PIC, -DPIC is meaningless:
15326 lt_prog_compiler_pic_GCJ=
15329 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15333 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15334 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15335 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 lt_cv_prog_compiler_c_o_GCJ=no
15339 $rm -r conftest 2>/dev/null
15343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15345 lt_compiler_flag="-o out/conftest2.$ac_objext"
15346 # Insert the option either (1) after the last *FLAGS variable, or
15347 # (2) before a word containing "conftest.", or (3) at the end.
15348 # Note that $ac_compile itself does not contain backslashes and begins
15349 # with a dollar sign (not a hyphen), so the echo should work correctly.
15350 lt_compile=`echo "$ac_compile" | $SED \
15351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15353 -e 's:$: $lt_compiler_flag:'`
15354 (eval echo "\"\$as_me:15354: $lt_compile\"" >&5)
15355 (eval "$lt_compile" 2>out/conftest.err)
15357 cat out/conftest.err >&5
15358 echo "$as_me:15358: \$? = $ac_status" >&5
15359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15361 # The compiler can only warn and ignore the option if not recognized
15362 # So say no if there are warnings
15363 if test ! -s out/conftest.err; then
15364 lt_cv_prog_compiler_c_o_GCJ=yes
15369 # SGI C++ compiler will create directory out/ii_files/ for
15370 # template instantiation
15371 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15372 $rm out/* && rmdir out
15378 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15379 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15382 hard_links="nottested"
15383 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15384 # do not overwrite the value of need_locks provided by the user
15385 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15386 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391 ln conftest.a conftest.b 2>&5 || hard_links=no
15392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393 echo "$as_me:$LINENO: result: $hard_links" >&5
15394 echo "${ECHO_T}$hard_links" >&6
15395 if test "$hard_links" = no; then
15396 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15397 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15404 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15405 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15408 allow_undefined_flag_GCJ=
15409 enable_shared_with_static_runtimes_GCJ=no
15411 archive_expsym_cmds_GCJ=
15412 old_archive_From_new_cmds_GCJ=
15413 old_archive_from_expsyms_cmds_GCJ=
15414 export_dynamic_flag_spec_GCJ=
15415 whole_archive_flag_spec_GCJ=
15416 thread_safe_flag_spec_GCJ=
15417 hardcode_libdir_flag_spec_GCJ=
15418 hardcode_libdir_flag_spec_ld_GCJ=
15419 hardcode_libdir_separator_GCJ=
15420 hardcode_direct_GCJ=no
15421 hardcode_minus_L_GCJ=no
15422 hardcode_shlibpath_var_GCJ=unsupported
15423 link_all_deplibs_GCJ=unknown
15424 hardcode_automatic_GCJ=no
15426 module_expsym_cmds_GCJ=
15427 always_export_symbols_GCJ=no
15428 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15429 # include_expsyms should be a list of space-separated symbols to be *always*
15430 # included in the symbol list
15431 include_expsyms_GCJ=
15432 # exclude_expsyms can be an extended regexp of symbols to exclude
15433 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15434 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15435 # as well as any symbol that contains `d'.
15436 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15437 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15438 # platforms (ab)use it in PIC code, but their linkers get confused if
15439 # the symbol is explicitly referenced. Since portable code cannot
15440 # rely on this symbol name, it's probably fine to never include it in
15441 # preloaded symbol tables.
15442 extract_expsyms_cmds=
15445 cygwin* | mingw* | pw32*)
15446 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15447 # When not using gcc, we currently assume that we are using
15448 # Microsoft Visual C++.
15449 if test "$GCC" != yes; then
15459 if test "$with_gnu_ld" = yes; then
15460 # If archive_cmds runs LD, not CC, wlarc should be empty
15463 # See if GNU ld supports shared libraries.
15465 aix3* | aix4* | aix5*)
15466 # On AIX/PPC, the GNU linker is very broken
15467 if test "$host_cpu" != ia64; then
15471 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15472 *** to be unable to reliably create shared libraries on AIX.
15473 *** Therefore, libtool is disabling shared libraries support. If you
15474 *** really care for shared libraries, you may want to modify your PATH
15475 *** so that a non-GNU linker is found, and then restart.
15482 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)'
15483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15484 hardcode_minus_L_GCJ=yes
15486 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15487 # that the semantics of dynamic libraries on AmigaOS, at least up
15488 # to version 4, is to share data among multiple programs linked
15489 # with the same dynamic library. Since this doesn't match the
15490 # behavior of shared libraries on other platforms, we can't use
15496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15497 allow_undefined_flag_GCJ=unsupported
15498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15499 # support --undefined. This deserves some investigation. FIXME
15500 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15506 cygwin* | mingw* | pw32*)
15507 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15508 # as there is no search path for DLLs.
15509 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15510 allow_undefined_flag_GCJ=unsupported
15511 always_export_symbols_GCJ=no
15512 enable_shared_with_static_runtimes_GCJ=yes
15513 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15515 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15517 # If the export-symbols file already is a .def file (1st line
15518 # is EXPORTS), use it as is; otherwise, prepend...
15519 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15520 cp $export_symbols $output_objdir/$soname.def;
15522 echo EXPORTS > $output_objdir/$soname.def;
15523 cat $export_symbols >> $output_objdir/$soname.def;
15525 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15533 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15536 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15547 *** create shared libraries on Solaris systems. Therefore, libtool
15548 *** is disabling shared libraries support. We urge you to upgrade GNU
15549 *** binutils to release 2.9.1 or newer. Another option is to modify
15550 *** your PATH or compiler configuration so that the native linker is
15551 *** used, and then restart.
15554 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15555 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15556 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15563 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15565 hardcode_direct_GCJ=yes
15566 hardcode_shlibpath_var_GCJ=no
15570 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15572 case $CC,$host_cpu in
15573 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
15574 tmp_addflag=' -fpic' ;;
15575 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15576 tmp_addflag=' -i_dynamic' ;;
15577 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15578 tmp_addflag=' -i_dynamic -nofor_main' ;;
15579 ifc* | ifort*) # Intel Fortran compiler
15580 tmp_addflag=' -nofor_main' ;;
15582 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15583 supports_anon_versioning=no
15584 case `$LD -v 2>/dev/null` in
15585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15588 *\ 2.11.*) ;; # other 2.11 versions
15589 *) supports_anon_versioning=yes ;;
15591 if test $supports_anon_versioning = yes; then
15592 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15594 $echo "local: *; };" >> $output_objdir/$libname.ver~
15595 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15597 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
15605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15606 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15607 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15614 if test "$ld_shlibs_GCJ" = yes; then
15615 runpath_var=LD_RUN_PATH
15616 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15617 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15618 # ancient GNU ld didn't support --whole-archive et. al.
15619 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15620 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15622 whole_archive_flag_spec_GCJ=
15626 # PORTME fill in a description of your system's linker (not GNU ld)
15629 allow_undefined_flag_GCJ=unsupported
15630 always_export_symbols_GCJ=yes
15631 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'
15632 # Note: this linker hardcodes the directories in LIBPATH if there
15633 # are no directories specified by -L.
15634 hardcode_minus_L_GCJ=yes
15635 if test "$GCC" = yes && test -z "$link_static_flag"; then
15636 # Neither direct hardcoding nor static linking is supported with a
15638 hardcode_direct_GCJ=unsupported
15643 if test "$host_cpu" = ia64; then
15644 # On IA64, the linker does run time linking by default, so we don't
15645 # have to do anything special.
15646 aix_use_runtimelinking=no
15647 exp_sym_flag='-Bexport'
15650 # If we're using GNU nm, then we don't want the "-C" option.
15651 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15652 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15653 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'
15655 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'
15657 aix_use_runtimelinking=no
15659 # Test if we are trying to use run time linking or normal
15660 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15661 # need to do runtime linking.
15662 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15663 for ld_flag in $LDFLAGS; do
15664 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15665 aix_use_runtimelinking=yes
15671 exp_sym_flag='-bexport'
15672 no_entry_flag='-bnoentry'
15675 # When large executables or shared objects are built, AIX ld can
15676 # have problems creating the table of contents. If linking a library
15677 # or program results in "error TOC overflow" add -mminimal-toc to
15678 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15679 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15681 archive_cmds_GCJ=''
15682 hardcode_direct_GCJ=yes
15683 hardcode_libdir_separator_GCJ=':'
15684 link_all_deplibs_GCJ=yes
15686 if test "$GCC" = yes; then
15687 case $host_os in aix4.[012]|aix4.[012].*)
15688 # We only want to do this on AIX 4.2 and lower, the check
15689 # below for broken collect2 doesn't work under 4.3+
15690 collect2name=`${CC} -print-prog-name=collect2`
15691 if test -f "$collect2name" && \
15692 strings "$collect2name" | grep resolve_lib_name >/dev/null
15694 # We have reworked collect2
15695 hardcode_direct_GCJ=yes
15697 # We have old collect2
15698 hardcode_direct_GCJ=unsupported
15699 # It fails to find uninstalled libraries when the uninstalled
15700 # path is not listed in the libpath. Setting hardcode_minus_L
15701 # to unsupported forces relinking
15702 hardcode_minus_L_GCJ=yes
15703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15704 hardcode_libdir_separator_GCJ=
15707 shared_flag='-shared'
15708 if test "$aix_use_runtimelinking" = yes; then
15709 shared_flag="$shared_flag "'${wl}-G'
15713 if test "$host_cpu" = ia64; then
15714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15715 # chokes on -Wl,-G. The following line is correct:
15718 if test "$aix_use_runtimelinking" = yes; then
15719 shared_flag='${wl}-G'
15721 shared_flag='${wl}-bM:SRE'
15726 # It seems that -bexpall does not export symbols beginning with
15727 # underscore (_), so it is better to generate a list of symbols to export.
15728 always_export_symbols_GCJ=yes
15729 if test "$aix_use_runtimelinking" = yes; then
15730 # Warning - without using the other runtime loading flags (-brtl),
15731 # -berok will link without error, but may produce a broken library.
15732 allow_undefined_flag_GCJ='-berok'
15733 # Determine the default libpath from the value encoded in an empty executable.
15734 cat >conftest.$ac_ext <<_ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751 (eval $ac_link) 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest$ac_exeext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15772 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15774 # Check for a 64-bit object if we didn't find anything.
15775 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; }
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15782 rm -f conftest.err conftest.$ac_objext \
15783 conftest$ac_exeext conftest.$ac_ext
15784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15786 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15787 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15789 if test "$host_cpu" = ia64; then
15790 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15791 allow_undefined_flag_GCJ="-z nodefs"
15792 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15794 # Determine the default libpath from the value encoded in an empty executable.
15795 cat >conftest.$ac_ext <<_ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812 (eval $ac_link) 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -z "$ac_c_werror_flag"
15820 || test ! -s conftest.err'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } &&
15826 { ac_try='test -s conftest$ac_exeext'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15835 # Check for a 64-bit object if we didn't find anything.
15836 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; }
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15843 rm -f conftest.err conftest.$ac_objext \
15844 conftest$ac_exeext conftest.$ac_ext
15845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15847 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15848 # Warning - without using the other run time loading flags,
15849 # -berok will link without error, but may produce a broken library.
15850 no_undefined_flag_GCJ=' ${wl}-bernotok'
15851 allow_undefined_flag_GCJ=' ${wl}-berok'
15852 # -bexpall does not export symbols beginning with underscore (_)
15853 always_export_symbols_GCJ=yes
15854 # Exported symbols can be pulled into shared objects from archives
15855 whole_archive_flag_spec_GCJ=' '
15856 archive_cmds_need_lc_GCJ=yes
15857 # This is similar to how AIX traditionally builds it's shared libraries.
15858 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15864 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)'
15865 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15866 hardcode_minus_L_GCJ=yes
15867 # see comment about different semantics on the GNU ld section
15872 export_dynamic_flag_spec_GCJ=-rdynamic
15875 cygwin* | mingw* | pw32*)
15876 # When not using gcc, we currently assume that we are using
15877 # Microsoft Visual C++.
15878 # hardcode_libdir_flag_spec is actually meaningless, as there is
15879 # no search path for DLLs.
15880 hardcode_libdir_flag_spec_GCJ=' '
15881 allow_undefined_flag_GCJ=unsupported
15882 # Tell ltmain to make .lib files, not .a files.
15884 # Tell ltmain to make .dll files, not .so files.
15886 # FIXME: Setting linknames here is a bad hack.
15887 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15888 # The linker will automatically build a .lib file if we build a DLL.
15889 old_archive_From_new_cmds_GCJ='true'
15890 # FIXME: Should let the user specify the lib program.
15891 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15892 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
15893 enable_shared_with_static_runtimes_GCJ=yes
15896 darwin* | rhapsody*)
15898 rhapsody* | darwin1.[012])
15899 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
15902 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15903 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15905 case ${MACOSX_DEPLOYMENT_TARGET} in
15907 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15910 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
15916 archive_cmds_need_lc_GCJ=no
15917 hardcode_direct_GCJ=no
15918 hardcode_automatic_GCJ=yes
15919 hardcode_shlibpath_var_GCJ=unsupported
15920 whole_archive_flag_spec_GCJ=''
15921 link_all_deplibs_GCJ=yes
15922 if test "$GCC" = yes ; then
15923 output_verbose_link_cmd='echo'
15924 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15925 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15927 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}'
15928 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}'
15930 case "$cc_basename" in
15932 output_verbose_link_cmd='echo'
15933 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15934 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15935 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15936 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}'
15937 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}'
15947 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15949 hardcode_shlibpath_var_GCJ=no
15956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15957 # support. Future versions do this automatically, but an explicit c++rt0.o
15958 # does not break anything, and helps significantly (at the cost of a little
15961 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15962 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15963 hardcode_direct_GCJ=yes
15964 hardcode_shlibpath_var_GCJ=no
15967 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15970 hardcode_direct_GCJ=yes
15971 hardcode_minus_L_GCJ=yes
15972 hardcode_shlibpath_var_GCJ=no
15975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15976 freebsd* | kfreebsd*-gnu | dragonfly*)
15977 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15978 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15979 hardcode_direct_GCJ=yes
15980 hardcode_shlibpath_var_GCJ=no
15984 if test "$GCC" = yes; then
15985 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'
15987 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'
15989 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15990 hardcode_libdir_separator_GCJ=:
15991 hardcode_direct_GCJ=yes
15993 # hardcode_minus_L: Not really in the search PATH,
15994 # but as the default location of the library.
15995 hardcode_minus_L_GCJ=yes
15996 export_dynamic_flag_spec_GCJ='${wl}-E'
16000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16001 case "$host_cpu" in
16003 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16006 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16010 case "$host_cpu" in
16012 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16015 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16019 if test "$with_gnu_ld" = no; then
16020 case "$host_cpu" in
16022 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16023 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16024 hardcode_libdir_separator_GCJ=:
16025 hardcode_direct_GCJ=no
16026 hardcode_shlibpath_var_GCJ=no
16029 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16030 hardcode_direct_GCJ=no
16031 hardcode_shlibpath_var_GCJ=no
16033 # hardcode_minus_L: Not really in the search PATH,
16034 # but as the default location of the library.
16035 hardcode_minus_L_GCJ=yes
16038 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16039 hardcode_libdir_separator_GCJ=:
16040 hardcode_direct_GCJ=yes
16041 export_dynamic_flag_spec_GCJ='${wl}-E'
16043 # hardcode_minus_L: Not really in the search PATH,
16044 # but as the default location of the library.
16045 hardcode_minus_L_GCJ=yes
16051 irix5* | irix6* | nonstopux*)
16052 if test "$GCC" = yes; then
16053 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'
16055 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'
16056 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16059 hardcode_libdir_separator_GCJ=:
16060 link_all_deplibs_GCJ=yes
16064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16067 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16069 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16070 hardcode_direct_GCJ=yes
16071 hardcode_shlibpath_var_GCJ=no
16075 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076 hardcode_direct_GCJ=yes
16077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16078 hardcode_libdir_separator_GCJ=:
16079 hardcode_shlibpath_var_GCJ=no
16083 hardcode_direct_GCJ=yes
16084 hardcode_shlibpath_var_GCJ=no
16085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16086 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16087 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16088 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16089 export_dynamic_flag_spec_GCJ='${wl}-E'
16092 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16093 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16094 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16097 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16098 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16106 hardcode_minus_L_GCJ=yes
16107 allow_undefined_flag_GCJ=unsupported
16108 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'
16109 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16113 if test "$GCC" = yes; then
16114 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16115 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'
16117 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16118 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'
16120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16121 hardcode_libdir_separator_GCJ=:
16124 osf4* | osf5*) # as osf3* with the addition of -msym flag
16125 if test "$GCC" = yes; then
16126 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16127 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'
16128 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16130 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16131 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'
16132 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~
16133 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16135 # Both c and cxx compiler support -rpath directly
16136 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16138 hardcode_libdir_separator_GCJ=:
16142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 hardcode_shlibpath_var_GCJ=no
16144 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16145 runpath_var=LD_RUN_PATH
16146 hardcode_runpath_var=yes
16150 no_undefined_flag_GCJ=' -z text'
16151 if test "$GCC" = yes; then
16152 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16153 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16154 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16156 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16157 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16160 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16161 hardcode_shlibpath_var_GCJ=no
16163 solaris2.[0-5] | solaris2.[0-5].*) ;;
16164 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16165 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16167 link_all_deplibs_GCJ=yes
16171 if test "x$host_vendor" = xsequent; then
16172 # Use $CC to link under sequent, because it throws in some extra .o
16173 # files that make .init and .fini sections work.
16174 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16176 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16179 hardcode_direct_GCJ=yes
16180 hardcode_minus_L_GCJ=yes
16181 hardcode_shlibpath_var_GCJ=no
16185 case $host_vendor in
16187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16188 hardcode_direct_GCJ=yes # is this really true???
16191 ## LD is ld it makes a PLAMLIB
16192 ## CC just makes a GrossModule.
16193 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16194 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16195 hardcode_direct_GCJ=no
16198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16199 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16202 runpath_var='LD_RUN_PATH'
16203 hardcode_shlibpath_var_GCJ=no
16207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_shlibpath_var_GCJ=no
16209 export_dynamic_flag_spec_GCJ='-Bexport'
16213 if test -d /usr/nec; then
16214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16215 hardcode_shlibpath_var_GCJ=no
16216 runpath_var=LD_RUN_PATH
16217 hardcode_runpath_var=yes
16223 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16224 hardcode_direct_GCJ=yes
16225 hardcode_minus_L_GCJ=no
16226 hardcode_shlibpath_var_GCJ=no
16227 hardcode_runpath_var=yes
16228 runpath_var=LD_RUN_PATH
16231 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16232 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16233 if test "$GCC" = yes; then
16234 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16236 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16238 runpath_var='LD_RUN_PATH'
16239 hardcode_shlibpath_var_GCJ=no
16243 no_undefined_flag_GCJ=' -z text'
16244 # $CC -shared without GNU ld will not create a library from C++
16245 # object files and a static libstdc++, better avoid it by now
16246 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16249 hardcode_libdir_flag_spec_GCJ=
16250 hardcode_shlibpath_var_GCJ=no
16251 runpath_var='LD_RUN_PATH'
16255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16257 hardcode_shlibpath_var_GCJ=no
16266 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16267 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16268 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16270 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16271 if test "$GCC" = yes; then
16272 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16276 # Do we need to explicitly link libc?
16278 case "x$archive_cmds_need_lc_GCJ" in
16280 # Assume -lc should be added
16281 archive_cmds_need_lc_GCJ=yes
16283 if test "$enable_shared" = yes && test "$GCC" = yes; then
16284 case $archive_cmds_GCJ in
16286 # FIXME: we may have to deal with multi-command sequences.
16289 # Test whether the compiler implicitly links with -lc since on some
16290 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16291 # to ld, don't add -lc before -lgcc.
16292 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16293 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } 2>conftest.err; then
16304 libobjs=conftest.$ac_objext
16306 wl=$lt_prog_compiler_wl_GCJ
16312 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16313 allow_undefined_flag_GCJ=
16314 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16315 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }
16320 archive_cmds_need_lc_GCJ=no
16322 archive_cmds_need_lc_GCJ=yes
16324 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16326 cat conftest.err 1>&5
16329 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16330 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16337 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16338 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16339 library_names_spec=
16340 libname_spec='lib$name'
16344 postuninstall_cmds=
16348 shlibpath_overrides_runpath=unknown
16350 dynamic_linker="$host_os ld.so"
16351 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16352 if test "$GCC" = yes; then
16353 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16354 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16355 # if the path contains ";" then we assume it to be the separator
16356 # otherwise default to the standard path separator (i.e. ":") - it is
16357 # assumed that no part of a normal pathname contains ";" but that should
16358 # okay in the real world where ";" in dirpaths is itself problematic.
16359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16366 need_lib_prefix=unknown
16367 hardcode_into_libs=no
16369 # when you set need_version to no, make sure it does not cause -set_version
16370 # flags to be left without arguments
16371 need_version=unknown
16376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16377 shlibpath_var=LIBPATH
16379 # AIX 3 has no versioning support, so we append a major version to the name.
16380 soname_spec='${libname}${release}${shared_ext}$major'
16387 hardcode_into_libs=yes
16388 if test "$host_cpu" = ia64; then
16389 # AIX 5 supports IA64
16390 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16391 shlibpath_var=LD_LIBRARY_PATH
16393 # With GCC up to 2.95.x, collect2 would create an import file
16394 # for dependence libraries. The import file would start with
16395 # the line `#! .'. This would cause the generated library to
16396 # depend on `.', always an invalid library. This was fixed in
16397 # development snapshots of GCC prior to 3.0.
16399 aix4 | aix4.[01] | aix4.[01].*)
16400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16402 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16405 can_build_shared=no
16409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16410 # soname into executable. Probably we can add versioning support to
16411 # collect2, so additional links can be useful in future.
16412 if test "$aix_use_runtimelinking" = yes; then
16413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16414 # instead of lib<name>.a to let people know that these are not
16415 # typical AIX shared libraries.
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 # We preserve .a as extension for shared libraries through AIX4.2
16419 # and later when we are not doing run time linking.
16420 library_names_spec='${libname}${release}.a $libname.a'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LIBPATH
16428 library_names_spec='$libname.ixlibrary $libname.a'
16429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16430 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'
16434 library_names_spec='${libname}${shared_ext}'
16435 dynamic_linker="$host_os ld.so"
16436 shlibpath_var=LIBRARY_PATH
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16448 # the default ld.so.conf also contains /usr/contrib/lib and
16449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16450 # libtool to hard-code these into programs
16453 cygwin* | mingw* | pw32*)
16454 version_type=windows
16459 case $GCC,$host_os in
16460 yes,cygwin* | yes,mingw* | yes,pw32*)
16461 library_names_spec='$libname.dll.a'
16462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16463 postinstall_cmds='base_file=`basename \${file}`~
16464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16465 dldir=$destdir/`dirname \$dlpath`~
16466 test -d \$dldir || mkdir -p \$dldir~
16467 $install_prog $dir/$dlname \$dldir/$dlname'
16468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469 dlpath=$dir/\$dldll~
16471 shlibpath_overrides_runpath=yes
16475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16480 # MinGW DLLs use traditional 'lib' prefix
16481 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16483 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16484 # It is most probably a Windows format PATH printed by
16485 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16486 # path with ; separators, and with drive letters. We can handle the
16487 # drive letters (cygwin fileutils understands them), so leave them,
16488 # especially as we might pass files found there to a mingw objdump,
16489 # which wouldn't understand a cygwinified path. Ahh.
16490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16496 # pw32 DLLs use 'pw' prefix rather than 'lib'
16497 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16506 dynamic_linker='Win32 ld.exe'
16507 # FIXME: first we should search . and the directory the executable is in
16511 darwin* | rhapsody*)
16512 dynamic_linker="$host_os dyld"
16513 version_type=darwin
16516 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16517 soname_spec='${libname}${release}${major}$shared_ext'
16518 shlibpath_overrides_runpath=yes
16519 shlibpath_var=DYLD_LIBRARY_PATH
16520 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16521 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16522 if test "$GCC" = yes; then
16523 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"`
16525 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath=no
16551 hardcode_into_libs=yes
16552 dynamic_linker='GNU ld.so'
16555 freebsd* | dragonfly*)
16556 # DragonFly does not have aout. When/if they implement a new
16557 # versioning mechanism, adjust this.
16558 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16559 version_type=freebsd-$objformat
16560 case $version_type in
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16571 shlibpath_var=LD_LIBRARY_PATH
16574 shlibpath_overrides_runpath=yes
16576 freebsd3.[01]* | freebsdelf3.[01]*)
16577 shlibpath_overrides_runpath=yes
16578 hardcode_into_libs=yes
16581 shlibpath_overrides_runpath=no
16582 hardcode_into_libs=yes
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16592 soname_spec='${libname}${release}${shared_ext}$major'
16593 shlibpath_var=LD_LIBRARY_PATH
16594 hardcode_into_libs=yes
16597 hpux9* | hpux10* | hpux11*)
16598 # Give a soname corresponding to the major version so that dld.sl refuses to
16599 # link against other versions.
16603 case "$host_cpu" in
16606 hardcode_into_libs=yes
16607 dynamic_linker="$host_os dld.so"
16608 shlibpath_var=LD_LIBRARY_PATH
16609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 if test "X$HPUX_IA64_MODE" = X32; then
16613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16621 hardcode_into_libs=yes
16622 dynamic_linker="$host_os dld.sl"
16623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626 soname_spec='${libname}${release}${shared_ext}$major'
16627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16632 dynamic_linker="$host_os dld.sl"
16633 shlibpath_var=SHLIB_PATH
16634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16636 soname_spec='${libname}${release}${shared_ext}$major'
16639 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16640 postinstall_cmds='chmod 555 $lib'
16643 irix5* | irix6* | nonstopux*)
16645 nonstopux*) version_type=nonstopux ;;
16647 if test "$lt_cv_prog_gnu_ld" = yes; then
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16658 irix5* | nonstopux*)
16659 libsuff= shlibsuff=
16662 case $LD in # libtool.m4 will add one of these switches to LD
16663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16664 libsuff= shlibsuff= libmagic=32-bit;;
16665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16666 libsuff=32 shlibsuff=N32 libmagic=N32;;
16667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16669 *) libsuff= shlibsuff= libmagic=never-match;;
16673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16674 shlibpath_overrides_runpath=no
16675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16677 hardcode_into_libs=yes
16680 # No shared lib support for Linux oldld, aout, or coff.
16681 linux*oldld* | linux*aout* | linux*coff*)
16685 # This must be Linux ELF.
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691 soname_spec='${libname}${release}${shared_ext}$major'
16692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 shlibpath_overrides_runpath=no
16695 # This implies no fast_install, which is unacceptable.
16696 # Some rework will be needed to allow for fast_install
16697 # before this can be enabled.
16698 hardcode_into_libs=yes
16700 # Append ld.so.conf contents to the search path
16701 if test -f /etc/ld.so.conf; then
16702 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16706 # We used to test for /lib/ld.so.1 and disable shared libraries on
16707 # powerpc, because MkLinux only supported shared libraries with the
16708 # GNU dynamic linker. Since this was broken with cross compilers,
16709 # most powerpc-linux boxes support dynamic linking these days and
16710 # people can always --disable-shared, the test was removed, and we
16711 # assume the GNU/Linux dynamic linker is in use.
16712 dynamic_linker='GNU/Linux ld.so'
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16720 soname_spec='${libname}${release}${shared_ext}$major'
16721 shlibpath_var=LD_LIBRARY_PATH
16722 shlibpath_overrides_runpath=no
16723 hardcode_into_libs=yes
16724 dynamic_linker='GNU ld.so'
16731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16734 dynamic_linker='NetBSD (a.out) ld.so'
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 dynamic_linker='NetBSD ld.elf_so'
16740 shlibpath_var=LD_LIBRARY_PATH
16741 shlibpath_overrides_runpath=yes
16742 hardcode_into_libs=yes
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 shlibpath_var=LD_LIBRARY_PATH
16749 shlibpath_overrides_runpath=yes
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 soname_spec='${libname}${release}${shared_ext}$major'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=yes
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16771 openbsd2.[89] | openbsd2.[89].*)
16772 shlibpath_overrides_runpath=no
16775 shlibpath_overrides_runpath=yes
16779 shlibpath_overrides_runpath=yes
16784 libname_spec='$name'
16787 library_names_spec='$libname${shared_ext} $libname.a'
16788 dynamic_linker='OS/2 ld.exe'
16789 shlibpath_var=LIBPATH
16792 osf3* | osf4* | osf5*)
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16805 soname_spec='${libname}${release}${shared_ext}$major'
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807 shlibpath_var=LD_LIBRARY_PATH
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=yes
16818 hardcode_into_libs=yes
16819 # ldd complains unless libraries are executable
16820 postinstall_cmds='chmod +x $lib'
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16829 if test "$with_gnu_ld" = yes; then
16835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 case $host_vendor in
16842 shlibpath_overrides_runpath=no
16844 export_dynamic_flag_spec='${wl}-Blargedynsym'
16845 runpath_var=LD_RUN_PATH
16853 shlibpath_overrides_runpath=no
16854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16860 if test -d /usr/nec ;then
16862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863 soname_spec='$libname${shared_ext}.$major'
16864 shlibpath_var=LD_LIBRARY_PATH
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 soname_spec='${libname}${release}${shared_ext}$major'
16872 shlibpath_var=LD_LIBRARY_PATH
16879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16880 echo "${ECHO_T}$dynamic_linker" >&6
16881 test "$dynamic_linker" = no && can_build_shared=no
16883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16885 hardcode_action_GCJ=
16886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16887 test -n "$runpath_var_GCJ" || \
16888 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
16890 # We can hardcode non-existant directories.
16891 if test "$hardcode_direct_GCJ" != no &&
16892 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16893 # have to relink, otherwise we might link with an installed library
16894 # when we should be linking with a yet-to-be-installed one
16895 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16896 test "$hardcode_minus_L_GCJ" != no; then
16897 # Linking always hardcodes the temporary library directory.
16898 hardcode_action_GCJ=relink
16900 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16901 hardcode_action_GCJ=immediate
16904 # We cannot hardcode anything, or else we can only hardcode existing
16906 hardcode_action_GCJ=unsupported
16908 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16909 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16911 if test "$hardcode_action_GCJ" = relink; then
16912 # Fast installation is not supported
16913 enable_fast_install=no
16914 elif test "$shlibpath_overrides_runpath" = yes ||
16915 test "$enable_shared" = no; then
16916 # Fast installation is not necessary
16917 enable_fast_install=needless
16922 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16923 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16924 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16925 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16926 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16927 echo "$as_me:$LINENO: result: yes" >&5
16928 echo "${ECHO_T}yes" >&6
16930 # FIXME - insert some real tests, host_os isn't really good enough
16933 if test -n "$STRIP" ; then
16934 striplib="$STRIP -x"
16935 echo "$as_me:$LINENO: result: yes" >&5
16936 echo "${ECHO_T}yes" >&6
16938 echo "$as_me:$LINENO: result: no" >&5
16939 echo "${ECHO_T}no" >&6
16943 echo "$as_me:$LINENO: result: no" >&5
16944 echo "${ECHO_T}no" >&6
16949 if test "x$enable_dlopen" != xyes; then
16950 enable_dlopen=unknown
16951 enable_dlopen_self=unknown
16952 enable_dlopen_self_static=unknown
16959 lt_cv_dlopen="load_add_on"
16961 lt_cv_dlopen_self=yes
16965 lt_cv_dlopen="LoadLibrary"
16970 lt_cv_dlopen="dlopen"
16975 # if libdl is installed we need to link against it
16976 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16977 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 ac_check_lib_save_LIBS=$LIBS
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16990 /* Override any gcc2 internal prototype to avoid an error. */
16994 /* We use char because int might match the return type of a gcc2
16995 builtin and then its argument prototype would still apply. */
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007 (eval $ac_link) 2>conftest.er1
17009 grep -v '^ *+' conftest.er1 >conftest.err
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag"
17015 || test ! -s conftest.err'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest$ac_exeext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 ac_cv_lib_dl_dlopen=yes
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 ac_cv_lib_dl_dlopen=no
17034 rm -f conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17036 LIBS=$ac_check_lib_save_LIBS
17038 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17039 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17040 if test $ac_cv_lib_dl_dlopen = yes; then
17041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17044 lt_cv_dlopen="dyld"
17046 lt_cv_dlopen_self=yes
17053 echo "$as_me:$LINENO: checking for shl_load" >&5
17054 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17055 if test "${ac_cv_func_shl_load+set}" = set; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17058 cat >conftest.$ac_ext <<_ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17064 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17066 #define shl_load innocuous_shl_load
17068 /* System header to define __stub macros and hopefully few prototypes,
17069 which can conflict with char shl_load (); below.
17070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17071 <limits.h> exists even on freestanding compilers. */
17074 # include <limits.h>
17076 # include <assert.h>
17081 /* Override any gcc2 internal prototype to avoid an error. */
17086 /* We use char because int might match the return type of a gcc2
17087 builtin and then its argument prototype would still apply. */
17089 /* The GNU C library defines this for functions which it implements
17090 to always fail with ENOSYS. Some functions are actually named
17091 something starting with __ and the normal name is an alias. */
17092 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17095 char (*f) () = shl_load;
17104 return f != shl_load;
17109 rm -f conftest.$ac_objext conftest$ac_exeext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111 (eval $ac_link) 2>conftest.er1
17113 grep -v '^ *+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
17118 { ac_try='test -z "$ac_c_werror_flag"
17119 || test ! -s conftest.err'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest$ac_exeext'
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_cv_func_shl_load=yes
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ac_cv_func_shl_load=no
17138 rm -f conftest.err conftest.$ac_objext \
17139 conftest$ac_exeext conftest.$ac_ext
17141 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17142 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17143 if test $ac_cv_func_shl_load = yes; then
17144 lt_cv_dlopen="shl_load"
17146 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17147 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17148 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 ac_check_lib_save_LIBS=$LIBS
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any gcc2 internal prototype to avoid an error. */
17164 /* We use char because int might match the return type of a gcc2
17165 builtin and then its argument prototype would still apply. */
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_cv_lib_dld_shl_load=yes
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ac_cv_lib_dld_shl_load=no
17204 rm -f conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17206 LIBS=$ac_check_lib_save_LIBS
17208 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17209 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17210 if test $ac_cv_lib_dld_shl_load = yes; then
17211 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17213 echo "$as_me:$LINENO: checking for dlopen" >&5
17214 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17215 if test "${ac_cv_func_dlopen+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17226 #define dlopen innocuous_dlopen
17228 /* System header to define __stub macros and hopefully few prototypes,
17229 which can conflict with char dlopen (); below.
17230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17231 <limits.h> exists even on freestanding compilers. */
17234 # include <limits.h>
17236 # include <assert.h>
17241 /* Override any gcc2 internal prototype to avoid an error. */
17246 /* We use char because int might match the return type of a gcc2
17247 builtin and then its argument prototype would still apply. */
17249 /* The GNU C library defines this for functions which it implements
17250 to always fail with ENOSYS. Some functions are actually named
17251 something starting with __ and the normal name is an alias. */
17252 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17255 char (*f) () = dlopen;
17264 return f != dlopen;
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271 (eval $ac_link) 2>conftest.er1
17273 grep -v '^ *+' conftest.er1 >conftest.err
17275 cat conftest.err >&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } &&
17278 { ac_try='test -z "$ac_c_werror_flag"
17279 || test ! -s conftest.err'
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; } &&
17285 { ac_try='test -s conftest$ac_exeext'
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17291 ac_cv_func_dlopen=yes
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17296 ac_cv_func_dlopen=no
17298 rm -f conftest.err conftest.$ac_objext \
17299 conftest$ac_exeext conftest.$ac_ext
17301 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17302 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17303 if test $ac_cv_func_dlopen = yes; then
17304 lt_cv_dlopen="dlopen"
17306 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17307 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17308 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 ac_check_lib_save_LIBS=$LIBS
17313 cat >conftest.$ac_ext <<_ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17320 /* Override any gcc2 internal prototype to avoid an error. */
17324 /* We use char because int might match the return type of a gcc2
17325 builtin and then its argument prototype would still apply. */
17335 rm -f conftest.$ac_objext conftest$ac_exeext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337 (eval $ac_link) 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag"
17345 || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest$ac_exeext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_lib_dl_dlopen=yes
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 ac_cv_lib_dl_dlopen=no
17364 rm -f conftest.err conftest.$ac_objext \
17365 conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17368 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17369 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17370 if test $ac_cv_lib_dl_dlopen = yes; then
17371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17373 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17374 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17375 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 ac_check_lib_save_LIBS=$LIBS
17379 LIBS="-lsvld $LIBS"
17380 cat >conftest.$ac_ext <<_ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17387 /* Override any gcc2 internal prototype to avoid an error. */
17391 /* We use char because int might match the return type of a gcc2
17392 builtin and then its argument prototype would still apply. */
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17404 (eval $ac_link) 2>conftest.er1
17406 grep -v '^ *+' conftest.er1 >conftest.err
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -z "$ac_c_werror_flag"
17412 || test ! -s conftest.err'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } &&
17418 { ac_try='test -s conftest$ac_exeext'
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 ac_cv_lib_svld_dlopen=yes
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 ac_cv_lib_svld_dlopen=no
17431 rm -f conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433 LIBS=$ac_check_lib_save_LIBS
17435 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17436 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17437 if test $ac_cv_lib_svld_dlopen = yes; then
17438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17440 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17441 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17442 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 ac_check_lib_save_LIBS=$LIBS
17447 cat >conftest.$ac_ext <<_ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17454 /* Override any gcc2 internal prototype to avoid an error. */
17458 /* We use char because int might match the return type of a gcc2
17459 builtin and then its argument prototype would still apply. */
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471 (eval $ac_link) 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -z "$ac_c_werror_flag"
17479 || test ! -s conftest.err'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest$ac_exeext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_lib_dld_dld_link=yes
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 ac_cv_lib_dld_dld_link=no
17498 rm -f conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17500 LIBS=$ac_check_lib_save_LIBS
17502 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17503 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17504 if test $ac_cv_lib_dld_dld_link = yes; then
17505 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17526 if test "x$lt_cv_dlopen" != xno; then
17532 case $lt_cv_dlopen in
17534 save_CPPFLAGS="$CPPFLAGS"
17535 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17537 save_LDFLAGS="$LDFLAGS"
17538 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17541 LIBS="$lt_cv_dlopen_libs $LIBS"
17543 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17544 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17545 if test "${lt_cv_dlopen_self+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 if test "$cross_compiling" = yes; then :
17549 lt_cv_dlopen_self=cross
17551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17552 lt_status=$lt_dlunknown
17553 cat > conftest.$ac_ext <<EOF
17554 #line 17554 "configure"
17555 #include "confdefs.h"
17564 # define LT_DLGLOBAL RTLD_GLOBAL
17567 # define LT_DLGLOBAL DL_GLOBAL
17569 # define LT_DLGLOBAL 0
17573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17574 find out it does not work in some platform. */
17575 #ifndef LT_DLLAZY_OR_NOW
17577 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17580 # define LT_DLLAZY_OR_NOW DL_LAZY
17583 # define LT_DLLAZY_OR_NOW RTLD_NOW
17586 # define LT_DLLAZY_OR_NOW DL_NOW
17588 # define LT_DLLAZY_OR_NOW 0
17596 extern "C" void exit (int);
17599 void fnord() { int i=42;}
17602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17603 int status = $lt_dlunknown;
17607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17609 /* dlclose (self); */
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616 (eval $ac_link) 2>&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17620 (./conftest; exit; ) 2>/dev/null
17622 case x$lt_status in
17623 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17624 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17625 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17628 # compilation failed
17629 lt_cv_dlopen_self=no
17636 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17637 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17639 if test "x$lt_cv_dlopen_self" = xyes; then
17640 LDFLAGS="$LDFLAGS $link_static_flag"
17641 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17642 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17643 if test "${lt_cv_dlopen_self_static+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 if test "$cross_compiling" = yes; then :
17647 lt_cv_dlopen_self_static=cross
17649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17650 lt_status=$lt_dlunknown
17651 cat > conftest.$ac_ext <<EOF
17652 #line 17652 "configure"
17653 #include "confdefs.h"
17662 # define LT_DLGLOBAL RTLD_GLOBAL
17665 # define LT_DLGLOBAL DL_GLOBAL
17667 # define LT_DLGLOBAL 0
17671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17672 find out it does not work in some platform. */
17673 #ifndef LT_DLLAZY_OR_NOW
17675 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17678 # define LT_DLLAZY_OR_NOW DL_LAZY
17681 # define LT_DLLAZY_OR_NOW RTLD_NOW
17684 # define LT_DLLAZY_OR_NOW DL_NOW
17686 # define LT_DLLAZY_OR_NOW 0
17694 extern "C" void exit (int);
17697 void fnord() { int i=42;}
17700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17701 int status = $lt_dlunknown;
17705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17706 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17707 /* dlclose (self); */
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714 (eval $ac_link) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17718 (./conftest; exit; ) 2>/dev/null
17720 case x$lt_status in
17721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17723 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17726 # compilation failed
17727 lt_cv_dlopen_self_static=no
17734 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17735 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17738 CPPFLAGS="$save_CPPFLAGS"
17739 LDFLAGS="$save_LDFLAGS"
17744 case $lt_cv_dlopen_self in
17745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17746 *) enable_dlopen_self=unknown ;;
17749 case $lt_cv_dlopen_self_static in
17750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17751 *) enable_dlopen_self_static=unknown ;;
17756 # The else clause should only fire when bootstrapping the
17757 # libtool distribution, otherwise you forgot to ship ltmain.sh
17758 # with your package, and you will get complaints that there are
17759 # no rules to generate ltmain.sh.
17760 if test -f "$ltmain"; then
17761 # See if we are running on zsh, and set the options which allow our commands through
17762 # without removal of \ escapes.
17763 if test -n "${ZSH_VERSION+set}" ; then
17764 setopt NO_GLOB_SUBST
17766 # Now quote all the things that may contain metacharacters while being
17767 # careful not to overquote the AC_SUBSTed values. We take copies of the
17768 # variables and quote the copies for generation of the libtool script.
17769 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17771 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17772 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17773 deplibs_check_method reload_flag reload_cmds need_locks \
17774 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17775 lt_cv_sys_global_symbol_to_c_name_address \
17776 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17777 old_postinstall_cmds old_postuninstall_cmds \
17781 lt_prog_compiler_wl_GCJ \
17782 lt_prog_compiler_pic_GCJ \
17783 lt_prog_compiler_static_GCJ \
17784 lt_prog_compiler_no_builtin_flag_GCJ \
17785 export_dynamic_flag_spec_GCJ \
17786 thread_safe_flag_spec_GCJ \
17787 whole_archive_flag_spec_GCJ \
17788 enable_shared_with_static_runtimes_GCJ \
17789 old_archive_cmds_GCJ \
17790 old_archive_from_new_cmds_GCJ \
17791 predep_objects_GCJ \
17792 postdep_objects_GCJ \
17795 compiler_lib_search_path_GCJ \
17797 archive_expsym_cmds_GCJ \
17798 postinstall_cmds_GCJ \
17799 postuninstall_cmds_GCJ \
17800 old_archive_from_expsyms_cmds_GCJ \
17801 allow_undefined_flag_GCJ \
17802 no_undefined_flag_GCJ \
17803 export_symbols_cmds_GCJ \
17804 hardcode_libdir_flag_spec_GCJ \
17805 hardcode_libdir_flag_spec_ld_GCJ \
17806 hardcode_libdir_separator_GCJ \
17807 hardcode_automatic_GCJ \
17809 module_expsym_cmds_GCJ \
17810 lt_cv_prog_compiler_c_o_GCJ \
17811 exclude_expsyms_GCJ \
17812 include_expsyms_GCJ; do
17815 old_archive_cmds_GCJ | \
17816 old_archive_from_new_cmds_GCJ | \
17817 archive_cmds_GCJ | \
17818 archive_expsym_cmds_GCJ | \
17819 module_cmds_GCJ | \
17820 module_expsym_cmds_GCJ | \
17821 old_archive_from_expsyms_cmds_GCJ | \
17822 export_symbols_cmds_GCJ | \
17823 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17824 postinstall_cmds | postuninstall_cmds | \
17825 old_postinstall_cmds | old_postuninstall_cmds | \
17826 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17827 # Double-quote double-evaled strings.
17828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17837 *'\$0 --fallback-echo"')
17838 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17844 cat <<__EOF__ >> "$cfgfile"
17845 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17849 # Shell to use when invoking shell scripts.
17852 # Whether or not to build shared libraries.
17853 build_libtool_libs=$enable_shared
17855 # Whether or not to build static libraries.
17856 build_old_libs=$enable_static
17858 # Whether or not to add -lc for building shared libraries.
17859 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17861 # Whether or not to disallow shared libs when runtime libs are static
17862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17864 # Whether or not to optimize for fast installation.
17865 fast_install=$enable_fast_install
17868 host_alias=$host_alias
17872 # The build system.
17873 build_alias=$build_alias
17877 # An echo program that does not interpret backslashes.
17882 AR_FLAGS=$lt_AR_FLAGS
17887 # A language-specific compiler.
17888 CC=$lt_compiler_GCJ
17890 # Is the compiler the GNU C compiler?
17896 # The linker used to build libraries.
17899 # Whether we need hard or soft links.
17902 # A BSD-compatible nm program.
17905 # A symbol stripping program
17908 # Used to examine libraries when file_magic_cmd begins "file"
17909 MAGIC_CMD=$MAGIC_CMD
17911 # Used on cygwin: DLL creation program.
17914 # Used on cygwin: object dumper.
17917 # Used on cygwin: assembler.
17920 # The name of the directory that contains temporary libtool files.
17923 # How to create reloadable object files.
17924 reload_flag=$lt_reload_flag
17925 reload_cmds=$lt_reload_cmds
17927 # How to pass a linker flag through the compiler.
17928 wl=$lt_lt_prog_compiler_wl_GCJ
17930 # Object file suffix (normally "o").
17931 objext="$ac_objext"
17933 # Old archive suffix (normally "a").
17936 # Shared library suffix (normally ".so").
17937 shrext_cmds='$shrext_cmds'
17939 # Executable file suffix (normally "").
17942 # Additional compiler flags for building library objects.
17943 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17946 # What is the maximum length of a command?
17947 max_cmd_len=$lt_cv_sys_max_cmd_len
17949 # Does compiler simultaneously support -c and -o options?
17950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17952 # Must we lock files when doing compilation ?
17953 need_locks=$lt_need_locks
17955 # Do we need the lib prefix for modules?
17956 need_lib_prefix=$need_lib_prefix
17958 # Do we need a version for libraries?
17959 need_version=$need_version
17961 # Whether dlopen is supported.
17962 dlopen_support=$enable_dlopen
17964 # Whether dlopen of programs is supported.
17965 dlopen_self=$enable_dlopen_self
17967 # Whether dlopen of statically linked programs is supported.
17968 dlopen_self_static=$enable_dlopen_self_static
17970 # Compiler flag to prevent dynamic linking.
17971 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17973 # Compiler flag to turn off builtin functions.
17974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17976 # Compiler flag to allow reflexive dlopens.
17977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17979 # Compiler flag to generate shared objects directly from archives.
17980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17982 # Compiler flag to generate thread-safe objects.
17983 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17985 # Library versioning type.
17986 version_type=$version_type
17988 # Format of library name prefix.
17989 libname_spec=$lt_libname_spec
17991 # List of archive names. First name is the real one, the rest are links.
17992 # The last name is the one that the linker finds with -lNAME.
17993 library_names_spec=$lt_library_names_spec
17995 # The coded name of the library, if different from the real name.
17996 soname_spec=$lt_soname_spec
17998 # Commands used to build and install an old-style archive.
18000 old_archive_cmds=$lt_old_archive_cmds_GCJ
18001 old_postinstall_cmds=$lt_old_postinstall_cmds
18002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18004 # Create an old-style archive from a shared archive.
18005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18007 # Create a temporary old-style archive to link instead of a shared archive.
18008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18010 # Commands used to build and install a shared archive.
18011 archive_cmds=$lt_archive_cmds_GCJ
18012 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18013 postinstall_cmds=$lt_postinstall_cmds
18014 postuninstall_cmds=$lt_postuninstall_cmds
18016 # Commands used to build a loadable module (assumed same as above if empty)
18017 module_cmds=$lt_module_cmds_GCJ
18018 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18020 # Commands to strip libraries.
18021 old_striplib=$lt_old_striplib
18022 striplib=$lt_striplib
18024 # Dependencies to place before the objects being linked to create a
18026 predep_objects=$lt_predep_objects_GCJ
18028 # Dependencies to place after the objects being linked to create a
18030 postdep_objects=$lt_postdep_objects_GCJ
18032 # Dependencies to place before the objects being linked to create a
18034 predeps=$lt_predeps_GCJ
18036 # Dependencies to place after the objects being linked to create a
18038 postdeps=$lt_postdeps_GCJ
18040 # The library search path used internally by the compiler when linking
18041 # a shared library.
18042 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18044 # Method to check whether dependent libraries are shared objects.
18045 deplibs_check_method=$lt_deplibs_check_method
18047 # Command to use when deplibs_check_method == file_magic.
18048 file_magic_cmd=$lt_file_magic_cmd
18050 # Flag that allows shared libraries with undefined symbols to be built.
18051 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18053 # Flag that forces no undefined symbols.
18054 no_undefined_flag=$lt_no_undefined_flag_GCJ
18056 # Commands used to finish a libtool library installation in a directory.
18057 finish_cmds=$lt_finish_cmds
18059 # Same as above, but a single script fragment to be evaled but not shown.
18060 finish_eval=$lt_finish_eval
18062 # Take the output of nm and produce a listing of raw symbols and C names.
18063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18065 # Transform the output of nm in a proper C declaration
18066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18068 # Transform the output of nm in a C name address pair
18069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18071 # This is the shared library runtime path variable.
18072 runpath_var=$runpath_var
18074 # This is the shared library path variable.
18075 shlibpath_var=$shlibpath_var
18077 # Is shlibpath searched before the hard-coded library search path?
18078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18080 # How to hardcode a shared library path into an executable.
18081 hardcode_action=$hardcode_action_GCJ
18083 # Whether we should hardcode library paths into libraries.
18084 hardcode_into_libs=$hardcode_into_libs
18086 # Flag to hardcode \$libdir into a binary during linking.
18087 # This must work even if \$libdir does not exist.
18088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18090 # If ld is used when linking, flag to hardcode \$libdir into
18091 # a binary during linking. This must work even if \$libdir does
18093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18095 # Whether we need a single -rpath flag with a separated argument.
18096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18098 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18099 # resulting binary.
18100 hardcode_direct=$hardcode_direct_GCJ
18102 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18103 # resulting binary.
18104 hardcode_minus_L=$hardcode_minus_L_GCJ
18106 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18107 # the resulting binary.
18108 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18110 # Set to yes if building a shared library automatically hardcodes DIR into the library
18111 # and all subsequent libraries and executables linked against it.
18112 hardcode_automatic=$hardcode_automatic_GCJ
18114 # Variables whose values should be saved in libtool wrapper scripts and
18115 # restored at relink time.
18116 variables_saved_for_relink="$variables_saved_for_relink"
18118 # Whether libtool must link a program against all its dependency libraries.
18119 link_all_deplibs=$link_all_deplibs_GCJ
18121 # Compile-time system search path for libraries
18122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18124 # Run-time system search path for libraries
18125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18127 # Fix the shell variable \$srcfile for the compiler.
18128 fix_srcfile_path="$fix_srcfile_path_GCJ"
18130 # Set to yes if exported symbols are required.
18131 always_export_symbols=$always_export_symbols_GCJ
18133 # The commands to list exported symbols.
18134 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18136 # The commands to extract the exported symbol list from a shared archive.
18137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18139 # Symbols that should not be listed in the preloaded symbols.
18140 exclude_expsyms=$lt_exclude_expsyms_GCJ
18142 # Symbols that must always be exported.
18143 include_expsyms=$lt_include_expsyms_GCJ
18145 # ### END LIBTOOL TAG CONFIG: $tagname
18151 # If there is no Makefile yet, we rely on a make rule to execute
18152 # `config.status --recheck' to rerun these tests and create the
18153 # libtool script then.
18154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18155 if test -f "$ltmain_in"; then
18156 test -f Makefile && make "$ltmain"
18162 ac_cpp='$CPP $CPPFLAGS'
18163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18178 # Source file extension for RC test sources.
18181 # Object file extension for compiled RC test sources.
18185 # Code to be used in simple compile tests
18186 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18188 # Code to be used in simple link tests
18189 lt_simple_link_test_code="$lt_simple_compile_test_code"
18191 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18193 # If no C compiler was specified, use CC.
18196 # Allow CC to be a program name with arguments.
18200 # Allow CC to be a program name with arguments.
18205 lt_cv_prog_compiler_c_o_RC=yes
18207 # The else clause should only fire when bootstrapping the
18208 # libtool distribution, otherwise you forgot to ship ltmain.sh
18209 # with your package, and you will get complaints that there are
18210 # no rules to generate ltmain.sh.
18211 if test -f "$ltmain"; then
18212 # See if we are running on zsh, and set the options which allow our commands through
18213 # without removal of \ escapes.
18214 if test -n "${ZSH_VERSION+set}" ; then
18215 setopt NO_GLOB_SUBST
18217 # Now quote all the things that may contain metacharacters while being
18218 # careful not to overquote the AC_SUBSTed values. We take copies of the
18219 # variables and quote the copies for generation of the libtool script.
18220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18222 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18223 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18224 deplibs_check_method reload_flag reload_cmds need_locks \
18225 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18226 lt_cv_sys_global_symbol_to_c_name_address \
18227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18228 old_postinstall_cmds old_postuninstall_cmds \
18232 lt_prog_compiler_wl_RC \
18233 lt_prog_compiler_pic_RC \
18234 lt_prog_compiler_static_RC \
18235 lt_prog_compiler_no_builtin_flag_RC \
18236 export_dynamic_flag_spec_RC \
18237 thread_safe_flag_spec_RC \
18238 whole_archive_flag_spec_RC \
18239 enable_shared_with_static_runtimes_RC \
18240 old_archive_cmds_RC \
18241 old_archive_from_new_cmds_RC \
18242 predep_objects_RC \
18243 postdep_objects_RC \
18246 compiler_lib_search_path_RC \
18248 archive_expsym_cmds_RC \
18249 postinstall_cmds_RC \
18250 postuninstall_cmds_RC \
18251 old_archive_from_expsyms_cmds_RC \
18252 allow_undefined_flag_RC \
18253 no_undefined_flag_RC \
18254 export_symbols_cmds_RC \
18255 hardcode_libdir_flag_spec_RC \
18256 hardcode_libdir_flag_spec_ld_RC \
18257 hardcode_libdir_separator_RC \
18258 hardcode_automatic_RC \
18260 module_expsym_cmds_RC \
18261 lt_cv_prog_compiler_c_o_RC \
18262 exclude_expsyms_RC \
18263 include_expsyms_RC; do
18266 old_archive_cmds_RC | \
18267 old_archive_from_new_cmds_RC | \
18268 archive_cmds_RC | \
18269 archive_expsym_cmds_RC | \
18271 module_expsym_cmds_RC | \
18272 old_archive_from_expsyms_cmds_RC | \
18273 export_symbols_cmds_RC | \
18274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18275 postinstall_cmds | postuninstall_cmds | \
18276 old_postinstall_cmds | old_postuninstall_cmds | \
18277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18278 # Double-quote double-evaled strings.
18279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18288 *'\$0 --fallback-echo"')
18289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18295 cat <<__EOF__ >> "$cfgfile"
18296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18300 # Shell to use when invoking shell scripts.
18303 # Whether or not to build shared libraries.
18304 build_libtool_libs=$enable_shared
18306 # Whether or not to build static libraries.
18307 build_old_libs=$enable_static
18309 # Whether or not to add -lc for building shared libraries.
18310 build_libtool_need_lc=$archive_cmds_need_lc_RC
18312 # Whether or not to disallow shared libs when runtime libs are static
18313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18315 # Whether or not to optimize for fast installation.
18316 fast_install=$enable_fast_install
18319 host_alias=$host_alias
18323 # The build system.
18324 build_alias=$build_alias
18328 # An echo program that does not interpret backslashes.
18333 AR_FLAGS=$lt_AR_FLAGS
18338 # A language-specific compiler.
18341 # Is the compiler the GNU C compiler?
18347 # The linker used to build libraries.
18350 # Whether we need hard or soft links.
18353 # A BSD-compatible nm program.
18356 # A symbol stripping program
18359 # Used to examine libraries when file_magic_cmd begins "file"
18360 MAGIC_CMD=$MAGIC_CMD
18362 # Used on cygwin: DLL creation program.
18365 # Used on cygwin: object dumper.
18368 # Used on cygwin: assembler.
18371 # The name of the directory that contains temporary libtool files.
18374 # How to create reloadable object files.
18375 reload_flag=$lt_reload_flag
18376 reload_cmds=$lt_reload_cmds
18378 # How to pass a linker flag through the compiler.
18379 wl=$lt_lt_prog_compiler_wl_RC
18381 # Object file suffix (normally "o").
18382 objext="$ac_objext"
18384 # Old archive suffix (normally "a").
18387 # Shared library suffix (normally ".so").
18388 shrext_cmds='$shrext_cmds'
18390 # Executable file suffix (normally "").
18393 # Additional compiler flags for building library objects.
18394 pic_flag=$lt_lt_prog_compiler_pic_RC
18397 # What is the maximum length of a command?
18398 max_cmd_len=$lt_cv_sys_max_cmd_len
18400 # Does compiler simultaneously support -c and -o options?
18401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18403 # Must we lock files when doing compilation ?
18404 need_locks=$lt_need_locks
18406 # Do we need the lib prefix for modules?
18407 need_lib_prefix=$need_lib_prefix
18409 # Do we need a version for libraries?
18410 need_version=$need_version
18412 # Whether dlopen is supported.
18413 dlopen_support=$enable_dlopen
18415 # Whether dlopen of programs is supported.
18416 dlopen_self=$enable_dlopen_self
18418 # Whether dlopen of statically linked programs is supported.
18419 dlopen_self_static=$enable_dlopen_self_static
18421 # Compiler flag to prevent dynamic linking.
18422 link_static_flag=$lt_lt_prog_compiler_static_RC
18424 # Compiler flag to turn off builtin functions.
18425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18427 # Compiler flag to allow reflexive dlopens.
18428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18430 # Compiler flag to generate shared objects directly from archives.
18431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18433 # Compiler flag to generate thread-safe objects.
18434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18436 # Library versioning type.
18437 version_type=$version_type
18439 # Format of library name prefix.
18440 libname_spec=$lt_libname_spec
18442 # List of archive names. First name is the real one, the rest are links.
18443 # The last name is the one that the linker finds with -lNAME.
18444 library_names_spec=$lt_library_names_spec
18446 # The coded name of the library, if different from the real name.
18447 soname_spec=$lt_soname_spec
18449 # Commands used to build and install an old-style archive.
18451 old_archive_cmds=$lt_old_archive_cmds_RC
18452 old_postinstall_cmds=$lt_old_postinstall_cmds
18453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18455 # Create an old-style archive from a shared archive.
18456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18458 # Create a temporary old-style archive to link instead of a shared archive.
18459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18461 # Commands used to build and install a shared archive.
18462 archive_cmds=$lt_archive_cmds_RC
18463 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18464 postinstall_cmds=$lt_postinstall_cmds
18465 postuninstall_cmds=$lt_postuninstall_cmds
18467 # Commands used to build a loadable module (assumed same as above if empty)
18468 module_cmds=$lt_module_cmds_RC
18469 module_expsym_cmds=$lt_module_expsym_cmds_RC
18471 # Commands to strip libraries.
18472 old_striplib=$lt_old_striplib
18473 striplib=$lt_striplib
18475 # Dependencies to place before the objects being linked to create a
18477 predep_objects=$lt_predep_objects_RC
18479 # Dependencies to place after the objects being linked to create a
18481 postdep_objects=$lt_postdep_objects_RC
18483 # Dependencies to place before the objects being linked to create a
18485 predeps=$lt_predeps_RC
18487 # Dependencies to place after the objects being linked to create a
18489 postdeps=$lt_postdeps_RC
18491 # The library search path used internally by the compiler when linking
18492 # a shared library.
18493 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18495 # Method to check whether dependent libraries are shared objects.
18496 deplibs_check_method=$lt_deplibs_check_method
18498 # Command to use when deplibs_check_method == file_magic.
18499 file_magic_cmd=$lt_file_magic_cmd
18501 # Flag that allows shared libraries with undefined symbols to be built.
18502 allow_undefined_flag=$lt_allow_undefined_flag_RC
18504 # Flag that forces no undefined symbols.
18505 no_undefined_flag=$lt_no_undefined_flag_RC
18507 # Commands used to finish a libtool library installation in a directory.
18508 finish_cmds=$lt_finish_cmds
18510 # Same as above, but a single script fragment to be evaled but not shown.
18511 finish_eval=$lt_finish_eval
18513 # Take the output of nm and produce a listing of raw symbols and C names.
18514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18516 # Transform the output of nm in a proper C declaration
18517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18519 # Transform the output of nm in a C name address pair
18520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18522 # This is the shared library runtime path variable.
18523 runpath_var=$runpath_var
18525 # This is the shared library path variable.
18526 shlibpath_var=$shlibpath_var
18528 # Is shlibpath searched before the hard-coded library search path?
18529 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18531 # How to hardcode a shared library path into an executable.
18532 hardcode_action=$hardcode_action_RC
18534 # Whether we should hardcode library paths into libraries.
18535 hardcode_into_libs=$hardcode_into_libs
18537 # Flag to hardcode \$libdir into a binary during linking.
18538 # This must work even if \$libdir does not exist.
18539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18541 # If ld is used when linking, flag to hardcode \$libdir into
18542 # a binary during linking. This must work even if \$libdir does
18544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18546 # Whether we need a single -rpath flag with a separated argument.
18547 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18549 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18550 # resulting binary.
18551 hardcode_direct=$hardcode_direct_RC
18553 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18554 # resulting binary.
18555 hardcode_minus_L=$hardcode_minus_L_RC
18557 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18558 # the resulting binary.
18559 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18561 # Set to yes if building a shared library automatically hardcodes DIR into the library
18562 # and all subsequent libraries and executables linked against it.
18563 hardcode_automatic=$hardcode_automatic_RC
18565 # Variables whose values should be saved in libtool wrapper scripts and
18566 # restored at relink time.
18567 variables_saved_for_relink="$variables_saved_for_relink"
18569 # Whether libtool must link a program against all its dependency libraries.
18570 link_all_deplibs=$link_all_deplibs_RC
18572 # Compile-time system search path for libraries
18573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18575 # Run-time system search path for libraries
18576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18578 # Fix the shell variable \$srcfile for the compiler.
18579 fix_srcfile_path="$fix_srcfile_path_RC"
18581 # Set to yes if exported symbols are required.
18582 always_export_symbols=$always_export_symbols_RC
18584 # The commands to list exported symbols.
18585 export_symbols_cmds=$lt_export_symbols_cmds_RC
18587 # The commands to extract the exported symbol list from a shared archive.
18588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18590 # Symbols that should not be listed in the preloaded symbols.
18591 exclude_expsyms=$lt_exclude_expsyms_RC
18593 # Symbols that must always be exported.
18594 include_expsyms=$lt_include_expsyms_RC
18596 # ### END LIBTOOL TAG CONFIG: $tagname
18602 # If there is no Makefile yet, we rely on a make rule to execute
18603 # `config.status --recheck' to rerun these tests and create the
18604 # libtool script then.
18605 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18606 if test -f "$ltmain_in"; then
18607 test -f Makefile && make "$ltmain"
18613 ac_cpp='$CPP $CPPFLAGS'
18614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18624 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18625 { (exit 1); exit 1; }; }
18629 # Append the new tag name to the list of available tags.
18630 if test -n "$tagname" ; then
18631 available_tags="$available_tags $tagname"
18637 # Now substitute the updated list of available tags.
18638 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18639 mv "${ofile}T" "$ofile"
18643 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18644 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18645 { (exit 1); exit 1; }; }
18651 # This can be used to rebuild libtool when needed
18652 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18654 # Always use our own libtool.
18655 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18657 # Prevent multiple expansion
18678 am__api_version="1.8"
18679 # Find a good install program. We prefer a C program (faster),
18680 # so one script is as good as another. But avoid the broken or
18681 # incompatible versions:
18682 # SysV /etc/install, /usr/sbin/install
18683 # SunOS /usr/etc/install
18684 # IRIX /sbin/install
18686 # AmigaOS /C/install, which installs bootblocks on floppy discs
18687 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18688 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18689 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18690 # OS/2's system install, which has a completely different semantic
18691 # ./install, which can be erroneously created by make from ./install.sh.
18692 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18693 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18694 if test -z "$INSTALL"; then
18695 if test "${ac_cv_path_install+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18699 for as_dir in $PATH
18702 test -z "$as_dir" && as_dir=.
18703 # Account for people who put trailing slashes in PATH elements.
18705 ./ | .// | /cC/* | \
18706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18710 # OSF1 and SCO ODT 3.0 have their own names for install.
18711 # Don't use installbsd from OSF since it installs stuff as root
18713 for ac_prog in ginstall scoinst install; do
18714 for ac_exec_ext in '' $ac_executable_extensions; do
18715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18716 if test $ac_prog = install &&
18717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18718 # AIX install. It has an incompatible calling convention.
18720 elif test $ac_prog = install &&
18721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18722 # program-specific install script used by HP pwplus--don't use.
18725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18737 if test "${ac_cv_path_install+set}" = set; then
18738 INSTALL=$ac_cv_path_install
18740 # As a last resort, use the slow shell script. We don't cache a
18741 # path for INSTALL within a source directory, because that will
18742 # break other packages using the cache if that directory is
18743 # removed, or if the path is relative.
18744 INSTALL=$ac_install_sh
18747 echo "$as_me:$LINENO: result: $INSTALL" >&5
18748 echo "${ECHO_T}$INSTALL" >&6
18750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18751 # It thinks the first close brace ends the variable substitution.
18752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18758 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18759 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
18762 echo timestamp > conftest.file
18763 # Do `set' in a subshell so we don't clobber the current shell's
18764 # arguments. Must try -L first in case configure is actually a
18765 # symlink; some systems play weird games with the mod time of symlinks
18766 # (eg FreeBSD returns the mod time of the symlink's containing
18769 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18770 if test "$*" = "X"; then
18772 set X `ls -t $srcdir/configure conftest.file`
18774 rm -f conftest.file
18775 if test "$*" != "X $srcdir/configure conftest.file" \
18776 && test "$*" != "X conftest.file $srcdir/configure"; then
18778 # If neither matched, then we have a broken ls. This can happen
18779 # if, for instance, CONFIG_SHELL is bash and it inherits a
18780 # broken ls alias from the environment. This has actually
18781 # happened. Such a system could not be considered "sane".
18782 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
18783 alias in your environment" >&5
18784 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
18785 alias in your environment" >&2;}
18786 { (exit 1); exit 1; }; }
18789 test "$2" = conftest.file
18795 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18796 Check your system clock" >&5
18797 echo "$as_me: error: newly created file is older than distributed files!
18798 Check your system clock" >&2;}
18799 { (exit 1); exit 1; }; }
18801 echo "$as_me:$LINENO: result: yes" >&5
18802 echo "${ECHO_T}yes" >&6
18803 test "$program_prefix" != NONE &&
18804 program_transform_name="s,^,$program_prefix,;$program_transform_name"
18805 # Use a double $ so make ignores it.
18806 test "$program_suffix" != NONE &&
18807 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
18808 # Double any \ or $. echo might interpret backslashes.
18809 # By default was `s,x,x', remove it if useless.
18810 cat <<\_ACEOF >conftest.sed
18811 s/[\\$]/&&/g;s/;s,x,x,$//
18813 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18816 # expand $ac_aux_dir to an absolute path
18817 am_aux_dir=`cd $ac_aux_dir && pwd`
18819 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18820 # Use eval to expand $SHELL
18821 if eval "$MISSING --run true"; then
18822 am_missing_run="$MISSING --run "
18825 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18826 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18829 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
18830 # Keeping the `.' argument allows $(mkdir_p) to be used without
18831 # argument. Indeed, we sometimes output rules like
18832 # $(mkdir_p) $(somedir)
18833 # where $(somedir) is conditionally defined.
18834 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
18835 # expensive solution, as it forces Make to start a sub-shell.)
18836 mkdir_p='mkdir -p -- .'
18838 # On NextStep and OpenStep, the `mkdir' command does not
18839 # recognize any option. It will interpret all options as
18840 # directories to create, and then abort because `.' already
18842 for d in ./-p ./--version;
18844 test -d $d && rmdir $d
18846 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
18847 if test -f "$ac_aux_dir/mkinstalldirs"; then
18848 mkdir_p='$(mkinstalldirs)'
18850 mkdir_p='$(install_sh) -d'
18854 for ac_prog in gawk mawk nawk awk
18856 # Extract the first word of "$ac_prog", so it can be a program name with args.
18857 set dummy $ac_prog; ac_word=$2
18858 echo "$as_me:$LINENO: checking for $ac_word" >&5
18859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18860 if test "${ac_cv_prog_AWK+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 if test -n "$AWK"; then
18864 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18867 for as_dir in $PATH
18870 test -z "$as_dir" && as_dir=.
18871 for ac_exec_ext in '' $ac_executable_extensions; do
18872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18873 ac_cv_prog_AWK="$ac_prog"
18874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18882 AWK=$ac_cv_prog_AWK
18883 if test -n "$AWK"; then
18884 echo "$as_me:$LINENO: result: $AWK" >&5
18885 echo "${ECHO_T}$AWK" >&6
18887 echo "$as_me:$LINENO: result: no" >&5
18888 echo "${ECHO_T}no" >&6
18891 test -n "$AWK" && break
18894 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18895 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18896 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18897 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 cat >conftest.make <<\_ACEOF
18902 @echo 'ac_maketemp="$(MAKE)"'
18904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18905 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18906 if test -n "$ac_maketemp"; then
18907 eval ac_cv_prog_make_${ac_make}_set=yes
18909 eval ac_cv_prog_make_${ac_make}_set=no
18911 rm -f conftest.make
18913 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18914 echo "$as_me:$LINENO: result: yes" >&5
18915 echo "${ECHO_T}yes" >&6
18918 echo "$as_me:$LINENO: result: no" >&5
18919 echo "${ECHO_T}no" >&6
18920 SET_MAKE="MAKE=${MAKE-make}"
18923 rm -rf .tst 2>/dev/null
18924 mkdir .tst 2>/dev/null
18925 if test -d .tst; then
18930 rmdir .tst 2>/dev/null
18932 DEPDIR="${am__leading_dot}deps"
18934 ac_config_commands="$ac_config_commands depfiles"
18937 am_make=${MAKE-make}
18938 cat > confinc << 'END'
18943 # If we don't find an include directive, just comment out the code.
18944 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18945 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
18949 # First try GNU make style include.
18950 echo "include confinc" > confmf
18951 # We grep out `Entering directory' and `Leaving directory'
18952 # messages which can occur if `w' ends up in MAKEFLAGS.
18953 # In particular we don't look at `^make:' because GNU make might
18954 # be invoked under some other name (usually "gmake"), in which
18955 # case it prints its new name instead of `make'.
18956 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18957 am__include=include
18961 # Now try BSD make style include.
18962 if test "$am__include" = "#"; then
18963 echo '.include "confinc"' > confmf
18964 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18965 am__include=.include
18972 echo "$as_me:$LINENO: result: $_am_result" >&5
18973 echo "${ECHO_T}$_am_result" >&6
18974 rm -f confinc confmf
18976 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
18977 if test "${enable_dependency_tracking+set}" = set; then
18978 enableval="$enable_dependency_tracking"
18981 if test "x$enable_dependency_tracking" != xno; then
18982 am_depcomp="$ac_aux_dir/depcomp"
18987 if test "x$enable_dependency_tracking" != xno; then
18997 # test to see if srcdir already configured
18998 if test "`cd $srcdir && pwd`" != "`pwd`" &&
18999 test -f $srcdir/config.status; then
19000 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19001 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19002 { (exit 1); exit 1; }; }
19005 # test whether we have cygpath
19006 if test -z "$CYGPATH_W"; then
19007 if (cygpath --version) >/dev/null 2>/dev/null; then
19008 CYGPATH_W='cygpath -w'
19015 # Define the identity of the package.
19020 cat >>confdefs.h <<_ACEOF
19021 #define PACKAGE "$PACKAGE"
19025 cat >>confdefs.h <<_ACEOF
19026 #define VERSION "$VERSION"
19029 # Some tools Automake needs.
19031 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19034 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19037 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19040 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19043 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19046 AMTAR=${AMTAR-"${am_missing_run}tar"}
19048 install_sh=${install_sh-"$am_aux_dir/install-sh"}
19050 # Installed binaries are usually stripped using `strip' when the user
19051 # run `make install-strip'. However `strip' might not be the right
19052 # tool to use in cross-compilation environments, therefore Automake
19053 # will honor the `STRIP' environment variable to overrule this program.
19054 if test "$cross_compiling" != no; then
19055 if test -n "$ac_tool_prefix"; then
19056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19057 set dummy ${ac_tool_prefix}strip; ac_word=$2
19058 echo "$as_me:$LINENO: checking for $ac_word" >&5
19059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19060 if test "${ac_cv_prog_STRIP+set}" = set; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 if test -n "$STRIP"; then
19064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067 for as_dir in $PATH
19070 test -z "$as_dir" && as_dir=.
19071 for ac_exec_ext in '' $ac_executable_extensions; do
19072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19082 STRIP=$ac_cv_prog_STRIP
19083 if test -n "$STRIP"; then
19084 echo "$as_me:$LINENO: result: $STRIP" >&5
19085 echo "${ECHO_T}$STRIP" >&6
19087 echo "$as_me:$LINENO: result: no" >&5
19088 echo "${ECHO_T}no" >&6
19092 if test -z "$ac_cv_prog_STRIP"; then
19094 # Extract the first word of "strip", so it can be a program name with args.
19095 set dummy strip; ac_word=$2
19096 echo "$as_me:$LINENO: checking for $ac_word" >&5
19097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 if test -n "$ac_ct_STRIP"; then
19102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19105 for as_dir in $PATH
19108 test -z "$as_dir" && as_dir=.
19109 for ac_exec_ext in '' $ac_executable_extensions; do
19110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19111 ac_cv_prog_ac_ct_STRIP="strip"
19112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19118 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
19121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19122 if test -n "$ac_ct_STRIP"; then
19123 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19124 echo "${ECHO_T}$ac_ct_STRIP" >&6
19126 echo "$as_me:$LINENO: result: no" >&5
19127 echo "${ECHO_T}no" >&6
19132 STRIP="$ac_cv_prog_STRIP"
19136 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
19138 # We need awk for the "check" target. The system "awk" is bad on
19142 depcc="$CC" am_compiler_list=
19144 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19145 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19146 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19150 # We make a subdir and do the tests there. Otherwise we can end up
19151 # making bogus files that we don't know about and never remove. For
19152 # instance it was reported that on HP-UX the gcc test will end up
19153 # making a dummy file named `D' -- because `-MD' means `put the output
19156 # Copy depcomp to subdir because otherwise we won't find it if we're
19157 # using a relative directory.
19158 cp "$am_depcomp" conftest.dir
19160 # We will build objects and dependencies in a subdirectory because
19161 # it helps to detect inapplicable dependency modes. For instance
19162 # both Tru64's cc and ICC support -MD to output dependencies as a
19163 # side effect of compilation, but ICC will put the dependencies in
19164 # the current directory while Tru64 will put them in the object
19168 am_cv_CC_dependencies_compiler_type=none
19169 if test "$am_compiler_list" = ""; then
19170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19172 for depmode in $am_compiler_list; do
19173 # Setup a source with many dependencies, because some compilers
19174 # like to wrap large dependency lists on column 80 (with \), and
19175 # we should not choose a depcomp mode which is confused by this.
19177 # We need to recreate these files for each test, as the compiler may
19178 # overwrite some of them when testing with obscure command lines.
19179 # This happens at least with the AIX C compiler.
19181 for i in 1 2 3 4 5 6; do
19182 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19183 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19184 # Solaris 8's {/usr,}/bin/sh.
19185 touch sub/conftst$i.h
19187 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19191 # after this tag, mechanisms are not by side-effect, so they'll
19192 # only be used when explicitly requested
19193 if test "x$enable_dependency_tracking" = xyes; then
19201 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19202 # mode. It turns out that the SunPro C++ compiler does not properly
19203 # handle `-M -o', and we need to detect this.
19204 if depmode=$depmode \
19205 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19206 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19207 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19208 >/dev/null 2>conftest.err &&
19209 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19210 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19211 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19212 # icc doesn't choke on unknown options, it will just issue warnings
19213 # or remarks (even with -Werror). So we grep stderr for any message
19214 # that says an option was ignored or not supported.
19215 # When given -MP, icc 7.0 and 7.1 complain thusly:
19216 # icc: Command line warning: ignoring option '-M'; no argument required
19217 # The diagnosis changed in icc 8.0:
19218 # icc: Command line remark: option '-MP' not supported
19219 if (grep 'ignoring option' conftest.err ||
19220 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19221 am_cv_CC_dependencies_compiler_type=$depmode
19228 rm -rf conftest.dir
19230 am_cv_CC_dependencies_compiler_type=none
19234 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19235 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19236 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19241 test "x$enable_dependency_tracking" != xno \
19242 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19243 am__fastdepCC_TRUE=
19244 am__fastdepCC_FALSE='#'
19246 am__fastdepCC_TRUE='#'
19247 am__fastdepCC_FALSE=
19251 depcc="$CXX" am_compiler_list=
19253 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19254 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19255 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19259 # We make a subdir and do the tests there. Otherwise we can end up
19260 # making bogus files that we don't know about and never remove. For
19261 # instance it was reported that on HP-UX the gcc test will end up
19262 # making a dummy file named `D' -- because `-MD' means `put the output
19265 # Copy depcomp to subdir because otherwise we won't find it if we're
19266 # using a relative directory.
19267 cp "$am_depcomp" conftest.dir
19269 # We will build objects and dependencies in a subdirectory because
19270 # it helps to detect inapplicable dependency modes. For instance
19271 # both Tru64's cc and ICC support -MD to output dependencies as a
19272 # side effect of compilation, but ICC will put the dependencies in
19273 # the current directory while Tru64 will put them in the object
19277 am_cv_CXX_dependencies_compiler_type=none
19278 if test "$am_compiler_list" = ""; then
19279 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19281 for depmode in $am_compiler_list; do
19282 # Setup a source with many dependencies, because some compilers
19283 # like to wrap large dependency lists on column 80 (with \), and
19284 # we should not choose a depcomp mode which is confused by this.
19286 # We need to recreate these files for each test, as the compiler may
19287 # overwrite some of them when testing with obscure command lines.
19288 # This happens at least with the AIX C compiler.
19290 for i in 1 2 3 4 5 6; do
19291 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19292 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19293 # Solaris 8's {/usr,}/bin/sh.
19294 touch sub/conftst$i.h
19296 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19300 # after this tag, mechanisms are not by side-effect, so they'll
19301 # only be used when explicitly requested
19302 if test "x$enable_dependency_tracking" = xyes; then
19310 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19311 # mode. It turns out that the SunPro C++ compiler does not properly
19312 # handle `-M -o', and we need to detect this.
19313 if depmode=$depmode \
19314 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19315 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19316 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19317 >/dev/null 2>conftest.err &&
19318 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19319 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19320 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19321 # icc doesn't choke on unknown options, it will just issue warnings
19322 # or remarks (even with -Werror). So we grep stderr for any message
19323 # that says an option was ignored or not supported.
19324 # When given -MP, icc 7.0 and 7.1 complain thusly:
19325 # icc: Command line warning: ignoring option '-M'; no argument required
19326 # The diagnosis changed in icc 8.0:
19327 # icc: Command line remark: option '-MP' not supported
19328 if (grep 'ignoring option' conftest.err ||
19329 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19330 am_cv_CXX_dependencies_compiler_type=$depmode
19337 rm -rf conftest.dir
19339 am_cv_CXX_dependencies_compiler_type=none
19343 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19344 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19345 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19350 test "x$enable_dependency_tracking" != xno \
19351 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19352 am__fastdepCXX_TRUE=
19353 am__fastdepCXX_FALSE='#'
19355 am__fastdepCXX_TRUE='#'
19356 am__fastdepCXX_FALSE=
19365 cat >>confdefs.h <<_ACEOF
19366 #define LIB_MAJ $LIB_MAJ
19370 echo "$as_me:$LINENO: checking whether loading unversioned modules support is enabled" >&5
19371 echo $ECHO_N "checking whether loading unversioned modules support is enabled... $ECHO_C" >&6
19372 # Check whether --enable-unversioned-modules or --disable-unversioned-modules was given.
19373 if test "${enable_unversioned_modules+set}" = set; then
19374 enableval="$enable_unversioned_modules"
19375 if test "$enableval" = "no"; then
19377 cat >>confdefs.h <<\_ACEOF
19378 #define DISABLE_UNVERSIONED_MODULES 1
19382 echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6
19385 echo "$as_me:$LINENO: result: yes" >&5
19386 echo "${ECHO_T}yes" >&6
19389 echo "$as_me:$LINENO: checking for modules directory support" >&5
19390 echo $ECHO_N "checking for modules directory support... $ECHO_C" >&6
19392 # Check whether --with-modules-dir or --without-modules-dir was given.
19393 if test "${with_modules_dir+set}" = set; then
19394 withval="$with_modules_dir"
19395 if test "$withval" != "no"; then
19396 OPENPAM_MODULES_DIR="$withval"
19398 cat >>confdefs.h <<_ACEOF
19399 #define OPENPAM_MODULES_DIR "$OPENPAM_MODULES_DIR"
19402 echo "$as_me:$LINENO: result: $OPENPAM_MODULES_DIR" >&5
19403 echo "${ECHO_T}$OPENPAM_MODULES_DIR" >&6
19405 OPENPAM_MODULES_DIR="$libdir"
19406 echo "$as_me:$LINENO: result: no" >&5
19407 echo "${ECHO_T}no" >&6
19410 OPENPAM_MODULES_DIR="$libdir"
19411 echo "$as_me:$LINENO: result: no" >&5
19412 echo "${ECHO_T}no" >&6
19416 echo "$as_me:$LINENO: checking whether to build example version of /bin/su" >&5
19417 echo $ECHO_N "checking whether to build example version of /bin/su... $ECHO_C" >&6
19419 # Check whether --with-pam-su or --without-pam-su was given.
19420 if test "${with_pam_su+set}" = set; then
19421 withval="$with_pam_su"
19426 echo "$as_me:$LINENO: result: $with_pam_su" >&5
19427 echo "${ECHO_T}$with_pam_su" >&6
19429 echo "$as_me:$LINENO: checking whether to build example version of pam_unix.so" >&5
19430 echo $ECHO_N "checking whether to build example version of pam_unix.so... $ECHO_C" >&6
19432 # Check whether --with-pam-unix or --without-pam-unix was given.
19433 if test "${with_pam_unix+set}" = set; then
19434 withval="$with_pam_unix"
19439 echo "$as_me:$LINENO: result: $with_pam_unix" >&5
19440 echo "${ECHO_T}$with_pam_unix" >&6
19444 if test "x$with_pam_su" = "xyes"; then
19446 WITH_PAM_SU_FALSE='#'
19448 WITH_PAM_SU_TRUE='#'
19454 if test "x$with_pam_unix" = "xyes"; then
19455 WITH_PAM_UNIX_TRUE=
19456 WITH_PAM_UNIX_FALSE='#'
19458 WITH_PAM_UNIX_TRUE='#'
19459 WITH_PAM_UNIX_FALSE=
19463 # Find a good install program. We prefer a C program (faster),
19464 # so one script is as good as another. But avoid the broken or
19465 # incompatible versions:
19466 # SysV /etc/install, /usr/sbin/install
19467 # SunOS /usr/etc/install
19468 # IRIX /sbin/install
19470 # AmigaOS /C/install, which installs bootblocks on floppy discs
19471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19474 # OS/2's system install, which has a completely different semantic
19475 # ./install, which can be erroneously created by make from ./install.sh.
19476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19478 if test -z "$INSTALL"; then
19479 if test "${ac_cv_path_install+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19483 for as_dir in $PATH
19486 test -z "$as_dir" && as_dir=.
19487 # Account for people who put trailing slashes in PATH elements.
19489 ./ | .// | /cC/* | \
19490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19491 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19494 # OSF1 and SCO ODT 3.0 have their own names for install.
19495 # Don't use installbsd from OSF since it installs stuff as root
19497 for ac_prog in ginstall scoinst install; do
19498 for ac_exec_ext in '' $ac_executable_extensions; do
19499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19500 if test $ac_prog = install &&
19501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19502 # AIX install. It has an incompatible calling convention.
19504 elif test $ac_prog = install &&
19505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19506 # program-specific install script used by HP pwplus--don't use.
19509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19521 if test "${ac_cv_path_install+set}" = set; then
19522 INSTALL=$ac_cv_path_install
19524 # As a last resort, use the slow shell script. We don't cache a
19525 # path for INSTALL within a source directory, because that will
19526 # break other packages using the cache if that directory is
19527 # removed, or if the path is relative.
19528 INSTALL=$ac_install_sh
19531 echo "$as_me:$LINENO: result: $INSTALL" >&5
19532 echo "${ECHO_T}$INSTALL" >&6
19534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19535 # It thinks the first close brace ends the variable substitution.
19536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19544 for ac_header in crypt.h
19546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19548 echo "$as_me:$LINENO: checking for $ac_header" >&5
19549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19556 # Is the header compilable?
19557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 $ac_includes_default
19566 #include <$ac_header>
19568 rm -f conftest.$ac_objext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19570 (eval $ac_compile) 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_c_werror_flag"
19578 || test ! -s conftest.err'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest.$ac_objext'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 ac_header_compiler=yes
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_header_compiler=no
19597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19599 echo "${ECHO_T}$ac_header_compiler" >&6
19601 # Is the header present?
19602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 #include <$ac_header>
19612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19615 grep -v '^ *+' conftest.er1 >conftest.err
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } >/dev/null; then
19620 if test -s conftest.err; then
19621 ac_cpp_err=$ac_c_preproc_warn_flag
19622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19629 if test -z "$ac_cpp_err"; then
19630 ac_header_preproc=yes
19632 echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635 ac_header_preproc=no
19637 rm -f conftest.err conftest.$ac_ext
19638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19639 echo "${ECHO_T}$ac_header_preproc" >&6
19641 # So? What about this header?
19642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19648 ac_header_preproc=yes
19651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19665 ## ------------------------------ ##
19666 ## Report this to des@freebsd.org ##
19667 ## ------------------------------ ##
19670 sed "s/^/$as_me: WARNING: /" >&2
19673 echo "$as_me:$LINENO: checking for $ac_header" >&5
19674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 eval "$as_ac_Header=\$ac_header_preproc"
19680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19685 cat >>confdefs.h <<_ACEOF
19686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19695 for ac_func in fpurge
19697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19698 echo "$as_me:$LINENO: checking for $ac_func" >&5
19699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19700 if eval "test \"\${$as_ac_var+set}\" = set"; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 cat >conftest.$ac_ext <<_ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19711 #define $ac_func innocuous_$ac_func
19713 /* System header to define __stub macros and hopefully few prototypes,
19714 which can conflict with char $ac_func (); below.
19715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19716 <limits.h> exists even on freestanding compilers. */
19719 # include <limits.h>
19721 # include <assert.h>
19726 /* Override any gcc2 internal prototype to avoid an error. */
19731 /* We use char because int might match the return type of a gcc2
19732 builtin and then its argument prototype would still apply. */
19734 /* The GNU C library defines this for functions which it implements
19735 to always fail with ENOSYS. Some functions are actually named
19736 something starting with __ and the normal name is an alias. */
19737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19740 char (*f) () = $ac_func;
19749 return f != $ac_func;
19754 rm -f conftest.$ac_objext conftest$ac_exeext
19755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19756 (eval $ac_link) 2>conftest.er1
19758 grep -v '^ *+' conftest.er1 >conftest.err
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
19763 { ac_try='test -z "$ac_c_werror_flag"
19764 || test ! -s conftest.err'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; } &&
19770 { ac_try='test -s conftest$ac_exeext'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; }; then
19776 eval "$as_ac_var=yes"
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19781 eval "$as_ac_var=no"
19783 rm -f conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
19786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19788 if test `eval echo '${'$as_ac_var'}'` = yes; then
19789 cat >>confdefs.h <<_ACEOF
19790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19798 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19799 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19800 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS=$LIBS
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any gcc2 internal prototype to avoid an error. */
19816 /* We use char because int might match the return type of a gcc2
19817 builtin and then its argument prototype would still apply. */
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19829 (eval $ac_link) 2>conftest.er1
19831 grep -v '^ *+' conftest.er1 >conftest.err
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -z "$ac_c_werror_flag"
19837 || test ! -s conftest.err'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest$ac_exeext'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_lib_dl_dlopen=yes
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_cv_lib_dl_dlopen=no
19856 rm -f conftest.err conftest.$ac_objext \
19857 conftest$ac_exeext conftest.$ac_ext
19858 LIBS=$ac_check_lib_save_LIBS
19860 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19861 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19862 if test $ac_cv_lib_dl_dlopen = yes; then
19869 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19870 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19871 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 ac_check_lib_save_LIBS=$LIBS
19875 LIBS="-lcrypt $LIBS"
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19883 /* Override any gcc2 internal prototype to avoid an error. */
19887 /* We use char because int might match the return type of a gcc2
19888 builtin and then its argument prototype would still apply. */
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900 (eval $ac_link) 2>conftest.er1
19902 grep -v '^ *+' conftest.er1 >conftest.err
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -z "$ac_c_werror_flag"
19908 || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest$ac_exeext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_lib_crypt_crypt=yes
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19925 ac_cv_lib_crypt_crypt=no
19927 rm -f conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929 LIBS=$ac_check_lib_save_LIBS
19931 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19932 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19933 if test $ac_cv_lib_crypt_crypt = yes; then
19939 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19942 CFLAGS="$CFLAGS -Werror"
19945 ac_config_files="$ac_config_files bin/Makefile bin/su/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_unix/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile doc/Makefile doc/man/Makefile Makefile"
19947 cat >confcache <<\_ACEOF
19948 # This file is a shell script that caches the results of configure
19949 # tests run on this system so they can be shared between configure
19950 # scripts and configure runs, see configure's option --config-cache.
19951 # It is not useful on other systems. If it contains results you don't
19952 # want to keep, you may remove or edit it.
19954 # config.status only pays attention to the cache file if you give it
19955 # the --recheck option to rerun configure.
19957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19959 # following values.
19963 # The following way of writing the cache mishandles newlines in values,
19964 # but we know of no workaround that is simple, portable, and efficient.
19965 # So, don't put newlines in cache variables' values.
19966 # Ultrix sh set writes to stderr and can't be redirected directly,
19967 # and sets the high bit in the cache file unless we assign to the vars.
19970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19972 # `set' does not quote correctly, so add quotes (double-quote
19973 # substitution turns \\\\ into \\, and sed turns \\ into \).
19976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19979 # `set' quotes correctly as required by POSIX, so do not add quotes.
19981 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19990 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19992 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19993 if test -w $cache_file; then
19994 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19995 cat confcache >$cache_file
19997 echo "not updating unwritable cache $cache_file"
20002 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20003 # Let make expand exec_prefix.
20004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20008 # trailing colons and then remove the whole line if VPATH becomes empty
20009 # (actually we leave an empty line to preserve line numbers).
20010 if test "x$srcdir" = x.; then
20011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20012 s/:*\$(srcdir):*/:/;
20013 s/:*\${srcdir}:*/:/;
20015 s/^\([^=]*=[ ]*\):*/\1/;
20021 DEFS=-DHAVE_CONFIG_H
20025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20026 # 1. Remove the extension, and $U if already installed.
20027 ac_i=`echo "$ac_i" |
20028 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20030 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20031 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20033 LIBOBJS=$ac_libobjs
20035 LTLIBOBJS=$ac_ltlibobjs
20038 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20039 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20040 Usually this means the macro was only invoked conditionally." >&5
20041 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20042 Usually this means the macro was only invoked conditionally." >&2;}
20043 { (exit 1); exit 1; }; }
20045 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20046 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20047 Usually this means the macro was only invoked conditionally." >&5
20048 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20049 Usually this means the macro was only invoked conditionally." >&2;}
20050 { (exit 1); exit 1; }; }
20052 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20053 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20054 Usually this means the macro was only invoked conditionally." >&5
20055 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20056 Usually this means the macro was only invoked conditionally." >&2;}
20057 { (exit 1); exit 1; }; }
20059 if test -z "${WITH_PAM_SU_TRUE}" && test -z "${WITH_PAM_SU_FALSE}"; then
20060 { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_SU\" was never defined.
20061 Usually this means the macro was only invoked conditionally." >&5
20062 echo "$as_me: error: conditional \"WITH_PAM_SU\" was never defined.
20063 Usually this means the macro was only invoked conditionally." >&2;}
20064 { (exit 1); exit 1; }; }
20066 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
20067 { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_UNIX\" was never defined.
20068 Usually this means the macro was only invoked conditionally." >&5
20069 echo "$as_me: error: conditional \"WITH_PAM_UNIX\" was never defined.
20070 Usually this means the macro was only invoked conditionally." >&2;}
20071 { (exit 1); exit 1; }; }
20074 : ${CONFIG_STATUS=./config.status}
20075 ac_clean_files_save=$ac_clean_files
20076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20077 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20078 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20079 cat >$CONFIG_STATUS <<_ACEOF
20081 # Generated by $as_me.
20082 # Run this file to recreate the current configuration.
20083 # Compiler output produced by configure, useful for debugging
20084 # configure, is in config.log if it exists.
20087 ac_cs_recheck=false
20089 SHELL=\${CONFIG_SHELL-$SHELL}
20092 cat >>$CONFIG_STATUS <<\_ACEOF
20093 ## --------------------- ##
20094 ## M4sh Initialization. ##
20095 ## --------------------- ##
20097 # Be Bourne compatible
20098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20101 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20102 # is contrary to our usage. Disable this feature.
20103 alias -g '${1+"$@"}'='"$@"'
20104 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20107 DUALCASE=1; export DUALCASE # for MKS sh
20109 # Support unset when possible.
20110 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20117 # Work around bugs in pre-3.0 UWIN ksh.
20118 $as_unset ENV MAIL MAILPATH
20125 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20126 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20127 LC_TELEPHONE LC_TIME
20129 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20130 eval $as_var=C; export $as_var
20136 # Required to use basename.
20137 if expr a : '\(a\)' >/dev/null 2>&1; then
20143 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20144 as_basename=basename
20150 # Name of the executable.
20151 as_me=`$as_basename "$0" ||
20152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20153 X"$0" : 'X\(//\)$' \| \
20154 X"$0" : 'X\(/\)$' \| \
20155 . : '\(.\)' 2>/dev/null ||
20157 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20158 /^X\/\(\/\/\)$/{ s//\1/; q; }
20159 /^X\/\(\/\).*/{ s//\1/; q; }
20163 # PATH needs CR, and LINENO needs CR and PATH.
20164 # Avoid depending upon Character Ranges.
20165 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20166 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20167 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20168 as_cr_digits='0123456789'
20169 as_cr_alnum=$as_cr_Letters$as_cr_digits
20171 # The user is always right.
20172 if test "${PATH_SEPARATOR+set}" != set; then
20173 echo "#! /bin/sh" >conf$$.sh
20174 echo "exit 0" >>conf$$.sh
20176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20185 as_lineno_1=$LINENO
20186 as_lineno_2=$LINENO
20187 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20188 test "x$as_lineno_1" != "x$as_lineno_2" &&
20189 test "x$as_lineno_3" = "x$as_lineno_2" || {
20190 # Find who we are. Look in the path if we contain no path at all
20193 *[\\/]* ) as_myself=$0 ;;
20194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20195 for as_dir in $PATH
20198 test -z "$as_dir" && as_dir=.
20199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20204 # We did not find ourselves, most probably we were run as `sh COMMAND'
20205 # in which case we are not to be found in the path.
20206 if test "x$as_myself" = x; then
20209 if test ! -f "$as_myself"; then
20210 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20211 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20212 { (exit 1); exit 1; }; }
20214 case $CONFIG_SHELL in
20216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20220 test -z "$as_dir" && as_dir=.
20221 for as_base in sh bash ksh sh5; do
20224 if ("$as_dir/$as_base" -c '
20225 as_lineno_1=$LINENO
20226 as_lineno_2=$LINENO
20227 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20228 test "x$as_lineno_1" != "x$as_lineno_2" &&
20229 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20230 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20231 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20232 CONFIG_SHELL=$as_dir/$as_base
20233 export CONFIG_SHELL
20234 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20242 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20243 # uniformly replaced by the line number. The first 'sed' inserts a
20244 # line-number line before each line; the second 'sed' does the real
20245 # work. The second script uses 'N' to pair each line-number line
20246 # with the numbered line, and appends trailing '-' during
20247 # substitution so that $LINENO is not a special case at line end.
20248 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20249 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20250 sed '=' <$as_myself |
20255 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20258 s,^['$as_cr_digits']*\n,,
20259 ' >$as_me.lineno &&
20260 chmod +x $as_me.lineno ||
20261 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20262 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20263 { (exit 1); exit 1; }; }
20265 # Don't try to exec as it changes $[0], causing all sort of problems
20266 # (the dirname of $[0] is not the place where we might find the
20267 # original and so on. Autoconf is especially sensible to this).
20269 # Exit status is that of the last command.
20274 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20275 *c*,-n*) ECHO_N= ECHO_C='
20277 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20278 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20281 if expr a : '\(a\)' >/dev/null 2>&1; then
20287 rm -f conf$$ conf$$.exe conf$$.file
20289 if ln -s conf$$.file conf$$ 2>/dev/null; then
20290 # We could just check for DJGPP; but this test a) works b) is more generic
20291 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20292 if test -f conf$$.exe; then
20293 # Don't use ln at all; we don't have any links
20298 elif ln conf$$.file conf$$ 2>/dev/null; then
20303 rm -f conf$$ conf$$.exe conf$$.file
20305 if mkdir -p . 2>/dev/null; then
20308 test -d ./-p && rmdir ./-p
20312 as_executable_p="test -f"
20314 # Sed expression to map a string onto a valid CPP name.
20315 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20317 # Sed expression to map a string onto a valid variable name.
20318 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20322 # We need space, tab and new line, in precisely that order.
20332 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20333 # report actual input values of CONFIG_FILES etc. instead of their
20334 # values after options handling. Logging --version etc. is OK.
20338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20339 ## Running $as_me. ##
20344 This file was extended by OpenPAM $as_me 20050201, which was
20345 generated by GNU Autoconf 2.59. Invocation command line was
20347 CONFIG_FILES = $CONFIG_FILES
20348 CONFIG_HEADERS = $CONFIG_HEADERS
20349 CONFIG_LINKS = $CONFIG_LINKS
20350 CONFIG_COMMANDS = $CONFIG_COMMANDS
20354 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20358 # Files that config.status was made for.
20359 if test -n "$ac_config_files"; then
20360 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20363 if test -n "$ac_config_headers"; then
20364 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20367 if test -n "$ac_config_links"; then
20368 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20371 if test -n "$ac_config_commands"; then
20372 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20375 cat >>$CONFIG_STATUS <<\_ACEOF
20378 \`$as_me' instantiates files from templates according to the
20379 current configuration.
20381 Usage: $0 [OPTIONS] [FILE]...
20383 -h, --help print this help, then exit
20384 -V, --version print version number, then exit
20385 -q, --quiet do not print progress messages
20386 -d, --debug don't remove temporary files
20387 --recheck update $as_me by reconfiguring in the same conditions
20388 --file=FILE[:TEMPLATE]
20389 instantiate the configuration file FILE
20390 --header=FILE[:TEMPLATE]
20391 instantiate the configuration header FILE
20393 Configuration files:
20396 Configuration headers:
20399 Configuration commands:
20402 Report bugs to <bug-autoconf@gnu.org>."
20405 cat >>$CONFIG_STATUS <<_ACEOF
20407 OpenPAM config.status 20050201
20408 configured by $0, generated by GNU Autoconf 2.59,
20409 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20411 Copyright (C) 2003 Free Software Foundation, Inc.
20412 This config.status script is free software; the Free Software Foundation
20413 gives unlimited permission to copy, distribute and modify it."
20418 cat >>$CONFIG_STATUS <<\_ACEOF
20419 # If no file are specified by the user, then we need to provide default
20420 # value. By we need to know if files were specified by the user.
20426 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20427 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20435 *) # This is not an option, so the user has probably given explicit
20438 ac_need_defaults=false;;
20442 # Handling of the options.
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20447 --version | --vers* | -V )
20448 echo "$ac_cs_version"; exit 0 ;;
20450 # Conflict between --help and --header
20451 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20452 Try \`$0 --help' for more information." >&5
20453 echo "$as_me: error: ambiguous option: $1
20454 Try \`$0 --help' for more information." >&2;}
20455 { (exit 1); exit 1; }; };;
20456 --help | --hel | -h )
20457 echo "$ac_cs_usage"; exit 0 ;;
20458 --debug | --d* | -d )
20460 --file | --fil | --fi | --f )
20462 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20463 ac_need_defaults=false;;
20464 --header | --heade | --head | --hea )
20466 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20467 ac_need_defaults=false;;
20468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20472 # This is an error.
20473 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20474 Try \`$0 --help' for more information." >&5
20475 echo "$as_me: error: unrecognized option: $1
20476 Try \`$0 --help' for more information." >&2;}
20477 { (exit 1); exit 1; }; } ;;
20479 *) ac_config_targets="$ac_config_targets $1" ;;
20485 ac_configure_extra_args=
20487 if $ac_cs_silent; then
20489 ac_configure_extra_args="$ac_configure_extra_args --silent"
20493 cat >>$CONFIG_STATUS <<_ACEOF
20494 if \$ac_cs_recheck; then
20495 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20496 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20501 cat >>$CONFIG_STATUS <<_ACEOF
20503 # INIT-COMMANDS section.
20506 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20512 cat >>$CONFIG_STATUS <<\_ACEOF
20513 for ac_config_target in $ac_config_targets
20515 case "$ac_config_target" in
20516 # Handling of arguments.
20517 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20518 "bin/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
20519 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20520 "include/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
20521 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20522 "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
20523 "modules/pam_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
20524 "modules/pam_deny/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
20525 "modules/pam_permit/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
20526 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20527 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20528 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20529 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20530 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20531 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20532 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20533 { (exit 1); exit 1; }; };;
20537 # If the user did not use the arguments to specify the items to instantiate,
20538 # then the envvar interface is used. Set only those that are not.
20539 # We use the long form for the default assignment because of an extremely
20540 # bizarre bug on SunOS 4.1.3.
20541 if $ac_need_defaults; then
20542 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20543 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20544 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20547 # Have a temporary directory for convenience. Make it in the build tree
20548 # simply because there is no reason to put it here, and in addition,
20549 # creating and moving files from /tmp can sometimes cause problems.
20550 # Create a temporary directory, and hook for its removal unless debugging.
20553 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20554 trap '{ (exit 1); exit 1; }' 1 2 13 15
20557 # Create a (secure) tmp directory for tmp files.
20560 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20561 test -n "$tmp" && test -d "$tmp"
20564 tmp=./confstat$$-$RANDOM
20565 (umask 077 && mkdir $tmp)
20568 echo "$me: cannot create a temporary directory in ." >&2
20569 { (exit 1); exit 1; }
20574 cat >>$CONFIG_STATUS <<_ACEOF
20577 # CONFIG_FILES section.
20580 # No need to generate the scripts if there are no CONFIG_FILES.
20581 # This happens for instance when ./config.status config.h
20582 if test -n "\$CONFIG_FILES"; then
20583 # Protect against being on the right side of a sed subst in config.status.
20584 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20585 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20586 s,@SHELL@,$SHELL,;t t
20587 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20588 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20589 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20590 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20591 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20592 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20593 s,@exec_prefix@,$exec_prefix,;t t
20594 s,@prefix@,$prefix,;t t
20595 s,@program_transform_name@,$program_transform_name,;t t
20596 s,@bindir@,$bindir,;t t
20597 s,@sbindir@,$sbindir,;t t
20598 s,@libexecdir@,$libexecdir,;t t
20599 s,@datadir@,$datadir,;t t
20600 s,@sysconfdir@,$sysconfdir,;t t
20601 s,@sharedstatedir@,$sharedstatedir,;t t
20602 s,@localstatedir@,$localstatedir,;t t
20603 s,@libdir@,$libdir,;t t
20604 s,@includedir@,$includedir,;t t
20605 s,@oldincludedir@,$oldincludedir,;t t
20606 s,@infodir@,$infodir,;t t
20607 s,@mandir@,$mandir,;t t
20608 s,@build_alias@,$build_alias,;t t
20609 s,@host_alias@,$host_alias,;t t
20610 s,@target_alias@,$target_alias,;t t
20611 s,@DEFS@,$DEFS,;t t
20612 s,@ECHO_C@,$ECHO_C,;t t
20613 s,@ECHO_N@,$ECHO_N,;t t
20614 s,@ECHO_T@,$ECHO_T,;t t
20615 s,@LIBS@,$LIBS,;t t
20616 s,@build@,$build,;t t
20617 s,@build_cpu@,$build_cpu,;t t
20618 s,@build_vendor@,$build_vendor,;t t
20619 s,@build_os@,$build_os,;t t
20620 s,@host@,$host,;t t
20621 s,@host_cpu@,$host_cpu,;t t
20622 s,@host_vendor@,$host_vendor,;t t
20623 s,@host_os@,$host_os,;t t
20624 s,@target@,$target,;t t
20625 s,@target_cpu@,$target_cpu,;t t
20626 s,@target_vendor@,$target_vendor,;t t
20627 s,@target_os@,$target_os,;t t
20629 s,@CFLAGS@,$CFLAGS,;t t
20630 s,@LDFLAGS@,$LDFLAGS,;t t
20631 s,@CPPFLAGS@,$CPPFLAGS,;t t
20632 s,@ac_ct_CC@,$ac_ct_CC,;t t
20633 s,@EXEEXT@,$EXEEXT,;t t
20634 s,@OBJEXT@,$OBJEXT,;t t
20635 s,@EGREP@,$EGREP,;t t
20636 s,@LN_S@,$LN_S,;t t
20637 s,@ECHO@,$ECHO,;t t
20639 s,@ac_ct_AR@,$ac_ct_AR,;t t
20640 s,@RANLIB@,$RANLIB,;t t
20641 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20642 s,@STRIP@,$STRIP,;t t
20643 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20646 s,@CXXFLAGS@,$CXXFLAGS,;t t
20647 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20648 s,@CXXCPP@,$CXXCPP,;t t
20650 s,@FFLAGS@,$FFLAGS,;t t
20651 s,@ac_ct_F77@,$ac_ct_F77,;t t
20652 s,@LIBTOOL@,$LIBTOOL,;t t
20653 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20654 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20655 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20656 s,@CYGPATH_W@,$CYGPATH_W,;t t
20657 s,@PACKAGE@,$PACKAGE,;t t
20658 s,@VERSION@,$VERSION,;t t
20659 s,@ACLOCAL@,$ACLOCAL,;t t
20660 s,@AUTOCONF@,$AUTOCONF,;t t
20661 s,@AUTOMAKE@,$AUTOMAKE,;t t
20662 s,@AUTOHEADER@,$AUTOHEADER,;t t
20663 s,@MAKEINFO@,$MAKEINFO,;t t
20664 s,@AMTAR@,$AMTAR,;t t
20665 s,@install_sh@,$install_sh,;t t
20666 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20667 s,@mkdir_p@,$mkdir_p,;t t
20669 s,@SET_MAKE@,$SET_MAKE,;t t
20670 s,@am__leading_dot@,$am__leading_dot,;t t
20671 s,@DEPDIR@,$DEPDIR,;t t
20672 s,@am__include@,$am__include,;t t
20673 s,@am__quote@,$am__quote,;t t
20674 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20675 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20676 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20677 s,@CCDEPMODE@,$CCDEPMODE,;t t
20678 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20679 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20680 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20681 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20682 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20683 s,@LIB_MAJ@,$LIB_MAJ,;t t
20684 s,@OPENPAM_MODULES_DIR@,$OPENPAM_MODULES_DIR,;t t
20685 s,@WITH_PAM_SU_TRUE@,$WITH_PAM_SU_TRUE,;t t
20686 s,@WITH_PAM_SU_FALSE@,$WITH_PAM_SU_FALSE,;t t
20687 s,@WITH_PAM_UNIX_TRUE@,$WITH_PAM_UNIX_TRUE,;t t
20688 s,@WITH_PAM_UNIX_FALSE@,$WITH_PAM_UNIX_FALSE,;t t
20689 s,@DL_LIBS@,$DL_LIBS,;t t
20690 s,@CRYPT_LIBS@,$CRYPT_LIBS,;t t
20691 s,@LIBOBJS@,$LIBOBJS,;t t
20692 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20697 cat >>$CONFIG_STATUS <<\_ACEOF
20698 # Split the substitutions into bite-sized pieces for seds with
20699 # small command number limits, like on Digital OSF/1 and HP-UX.
20700 ac_max_sed_lines=48
20701 ac_sed_frag=1 # Number of current file.
20702 ac_beg=1 # First line for current file.
20703 ac_end=$ac_max_sed_lines # Line after last line for current file.
20706 while $ac_more_lines; do
20707 if test $ac_beg -gt 1; then
20708 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20710 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20712 if test ! -s $tmp/subs.frag; then
20713 ac_more_lines=false
20715 # The purpose of the label and of the branching condition is to
20716 # speed up the sed processing (if there are no `@' at all, there
20717 # is no need to browse any of the substitutions).
20718 # These are the two extra sed commands mentioned above.
20720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20721 if test -z "$ac_sed_cmds"; then
20722 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20724 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20726 ac_sed_frag=`expr $ac_sed_frag + 1`
20728 ac_end=`expr $ac_end + $ac_max_sed_lines`
20731 if test -z "$ac_sed_cmds"; then
20734 fi # test -n "$CONFIG_FILES"
20737 cat >>$CONFIG_STATUS <<\_ACEOF
20738 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20741 - | *:- | *:-:* ) # input from stdin
20743 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20745 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20747 * ) ac_file_in=$ac_file.in ;;
20750 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20751 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20753 X"$ac_file" : 'X\(//\)[^/]' \| \
20754 X"$ac_file" : 'X\(//\)$' \| \
20755 X"$ac_file" : 'X\(/\)' \| \
20756 . : '\(.\)' 2>/dev/null ||
20758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20760 /^X\(\/\/\)$/{ s//\1/; q; }
20761 /^X\(\/\).*/{ s//\1/; q; }
20763 { if $as_mkdir_p; then
20768 while test ! -d "$as_dir"; do
20769 as_dirs="$as_dir $as_dirs"
20770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20772 X"$as_dir" : 'X\(//\)[^/]' \| \
20773 X"$as_dir" : 'X\(//\)$' \| \
20774 X"$as_dir" : 'X\(/\)' \| \
20775 . : '\(.\)' 2>/dev/null ||
20777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20779 /^X\(\/\/\)$/{ s//\1/; q; }
20780 /^X\(\/\).*/{ s//\1/; q; }
20783 test ! -n "$as_dirs" || mkdir $as_dirs
20784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20786 { (exit 1); exit 1; }; }; }
20790 if test "$ac_dir" != .; then
20791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20792 # A "../" for each directory in $ac_dir_suffix.
20793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20795 ac_dir_suffix= ac_top_builddir=
20799 .) # No --srcdir option. We are building in place.
20801 if test -z "$ac_top_builddir"; then
20804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20806 [\\/]* | ?:[\\/]* ) # Absolute path.
20807 ac_srcdir=$srcdir$ac_dir_suffix;
20808 ac_top_srcdir=$srcdir ;;
20809 *) # Relative path.
20810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20814 # Do not use `cd foo && pwd` to compute absolute paths, because
20815 # the directories may not exist.
20817 .) ac_abs_builddir="$ac_dir";;
20820 .) ac_abs_builddir=`pwd`;;
20821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20822 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20825 case $ac_abs_builddir in
20826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20828 case ${ac_top_builddir}. in
20829 .) ac_abs_top_builddir=$ac_abs_builddir;;
20830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20834 case $ac_abs_builddir in
20835 .) ac_abs_srcdir=$ac_srcdir;;
20838 .) ac_abs_srcdir=$ac_abs_builddir;;
20839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20843 case $ac_abs_builddir in
20844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20846 case $ac_top_srcdir in
20847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20856 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20859 if test x"$ac_file" != x-; then
20860 { echo "$as_me:$LINENO: creating $ac_file" >&5
20861 echo "$as_me: creating $ac_file" >&6;}
20864 # Let's still pretend it is `configure' which instantiates (i.e., don't
20865 # use $as_me), people would be surprised to read:
20866 # /* config.h. Generated by config.status. */
20867 if test x"$ac_file" = x-; then
20870 configure_input="$ac_file. "
20872 configure_input=$configure_input"Generated from `echo $ac_file_in |
20873 sed 's,.*/,,'` by configure."
20875 # First look for the input files in the build tree, otherwise in the
20877 ac_file_inputs=`IFS=:
20878 for f in $ac_file_in; do
20880 -) echo $tmp/stdin ;;
20882 # Absolute (can't be DOS-style, as IFS=:)
20883 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20884 echo "$as_me: error: cannot find input file: $f" >&2;}
20885 { (exit 1); exit 1; }; }
20888 if test -f "$f"; then
20891 elif test -f "$srcdir/$f"; then
20896 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20897 echo "$as_me: error: cannot find input file: $f" >&2;}
20898 { (exit 1); exit 1; }; }
20901 done` || { (exit 1); exit 1; }
20903 cat >>$CONFIG_STATUS <<_ACEOF
20907 cat >>$CONFIG_STATUS <<\_ACEOF
20909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20910 s,@configure_input@,$configure_input,;t t
20911 s,@srcdir@,$ac_srcdir,;t t
20912 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20913 s,@top_srcdir@,$ac_top_srcdir,;t t
20914 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20915 s,@builddir@,$ac_builddir,;t t
20916 s,@abs_builddir@,$ac_abs_builddir,;t t
20917 s,@top_builddir@,$ac_top_builddir,;t t
20918 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20919 s,@INSTALL@,$ac_INSTALL,;t t
20920 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20922 if test x"$ac_file" != x-; then
20923 mv $tmp/out $ac_file
20931 cat >>$CONFIG_STATUS <<\_ACEOF
20934 # CONFIG_HEADER section.
20937 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20938 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20940 # ac_d sets the value in "#define NAME VALUE" lines.
20941 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20942 ac_dB='[ ].*$,\1#\2'
20945 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20946 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20947 ac_uB='$,\1#\2define\3'
20951 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20952 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20954 - | *:- | *:-:* ) # input from stdin
20956 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20958 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20960 * ) ac_file_in=$ac_file.in ;;
20963 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20964 echo "$as_me: creating $ac_file" >&6;}
20966 # First look for the input files in the build tree, otherwise in the
20968 ac_file_inputs=`IFS=:
20969 for f in $ac_file_in; do
20971 -) echo $tmp/stdin ;;
20973 # Absolute (can't be DOS-style, as IFS=:)
20974 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20975 echo "$as_me: error: cannot find input file: $f" >&2;}
20976 { (exit 1); exit 1; }; }
20977 # Do quote $f, to prevent DOS paths from being IFS'd.
20980 if test -f "$f"; then
20983 elif test -f "$srcdir/$f"; then
20988 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20989 echo "$as_me: error: cannot find input file: $f" >&2;}
20990 { (exit 1); exit 1; }; }
20993 done` || { (exit 1); exit 1; }
20994 # Remove the trailing spaces.
20995 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20999 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21000 # `conftest.undefs', that substitutes the proper values into
21001 # config.h.in to produce config.h. The first handles `#define'
21002 # templates, and the second `#undef' templates.
21003 # And first: Protect against being on the right side of a sed subst in
21004 # config.status. Protect against being in an unquoted here document
21005 # in config.status.
21006 rm -f conftest.defines conftest.undefs
21007 # Using a here document instead of a string reduces the quoting nightmare.
21008 # Putting comments in sed scripts is not portable.
21010 # `end' is used to avoid that the second main sed command (meant for
21011 # 0-ary CPP macros) applies to n-ary macro definitions.
21012 # See the Autoconf documentation for `clear'.
21013 cat >confdef2sed.sed <<\_ACEOF
21018 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21020 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21023 # If some macros were called several times there might be several times
21024 # the same #defines, which is useless. Nevertheless, we may not want to
21025 # sort them, since we want the *last* AC-DEFINE to be honored.
21026 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21027 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21028 rm -f confdef2sed.sed
21030 # This sed command replaces #undef with comments. This is necessary, for
21031 # example, in the case of _POSIX_SOURCE, which is predefined and required
21032 # on some systems where configure will not decide to define it.
21033 cat >>conftest.undefs <<\_ACEOF
21034 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21037 # Break up conftest.defines because some shells have a limit on the size
21038 # of here documents, and old seds have small limits too (100 cmds).
21039 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21040 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21041 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21042 echo ' :' >>$CONFIG_STATUS
21043 rm -f conftest.tail
21044 while grep . conftest.defines >/dev/null
21046 # Write a limited-size here document to $tmp/defines.sed.
21047 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21048 # Speed up: don't consider the non `#define' lines.
21049 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21050 # Work around the forget-to-reset-the-flag bug.
21051 echo 't clr' >>$CONFIG_STATUS
21052 echo ': clr' >>$CONFIG_STATUS
21053 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21055 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21057 mv $tmp/out $tmp/in
21059 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21060 rm -f conftest.defines
21061 mv conftest.tail conftest.defines
21063 rm -f conftest.defines
21064 echo ' fi # grep' >>$CONFIG_STATUS
21065 echo >>$CONFIG_STATUS
21067 # Break up conftest.undefs because some shells have a limit on the size
21068 # of here documents, and old seds have small limits too (100 cmds).
21069 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21070 rm -f conftest.tail
21071 while grep . conftest.undefs >/dev/null
21073 # Write a limited-size here document to $tmp/undefs.sed.
21074 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21075 # Speed up: don't consider the non `#undef'
21076 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21077 # Work around the forget-to-reset-the-flag bug.
21078 echo 't clr' >>$CONFIG_STATUS
21079 echo ': clr' >>$CONFIG_STATUS
21080 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21082 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21084 mv $tmp/out $tmp/in
21086 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21087 rm -f conftest.undefs
21088 mv conftest.tail conftest.undefs
21090 rm -f conftest.undefs
21092 cat >>$CONFIG_STATUS <<\_ACEOF
21093 # Let's still pretend it is `configure' which instantiates (i.e., don't
21094 # use $as_me), people would be surprised to read:
21095 # /* config.h. Generated by config.status. */
21096 if test x"$ac_file" = x-; then
21097 echo "/* Generated by configure. */" >$tmp/config.h
21099 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21101 cat $tmp/in >>$tmp/config.h
21103 if test x"$ac_file" != x-; then
21104 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21105 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21106 echo "$as_me: $ac_file is unchanged" >&6;}
21108 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21110 X"$ac_file" : 'X\(//\)[^/]' \| \
21111 X"$ac_file" : 'X\(//\)$' \| \
21112 X"$ac_file" : 'X\(/\)' \| \
21113 . : '\(.\)' 2>/dev/null ||
21115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21117 /^X\(\/\/\)$/{ s//\1/; q; }
21118 /^X\(\/\).*/{ s//\1/; q; }
21120 { if $as_mkdir_p; then
21125 while test ! -d "$as_dir"; do
21126 as_dirs="$as_dir $as_dirs"
21127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21129 X"$as_dir" : 'X\(//\)[^/]' \| \
21130 X"$as_dir" : 'X\(//\)$' \| \
21131 X"$as_dir" : 'X\(/\)' \| \
21132 . : '\(.\)' 2>/dev/null ||
21134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21136 /^X\(\/\/\)$/{ s//\1/; q; }
21137 /^X\(\/\).*/{ s//\1/; q; }
21140 test ! -n "$as_dirs" || mkdir $as_dirs
21141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21143 { (exit 1); exit 1; }; }; }
21146 mv $tmp/config.h $ac_file
21150 rm -f $tmp/config.h
21152 # Compute $ac_file's index in $config_headers.
21154 for _am_header in $config_headers :; do
21155 case $_am_header in
21156 $ac_file | $ac_file:* )
21159 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21162 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21163 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21164 X$ac_file : 'X\(//\)[^/]' \| \
21165 X$ac_file : 'X\(//\)$' \| \
21166 X$ac_file : 'X\(/\)' \| \
21167 . : '\(.\)' 2>/dev/null ||
21169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21171 /^X\(\/\/\)$/{ s//\1/; q; }
21172 /^X\(\/\).*/{ s//\1/; q; }
21173 s/.*/./; q'`/stamp-h$_am_stamp_count
21176 cat >>$CONFIG_STATUS <<\_ACEOF
21179 # CONFIG_COMMANDS section.
21181 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21182 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21183 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21184 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21185 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21186 X"$ac_dest" : 'X\(//\)[^/]' \| \
21187 X"$ac_dest" : 'X\(//\)$' \| \
21188 X"$ac_dest" : 'X\(/\)' \| \
21189 . : '\(.\)' 2>/dev/null ||
21191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21193 /^X\(\/\/\)$/{ s//\1/; q; }
21194 /^X\(\/\).*/{ s//\1/; q; }
21196 { if $as_mkdir_p; then
21201 while test ! -d "$as_dir"; do
21202 as_dirs="$as_dir $as_dirs"
21203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21205 X"$as_dir" : 'X\(//\)[^/]' \| \
21206 X"$as_dir" : 'X\(//\)$' \| \
21207 X"$as_dir" : 'X\(/\)' \| \
21208 . : '\(.\)' 2>/dev/null ||
21210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21212 /^X\(\/\/\)$/{ s//\1/; q; }
21213 /^X\(\/\).*/{ s//\1/; q; }
21216 test ! -n "$as_dirs" || mkdir $as_dirs
21217 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21219 { (exit 1); exit 1; }; }; }
21223 if test "$ac_dir" != .; then
21224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21225 # A "../" for each directory in $ac_dir_suffix.
21226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21228 ac_dir_suffix= ac_top_builddir=
21232 .) # No --srcdir option. We are building in place.
21234 if test -z "$ac_top_builddir"; then
21237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21239 [\\/]* | ?:[\\/]* ) # Absolute path.
21240 ac_srcdir=$srcdir$ac_dir_suffix;
21241 ac_top_srcdir=$srcdir ;;
21242 *) # Relative path.
21243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21247 # Do not use `cd foo && pwd` to compute absolute paths, because
21248 # the directories may not exist.
21250 .) ac_abs_builddir="$ac_dir";;
21253 .) ac_abs_builddir=`pwd`;;
21254 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21255 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21258 case $ac_abs_builddir in
21259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21261 case ${ac_top_builddir}. in
21262 .) ac_abs_top_builddir=$ac_abs_builddir;;
21263 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21264 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21267 case $ac_abs_builddir in
21268 .) ac_abs_srcdir=$ac_srcdir;;
21271 .) ac_abs_srcdir=$ac_abs_builddir;;
21272 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21273 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21276 case $ac_abs_builddir in
21277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21279 case $ac_top_srcdir in
21280 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21281 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21282 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21287 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21288 echo "$as_me: executing $ac_dest commands" >&6;}
21290 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21291 # Strip MF so we end up with the name of the file.
21292 mf=`echo "$mf" | sed -e 's/:.*$//'`
21293 # Check whether this is an Automake generated Makefile or not.
21294 # We used to match only the files named `Makefile.in', but
21295 # some people rename them; so instead we look at the file content.
21296 # Grep'ing the first line is not enough: some people post-process
21297 # each Makefile.in and add a new line on top of each file to say so.
21298 # So let's grep whole file.
21299 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21300 dirpart=`(dirname "$mf") 2>/dev/null ||
21301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21302 X"$mf" : 'X\(//\)[^/]' \| \
21303 X"$mf" : 'X\(//\)$' \| \
21304 X"$mf" : 'X\(/\)' \| \
21305 . : '\(.\)' 2>/dev/null ||
21307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21309 /^X\(\/\/\)$/{ s//\1/; q; }
21310 /^X\(\/\).*/{ s//\1/; q; }
21315 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21316 # Extract the definition of DEP_FILES from the Makefile without
21318 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21319 test -z "$DEPDIR" && continue
21320 # When using ansi2knr, U may be empty or an underscore; expand it
21321 U=`sed -n 's/^U = //p' < "$mf"`
21322 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21323 # We invoke sed twice because it is the simplest approach to
21324 # changing $(DEPDIR) to its actual value in the expansion.
21325 for file in `sed -n '
21326 /^DEP_FILES = .*\\\\$/ {
21335 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21336 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21337 # Make sure the directory exists.
21338 test -f "$dirpart/$file" && continue
21339 fdir=`(dirname "$file") 2>/dev/null ||
21340 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21341 X"$file" : 'X\(//\)[^/]' \| \
21342 X"$file" : 'X\(//\)$' \| \
21343 X"$file" : 'X\(/\)' \| \
21344 . : '\(.\)' 2>/dev/null ||
21346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21348 /^X\(\/\/\)$/{ s//\1/; q; }
21349 /^X\(\/\).*/{ s//\1/; q; }
21351 { if $as_mkdir_p; then
21352 mkdir -p $dirpart/$fdir
21354 as_dir=$dirpart/$fdir
21356 while test ! -d "$as_dir"; do
21357 as_dirs="$as_dir $as_dirs"
21358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21360 X"$as_dir" : 'X\(//\)[^/]' \| \
21361 X"$as_dir" : 'X\(//\)$' \| \
21362 X"$as_dir" : 'X\(/\)' \| \
21363 . : '\(.\)' 2>/dev/null ||
21365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21367 /^X\(\/\/\)$/{ s//\1/; q; }
21368 /^X\(\/\).*/{ s//\1/; q; }
21371 test ! -n "$as_dirs" || mkdir $as_dirs
21372 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21373 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21374 { (exit 1); exit 1; }; }; }
21376 # echo "creating $dirpart/$file"
21377 echo '# dummy' > "$dirpart/$file"
21385 cat >>$CONFIG_STATUS <<\_ACEOF
21387 { (exit 0); exit 0; }
21389 chmod +x $CONFIG_STATUS
21390 ac_clean_files=$ac_clean_files_save
21393 # configure is writing to config.log, and then calls config.status.
21394 # config.status does its own redirection, appending to config.log.
21395 # Unfortunately, on DOS this fails, as config.log is still kept open
21396 # by configure, so config.status won't be able to write to it; its
21397 # output is simply discarded. So we exec the FD to /dev/null,
21398 # effectively closing config.log, so it can be properly (re)opened and
21399 # appended to by config.status. When coming back to configure, we
21400 # need to make the FD available again.
21401 if test "$no_create" != yes; then
21403 ac_config_status_args=
21404 test "$silent" = yes &&
21405 ac_config_status_args="$ac_config_status_args --quiet"
21407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21410 # would make configure fail if this is the last instruction.
21411 $ac_cs_success || { (exit 1); exit 1; }