2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="patchlevel.h"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subdirs_all="$ac_subdirs_all util/et"
467 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 SO_LDFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB EGREP LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SET_MAKE mrbindir subdirs COM_ERR_SUBDIR COMPILE_ET REG_SVR_DEFS REG_SVR_INCLUDES REG_SVR_LIBS RSAREF_CPPFLAGS RSAREF_LIBS RSAREF_SUBDIRS RSAREF_LIBDEP PRO_C PRO_C_DEFS PRO_C_INCLUDES PRO_C_OPTS SQL_LIBS SVRSUBDIRS JAVA_CPPFLAGS WEBMOIRA_SUBDIRS LDAP_CPPFLAGS LDAP_LIBS WINAD_SUBDIRS AFS_CPPFLAGS AFS_PRO_C_INCLUDES AFS_LIBS AFS_DIR AFS_SUBDIRS AFS_SYNCDIR READLINE_CPPFLAGS READLINE_LIBS CURSES_CPPFLAGS CURSES_LIBS CURSES_SUBDIRS KLIBS MR_LIBDEP LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 if test -n "$ac_init_help"; then
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --enable-shared[=PKGS]
1023 build shared libraries [default=yes]
1024 --enable-static[=PKGS]
1025 build static libraries [default=yes]
1026 --enable-fast-install[=PKGS]
1027 optimize for fast installation [default=yes]
1028 --disable-libtool-lock avoid locking (might break parallel builds)
1029 --enable-athena Enable Athena-specific policy decisions
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1034 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1035 --with-pic try to use only PIC/non-PIC objects [default=use
1038 include additional configurations [automatic]
1039 --with-com_err=PREFIX Specify location of com_err
1040 --with-krb4=PREFIX Specify location of krb4
1041 --with-krb5=PREFIX Specify location of krb5
1042 --with-hesiod=PREFIX Specify location of Hesiod
1043 --with-zephyr=PREFIX Specify location of Zephyr
1044 --with-rsaref=PREFIX Specify location of RSAREF
1045 --with-oracle=PREFIX Specify location of Oracle (for server)
1046 --with-java=PREFIX Specify location of Java libs and headers
1047 --with-ldap=PREFIX Specify location of LDAP libs (for server)
1048 --with-afs=PREFIX Specify location of AFS libs (for server)
1049 --with-readline=PREFIX Specify location of GNU readline
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 ac_dir_suffix= ac_top_builddir=
1087 .) # No --srcdir option. We are building in place.
1089 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1105 .) ac_abs_builddir="$ac_dir";;
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1152 $ac_configure --help
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1164 Copyright (C) 2003 Free Software Foundation, Inc.
1165 This configure script is free software; the Free Software Foundation
1166 gives unlimited permission to copy, distribute and modify it.
1172 This file contains any messages produced by compilers while
1173 running configure, to aid debugging if configure makes a mistake.
1175 It was created by $as_me, which was
1176 generated by GNU Autoconf 2.59. Invocation command line was
1187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210 test -z "$as_dir" && as_dir=.
1211 echo "PATH: $as_dir"
1226 # Keep a trace of the command line.
1227 # Strip out --no-create and --no-recursion so they do not pile up.
1228 # Strip out --silent because we don't want to record it for future runs.
1229 # Also quote any args containing shell meta-characters.
1230 # Make two passes to allow for proper duplicate-argument suppression.
1235 ac_must_keep_next=false
1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252 if test $ac_must_keep_next = true; then
1253 ac_must_keep_next=false # Got value, back to normal.
1256 *=* | --config-cache | -C | -disable-* | --disable-* \
1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259 | -with-* | --with-* | -without-* | --without-* | --x)
1260 case "$ac_configure_args0 " in
1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264 -* ) ac_must_keep_next=true ;;
1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268 # Get rid of the leading space.
1274 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277 # When interrupted or exit'd, cleanup temporary files, and complete
1278 # config.log. We remove comments because anyway the quotes in there
1279 # would cause problems or look ugly.
1280 # WARNING: Be sure not to use single quotes in there, as some shells,
1281 # such as our DU 5.0 friend, will then `close' the trap.
1282 trap 'exit_status=$?
1283 # Save into config.log some information that might help in debugging.
1288 ## ---------------- ##
1289 ## Cache variables. ##
1290 ## ---------------- ##
1293 # The following way of writing the cache mishandles newlines in values,
1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311 ## ----------------- ##
1312 ## Output variables. ##
1313 ## ----------------- ##
1316 for ac_var in $ac_subst_vars
1318 eval ac_val=$`echo $ac_var`
1319 echo "$ac_var='"'"'$ac_val'"'"'"
1323 if test -n "$ac_subst_files"; then
1330 for ac_var in $ac_subst_files
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -s confdefs.h; then
1345 sed "/^$/d" confdefs.h | sort
1348 test "$ac_signal" != 0 &&
1349 echo "$as_me: caught signal $ac_signal"
1350 echo "$as_me: exit $exit_status"
1352 rm -f core *.core &&
1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356 for ac_signal in 1 2 13 15; do
1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1362 rm -rf conftest* confdefs.h
1363 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 # Predefined preprocessor variables.
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_NAME "$PACKAGE_NAME"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_STRING "$PACKAGE_STRING"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393 # Let the site file select an alternate cache file if it wants to.
1394 # Prefer explicitly selected file to automatically selected ones.
1395 if test -z "$CONFIG_SITE"; then
1396 if test "x$prefix" != xNONE; then
1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402 for ac_site_file in $CONFIG_SITE; do
1403 if test -r "$ac_site_file"; then
1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405 echo "$as_me: loading site script $ac_site_file" >&6;}
1406 sed 's/^/| /' "$ac_site_file" >&5
1411 if test -r "$cache_file"; then
1412 # Some versions of bash will fail to source /dev/null (special
1413 # files actually), so we avoid doing that.
1414 if test -f "$cache_file"; then
1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416 echo "$as_me: loading cache $cache_file" >&6;}
1418 [\\/]* | ?:[\\/]* ) . $cache_file;;
1419 *) . ./$cache_file;;
1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424 echo "$as_me: creating cache $cache_file" >&6;}
1428 # Check that the precious variables saved in the cache have kept the same
1430 ac_cache_corrupted=false
1431 for ac_var in `(set) 2>&1 |
1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434 eval ac_new_set=\$ac_env_${ac_var}_set
1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436 eval ac_new_val="\$ac_env_${ac_var}_value"
1437 case $ac_old_set,$ac_new_set in
1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1448 if test "x$ac_old_val" != "x$ac_new_val"; then
1449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1452 echo "$as_me: former value: $ac_old_val" >&2;}
1453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1454 echo "$as_me: current value: $ac_new_val" >&2;}
1455 ac_cache_corrupted=:
1458 # Pass precious variables to config.status.
1459 if test "$ac_new_set" = set; then
1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463 *) ac_arg=$ac_var=$ac_new_val ;;
1465 case " $ac_configure_args " in
1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 if $ac_cache_corrupted; then
1472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476 { (exit 1); exit 1; }; }
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508 if test -f $ac_dir/install-sh; then
1510 ac_install_sh="$ac_aux_dir/install-sh -c"
1512 elif test -f $ac_dir/install.sh; then
1514 ac_install_sh="$ac_aux_dir/install.sh -c"
1516 elif test -f $ac_dir/shtool; then
1518 ac_install_sh="$ac_aux_dir/shtool install -c"
1522 if test -z "$ac_aux_dir"; then
1523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525 { (exit 1); exit 1; }; }
1527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535 { (exit 1); exit 1; }; }
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544 ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548 { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570 ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585 # SO_LDFLAGS setting below is a great big ick.
1586 # But it beats sucking in libtool for one small part of the source tree.
1594 SO_LDFLAGS="-shared"
1598 SO_LDFLAGS="-shared"
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$ac_cv_prog_CC"; then
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1693 if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_CC"; then
1733 # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1774 if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1867 test -n "$CC" && break
1870 if test -z "$CC"; then
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 test -n "$ac_ct_CC" && break
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&2;}
1922 { (exit 1); exit 1; }; }
1924 # Provide some information about the compiler.
1925 echo "$as_me:$LINENO:" \
1926 "checking for C compiler version" >&5
1927 ac_compiler=`set X $ac_compile; echo $2`
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1929 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1934 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1938 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1939 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }
1944 cat >conftest.$ac_ext <<_ACEOF
1947 cat confdefs.h >>conftest.$ac_ext
1948 cat >>conftest.$ac_ext <<_ACEOF
1949 /* end confdefs.h. */
1959 ac_clean_files_save=$ac_clean_files
1960 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1961 # Try to create an executable without -o first, disregard a.out.
1962 # It will help us diagnose broken compilers, and finding out an intuition
1964 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1965 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1966 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1968 (eval $ac_link_default) 2>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 # Find the output, starting from the most likely. This scheme is
1973 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976 # Be careful to initialize this variable, since it used to be cached.
1977 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1979 # b.out is created by i960 compilers.
1980 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1982 test -f "$ac_file" || continue
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 # This is the source file.
1990 # We found the default executable, but exeext='' is most
1994 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 # FIXME: I believe we export ac_cv_exeext for Libtool,
1996 # but it would be cool to find out if it's true. Does anybody
1997 # maintain Libtool? --akim.
2005 echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2008 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2009 See \`config.log' for more details." >&5
2010 echo "$as_me: error: C compiler cannot create executables
2011 See \`config.log' for more details." >&2;}
2012 { (exit 77); exit 77; }; }
2015 ac_exeext=$ac_cv_exeext
2016 echo "$as_me:$LINENO: result: $ac_file" >&5
2017 echo "${ECHO_T}$ac_file" >&6
2019 # Check the compiler produces executables we can run. If not, either
2020 # the compiler is broken, or we cross compile.
2021 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2022 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2023 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2024 # If not cross compiling, check that we can run a simple program.
2025 if test "$cross_compiling" != yes; then
2026 if { ac_try='./$ac_file'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2034 if test "$cross_compiling" = maybe; then
2037 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: cannot run C compiled programs.
2041 If you meant to cross compile, use \`--host'.
2042 See \`config.log' for more details." >&2;}
2043 { (exit 1); exit 1; }; }
2047 echo "$as_me:$LINENO: result: yes" >&5
2048 echo "${ECHO_T}yes" >&6
2050 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2051 ac_clean_files=$ac_clean_files_save
2052 # Check the compiler produces executables we can run. If not, either
2053 # the compiler is broken, or we cross compile.
2054 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2055 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2056 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2057 echo "${ECHO_T}$cross_compiling" >&6
2059 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2060 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2062 (eval $ac_link) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; then
2066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2067 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2068 # work properly (i.e., refer to `conftest.exe'), while it won't with
2070 for ac_file in conftest.exe conftest conftest.*; do
2071 test -f "$ac_file" || continue
2073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084 See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
2088 rm -f conftest$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090 echo "${ECHO_T}$ac_cv_exeext" >&6
2092 rm -f conftest.$ac_ext
2093 EXEEXT=$ac_cv_exeext
2095 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097 if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 cat >conftest.$ac_ext <<_ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2115 rm -f conftest.o conftest.obj
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2129 echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142 echo "${ECHO_T}$ac_cv_objext" >&6
2143 OBJEXT=$ac_cv_objext
2145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 cat >conftest.$ac_ext <<_ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2172 grep -v '^ *+' conftest.er1 >conftest.err
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203 GCC=`test $ac_compiler_gnu = yes && echo yes`
2204 ac_test_CFLAGS=${CFLAGS+set}
2205 ac_save_CFLAGS=$CFLAGS
2207 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2231 grep -v '^ *+' conftest.er1 >conftest.err
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260 if test "$ac_test_CFLAGS" = set; then
2261 CFLAGS=$ac_save_CFLAGS
2262 elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
2269 if test "$GCC" = yes; then
2275 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 ac_cv_prog_cc_stdc=no
2282 cat >conftest.$ac_ext <<_ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2290 #include <sys/types.h>
2291 #include <sys/stat.h>
2292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293 struct buf { int x; };
2294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295 static char *e (p, i)
2301 static char *f (char * (*g) (char **, int), char **p, ...)
2306 s = g (p, va_arg (v,int));
2311 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2320 int test (int i, double x);
2321 struct s1 {int (*f) (int a);};
2322 struct s2 {int (*f) (double a);};
2323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2334 # Don't try gcc -ansi; that turns off useful extensions and
2335 # breaks some systems' header files.
2336 # AIX -qlanglvl=ansi
2337 # Ultrix and OSF/1 -std1
2338 # HP-UX 10.20 and later -Ae
2339 # HP-UX older versions -Aa -D_HPUX_SOURCE
2340 # SVR4 -Xc -D__EXTENSIONS__
2341 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2348 grep -v '^ *+' conftest.er1 >conftest.err
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cc_stdc=$ac_arg
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext
2375 rm -f conftest.$ac_ext conftest.$ac_objext
2380 case "x$ac_cv_prog_cc_stdc" in
2382 echo "$as_me:$LINENO: result: none needed" >&5
2383 echo "${ECHO_T}none needed" >&6 ;;
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387 CC="$CC $ac_cv_prog_cc_stdc" ;;
2390 # Some people use a C++ compiler to compile C. Since we use `exit',
2391 # in C++ we need to declare it. In case someone uses the same compiler
2392 # for both compiling C and C++ we need to have the C++ compiler decide
2393 # the declaration of exit, since it's the most demanding environment.
2394 cat >conftest.$ac_ext <<_ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2403 grep -v '^ *+' conftest.er1 >conftest.err
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1 >conftest.err
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>conftest.er1
2494 grep -v '^ *+' conftest.er1 >conftest.err
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521 if test -n "$ac_declaration"; then
2522 echo '#ifdef __cplusplus' >>confdefs.h
2523 echo $ac_declaration >>confdefs.h
2524 echo '#endif' >>confdefs.h
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2553 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2554 if test -z "$INSTALL"; then
2555 if test "${ac_cv_path_install+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir=.
2563 # Account for people who put trailing slashes in PATH elements.
2565 ./ | .// | /cC/* | \
2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2573 for ac_prog in ginstall scoinst install; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2580 elif test $ac_prog = install &&
2581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL=$ac_cv_path_install
2600 # As a last resort, use the slow shell script. We don't cache a
2601 # path for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the path is relative.
2604 INSTALL=$ac_install_sh
2607 echo "$as_me:$LINENO: result: $INSTALL" >&5
2608 echo "${ECHO_T}$INSTALL" >&6
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_RANLIB+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$RANLIB"; then
2627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 RANLIB=$ac_cv_prog_RANLIB
2646 if test -n "$RANLIB"; then
2647 echo "$as_me:$LINENO: result: $RANLIB" >&5
2648 echo "${ECHO_T}$RANLIB" >&6
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2655 if test -z "$ac_cv_prog_RANLIB"; then
2656 ac_ct_RANLIB=$RANLIB
2657 # Extract the first word of "ranlib", so it can be a program name with args.
2658 set dummy ranlib; ac_word=$2
2659 echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2661 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 if test -n "$ac_ct_RANLIB"; then
2665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_RANLIB="ranlib"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2685 if test -n "$ac_ct_RANLIB"; then
2686 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2687 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2693 RANLIB=$ac_ct_RANLIB
2695 RANLIB="$ac_cv_prog_RANLIB"
2698 # Check whether --enable-shared or --disable-shared was given.
2699 if test "${enable_shared+set}" = set; then
2700 enableval="$enable_shared"
2701 p=${PACKAGE-default}
2703 yes) enable_shared=yes ;;
2704 no) enable_shared=no ;;
2707 # Look at the argument we got. We use all the common list separators.
2708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2709 for pkg in $enableval; do
2711 if test "X$pkg" = "X$p"; then
2722 # Check whether --enable-static or --disable-static was given.
2723 if test "${enable_static+set}" = set; then
2724 enableval="$enable_static"
2725 p=${PACKAGE-default}
2727 yes) enable_static=yes ;;
2728 no) enable_static=no ;;
2731 # Look at the argument we got. We use all the common list separators.
2732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2733 for pkg in $enableval; do
2735 if test "X$pkg" = "X$p"; then
2746 # Check whether --enable-fast-install or --disable-fast-install was given.
2747 if test "${enable_fast_install+set}" = set; then
2748 enableval="$enable_fast_install"
2749 p=${PACKAGE-default}
2751 yes) enable_fast_install=yes ;;
2752 no) enable_fast_install=no ;;
2754 enable_fast_install=no
2755 # Look at the argument we got. We use all the common list separators.
2756 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2757 for pkg in $enableval; do
2759 if test "X$pkg" = "X$p"; then
2760 enable_fast_install=yes
2767 enable_fast_install=yes
2770 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2771 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2772 if test "${lt_cv_path_SED+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 # Loop through the user's path and test for sed and gsed.
2776 # Then use that list of sed's as ones to test for truncation.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for lt_ac_prog in sed gsed; do
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2785 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2792 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2793 # along with /bin/sed that truncates output.
2794 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2795 test ! -f $lt_ac_sed && break
2796 cat /dev/null > conftest.in
2798 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2799 # Check for GNU sed and select it if it is found.
2800 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2801 lt_cv_path_SED=$lt_ac_sed
2805 cat conftest.in conftest.in >conftest.tmp
2806 mv conftest.tmp conftest.in
2807 cp conftest.in conftest.nl
2809 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2810 cmp -s conftest.out conftest.nl || break
2811 # 10000 chars as input seems more than enough
2812 test $lt_ac_count -gt 10 && break
2813 lt_ac_count=`expr $lt_ac_count + 1`
2814 if test $lt_ac_count -gt $lt_ac_max; then
2815 lt_ac_max=$lt_ac_count
2816 lt_cv_path_SED=$lt_ac_sed
2824 echo "$as_me:$LINENO: result: $SED" >&5
2825 echo "${ECHO_T}$SED" >&6
2827 echo "$as_me:$LINENO: checking for egrep" >&5
2828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2829 if test "${ac_cv_prog_egrep+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2833 then ac_cv_prog_egrep='grep -E'
2834 else ac_cv_prog_egrep='egrep'
2837 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2838 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2839 EGREP=$ac_cv_prog_egrep
2843 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2844 if test "${with_gnu_ld+set}" = set; then
2845 withval="$with_gnu_ld"
2846 test "$withval" = no || with_gnu_ld=yes
2851 if test "$GCC" = yes; then
2852 # Check if gcc -print-prog-name=ld gives a path.
2853 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2854 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2857 # gcc leaves a trailing carriage return which upsets mingw
2858 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2860 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2863 # Accept absolute paths.
2865 re_direlt='/[^/][^/]*/\.\./'
2866 # Canonicalize the pathname of ld
2867 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2868 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2869 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2871 test -z "$LD" && LD="$ac_prog"
2874 # If it fails, then pretend we aren't using GCC.
2878 # If it is relative, then search for the first ld in PATH.
2882 elif test "$with_gnu_ld" = yes; then
2883 echo "$as_me:$LINENO: checking for GNU ld" >&5
2884 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2886 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2887 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2889 if test "${lt_cv_path_LD+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 if test -z "$LD"; then
2893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2894 for ac_dir in $PATH; do
2896 test -z "$ac_dir" && ac_dir=.
2897 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2898 lt_cv_path_LD="$ac_dir/$ac_prog"
2899 # Check to see if the program is GNU ld. I'd rather use --version,
2900 # but apparently some GNU ld's only accept -v.
2901 # Break only if it was the GNU/non-GNU ld that we prefer.
2902 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2903 *GNU* | *'with BFD'*)
2904 test "$with_gnu_ld" != no && break
2907 test "$with_gnu_ld" != yes && break
2914 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2919 if test -n "$LD"; then
2920 echo "$as_me:$LINENO: result: $LD" >&5
2921 echo "${ECHO_T}$LD" >&6
2923 echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2926 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2927 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2928 { (exit 1); exit 1; }; }
2929 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2930 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2931 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2935 case `$LD -v 2>&1 </dev/null` in
2936 *GNU* | *'with BFD'*)
2937 lt_cv_prog_gnu_ld=yes
2940 lt_cv_prog_gnu_ld=no
2944 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2945 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2946 with_gnu_ld=$lt_cv_prog_gnu_ld
2949 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2950 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2951 if test "${lt_cv_ld_reload_flag+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 lt_cv_ld_reload_flag='-r'
2956 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2957 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2958 reload_flag=$lt_cv_ld_reload_flag
2959 case $reload_flag in
2961 *) reload_flag=" $reload_flag" ;;
2963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2965 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2966 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2967 if test "${lt_cv_path_NM+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 if test -n "$NM"; then
2971 # Let the user override the test.
2974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2975 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2977 test -z "$ac_dir" && ac_dir=.
2978 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2979 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2980 # Check to see if the nm accepts a BSD-compat flag.
2981 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2982 # nm: unknown option "B" ignored
2983 # Tru64's nm complains that /dev/null is an invalid object file
2984 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2985 */dev/null* | *'Invalid file or object type'*)
2986 lt_cv_path_NM="$tmp_nm -B"
2990 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2992 lt_cv_path_NM="$tmp_nm -p"
2996 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2997 continue # so that we can try to find one that supports BSD flags
3004 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3007 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3008 echo "${ECHO_T}$lt_cv_path_NM" >&6
3011 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3014 if test "$LN_S" = "ln -s"; then
3015 echo "$as_me:$LINENO: result: yes" >&5
3016 echo "${ECHO_T}yes" >&6
3018 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3019 echo "${ECHO_T}no, using $LN_S" >&6
3022 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3023 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3024 if test "${lt_cv_deplibs_check_method+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 lt_cv_file_magic_cmd='$MAGIC_CMD'
3028 lt_cv_file_magic_test_file=
3029 lt_cv_deplibs_check_method='unknown'
3030 # Need to set the preceding variable on all platforms that support
3031 # interlibrary dependencies.
3032 # 'none' -- dependencies not supported.
3033 # `unknown' -- same as none, but documents that we really don't know.
3034 # 'pass_all' -- all dependencies passed with no checks.
3035 # 'test_compile' -- check by making test program.
3036 # 'file_magic [[regex]]' -- check by looking for files in library path
3037 # which responds to the $file_magic_cmd with a given extended regex.
3038 # If you have `file' or equivalent on your system and you're not sure
3039 # whether `pass_all' will *always* work, you probably want this one.
3043 lt_cv_deplibs_check_method=pass_all
3047 lt_cv_deplibs_check_method=pass_all
3051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3052 lt_cv_file_magic_cmd='/usr/bin/file -L'
3053 lt_cv_file_magic_test_file=/shlib/libc.so
3057 # func_win32_libid is a shell function defined in ltmain.sh
3058 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3059 lt_cv_file_magic_cmd='func_win32_libid'
3063 # Base MSYS/MinGW do not provide the 'file' command needed by
3064 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3065 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3066 lt_cv_file_magic_cmd='$OBJDUMP -f'
3069 darwin* | rhapsody*)
3070 lt_cv_deplibs_check_method=pass_all
3073 freebsd* | kfreebsd*-gnu)
3074 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3077 # Not sure whether the presence of OpenBSD here was a mistake.
3078 # Let's accept both of them until this is cleared up.
3079 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3080 lt_cv_file_magic_cmd=/usr/bin/file
3081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3085 lt_cv_deplibs_check_method=pass_all
3090 lt_cv_deplibs_check_method=pass_all
3093 hpux10.20* | hpux11*)
3094 lt_cv_file_magic_cmd=/usr/bin/file
3097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3098 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3101 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]'
3102 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3106 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3111 irix5* | irix6* | nonstopux*)
3113 *-32|*"-32 ") libmagic=32-bit;;
3114 *-n32|*"-n32 ") libmagic=N32;;
3115 *-64|*"-64 ") libmagic=64-bit;;
3116 *) libmagic=never-match;;
3118 lt_cv_deplibs_check_method=pass_all
3121 # This must be Linux ELF.
3124 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3125 lt_cv_deplibs_check_method=pass_all ;;
3127 # glibc up to 2.1.1 does not perform some relocations on ARM
3128 # this will be overridden with pass_all, but let us keep it just in case
3129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3131 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3132 lt_cv_deplibs_check_method=pass_all
3136 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3145 lt_cv_file_magic_cmd=/usr/bin/file
3146 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3150 lt_cv_deplibs_check_method=unknown
3154 lt_cv_file_magic_cmd=/usr/bin/file
3155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3159 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3163 osf3* | osf4* | osf5*)
3164 lt_cv_deplibs_check_method=pass_all
3168 lt_cv_deplibs_check_method=pass_all
3172 lt_cv_deplibs_check_method=pass_all
3175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3176 case $host_vendor in
3178 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]'
3179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3182 lt_cv_deplibs_check_method=pass_all
3185 lt_cv_file_magic_cmd='/bin/file'
3186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3189 lt_cv_file_magic_cmd='/bin/file'
3190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3191 lt_cv_file_magic_test_file=/lib/libc.so
3194 lt_cv_deplibs_check_method=pass_all
3199 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3200 lt_cv_deplibs_check_method=pass_all
3205 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3206 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3207 file_magic_cmd=$lt_cv_file_magic_cmd
3208 deplibs_check_method=$lt_cv_deplibs_check_method
3209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3214 # If no C compiler was specified, use CC.
3217 # Allow CC to be a program name with arguments.
3221 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3222 if test "${enable_libtool_lock+set}" = set; then
3223 enableval="$enable_libtool_lock"
3226 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3228 # Some flags need to be propagated to the compiler or linker for good
3232 # Find out which ABI we are using.
3233 echo 'int i;' > conftest.$ac_ext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; then
3239 case `/usr/bin/file conftest.$ac_objext` in
3251 # Find out which ABI we are using.
3252 echo '#line 3252 "configure"' > conftest.$ac_ext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; then
3258 if test "$lt_cv_prog_gnu_ld" = yes; then
3259 case `/usr/bin/file conftest.$ac_objext` in
3261 LD="${LD-ld} -melf32bsmip"
3264 LD="${LD-ld} -melf32bmipn32"
3267 LD="${LD-ld} -melf64bmip"
3271 case `/usr/bin/file conftest.$ac_objext` in
3287 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3288 # Find out which ABI we are using.
3289 echo 'int i;' > conftest.$ac_ext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 (eval $ac_compile) 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; then
3295 case "`/usr/bin/file conftest.o`" in
3299 LD="${LD-ld} -m elf_i386"
3301 ppc64-*linux*|powerpc64-*linux*)
3302 LD="${LD-ld} -m elf32ppclinux"
3305 LD="${LD-ld} -m elf_s390"
3308 LD="${LD-ld} -m elf32_sparc"
3315 LD="${LD-ld} -m elf_x86_64"
3317 ppc*-*linux*|powerpc*-*linux*)
3318 LD="${LD-ld} -m elf64ppc"
3321 LD="${LD-ld} -m elf64_s390"
3324 LD="${LD-ld} -m elf64_sparc"
3334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3335 SAVE_CFLAGS="$CFLAGS"
3336 CFLAGS="$CFLAGS -belf"
3337 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3338 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3339 if test "${lt_cv_cc_needs_belf+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3363 rm -f conftest.$ac_objext conftest$ac_exeext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest$ac_exeext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 lt_cv_cc_needs_belf=yes
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 lt_cv_cc_needs_belf=no
3392 rm -f conftest.err conftest.$ac_objext \
3393 conftest$ac_exeext conftest.$ac_ext
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3402 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3403 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3404 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3405 CFLAGS="$SAVE_CFLAGS"
3411 need_locks="$enable_libtool_lock"
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3420 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3421 # On Suns, sometimes $CPP names a directory.
3422 if test -n "$CPP" && test -d "$CPP"; then
3425 if test -z "$CPP"; then
3426 if test "${ac_cv_prog_CPP+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 # Double quotes because CPP needs to be expanded
3430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3433 for ac_c_preproc_warn_flag in '' yes
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3448 # include <limits.h>
3450 # include <assert.h>
3454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null; then
3462 if test -s conftest.err; then
3463 ac_cpp_err=$ac_c_preproc_warn_flag
3464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471 if test -z "$ac_cpp_err"; then
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 # Broken: fails on valid input.
3480 rm -f conftest.err conftest.$ac_ext
3482 # OK, works on sane cases. Now check whether non-existent headers
3483 # can be detected and how.
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #include <ac_nonexistent.h>
3492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3495 grep -v '^ *+' conftest.er1 >conftest.err
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } >/dev/null; then
3500 if test -s conftest.err; then
3501 ac_cpp_err=$ac_c_preproc_warn_flag
3502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3509 if test -z "$ac_cpp_err"; then
3510 # Broken: success on invalid input.
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 # Passes both tests.
3520 rm -f conftest.err conftest.$ac_ext
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then
3537 echo "$as_me:$LINENO: result: $CPP" >&5
3538 echo "${ECHO_T}$CPP" >&6
3540 for ac_c_preproc_warn_flag in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3555 # include <limits.h>
3557 # include <assert.h>
3561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3578 if test -z "$ac_cpp_err"; then
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Broken: fails on valid input.
3587 rm -f conftest.err conftest.$ac_ext
3589 # OK, works on sane cases. Now check whether non-existent headers
3590 # can be detected and how.
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <ac_nonexistent.h>
3599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3616 if test -z "$ac_cpp_err"; then
3617 # Broken: success on invalid input.
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 # Passes both tests.
3627 rm -f conftest.err conftest.$ac_ext
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3635 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&5
3637 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3650 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3651 if test "${ac_cv_header_stdc+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 cat >conftest.$ac_ext <<_ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag"
3683 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest.$ac_objext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_header_stdc=yes
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_cv_header_stdc=no
3702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3704 if test $ac_cv_header_stdc = yes; then
3705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 $EGREP "memchr" >/dev/null 2>&1; then
3719 ac_cv_header_stdc=no
3725 if test $ac_cv_header_stdc = yes; then
3726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 $EGREP "free" >/dev/null 2>&1; then
3740 ac_cv_header_stdc=no
3746 if test $ac_cv_header_stdc = yes; then
3747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3748 if test "$cross_compiling" = yes; then
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3758 #if ((' ' & 0x0FF) == 0x020)
3759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3762 # define ISLOWER(c) \
3763 (('a' <= (c) && (c) <= 'i') \
3764 || ('j' <= (c) && (c) <= 'r') \
3765 || ('s' <= (c) && (c) <= 'z'))
3766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3774 for (i = 0; i < 256; i++)
3775 if (XOR (islower (i), ISLOWER (i))
3776 || toupper (i) != TOUPPER (i))
3781 rm -f conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3794 echo "$as_me: program exited with status $ac_status" >&5
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3799 ac_cv_header_stdc=no
3801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3806 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3807 if test $ac_cv_header_stdc = yes; then
3809 cat >>confdefs.h <<\_ACEOF
3810 #define STDC_HEADERS 1
3815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3826 inttypes.h stdint.h unistd.h
3828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3829 echo "$as_me:$LINENO: checking for $ac_header" >&5
3830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 $ac_includes_default
3842 #include <$ac_header>
3844 rm -f conftest.$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 eval "$as_ac_Header=yes"
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 eval "$as_ac_Header=no"
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3878 cat >>confdefs.h <<_ACEOF
3879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3888 for ac_header in dlfcn.h
3890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3892 echo "$as_me:$LINENO: checking for $ac_header" >&5
3893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3900 # Is the header compilable?
3901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 $ac_includes_default
3910 #include <$ac_header>
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_header_compiler=yes
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_header_compiler=no
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3943 echo "${ECHO_T}$ac_header_compiler" >&6
3945 # Is the header present?
3946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #include <$ac_header>
3956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3973 if test -z "$ac_cpp_err"; then
3974 ac_header_preproc=yes
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 ac_header_preproc=no
3981 rm -f conftest.err conftest.$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3983 echo "${ECHO_T}$ac_header_preproc" >&6
3985 # So? What about this header?
3986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3992 ac_header_preproc=yes
3995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4009 ## ------------------------------------------ ##
4010 ## Report this to the AC_PACKAGE_NAME lists. ##
4011 ## ------------------------------------------ ##
4014 sed "s/^/$as_me: WARNING: /" >&2
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 eval "$as_ac_Header=\$ac_header_preproc"
4024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4029 cat >>confdefs.h <<_ACEOF
4030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4038 ac_cpp='$CXXCPP $CPPFLAGS'
4039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4042 if test -n "$ac_tool_prefix"; then
4043 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_CXX+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$CXX"; then
4053 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 if test -n "$CXX"; then
4073 echo "$as_me:$LINENO: result: $CXX" >&5
4074 echo "${ECHO_T}$CXX" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4080 test -n "$CXX" && break
4083 if test -z "$CXX"; then
4085 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4087 # Extract the first word of "$ac_prog", so it can be a program name with args.
4088 set dummy $ac_prog; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 if test -n "$ac_ct_CXX"; then
4095 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_ac_ct_CXX="$ac_prog"
4105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4114 if test -n "$ac_ct_CXX"; then
4115 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4116 echo "${ECHO_T}$ac_ct_CXX" >&6
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4122 test -n "$ac_ct_CXX" && break
4124 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4130 # Provide some information about the compiler.
4131 echo "$as_me:$LINENO:" \
4132 "checking for C++ compiler version" >&5
4133 ac_compiler=`set X $ac_compile; echo $2`
4134 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4135 (eval $ac_compiler --version </dev/null >&5) 2>&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }
4139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4140 (eval $ac_compiler -v </dev/null >&5) 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }
4144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4145 (eval $ac_compiler -V </dev/null >&5) 2>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }
4150 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4151 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4152 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4173 rm -f conftest.$ac_objext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_cxx_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4206 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4207 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4208 GXX=`test $ac_compiler_gnu = yes && echo yes`
4209 ac_test_CXXFLAGS=${CXXFLAGS+set}
4210 ac_save_CXXFLAGS=$CXXFLAGS
4212 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4213 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4214 if test "${ac_cv_prog_cxx_g+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>conftest.er1
4236 grep -v '^ *+' conftest.er1 >conftest.err
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_cxx_werror_flag"
4242 || test ! -s conftest.err'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; } &&
4248 { ac_try='test -s conftest.$ac_objext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 ac_cv_prog_cxx_g=yes
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4264 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4265 if test "$ac_test_CXXFLAGS" = set; then
4266 CXXFLAGS=$ac_save_CXXFLAGS
4267 elif test $ac_cv_prog_cxx_g = yes; then
4268 if test "$GXX" = yes; then
4274 if test "$GXX" = yes; then
4280 for ac_declaration in \
4282 'extern "C" void std::exit (int) throw (); using std::exit;' \
4283 'extern "C" void std::exit (int); using std::exit;' \
4284 'extern "C" void exit (int) throw ();' \
4285 'extern "C" void exit (int);' \
4288 cat >conftest.$ac_ext <<_ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_cxx_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_cxx_werror_flag"
4359 || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4380 if test -n "$ac_declaration"; then
4381 echo '#ifdef __cplusplus' >>confdefs.h
4382 echo $ac_declaration >>confdefs.h
4383 echo '#endif' >>confdefs.h
4387 ac_cpp='$CXXCPP $CPPFLAGS'
4388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4393 ac_cpp='$CXXCPP $CPPFLAGS'
4394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4397 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4398 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4399 if test -z "$CXXCPP"; then
4400 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 # Double quotes because CXXCPP needs to be expanded
4404 for CXXCPP in "$CXX -E" "/lib/cpp"
4407 for ac_cxx_preproc_warn_flag in '' yes
4409 # Use a header file that comes with gcc, so configuring glibc
4410 # with a fresh cross-compiler works.
4411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4412 # <limits.h> exists even on freestanding compilers.
4413 # On the NeXT, cc -E runs the code through the compiler's parser,
4414 # not just through cpp. "Syntax error" is here to catch this case.
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4422 # include <limits.h>
4424 # include <assert.h>
4428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null; then
4436 if test -s conftest.err; then
4437 ac_cpp_err=$ac_cxx_preproc_warn_flag
4438 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4445 if test -z "$ac_cpp_err"; then
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 # Broken: fails on valid input.
4454 rm -f conftest.err conftest.$ac_ext
4456 # OK, works on sane cases. Now check whether non-existent headers
4457 # can be detected and how.
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <ac_nonexistent.h>
4466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4469 grep -v '^ *+' conftest.er1 >conftest.err
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } >/dev/null; then
4474 if test -s conftest.err; then
4475 ac_cpp_err=$ac_cxx_preproc_warn_flag
4476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4483 if test -z "$ac_cpp_err"; then
4484 # Broken: success on invalid input.
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # Passes both tests.
4494 rm -f conftest.err conftest.$ac_ext
4497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498 rm -f conftest.err conftest.$ac_ext
4499 if $ac_preproc_ok; then
4504 ac_cv_prog_CXXCPP=$CXXCPP
4507 CXXCPP=$ac_cv_prog_CXXCPP
4509 ac_cv_prog_CXXCPP=$CXXCPP
4511 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4512 echo "${ECHO_T}$CXXCPP" >&6
4514 for ac_cxx_preproc_warn_flag in '' yes
4516 # Use a header file that comes with gcc, so configuring glibc
4517 # with a fresh cross-compiler works.
4518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 # <limits.h> exists even on freestanding compilers.
4520 # On the NeXT, cc -E runs the code through the compiler's parser,
4521 # not just through cpp. "Syntax error" is here to catch this case.
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4529 # include <limits.h>
4531 # include <assert.h>
4535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } >/dev/null; then
4543 if test -s conftest.err; then
4544 ac_cpp_err=$ac_cxx_preproc_warn_flag
4545 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4552 if test -z "$ac_cpp_err"; then
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 # Broken: fails on valid input.
4561 rm -f conftest.err conftest.$ac_ext
4563 # OK, works on sane cases. Now check whether non-existent headers
4564 # can be detected and how.
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <ac_nonexistent.h>
4573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } >/dev/null; then
4581 if test -s conftest.err; then
4582 ac_cpp_err=$ac_cxx_preproc_warn_flag
4583 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4590 if test -z "$ac_cpp_err"; then
4591 # Broken: success on invalid input.
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 # Passes both tests.
4601 rm -f conftest.err conftest.$ac_ext
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.err conftest.$ac_ext
4606 if $ac_preproc_ok; then
4609 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4610 See \`config.log' for more details." >&5
4611 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4612 See \`config.log' for more details." >&2;}
4613 { (exit 1); exit 1; }; }
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4624 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4625 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_prog_F77+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 if test -n "$F77"; then
4638 ac_cv_prog_F77="$F77" # Let the user override the test.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test -n "$F77"; then
4658 echo "$as_me:$LINENO: result: $F77" >&5
4659 echo "${ECHO_T}$F77" >&6
4661 echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6
4665 test -n "$F77" && break
4668 if test -z "$F77"; then
4670 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4676 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 if test -n "$ac_ct_F77"; then
4680 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_ac_ct_F77="$ac_prog"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4699 if test -n "$ac_ct_F77"; then
4700 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4701 echo "${ECHO_T}$ac_ct_F77" >&6
4703 echo "$as_me:$LINENO: result: no" >&5
4704 echo "${ECHO_T}no" >&6
4707 test -n "$ac_ct_F77" && break
4714 # Provide some information about the compiler.
4715 echo "$as_me:4715:" \
4716 "checking for Fortran 77 compiler version" >&5
4717 ac_compiler=`set X $ac_compile; echo $2`
4718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4719 (eval $ac_compiler --version </dev/null >&5) 2>&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }
4723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4724 (eval $ac_compiler -v </dev/null >&5) 2>&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }
4728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4729 (eval $ac_compiler -V </dev/null >&5) 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }
4735 # If we don't use `.F' as extension, the preprocessor is not run on the
4736 # input file. (Note that this only needs to work for GNU compilers.)
4739 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4740 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4741 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 cat >conftest.$ac_ext <<_ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754 (eval $ac_compile) 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_f77_werror_flag"
4762 || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4785 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4786 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4788 ac_test_FFLAGS=${FFLAGS+set}
4789 ac_save_FFLAGS=$FFLAGS
4791 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4792 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4793 if test "${ac_cv_prog_f77_g+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 cat >conftest.$ac_ext <<_ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_f77_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_prog_f77_g=yes
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4834 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4835 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4836 if test "$ac_test_FFLAGS" = set; then
4837 FFLAGS=$ac_save_FFLAGS
4838 elif test $ac_cv_prog_f77_g = yes; then
4839 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4845 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4852 G77=`test $ac_compiler_gnu = yes && echo yes`
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4863 # find the maximum length of command line arguments
4864 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4865 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4866 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 # On DJGPP, this test can blow up pretty badly due to problems in libc
4875 # (any single argument exceeding 2000 bytes causes a buffer overrun
4876 # during glob expansion). Even if it were fixed, the result of this
4877 # check would be larger than it should be.
4878 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4882 # Under GNU Hurd, this test is not required because there is
4883 # no limit to the length of command line arguments.
4884 # Libtool will interpret -1 as no limit whatsoever
4885 lt_cv_sys_max_cmd_len=-1;
4889 # On Win9x/ME, this test blows up -- it succeeds, but takes
4890 # about 5 minutes as the teststring grows exponentially.
4891 # Worse, since 9x/ME are not pre-emptively multitasking,
4892 # you end up with a "frozen" computer, even though with patience
4893 # the test eventually succeeds (with a max line length of 256k).
4894 # Instead, let's just punt: use the minimum linelength reported by
4895 # all of the supported platforms: 8192 (on NT/2K/XP).
4896 lt_cv_sys_max_cmd_len=8192;
4900 # On AmigaOS with pdksh, this test takes hours, literally.
4901 # So we just punt and use a minimum line length of 8192.
4902 lt_cv_sys_max_cmd_len=8192;
4906 # If test is not a shell built-in, we'll probably end up computing a
4907 # maximum length that is only half of the actual maximum length, but
4909 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4910 = "XX$teststring") >/dev/null 2>&1 &&
4911 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4912 lt_cv_sys_max_cmd_len=$new_result &&
4913 test $i != 17 # 1/2 MB should be enough
4916 teststring=$teststring$teststring
4919 # Add a significant safety factor because C++ compilers can tack on massive
4920 # amounts of additional arguments before passing them to the linker.
4921 # It appears as though 1/2 is a usable value.
4922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4928 if test -n $lt_cv_sys_max_cmd_len ; then
4929 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4930 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4932 echo "$as_me:$LINENO: result: none" >&5
4933 echo "${ECHO_T}none" >&6
4939 # Check for command to grab the raw symbol name followed by C symbol from nm.
4940 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4941 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4942 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 # These are sane defaults that work on at least a few old systems.
4947 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4949 # Character class describing NM global symbol codes.
4950 symcode='[BCDEGRST]'
4952 # Regexp to match symbols that can be accessed directly from C.
4953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4955 # Transform the above into a raw symbol and a C symbol.
4956 symxfrm='\1 \2\3 \3'
4958 # Transform an extracted symbol line into a proper C declaration
4959 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4961 # Transform an extracted symbol line into symbol name and symbol address
4962 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'"
4964 # Define system-specific variables.
4969 cygwin* | mingw* | pw32*)
4970 symcode='[ABCDGISTW]'
4972 hpux*) # Its linker distinguishes data from code symbols
4973 if test "$host_cpu" = ia64; then
4974 symcode='[ABCDEGRST]'
4976 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4977 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'"
4980 symcode='[BCDEGRST]'
4983 symcode='[BCDEGQRST]'
4993 # Handle CRLF in mingw tool chain
4997 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5001 # If we're using GNU nm, then use its standard symbol codes.
5002 case `$NM -V 2>&1` in
5003 *GNU* | *'with BFD'*)
5004 symcode='[ABCDGIRSTW]' ;;
5007 # Try without a prefix undercore, then with it.
5008 for ac_symprfx in "" "_"; do
5010 # Write the raw and C identifiers.
5011 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5013 # Check to see that the pipe works correctly.
5017 cat > conftest.$ac_ext <<EOF
5022 void nm_test_func(){}
5026 int main(){nm_test_var='a';nm_test_func();return(0);}
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; then
5034 # Now try to grab the symbols.
5036 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5037 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && test -s "$nlist"; then
5041 # Try sorting and uniquifying the output.
5042 if sort "$nlist" | uniq > "$nlist"T; then
5043 mv -f "$nlist"T "$nlist"
5048 # Make sure that we snagged all the symbols we need.
5049 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5050 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5051 cat <<EOF > conftest.$ac_ext
5057 # Now generate the symbol file.
5058 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5060 cat <<EOF >> conftest.$ac_ext
5061 #if defined (__STDC__) && __STDC__
5062 # define lt_ptr_t void *
5064 # define lt_ptr_t char *
5068 /* The mapping between symbol names and symbols. */
5073 lt_preloaded_symbols[] =
5076 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5077 cat <<\EOF >> conftest.$ac_ext
5085 # Now try linking the two files.
5086 mv conftest.$ac_objext conftstm.$ac_objext
5087 lt_save_LIBS="$LIBS"
5088 lt_save_CFLAGS="$CFLAGS"
5089 LIBS="conftstm.$ac_objext"
5090 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092 (eval $ac_link) 2>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5098 LIBS="$lt_save_LIBS"
5099 CFLAGS="$lt_save_CFLAGS"
5101 echo "cannot find nm_test_func in $nlist" >&5
5104 echo "cannot find nm_test_var in $nlist" >&5
5107 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5110 echo "$progname: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 rm -f conftest* conftst*
5115 # Do not use the global_symbol_pipe unless it works.
5116 if test "$pipe_works" = yes; then
5119 lt_cv_sys_global_symbol_pipe=
5125 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5126 lt_cv_sys_global_symbol_to_cdecl=
5128 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5129 echo "$as_me:$LINENO: result: failed" >&5
5130 echo "${ECHO_T}failed" >&6
5132 echo "$as_me:$LINENO: result: ok" >&5
5133 echo "${ECHO_T}ok" >&6
5136 echo "$as_me:$LINENO: checking for objdir" >&5
5137 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5138 if test "${lt_cv_objdir+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 rm -f .libs 2>/dev/null
5142 mkdir .libs 2>/dev/null
5143 if test -d .libs; then
5146 # MS-DOS does not allow filenames that begin with a dot.
5149 rmdir .libs 2>/dev/null
5151 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5152 echo "${ECHO_T}$lt_cv_objdir" >&6
5153 objdir=$lt_cv_objdir
5161 # AIX sometimes has problems with the GCC collect2 program. For some
5162 # reason, if we set the COLLECT_NAMES environment variable, the problems
5163 # vanish in a puff of smoke.
5164 if test "X${COLLECT_NAMES+set}" != Xset; then
5166 export COLLECT_NAMES
5171 # Sed substitution that helps us do robust quoting. It backslashifies
5172 # metacharacters that are still active within double-quoted strings.
5173 Xsed='sed -e s/^X//'
5174 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5176 # Same as above, but do not quote variable references.
5177 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5179 # Sed substitution to delay expansion of an escaped shell variable in a
5180 # double_quote_subst'ed string.
5181 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5183 # Sed substitution to avoid accidental globbing in evaled expressions
5184 no_glob_subst='s/\*/\\\*/g'
5190 default_ofile=libtool
5191 can_build_shared=yes
5193 # All known linkers require a `.a' archive for static linking (except M$VC,
5194 # which needs '.lib').
5196 ltmain="$ac_aux_dir/ltmain.sh"
5197 ofile="$default_ofile"
5198 with_gnu_ld="$lt_cv_prog_gnu_ld"
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}ar; ac_word=$2
5203 echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205 if test "${ac_cv_prog_AR+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 if test -n "$AR"; then
5209 ac_cv_prog_AR="$AR" # Let the user override the test.
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_AR="${ac_tool_prefix}ar"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 if test -n "$AR"; then
5229 echo "$as_me:$LINENO: result: $AR" >&5
5230 echo "${ECHO_T}$AR" >&6
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5237 if test -z "$ac_cv_prog_AR"; then
5239 # Extract the first word of "ar", so it can be a program name with args.
5240 set dummy ar; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 if test -n "$ac_ct_AR"; then
5247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_ac_ct_AR="ar"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5267 if test -n "$ac_ct_AR"; then
5268 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5269 echo "${ECHO_T}$ac_ct_AR" >&6
5271 echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5280 if test -n "$ac_tool_prefix"; then
5281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5283 echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5285 if test "${ac_cv_prog_RANLIB+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 if test -n "$RANLIB"; then
5289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 RANLIB=$ac_cv_prog_RANLIB
5308 if test -n "$RANLIB"; then
5309 echo "$as_me:$LINENO: result: $RANLIB" >&5
5310 echo "${ECHO_T}$RANLIB" >&6
5312 echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6
5317 if test -z "$ac_cv_prog_RANLIB"; then
5318 ac_ct_RANLIB=$RANLIB
5319 # Extract the first word of "ranlib", so it can be a program name with args.
5320 set dummy ranlib; ac_word=$2
5321 echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 if test -n "$ac_ct_RANLIB"; then
5327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_ac_ct_RANLIB="ranlib"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5347 if test -n "$ac_ct_RANLIB"; then
5348 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5349 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5351 echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6
5355 RANLIB=$ac_ct_RANLIB
5357 RANLIB="$ac_cv_prog_RANLIB"
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5362 set dummy ${ac_tool_prefix}strip; ac_word=$2
5363 echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365 if test "${ac_cv_prog_STRIP+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 if test -n "$STRIP"; then
5369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 STRIP=$ac_cv_prog_STRIP
5388 if test -n "$STRIP"; then
5389 echo "$as_me:$LINENO: result: $STRIP" >&5
5390 echo "${ECHO_T}$STRIP" >&6
5392 echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5397 if test -z "$ac_cv_prog_STRIP"; then
5399 # Extract the first word of "strip", so it can be a program name with args.
5400 set dummy strip; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 if test -n "$ac_ct_STRIP"; then
5407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_ac_ct_STRIP="strip"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5427 if test -n "$ac_ct_STRIP"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5429 echo "${ECHO_T}$ac_ct_STRIP" >&6
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5437 STRIP="$ac_cv_prog_STRIP"
5442 old_CFLAGS="$CFLAGS"
5444 # Set sane defaults for various variables
5445 test -z "$AR" && AR=ar
5446 test -z "$AR_FLAGS" && AR_FLAGS=cru
5447 test -z "$AS" && AS=as
5448 test -z "$CC" && CC=cc
5449 test -z "$LTCC" && LTCC=$CC
5450 test -z "$DLLTOOL" && DLLTOOL=dlltool
5451 test -z "$LD" && LD=ld
5452 test -z "$LN_S" && LN_S="ln -s"
5453 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5454 test -z "$NM" && NM=nm
5455 test -z "$SED" && SED=sed
5456 test -z "$OBJDUMP" && OBJDUMP=objdump
5457 test -z "$RANLIB" && RANLIB=:
5458 test -z "$STRIP" && STRIP=:
5459 test -z "$ac_objext" && ac_objext=o
5461 # Determine commands to create old-style static archives.
5462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5463 old_postinstall_cmds='chmod 644 $oldlib'
5464 old_postuninstall_cmds=
5466 if test -n "$RANLIB"; then
5469 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5472 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5478 # Only perform the check for file, if the check method requires it
5479 case $deplibs_check_method in
5481 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5482 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5483 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5484 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5492 lt_save_MAGIC_CMD="$MAGIC_CMD"
5493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5494 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5495 for ac_dir in $ac_dummy; do
5497 test -z "$ac_dir" && ac_dir=.
5498 if test -f $ac_dir/${ac_tool_prefix}file; then
5499 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5500 if test -n "$file_magic_test_file"; then
5501 case $deplibs_check_method in
5503 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5506 $EGREP "$file_magic_regex" > /dev/null; then
5511 *** Warning: the command libtool uses to detect shared libraries,
5512 *** $file_magic_cmd, produces output that libtool cannot recognize.
5513 *** The result is that libtool may fail to recognize shared libraries
5514 *** as such. This will affect the creation of libtool libraries that
5515 *** depend on shared libraries, but programs linked with such libtool
5516 *** libraries will work regardless of this problem. Nevertheless, you
5517 *** may want to report the problem to your system manager and/or to
5518 *** bug-libtool@gnu.org
5528 MAGIC_CMD="$lt_save_MAGIC_CMD"
5533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5534 if test -n "$MAGIC_CMD"; then
5535 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5536 echo "${ECHO_T}$MAGIC_CMD" >&6
5538 echo "$as_me:$LINENO: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5542 if test -z "$lt_cv_path_MAGIC_CMD"; then
5543 if test -n "$ac_tool_prefix"; then
5544 echo "$as_me:$LINENO: checking for file" >&5
5545 echo $ECHO_N "checking for file... $ECHO_C" >&6
5546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5554 lt_save_MAGIC_CMD="$MAGIC_CMD"
5555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5557 for ac_dir in $ac_dummy; do
5559 test -z "$ac_dir" && ac_dir=.
5560 if test -f $ac_dir/file; then
5561 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5562 if test -n "$file_magic_test_file"; then
5563 case $deplibs_check_method in
5565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5568 $EGREP "$file_magic_regex" > /dev/null; then
5573 *** Warning: the command libtool uses to detect shared libraries,
5574 *** $file_magic_cmd, produces output that libtool cannot recognize.
5575 *** The result is that libtool may fail to recognize shared libraries
5576 *** as such. This will affect the creation of libtool libraries that
5577 *** depend on shared libraries, but programs linked with such libtool
5578 *** libraries will work regardless of this problem. Nevertheless, you
5579 *** may want to report the problem to your system manager and/or to
5580 *** bug-libtool@gnu.org
5590 MAGIC_CMD="$lt_save_MAGIC_CMD"
5595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5596 if test -n "$MAGIC_CMD"; then
5597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5598 echo "${ECHO_T}$MAGIC_CMD" >&6
5600 echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6
5616 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5617 if test "${enable_libtool_lock+set}" = set; then
5618 enableval="$enable_libtool_lock"
5621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5624 # Check whether --with-pic or --without-pic was given.
5625 if test "${with_pic+set}" = set; then
5631 test -z "$pic_mode" && pic_mode=default
5633 # Use C for the default configuration in the libtool script
5637 ac_cpp='$CPP $CPPFLAGS'
5638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5643 # Source file extension for C test sources.
5646 # Object file extension for compiled C test sources.
5650 # Code to be used in simple compile tests
5651 lt_simple_compile_test_code="int some_variable = 0;\n"
5653 # Code to be used in simple link tests
5654 lt_simple_link_test_code='int main(){return(0);}\n'
5657 # If no C compiler was specified, use CC.
5660 # Allow CC to be a program name with arguments.
5665 # Check for any special shared library compilation flags.
5668 if test "$GCC" = no; then
5671 lt_prog_cc_shlib='-belf'
5675 if test -n "$lt_prog_cc_shlib"; then
5676 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5677 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5678 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5680 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5681 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5682 lt_cv_prog_cc_can_build_shared=no
5688 # Check to make sure the static flag actually works.
5690 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5691 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5692 if test "${lt_prog_compiler_static_works+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 lt_prog_compiler_static_works=no
5696 save_LDFLAGS="$LDFLAGS"
5697 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5698 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5700 # The compiler can only warn and ignore the option if not recognized
5701 # So say no if there are warnings
5702 if test -s conftest.err; then
5703 # Append any errors to the config.log.
5704 cat conftest.err 1>&5
5706 lt_prog_compiler_static_works=yes
5710 LDFLAGS="$save_LDFLAGS"
5713 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5714 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5716 if test x"$lt_prog_compiler_static_works" = xyes; then
5719 lt_prog_compiler_static=
5725 lt_prog_compiler_no_builtin_flag=
5727 if test "$GCC" = yes; then
5728 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5731 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5732 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5733 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 lt_cv_prog_compiler_rtti_exceptions=no
5737 ac_outfile=conftest.$ac_objext
5738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5739 lt_compiler_flag="-fno-rtti -fno-exceptions"
5740 # Insert the option either (1) after the last *FLAGS variable, or
5741 # (2) before a word containing "conftest.", or (3) at the end.
5742 # Note that $ac_compile itself does not contain backslashes and begins
5743 # with a dollar sign (not a hyphen), so the echo should work correctly.
5744 # The option is referenced via a variable to avoid confusing sed.
5745 lt_compile=`echo "$ac_compile" | $SED \
5746 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5748 -e 's:$: $lt_compiler_flag:'`
5749 (eval echo "\"\$as_me:5749: $lt_compile\"" >&5)
5750 (eval "$lt_compile" 2>conftest.err)
5752 cat conftest.err >&5
5753 echo "$as_me:5753: \$? = $ac_status" >&5
5754 if (exit $ac_status) && test -s "$ac_outfile"; then
5755 # The compiler can only warn and ignore the option if not recognized
5756 # So say no if there are warnings
5757 if test ! -s conftest.err; then
5758 lt_cv_prog_compiler_rtti_exceptions=yes
5764 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5765 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5767 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5768 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5775 lt_prog_compiler_wl=
5776 lt_prog_compiler_pic=
5777 lt_prog_compiler_static=
5779 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5780 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5782 if test "$GCC" = yes; then
5783 lt_prog_compiler_wl='-Wl,'
5784 lt_prog_compiler_static='-static'
5788 # All AIX code is PIC.
5789 if test "$host_cpu" = ia64; then
5790 # AIX 5 now supports IA64 processor
5791 lt_prog_compiler_static='-Bstatic'
5796 # FIXME: we need at least 68020 code to build shared libraries, but
5797 # adding the `-m68020' flag to GCC prevents building anything better,
5799 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5802 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5803 # PIC is the default for these OSes.
5806 mingw* | pw32* | os2*)
5807 # This hack is so that the source file can tell whether it is being
5808 # built for inclusion in a dll (and should export symbols for example).
5809 lt_prog_compiler_pic='-DDLL_EXPORT'
5812 darwin* | rhapsody*)
5813 # PIC is the default on this platform
5814 # Common symbols not allowed in MH_DYLIB files
5815 lt_prog_compiler_pic='-fno-common'
5819 # Just because we use GCC doesn't mean we suddenly get shared libraries
5820 # on systems that don't support them.
5821 lt_prog_compiler_can_build_shared=no
5826 if test -d /usr/nec; then
5827 lt_prog_compiler_pic=-Kconform_pic
5832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5839 lt_prog_compiler_pic='-fPIC'
5845 lt_prog_compiler_pic='-fPIC'
5849 # PORTME Check for flag to pass linker flags through the system compiler.
5852 lt_prog_compiler_wl='-Wl,'
5853 if test "$host_cpu" = ia64; then
5854 # AIX 5 now supports IA64 processor
5855 lt_prog_compiler_static='-Bstatic'
5857 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5861 mingw* | pw32* | os2*)
5862 # This hack is so that the source file can tell whether it is being
5863 # built for inclusion in a dll (and should export symbols for example).
5864 lt_prog_compiler_pic='-DDLL_EXPORT'
5867 hpux9* | hpux10* | hpux11*)
5868 lt_prog_compiler_wl='-Wl,'
5869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5876 lt_prog_compiler_pic='+Z'
5879 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5880 lt_prog_compiler_static='${wl}-a ${wl}archive'
5883 irix5* | irix6* | nonstopux*)
5884 lt_prog_compiler_wl='-Wl,'
5885 # PIC (with -KPIC) is the default.
5886 lt_prog_compiler_static='-non_shared'
5890 lt_prog_compiler_pic='-KPIC'
5891 lt_prog_compiler_static='-Bstatic'
5897 lt_prog_compiler_wl='-Wl,'
5898 lt_prog_compiler_pic='-KPIC'
5899 lt_prog_compiler_static='-static'
5902 lt_prog_compiler_wl='-Wl,'
5903 # All Alpha code is PIC.
5904 lt_prog_compiler_static='-non_shared'
5909 osf3* | osf4* | osf5*)
5910 lt_prog_compiler_wl='-Wl,'
5911 # All OSF/1 code is PIC.
5912 lt_prog_compiler_static='-non_shared'
5916 lt_prog_compiler_pic='-Kpic'
5917 lt_prog_compiler_static='-dn'
5921 lt_prog_compiler_wl='-Wl,'
5922 lt_prog_compiler_pic='-KPIC'
5923 lt_prog_compiler_static='-Bstatic'
5927 lt_prog_compiler_wl='-Qoption ld '
5928 lt_prog_compiler_pic='-PIC'
5929 lt_prog_compiler_static='-Bstatic'
5932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5933 lt_prog_compiler_wl='-Wl,'
5934 lt_prog_compiler_pic='-KPIC'
5935 lt_prog_compiler_static='-Bstatic'
5939 if test -d /usr/nec ;then
5940 lt_prog_compiler_pic='-Kconform_pic'
5941 lt_prog_compiler_static='-Bstatic'
5946 lt_prog_compiler_pic='-pic'
5947 lt_prog_compiler_static='-Bstatic'
5951 lt_prog_compiler_can_build_shared=no
5956 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5957 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5960 # Check to make sure the PIC flag actually works.
5962 if test -n "$lt_prog_compiler_pic"; then
5964 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5965 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5966 if test "${lt_prog_compiler_pic_works+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 lt_prog_compiler_pic_works=no
5970 ac_outfile=conftest.$ac_objext
5971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5973 # Insert the option either (1) after the last *FLAGS variable, or
5974 # (2) before a word containing "conftest.", or (3) at the end.
5975 # Note that $ac_compile itself does not contain backslashes and begins
5976 # with a dollar sign (not a hyphen), so the echo should work correctly.
5977 # The option is referenced via a variable to avoid confusing sed.
5978 lt_compile=`echo "$ac_compile" | $SED \
5979 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5981 -e 's:$: $lt_compiler_flag:'`
5982 (eval echo "\"\$as_me:5982: $lt_compile\"" >&5)
5983 (eval "$lt_compile" 2>conftest.err)
5985 cat conftest.err >&5
5986 echo "$as_me:5986: \$? = $ac_status" >&5
5987 if (exit $ac_status) && test -s "$ac_outfile"; then
5988 # The compiler can only warn and ignore the option if not recognized
5989 # So say no if there are warnings
5990 if test ! -s conftest.err; then
5991 lt_prog_compiler_pic_works=yes
5997 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5998 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6000 if test x"$lt_prog_compiler_pic_works" = xyes; then
6001 case $lt_prog_compiler_pic in
6003 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6006 lt_prog_compiler_pic=
6007 lt_prog_compiler_can_build_shared=no
6012 # For platforms which do not support PIC, -DPIC is meaningless:
6014 lt_prog_compiler_pic=
6017 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6021 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6022 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6023 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 lt_cv_prog_compiler_c_o=no
6027 $rm -r conftest 2>/dev/null
6031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6033 lt_compiler_flag="-o out/conftest2.$ac_objext"
6034 # Insert the option either (1) after the last *FLAGS variable, or
6035 # (2) before a word containing "conftest.", or (3) at the end.
6036 # Note that $ac_compile itself does not contain backslashes and begins
6037 # with a dollar sign (not a hyphen), so the echo should work correctly.
6038 lt_compile=`echo "$ac_compile" | $SED \
6039 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6041 -e 's:$: $lt_compiler_flag:'`
6042 (eval echo "\"\$as_me:6042: $lt_compile\"" >&5)
6043 (eval "$lt_compile" 2>out/conftest.err)
6045 cat out/conftest.err >&5
6046 echo "$as_me:6046: \$? = $ac_status" >&5
6047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6049 # The compiler can only warn and ignore the option if not recognized
6050 # So say no if there are warnings
6051 if test ! -s out/conftest.err; then
6052 lt_cv_prog_compiler_c_o=yes
6057 # SGI C++ compiler will create directory out/ii_files/ for
6058 # template instantiation
6059 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6060 $rm out/* && rmdir out
6066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6067 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6070 hard_links="nottested"
6071 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6072 # do not overwrite the value of need_locks provided by the user
6073 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6074 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6079 ln conftest.a conftest.b 2>&5 || hard_links=no
6080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6081 echo "$as_me:$LINENO: result: $hard_links" >&5
6082 echo "${ECHO_T}$hard_links" >&6
6083 if test "$hard_links" = no; then
6084 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6085 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6092 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6093 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6096 allow_undefined_flag=
6097 enable_shared_with_static_runtimes=no
6099 archive_expsym_cmds=
6100 old_archive_From_new_cmds=
6101 old_archive_from_expsyms_cmds=
6102 export_dynamic_flag_spec=
6103 whole_archive_flag_spec=
6104 thread_safe_flag_spec=
6105 hardcode_libdir_flag_spec=
6106 hardcode_libdir_flag_spec_ld=
6107 hardcode_libdir_separator=
6110 hardcode_shlibpath_var=unsupported
6111 link_all_deplibs=unknown
6112 hardcode_automatic=no
6115 always_export_symbols=no
6116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6117 # include_expsyms should be a list of space-separated symbols to be *always*
6118 # included in the symbol list
6120 # exclude_expsyms can be an extended regexp of symbols to exclude
6121 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6122 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6123 # as well as any symbol that contains `d'.
6124 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6125 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6126 # platforms (ab)use it in PIC code, but their linkers get confused if
6127 # the symbol is explicitly referenced. Since portable code cannot
6128 # rely on this symbol name, it's probably fine to never include it in
6129 # preloaded symbol tables.
6130 extract_expsyms_cmds=
6133 cygwin* | mingw* | pw32*)
6134 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6135 # When not using gcc, we currently assume that we are using
6136 # Microsoft Visual C++.
6137 if test "$GCC" != yes; then
6147 if test "$with_gnu_ld" = yes; then
6148 # If archive_cmds runs LD, not CC, wlarc should be empty
6151 # See if GNU ld supports shared libraries.
6153 aix3* | aix4* | aix5*)
6154 # On AIX/PPC, the GNU linker is very broken
6155 if test "$host_cpu" != ia64; then
6159 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6160 *** to be unable to reliably create shared libraries on AIX.
6161 *** Therefore, libtool is disabling shared libraries support. If you
6162 *** really care for shared libraries, you may want to modify your PATH
6163 *** so that a non-GNU linker is found, and then restart.
6170 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)'
6171 hardcode_libdir_flag_spec='-L$libdir'
6172 hardcode_minus_L=yes
6174 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6175 # that the semantics of dynamic libraries on AmigaOS, at least up
6176 # to version 4, is to share data among multiple programs linked
6177 # with the same dynamic library. Since this doesn't match the
6178 # behavior of shared libraries on other platforms, we can't use
6184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6185 allow_undefined_flag=unsupported
6186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6187 # support --undefined. This deserves some investigation. FIXME
6188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6194 cygwin* | mingw* | pw32*)
6195 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6196 # as there is no search path for DLLs.
6197 hardcode_libdir_flag_spec='-L$libdir'
6198 allow_undefined_flag=unsupported
6199 always_export_symbols=no
6200 enable_shared_with_static_runtimes=yes
6201 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6203 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6205 # If the export-symbols file already is a .def file (1st line
6206 # is EXPORTS), use it as is; otherwise, prepend...
6207 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6208 cp $export_symbols $output_objdir/$soname.def;
6210 echo EXPORTS > $output_objdir/$soname.def;
6211 cat $export_symbols >> $output_objdir/$soname.def;
6213 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6221 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6230 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6234 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6235 *** create shared libraries on Solaris systems. Therefore, libtool
6236 *** is disabling shared libraries support. We urge you to upgrade GNU
6237 *** binutils to release 2.9.1 or newer. Another option is to modify
6238 *** your PATH or compiler configuration so that the native linker is
6239 *** used, and then restart.
6242 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6251 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6254 hardcode_shlibpath_var=no
6258 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6259 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6260 archive_cmds="$tmp_archive_cmds"
6261 supports_anon_versioning=no
6262 case `$LD -v 2>/dev/null` in
6263 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6266 *\ 2.11.*) ;; # other 2.11 versions
6267 *) supports_anon_versioning=yes ;;
6269 if test $supports_anon_versioning = yes; then
6270 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6272 $echo "local: *; };" >> $output_objdir/$libname.ver~
6273 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6275 archive_expsym_cmds="$tmp_archive_cmds"
6283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6292 if test "$ld_shlibs" = yes; then
6293 runpath_var=LD_RUN_PATH
6294 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6295 export_dynamic_flag_spec='${wl}--export-dynamic'
6296 # ancient GNU ld didn't support --whole-archive et. al.
6297 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6300 whole_archive_flag_spec=
6304 # PORTME fill in a description of your system's linker (not GNU ld)
6307 allow_undefined_flag=unsupported
6308 always_export_symbols=yes
6309 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'
6310 # Note: this linker hardcodes the directories in LIBPATH if there
6311 # are no directories specified by -L.
6312 hardcode_minus_L=yes
6313 if test "$GCC" = yes && test -z "$link_static_flag"; then
6314 # Neither direct hardcoding nor static linking is supported with a
6316 hardcode_direct=unsupported
6321 if test "$host_cpu" = ia64; then
6322 # On IA64, the linker does run time linking by default, so we don't
6323 # have to do anything special.
6324 aix_use_runtimelinking=no
6325 exp_sym_flag='-Bexport'
6328 # If we're using GNU nm, then we don't want the "-C" option.
6329 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6330 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6331 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'
6333 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'
6335 aix_use_runtimelinking=no
6337 # Test if we are trying to use run time linking or normal
6338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6339 # need to do runtime linking.
6340 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6341 for ld_flag in $LDFLAGS; do
6342 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6343 aix_use_runtimelinking=yes
6349 exp_sym_flag='-bexport'
6350 no_entry_flag='-bnoentry'
6353 # When large executables or shared objects are built, AIX ld can
6354 # have problems creating the table of contents. If linking a library
6355 # or program results in "error TOC overflow" add -mminimal-toc to
6356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6361 hardcode_libdir_separator=':'
6362 link_all_deplibs=yes
6364 if test "$GCC" = yes; then
6365 case $host_os in aix4.012|aix4.012.*)
6366 # We only want to do this on AIX 4.2 and lower, the check
6367 # below for broken collect2 doesn't work under 4.3+
6368 collect2name=`${CC} -print-prog-name=collect2`
6369 if test -f "$collect2name" && \
6370 strings "$collect2name" | grep resolve_lib_name >/dev/null
6372 # We have reworked collect2
6375 # We have old collect2
6376 hardcode_direct=unsupported
6377 # It fails to find uninstalled libraries when the uninstalled
6378 # path is not listed in the libpath. Setting hardcode_minus_L
6379 # to unsupported forces relinking
6380 hardcode_minus_L=yes
6381 hardcode_libdir_flag_spec='-L$libdir'
6382 hardcode_libdir_separator=
6385 shared_flag='-shared'
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*)
6572 if test "$GXX" = yes ; then
6573 archive_cmds_need_lc=no
6575 rhapsody* | darwin1.[012])
6576 allow_undefined_flag='-undefined suppress'
6579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6580 allow_undefined_flag='-flat_namespace -undefined suppress'
6582 case ${MACOSX_DEPLOYMENT_TARGET} in
6584 allow_undefined_flag='-flat_namespace -undefined suppress'
6587 allow_undefined_flag='-undefined dynamic_lookup'
6593 lt_int_apple_cc_single_mod=no
6594 output_verbose_link_cmd='echo'
6595 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6596 lt_int_apple_cc_single_mod=yes
6598 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6599 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6601 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6603 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6605 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6606 archive_expsym_cmds='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}'
6608 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6610 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}'
6612 hardcode_automatic=yes
6613 hardcode_shlibpath_var=unsupported
6614 whole_archive_flag_spec='-all_load $convenience'
6615 link_all_deplibs=yes
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)
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 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6763 export_dynamic_flag_spec='${wl}-E'
6766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6768 hardcode_libdir_flag_spec='-R$libdir'
6771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6779 hardcode_libdir_flag_spec='-L$libdir'
6780 hardcode_minus_L=yes
6781 allow_undefined_flag=unsupported
6782 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'
6783 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6787 if test "$GCC" = yes; then
6788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6789 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'
6791 allow_undefined_flag=' -expect_unresolved \*'
6792 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'
6794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6795 hardcode_libdir_separator=:
6798 osf4* | osf5*) # as osf3* with the addition of -msym flag
6799 if test "$GCC" = yes; then
6800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6801 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'
6802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6804 allow_undefined_flag=' -expect_unresolved \*'
6805 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'
6806 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6807 $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'
6809 # Both c and cxx compiler support -rpath directly
6810 hardcode_libdir_flag_spec='-rpath $libdir'
6812 hardcode_libdir_separator=:
6816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6817 hardcode_shlibpath_var=no
6818 export_dynamic_flag_spec='${wl}-Bexport'
6819 runpath_var=LD_RUN_PATH
6820 hardcode_runpath_var=yes
6824 no_undefined_flag=' -z text'
6825 if test "$GCC" = yes; then
6826 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6827 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6828 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6830 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6831 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6834 hardcode_libdir_flag_spec='-R$libdir'
6835 hardcode_shlibpath_var=no
6837 solaris2.[0-5] | solaris2.[0-5].*) ;;
6838 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6839 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6841 link_all_deplibs=yes
6845 if test "x$host_vendor" = xsequent; then
6846 # Use $CC to link under sequent, because it throws in some extra .o
6847 # files that make .init and .fini sections work.
6848 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6850 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6852 hardcode_libdir_flag_spec='-L$libdir'
6854 hardcode_minus_L=yes
6855 hardcode_shlibpath_var=no
6859 case $host_vendor in
6861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6862 hardcode_direct=yes # is this really true???
6865 ## LD is ld it makes a PLAMLIB
6866 ## CC just makes a GrossModule.
6867 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6868 reload_cmds='$CC -r -o $output$reload_objs'
6872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6873 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6876 runpath_var='LD_RUN_PATH'
6877 hardcode_shlibpath_var=no
6881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6882 hardcode_shlibpath_var=no
6883 export_dynamic_flag_spec='-Bexport'
6887 if test -d /usr/nec; then
6888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6889 hardcode_shlibpath_var=no
6890 runpath_var=LD_RUN_PATH
6891 hardcode_runpath_var=yes
6897 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6900 hardcode_shlibpath_var=no
6901 hardcode_runpath_var=yes
6902 runpath_var=LD_RUN_PATH
6905 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6906 no_undefined_flag='${wl}-z ${wl}text'
6907 if test "$GCC" = yes; then
6908 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6910 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6912 runpath_var='LD_RUN_PATH'
6913 hardcode_shlibpath_var=no
6917 no_undefined_flag=' -z text'
6918 # $CC -shared without GNU ld will not create a library from C++
6919 # object files and a static libstdc++, better avoid it by now
6920 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6923 hardcode_libdir_flag_spec=
6924 hardcode_shlibpath_var=no
6925 runpath_var='LD_RUN_PATH'
6929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6930 hardcode_libdir_flag_spec='-L$libdir'
6931 hardcode_shlibpath_var=no
6940 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6941 echo "${ECHO_T}$ld_shlibs" >&6
6942 test "$ld_shlibs" = no && can_build_shared=no
6944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6945 if test "$GCC" = yes; then
6946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6950 # Do we need to explicitly link libc?
6952 case "x$archive_cmds_need_lc" in
6954 # Assume -lc should be added
6955 archive_cmds_need_lc=yes
6957 if test "$enable_shared" = yes && test "$GCC" = yes; then
6958 case $archive_cmds in
6960 # FIXME: we may have to deal with multi-command sequences.
6963 # Test whether the compiler implicitly links with -lc since on some
6964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6965 # to ld, don't add -lc before -lgcc.
6966 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } 2>conftest.err; then
6978 libobjs=conftest.$ac_objext
6980 wl=$lt_prog_compiler_wl
6986 lt_save_allow_undefined_flag=$allow_undefined_flag
6987 allow_undefined_flag=
6988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6989 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }
6994 archive_cmds_need_lc=no
6996 archive_cmds_need_lc=yes
6998 allow_undefined_flag=$lt_save_allow_undefined_flag
7000 cat conftest.err 1>&5
7003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7004 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7011 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7012 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7014 libname_spec='lib$name'
7022 shlibpath_overrides_runpath=unknown
7024 dynamic_linker="$host_os ld.so"
7025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7026 if test "$GCC" = yes; then
7027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7028 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7029 # if the path contains ";" then we assume it to be the separator
7030 # otherwise default to the standard path separator (i.e. ":") - it is
7031 # assumed that no part of a normal pathname contains ";" but that should
7032 # okay in the real world where ";" in dirpaths is itself problematic.
7033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7040 need_lib_prefix=unknown
7041 hardcode_into_libs=no
7043 # when you set need_version to no, make sure it does not cause -set_version
7044 # flags to be left without arguments
7045 need_version=unknown
7050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7051 shlibpath_var=LIBPATH
7053 # AIX 3 has no versioning support, so we append a major version to the name.
7054 soname_spec='${libname}${release}${shared_ext}$major'
7061 hardcode_into_libs=yes
7062 if test "$host_cpu" = ia64; then
7063 # AIX 5 supports IA64
7064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7065 shlibpath_var=LD_LIBRARY_PATH
7067 # With GCC up to 2.95.x, collect2 would create an import file
7068 # for dependence libraries. The import file would start with
7069 # the line `#! .'. This would cause the generated library to
7070 # depend on `.', always an invalid library. This was fixed in
7071 # development snapshots of GCC prior to 3.0.
7073 aix4 | aix4.[01] | aix4.[01].*)
7074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7076 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7084 # soname into executable. Probably we can add versioning support to
7085 # collect2, so additional links can be useful in future.
7086 if test "$aix_use_runtimelinking" = yes; then
7087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7088 # instead of lib<name>.a to let people know that these are not
7089 # typical AIX shared libraries.
7090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7092 # We preserve .a as extension for shared libraries through AIX4.2
7093 # and later when we are not doing run time linking.
7094 library_names_spec='${libname}${release}.a $libname.a'
7095 soname_spec='${libname}${release}${shared_ext}$major'
7097 shlibpath_var=LIBPATH
7102 library_names_spec='$libname.ixlibrary $libname.a'
7103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7104 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'
7108 library_names_spec='${libname}${shared_ext}'
7109 dynamic_linker="$host_os ld.so"
7110 shlibpath_var=LIBRARY_PATH
7116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7117 soname_spec='${libname}${release}${shared_ext}$major'
7118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7119 shlibpath_var=LD_LIBRARY_PATH
7120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7122 # the default ld.so.conf also contains /usr/contrib/lib and
7123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7124 # libtool to hard-code these into programs
7127 cygwin* | mingw* | pw32*)
7128 version_type=windows
7133 case $GCC,$host_os in
7134 yes,cygwin* | yes,mingw* | yes,pw32*)
7135 library_names_spec='$libname.dll.a'
7136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7137 postinstall_cmds='base_file=`basename \${file}`~
7138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7139 dldir=$destdir/`dirname \$dlpath`~
7140 test -d \$dldir || mkdir -p \$dldir~
7141 $install_prog $dir/$dlname \$dldir/$dlname'
7142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7143 dlpath=$dir/\$dldll~
7145 shlibpath_overrides_runpath=yes
7149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7151 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7154 # MinGW DLLs use traditional 'lib' prefix
7155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7157 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7158 # It is most probably a Windows format PATH printed by
7159 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7160 # path with ; separators, and with drive letters. We can handle the
7161 # drive letters (cygwin fileutils understands them), so leave them,
7162 # especially as we might pass files found there to a mingw objdump,
7163 # which wouldn't understand a cygwinified path. Ahh.
7164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7170 # pw32 DLLs use 'pw' prefix rather than 'lib'
7171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7177 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7180 dynamic_linker='Win32 ld.exe'
7181 # FIXME: first we should search . and the directory the executable is in
7185 darwin* | rhapsody*)
7186 dynamic_linker="$host_os dyld"
7190 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7191 soname_spec='${libname}${release}${major}$shared_ext'
7192 shlibpath_overrides_runpath=yes
7193 shlibpath_var=DYLD_LIBRARY_PATH
7194 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7195 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7196 if test "$GCC" = yes; then
7197 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"`
7199 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7209 soname_spec='${libname}${release}${shared_ext}$major'
7210 shlibpath_var=LD_LIBRARY_PATH
7221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7222 soname_spec='${libname}${release}${shared_ext}$major'
7223 shlibpath_var=LD_LIBRARY_PATH
7224 shlibpath_overrides_runpath=no
7225 hardcode_into_libs=yes
7226 dynamic_linker='GNU ld.so'
7230 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7231 version_type=freebsd-$objformat
7232 case $version_type in
7234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7243 shlibpath_var=LD_LIBRARY_PATH
7246 shlibpath_overrides_runpath=yes
7248 freebsd3.01* | freebsdelf3.01*)
7249 shlibpath_overrides_runpath=yes
7250 hardcode_into_libs=yes
7253 shlibpath_overrides_runpath=no
7254 hardcode_into_libs=yes
7263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7264 soname_spec='${libname}${release}${shared_ext}$major'
7265 shlibpath_var=LD_LIBRARY_PATH
7266 hardcode_into_libs=yes
7269 hpux9* | hpux10* | hpux11*)
7270 # Give a soname corresponding to the major version so that dld.sl refuses to
7271 # link against other versions.
7278 hardcode_into_libs=yes
7279 dynamic_linker="$host_os dld.so"
7280 shlibpath_var=LD_LIBRARY_PATH
7281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7283 soname_spec='${libname}${release}${shared_ext}$major'
7284 if test "X$HPUX_IA64_MODE" = X32; then
7285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7293 hardcode_into_libs=yes
7294 dynamic_linker="$host_os dld.sl"
7295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7298 soname_spec='${libname}${release}${shared_ext}$major'
7299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7304 dynamic_linker="$host_os dld.sl"
7305 shlibpath_var=SHLIB_PATH
7306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7308 soname_spec='${libname}${release}${shared_ext}$major'
7311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7312 postinstall_cmds='chmod 555 $lib'
7315 irix5* | irix6* | nonstopux*)
7317 nonstopux*) version_type=nonstopux ;;
7319 if test "$lt_cv_prog_gnu_ld" = yes; then
7327 soname_spec='${libname}${release}${shared_ext}$major'
7328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7330 irix5* | nonstopux*)
7334 case $LD in # libtool.m4 will add one of these switches to LD
7335 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7336 libsuff= shlibsuff= libmagic=32-bit;;
7337 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7338 libsuff=32 shlibsuff=N32 libmagic=N32;;
7339 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7340 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7341 *) libsuff= shlibsuff= libmagic=never-match;;
7345 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7346 shlibpath_overrides_runpath=no
7347 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7348 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7349 hardcode_into_libs=yes
7352 # No shared lib support for Linux oldld, aout, or coff.
7353 linux*oldld* | linux*aout* | linux*coff*)
7357 # This must be Linux ELF.
7362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7363 soname_spec='${libname}${release}${shared_ext}$major'
7364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7365 shlibpath_var=LD_LIBRARY_PATH
7366 shlibpath_overrides_runpath=no
7367 # This implies no fast_install, which is unacceptable.
7368 # Some rework will be needed to allow for fast_install
7369 # before this can be enabled.
7370 hardcode_into_libs=yes
7372 # find out which ABI we are using
7375 x86_64*|s390x*|powerpc64*)
7376 echo '#line 7376 "configure"' > conftest.$ac_ext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 (eval $ac_compile) 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; then
7382 case `/usr/bin/file conftest.$ac_objext` in
7385 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7393 # Append ld.so.conf contents to the search path
7394 if test -f /etc/ld.so.conf; then
7395 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7396 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7399 # We used to test for /lib/ld.so.1 and disable shared libraries on
7400 # powerpc, because MkLinux only supported shared libraries with the
7401 # GNU dynamic linker. Since this was broken with cross compilers,
7402 # most powerpc-linux boxes support dynamic linking these days and
7403 # people can always --disable-shared, the test was removed, and we
7404 # assume the GNU/Linux dynamic linker is in use.
7405 dynamic_linker='GNU/Linux ld.so'
7412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7413 soname_spec='${libname}${release}${shared_ext}$major'
7414 shlibpath_var=LD_LIBRARY_PATH
7415 shlibpath_overrides_runpath=no
7416 hardcode_into_libs=yes
7417 dynamic_linker='GNU ld.so'
7424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7427 dynamic_linker='NetBSD (a.out) ld.so'
7429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7430 soname_spec='${libname}${release}${shared_ext}$major'
7431 dynamic_linker='NetBSD ld.elf_so'
7433 shlibpath_var=LD_LIBRARY_PATH
7434 shlibpath_overrides_runpath=yes
7435 hardcode_into_libs=yes
7440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7441 shlibpath_var=LD_LIBRARY_PATH
7442 shlibpath_overrides_runpath=yes
7449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450 soname_spec='${libname}${release}${shared_ext}$major'
7451 shlibpath_var=LD_LIBRARY_PATH
7452 shlibpath_overrides_runpath=yes
7459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7461 shlibpath_var=LD_LIBRARY_PATH
7462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7464 openbsd2.[89] | openbsd2.[89].*)
7465 shlibpath_overrides_runpath=no
7468 shlibpath_overrides_runpath=yes
7472 shlibpath_overrides_runpath=yes
7477 libname_spec='$name'
7480 library_names_spec='$libname${shared_ext} $libname.a'
7481 dynamic_linker='OS/2 ld.exe'
7482 shlibpath_var=LIBPATH
7485 osf3* | osf4* | osf5*)
7489 soname_spec='${libname}${release}${shared_ext}$major'
7490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7491 shlibpath_var=LD_LIBRARY_PATH
7492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7498 soname_spec='${libname}${release}${shared_ext}$major'
7499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7500 shlibpath_var=LD_LIBRARY_PATH
7507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7508 soname_spec='${libname}${release}${shared_ext}$major'
7509 shlibpath_var=LD_LIBRARY_PATH
7510 shlibpath_overrides_runpath=yes
7511 hardcode_into_libs=yes
7512 # ldd complains unless libraries are executable
7513 postinstall_cmds='chmod +x $lib'
7518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7520 shlibpath_var=LD_LIBRARY_PATH
7521 shlibpath_overrides_runpath=yes
7522 if test "$with_gnu_ld" = yes; then
7528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7531 soname_spec='${libname}${release}${shared_ext}$major'
7532 shlibpath_var=LD_LIBRARY_PATH
7533 case $host_vendor in
7535 shlibpath_overrides_runpath=no
7537 export_dynamic_flag_spec='${wl}-Blargedynsym'
7538 runpath_var=LD_RUN_PATH
7546 shlibpath_overrides_runpath=no
7547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7553 if test -d /usr/nec ;then
7555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7556 soname_spec='$libname${shared_ext}.$major'
7557 shlibpath_var=LD_LIBRARY_PATH
7563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564 soname_spec='${libname}${release}${shared_ext}$major'
7565 shlibpath_var=LD_LIBRARY_PATH
7572 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7573 echo "${ECHO_T}$dynamic_linker" >&6
7574 test "$dynamic_linker" = no && can_build_shared=no
7576 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7577 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7579 if test -n "$hardcode_libdir_flag_spec" || \
7580 test -n "$runpath_var " || \
7581 test "X$hardcode_automatic"="Xyes" ; then
7583 # We can hardcode non-existant directories.
7584 if test "$hardcode_direct" != no &&
7585 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7586 # have to relink, otherwise we might link with an installed library
7587 # when we should be linking with a yet-to-be-installed one
7588 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7589 test "$hardcode_minus_L" != no; then
7590 # Linking always hardcodes the temporary library directory.
7591 hardcode_action=relink
7593 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7594 hardcode_action=immediate
7597 # We cannot hardcode anything, or else we can only hardcode existing
7599 hardcode_action=unsupported
7601 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7602 echo "${ECHO_T}$hardcode_action" >&6
7604 if test "$hardcode_action" = relink; then
7605 # Fast installation is not supported
7606 enable_fast_install=no
7607 elif test "$shlibpath_overrides_runpath" = yes ||
7608 test "$enable_shared" = no; then
7609 # Fast installation is not necessary
7610 enable_fast_install=needless
7615 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7616 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7617 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7620 echo "$as_me:$LINENO: result: yes" >&5
7621 echo "${ECHO_T}yes" >&6
7623 # FIXME - insert some real tests, host_os isn't really good enough
7626 if test -n "$STRIP" ; then
7627 striplib="$STRIP -x"
7628 echo "$as_me:$LINENO: result: yes" >&5
7629 echo "${ECHO_T}yes" >&6
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7636 echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6
7642 if test "x$enable_dlopen" != xyes; then
7643 enable_dlopen=unknown
7644 enable_dlopen_self=unknown
7645 enable_dlopen_self_static=unknown
7652 lt_cv_dlopen="load_add_on"
7654 lt_cv_dlopen_self=yes
7658 lt_cv_dlopen="LoadLibrary"
7663 lt_cv_dlopen="dlopen"
7668 # if libdl is installed we need to link against it
7669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 ac_check_lib_save_LIBS=$LIBS
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7683 /* Override any gcc2 internal prototype to avoid an error. */
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7700 (eval $ac_link) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1 >conftest.err
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest$ac_exeext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_lib_dl_dlopen=yes
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 ac_cv_lib_dl_dlopen=no
7727 rm -f conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
7729 LIBS=$ac_check_lib_save_LIBS
7731 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7732 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7733 if test $ac_cv_lib_dl_dlopen = yes; then
7734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7739 lt_cv_dlopen_self=yes
7746 echo "$as_me:$LINENO: checking for shl_load" >&5
7747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7748 if test "${ac_cv_func_shl_load+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7759 #define shl_load innocuous_shl_load
7761 /* System header to define __stub macros and hopefully few prototypes,
7762 which can conflict with char shl_load (); below.
7763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7764 <limits.h> exists even on freestanding compilers. */
7767 # include <limits.h>
7769 # include <assert.h>
7774 /* Override any gcc2 internal prototype to avoid an error. */
7779 /* We use char because int might match the return type of a gcc2
7780 builtin and then its argument prototype would still apply. */
7782 /* The GNU C library defines this for functions which it implements
7783 to always fail with ENOSYS. Some functions are actually named
7784 something starting with __ and the normal name is an alias. */
7785 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7788 char (*f) () = shl_load;
7797 return f != shl_load;
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804 (eval $ac_link) 2>conftest.er1
7806 grep -v '^ *+' conftest.er1 >conftest.err
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } &&
7811 { ac_try='test -z "$ac_c_werror_flag"
7812 || test ! -s conftest.err'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; } &&
7818 { ac_try='test -s conftest$ac_exeext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 ac_cv_func_shl_load=yes
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 ac_cv_func_shl_load=no
7831 rm -f conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7835 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7836 if test $ac_cv_func_shl_load = yes; then
7837 lt_cv_dlopen="shl_load"
7839 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7840 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7841 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 ac_check_lib_save_LIBS=$LIBS
7846 cat >conftest.$ac_ext <<_ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7853 /* Override any gcc2 internal prototype to avoid an error. */
7857 /* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870 (eval $ac_link) 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag"
7878 || test ! -s conftest.err'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_cv_lib_dld_shl_load=yes
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 ac_cv_lib_dld_shl_load=no
7897 rm -f conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7899 LIBS=$ac_check_lib_save_LIBS
7901 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7902 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7903 if test $ac_cv_lib_dld_shl_load = yes; then
7904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7906 echo "$as_me:$LINENO: checking for dlopen" >&5
7907 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7908 if test "${ac_cv_func_dlopen+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7919 #define dlopen innocuous_dlopen
7921 /* System header to define __stub macros and hopefully few prototypes,
7922 which can conflict with char dlopen (); below.
7923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7924 <limits.h> exists even on freestanding compilers. */
7927 # include <limits.h>
7929 # include <assert.h>
7934 /* Override any gcc2 internal prototype to avoid an error. */
7939 /* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7942 /* The GNU C library defines this for functions which it implements
7943 to always fail with ENOSYS. Some functions are actually named
7944 something starting with __ and the normal name is an alias. */
7945 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7948 char (*f) () = dlopen;
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>conftest.er1
7966 grep -v '^ *+' conftest.er1 >conftest.err
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag"
7972 || test ! -s conftest.err'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_func_dlopen=yes
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 ac_cv_func_dlopen=no
7991 rm -f conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7994 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7995 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7996 if test $ac_cv_func_dlopen = yes; then
7997 lt_cv_dlopen="dlopen"
7999 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8000 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 ac_check_lib_save_LIBS=$LIBS
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8013 /* Override any gcc2 internal prototype to avoid an error. */
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>conftest.er1
8032 grep -v '^ *+' conftest.er1 >conftest.err
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag"
8038 || test ! -s conftest.err'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 ac_cv_lib_dl_dlopen=yes
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 ac_cv_lib_dl_dlopen=no
8057 rm -f conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059 LIBS=$ac_check_lib_save_LIBS
8061 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8063 if test $ac_cv_lib_dl_dlopen = yes; then
8064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8066 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 ac_check_lib_save_LIBS=$LIBS
8073 cat >conftest.$ac_ext <<_ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8080 /* Override any gcc2 internal prototype to avoid an error. */
8084 /* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097 (eval $ac_link) 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag"
8105 || test ! -s conftest.err'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 ac_cv_lib_svld_dlopen=yes
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ac_cv_lib_svld_dlopen=no
8124 rm -f conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126 LIBS=$ac_check_lib_save_LIBS
8128 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8129 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8130 if test $ac_cv_lib_svld_dlopen = yes; then
8131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8133 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8134 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8135 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 ac_check_lib_save_LIBS=$LIBS
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8147 /* Override any gcc2 internal prototype to avoid an error. */
8151 /* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>conftest.er1
8166 grep -v '^ *+' conftest.er1 >conftest.err
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag"
8172 || test ! -s conftest.err'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 ac_cv_lib_dld_dld_link=yes
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8189 ac_cv_lib_dld_dld_link=no
8191 rm -f conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 LIBS=$ac_check_lib_save_LIBS
8195 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8196 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8197 if test $ac_cv_lib_dld_dld_link = yes; then
8198 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8219 if test "x$lt_cv_dlopen" != xno; then
8225 case $lt_cv_dlopen in
8227 save_CPPFLAGS="$CPPFLAGS"
8228 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8230 save_LDFLAGS="$LDFLAGS"
8231 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8234 LIBS="$lt_cv_dlopen_libs $LIBS"
8236 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8237 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8238 if test "${lt_cv_dlopen_self+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 if test "$cross_compiling" = yes; then :
8242 lt_cv_dlopen_self=cross
8244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8245 lt_status=$lt_dlunknown
8246 cat > conftest.$ac_ext <<EOF
8247 #line 8247 "configure"
8248 #include "confdefs.h"
8257 # define LT_DLGLOBAL RTLD_GLOBAL
8260 # define LT_DLGLOBAL DL_GLOBAL
8262 # define LT_DLGLOBAL 0
8266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8267 find out it does not work in some platform. */
8268 #ifndef LT_DLLAZY_OR_NOW
8270 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8273 # define LT_DLLAZY_OR_NOW DL_LAZY
8276 # define LT_DLLAZY_OR_NOW RTLD_NOW
8279 # define LT_DLLAZY_OR_NOW DL_NOW
8281 # define LT_DLLAZY_OR_NOW 0
8289 extern "C" void exit (int);
8292 void fnord() { int i=42;}
8295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8296 int status = $lt_dlunknown;
8300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8302 /* dlclose (self); */
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8313 (./conftest; exit; ) 2>/dev/null
8316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8318 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8321 # compilation failed
8322 lt_cv_dlopen_self=no
8329 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8330 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8332 if test "x$lt_cv_dlopen_self" = xyes; then
8333 LDFLAGS="$LDFLAGS $link_static_flag"
8334 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8335 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8336 if test "${lt_cv_dlopen_self_static+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 if test "$cross_compiling" = yes; then :
8340 lt_cv_dlopen_self_static=cross
8342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8343 lt_status=$lt_dlunknown
8344 cat > conftest.$ac_ext <<EOF
8345 #line 8345 "configure"
8346 #include "confdefs.h"
8355 # define LT_DLGLOBAL RTLD_GLOBAL
8358 # define LT_DLGLOBAL DL_GLOBAL
8360 # define LT_DLGLOBAL 0
8364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8365 find out it does not work in some platform. */
8366 #ifndef LT_DLLAZY_OR_NOW
8368 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8371 # define LT_DLLAZY_OR_NOW DL_LAZY
8374 # define LT_DLLAZY_OR_NOW RTLD_NOW
8377 # define LT_DLLAZY_OR_NOW DL_NOW
8379 # define LT_DLLAZY_OR_NOW 0
8387 extern "C" void exit (int);
8390 void fnord() { int i=42;}
8393 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8394 int status = $lt_dlunknown;
8398 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8399 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8400 /* dlclose (self); */
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8411 (./conftest; exit; ) 2>/dev/null
8414 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8415 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8416 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8419 # compilation failed
8420 lt_cv_dlopen_self_static=no
8427 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8428 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8431 CPPFLAGS="$save_CPPFLAGS"
8432 LDFLAGS="$save_LDFLAGS"
8437 case $lt_cv_dlopen_self in
8438 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8439 *) enable_dlopen_self=unknown ;;
8442 case $lt_cv_dlopen_self_static in
8443 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8444 *) enable_dlopen_self_static=unknown ;;
8449 # Report which librarie types wil actually be built
8450 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8451 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8452 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8453 echo "${ECHO_T}$can_build_shared" >&6
8455 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8456 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8457 test "$can_build_shared" = "no" && enable_shared=no
8459 # On AIX, shared libraries and static libraries use the same namespace, and
8460 # are all built from PIC.
8463 test "$enable_shared" = yes && enable_static=no
8464 if test -n "$RANLIB"; then
8465 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8466 postinstall_cmds='$RANLIB $lib'
8471 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8472 test "$enable_shared" = yes && enable_static=no
8475 darwin* | rhapsody*)
8476 if test "$GCC" = yes; then
8477 archive_cmds_need_lc=no
8479 rhapsody* | darwin1.[012])
8480 allow_undefined_flag='-undefined suppress'
8483 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8484 allow_undefined_flag='-flat_namespace -undefined suppress'
8486 case ${MACOSX_DEPLOYMENT_TARGET} in
8488 allow_undefined_flag='-flat_namespace -undefined suppress'
8491 allow_undefined_flag='-undefined dynamic_lookup'
8497 output_verbose_link_cmd='echo'
8498 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8499 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8501 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}'
8502 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}'
8504 hardcode_automatic=yes
8505 hardcode_shlibpath_var=unsupported
8506 whole_archive_flag_spec='-all_load $convenience'
8507 link_all_deplibs=yes
8513 echo "$as_me:$LINENO: result: $enable_shared" >&5
8514 echo "${ECHO_T}$enable_shared" >&6
8516 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8517 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8518 # Make sure either enable_shared or enable_static is yes.
8519 test "$enable_shared" = yes || enable_static=yes
8520 echo "$as_me:$LINENO: result: $enable_static" >&5
8521 echo "${ECHO_T}$enable_static" >&6
8523 # The else clause should only fire when bootstrapping the
8524 # libtool distribution, otherwise you forgot to ship ltmain.sh
8525 # with your package, and you will get complaints that there are
8526 # no rules to generate ltmain.sh.
8527 if test -f "$ltmain"; then
8528 # See if we are running on zsh, and set the options which allow our commands through
8529 # without removal of \ escapes.
8530 if test -n "${ZSH_VERSION+set}" ; then
8531 setopt NO_GLOB_SUBST
8533 # Now quote all the things that may contain metacharacters while being
8534 # careful not to overquote the AC_SUBSTed values. We take copies of the
8535 # variables and quote the copies for generation of the libtool script.
8536 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8538 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8539 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8540 deplibs_check_method reload_flag reload_cmds need_locks \
8541 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8542 lt_cv_sys_global_symbol_to_c_name_address \
8543 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8544 old_postinstall_cmds old_postuninstall_cmds \
8548 lt_prog_compiler_wl \
8549 lt_prog_compiler_pic \
8550 lt_prog_compiler_static \
8551 lt_prog_compiler_no_builtin_flag \
8552 export_dynamic_flag_spec \
8553 thread_safe_flag_spec \
8554 whole_archive_flag_spec \
8555 enable_shared_with_static_runtimes \
8557 old_archive_from_new_cmds \
8562 compiler_lib_search_path \
8564 archive_expsym_cmds \
8566 postuninstall_cmds \
8567 old_archive_from_expsyms_cmds \
8568 allow_undefined_flag \
8570 export_symbols_cmds \
8571 hardcode_libdir_flag_spec \
8572 hardcode_libdir_flag_spec_ld \
8573 hardcode_libdir_separator \
8574 hardcode_automatic \
8576 module_expsym_cmds \
8577 lt_cv_prog_compiler_c_o \
8582 old_archive_cmds | \
8583 old_archive_from_new_cmds | \
8585 archive_expsym_cmds | \
8587 module_expsym_cmds | \
8588 old_archive_from_expsyms_cmds | \
8589 export_symbols_cmds | \
8590 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8591 postinstall_cmds | postuninstall_cmds | \
8592 old_postinstall_cmds | old_postuninstall_cmds | \
8593 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8594 # Double-quote double-evaled strings.
8595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8604 *'\$0 --fallback-echo"')
8605 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8610 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8612 { echo "$as_me:$LINENO: creating $ofile" >&5
8613 echo "$as_me: creating $ofile" >&6;}
8615 cat <<__EOF__ >> "$cfgfile"
8618 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8619 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8623 # Free Software Foundation, Inc.
8625 # This file is part of GNU Libtool:
8626 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8628 # This program is free software; you can redistribute it and/or modify
8629 # it under the terms of the GNU General Public License as published by
8630 # the Free Software Foundation; either version 2 of the License, or
8631 # (at your option) any later version.
8633 # This program is distributed in the hope that it will be useful, but
8634 # WITHOUT ANY WARRANTY; without even the implied warranty of
8635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8636 # General Public License for more details.
8638 # You should have received a copy of the GNU General Public License
8639 # along with this program; if not, write to the Free Software
8640 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8642 # As a special exception to the GNU General Public License, if you
8643 # distribute this file as part of a program that contains a
8644 # configuration script generated by Autoconf, you may include it under
8645 # the same distribution terms that you use for the rest of that program.
8647 # A sed program that does not truncate output.
8650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8651 Xsed="$SED -e s/^X//"
8653 # The HP-UX ksh and POSIX shell print the target directory to stdout
8655 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8657 # The names of the tagged configurations supported by this script.
8660 # ### BEGIN LIBTOOL CONFIG
8662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8664 # Shell to use when invoking shell scripts.
8667 # Whether or not to build shared libraries.
8668 build_libtool_libs=$enable_shared
8670 # Whether or not to build static libraries.
8671 build_old_libs=$enable_static
8673 # Whether or not to add -lc for building shared libraries.
8674 build_libtool_need_lc=$archive_cmds_need_lc
8676 # Whether or not to disallow shared libs when runtime libs are static
8677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8679 # Whether or not to optimize for fast installation.
8680 fast_install=$enable_fast_install
8683 host_alias=$host_alias
8686 # An echo program that does not interpret backslashes.
8691 AR_FLAGS=$lt_AR_FLAGS
8696 # A language-specific compiler.
8699 # Is the compiler the GNU C compiler?
8705 # The linker used to build libraries.
8708 # Whether we need hard or soft links.
8711 # A BSD-compatible nm program.
8714 # A symbol stripping program
8717 # Used to examine libraries when file_magic_cmd begins "file"
8718 MAGIC_CMD=$MAGIC_CMD
8720 # Used on cygwin: DLL creation program.
8723 # Used on cygwin: object dumper.
8726 # Used on cygwin: assembler.
8729 # The name of the directory that contains temporary libtool files.
8732 # How to create reloadable object files.
8733 reload_flag=$lt_reload_flag
8734 reload_cmds=$lt_reload_cmds
8736 # How to pass a linker flag through the compiler.
8737 wl=$lt_lt_prog_compiler_wl
8739 # Object file suffix (normally "o").
8742 # Old archive suffix (normally "a").
8745 # Shared library suffix (normally ".so").
8746 shrext_cmds='$shrext_cmds'
8748 # Executable file suffix (normally "").
8751 # Additional compiler flags for building library objects.
8752 pic_flag=$lt_lt_prog_compiler_pic
8755 # What is the maximum length of a command?
8756 max_cmd_len=$lt_cv_sys_max_cmd_len
8758 # Does compiler simultaneously support -c and -o options?
8759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8761 # Must we lock files when doing compilation ?
8762 need_locks=$lt_need_locks
8764 # Do we need the lib prefix for modules?
8765 need_lib_prefix=$need_lib_prefix
8767 # Do we need a version for libraries?
8768 need_version=$need_version
8770 # Whether dlopen is supported.
8771 dlopen_support=$enable_dlopen
8773 # Whether dlopen of programs is supported.
8774 dlopen_self=$enable_dlopen_self
8776 # Whether dlopen of statically linked programs is supported.
8777 dlopen_self_static=$enable_dlopen_self_static
8779 # Compiler flag to prevent dynamic linking.
8780 link_static_flag=$lt_lt_prog_compiler_static
8782 # Compiler flag to turn off builtin functions.
8783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8785 # Compiler flag to allow reflexive dlopens.
8786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8788 # Compiler flag to generate shared objects directly from archives.
8789 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8791 # Compiler flag to generate thread-safe objects.
8792 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8794 # Library versioning type.
8795 version_type=$version_type
8797 # Format of library name prefix.
8798 libname_spec=$lt_libname_spec
8800 # List of archive names. First name is the real one, the rest are links.
8801 # The last name is the one that the linker finds with -lNAME.
8802 library_names_spec=$lt_library_names_spec
8804 # The coded name of the library, if different from the real name.
8805 soname_spec=$lt_soname_spec
8807 # Commands used to build and install an old-style archive.
8809 old_archive_cmds=$lt_old_archive_cmds
8810 old_postinstall_cmds=$lt_old_postinstall_cmds
8811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8813 # Create an old-style archive from a shared archive.
8814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8816 # Create a temporary old-style archive to link instead of a shared archive.
8817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8819 # Commands used to build and install a shared archive.
8820 archive_cmds=$lt_archive_cmds
8821 archive_expsym_cmds=$lt_archive_expsym_cmds
8822 postinstall_cmds=$lt_postinstall_cmds
8823 postuninstall_cmds=$lt_postuninstall_cmds
8825 # Commands used to build a loadable module (assumed same as above if empty)
8826 module_cmds=$lt_module_cmds
8827 module_expsym_cmds=$lt_module_expsym_cmds
8829 # Commands to strip libraries.
8830 old_striplib=$lt_old_striplib
8831 striplib=$lt_striplib
8833 # Dependencies to place before the objects being linked to create a
8835 predep_objects=$lt_predep_objects
8837 # Dependencies to place after the objects being linked to create a
8839 postdep_objects=$lt_postdep_objects
8841 # Dependencies to place before the objects being linked to create a
8845 # Dependencies to place after the objects being linked to create a
8847 postdeps=$lt_postdeps
8849 # The library search path used internally by the compiler when linking
8851 compiler_lib_search_path=$lt_compiler_lib_search_path
8853 # Method to check whether dependent libraries are shared objects.
8854 deplibs_check_method=$lt_deplibs_check_method
8856 # Command to use when deplibs_check_method == file_magic.
8857 file_magic_cmd=$lt_file_magic_cmd
8859 # Flag that allows shared libraries with undefined symbols to be built.
8860 allow_undefined_flag=$lt_allow_undefined_flag
8862 # Flag that forces no undefined symbols.
8863 no_undefined_flag=$lt_no_undefined_flag
8865 # Commands used to finish a libtool library installation in a directory.
8866 finish_cmds=$lt_finish_cmds
8868 # Same as above, but a single script fragment to be evaled but not shown.
8869 finish_eval=$lt_finish_eval
8871 # Take the output of nm and produce a listing of raw symbols and C names.
8872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8874 # Transform the output of nm in a proper C declaration
8875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8877 # Transform the output of nm in a C name address pair
8878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8880 # This is the shared library runtime path variable.
8881 runpath_var=$runpath_var
8883 # This is the shared library path variable.
8884 shlibpath_var=$shlibpath_var
8886 # Is shlibpath searched before the hard-coded library search path?
8887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8889 # How to hardcode a shared library path into an executable.
8890 hardcode_action=$hardcode_action
8892 # Whether we should hardcode library paths into libraries.
8893 hardcode_into_libs=$hardcode_into_libs
8895 # Flag to hardcode \$libdir into a binary during linking.
8896 # This must work even if \$libdir does not exist.
8897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8899 # If ld is used when linking, flag to hardcode \$libdir into
8900 # a binary during linking. This must work even if \$libdir does
8902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8904 # Whether we need a single -rpath flag with a separated argument.
8905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8909 hardcode_direct=$hardcode_direct
8911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8913 hardcode_minus_L=$hardcode_minus_L
8915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8916 # the resulting binary.
8917 hardcode_shlibpath_var=$hardcode_shlibpath_var
8919 # Set to yes if building a shared library automatically hardcodes DIR into the library
8920 # and all subsequent libraries and executables linked against it.
8921 hardcode_automatic=$hardcode_automatic
8923 # Variables whose values should be saved in libtool wrapper scripts and
8924 # restored at relink time.
8925 variables_saved_for_relink="$variables_saved_for_relink"
8927 # Whether libtool must link a program against all its dependency libraries.
8928 link_all_deplibs=$link_all_deplibs
8930 # Compile-time system search path for libraries
8931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8933 # Run-time system search path for libraries
8934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8936 # Fix the shell variable \$srcfile for the compiler.
8937 fix_srcfile_path="$fix_srcfile_path"
8939 # Set to yes if exported symbols are required.
8940 always_export_symbols=$always_export_symbols
8942 # The commands to list exported symbols.
8943 export_symbols_cmds=$lt_export_symbols_cmds
8945 # The commands to extract the exported symbol list from a shared archive.
8946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8948 # Symbols that should not be listed in the preloaded symbols.
8949 exclude_expsyms=$lt_exclude_expsyms
8951 # Symbols that must always be exported.
8952 include_expsyms=$lt_include_expsyms
8954 # ### END LIBTOOL CONFIG
8961 cat <<\EOF >> "$cfgfile"
8963 # AIX sometimes has problems with the GCC collect2 program. For some
8964 # reason, if we set the COLLECT_NAMES environment variable, the problems
8965 # vanish in a puff of smoke.
8966 if test "X${COLLECT_NAMES+set}" != Xset; then
8968 export COLLECT_NAMES
8974 # We use sed instead of cat because bash on DJGPP gets confused if
8975 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8976 # text mode, it properly converts lines to CR/LF. This bash problem
8977 # is reportedly fixed, but why not run on old versions too?
8978 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8980 mv -f "$cfgfile" "$ofile" || \
8981 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8985 # If there is no Makefile yet, we rely on a make rule to execute
8986 # `config.status --recheck' to rerun these tests and create the
8987 # libtool script then.
8988 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8989 if test -f "$ltmain_in"; then
8990 test -f Makefile && make "$ltmain"
8996 ac_cpp='$CPP $CPPFLAGS'
8997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9004 # Check whether --with-tags or --without-tags was given.
9005 if test "${with_tags+set}" = set; then
9006 withval="$with_tags"
9010 if test -f "$ltmain" && test -n "$tagnames"; then
9011 if test ! -f "${ofile}"; then
9012 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9013 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9016 if test -z "$LTCC"; then
9017 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9018 if test -z "$LTCC"; then
9019 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9020 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9023 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9027 # Extract list of available tagged configurations in $ofile.
9028 # Note that this assumes the entire list is on one line.
9029 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032 for tagname in $tagnames; do
9034 # Check whether tagname contains only valid characters
9035 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9037 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9038 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9039 { (exit 1); exit 1; }; }
9043 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9045 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9046 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9047 { (exit 1); exit 1; }; }
9050 # Update the list of available tags.
9051 if test -n "$tagname"; then
9052 echo appending configuration tag \"$tagname\" to $ofile
9056 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9058 ac_cpp='$CXXCPP $CPPFLAGS'
9059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9066 archive_cmds_need_lc_CXX=no
9067 allow_undefined_flag_CXX=
9068 always_export_symbols_CXX=no
9069 archive_expsym_cmds_CXX=
9070 export_dynamic_flag_spec_CXX=
9071 hardcode_direct_CXX=no
9072 hardcode_libdir_flag_spec_CXX=
9073 hardcode_libdir_flag_spec_ld_CXX=
9074 hardcode_libdir_separator_CXX=
9075 hardcode_minus_L_CXX=no
9076 hardcode_automatic_CXX=no
9078 module_expsym_cmds_CXX=
9079 link_all_deplibs_CXX=unknown
9080 old_archive_cmds_CXX=$old_archive_cmds
9081 no_undefined_flag_CXX=
9082 whole_archive_flag_spec_CXX=
9083 enable_shared_with_static_runtimes_CXX=no
9085 # Dependencies to place before and after the object being linked:
9087 postdep_objects_CXX=
9090 compiler_lib_search_path_CXX=
9092 # Source file extension for C++ test sources.
9095 # Object file extension for compiled C++ test sources.
9099 # Code to be used in simple compile tests
9100 lt_simple_compile_test_code="int some_variable = 0;\n"
9102 # Code to be used in simple link tests
9103 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9105 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9107 # If no C compiler was specified, use CC.
9110 # Allow CC to be a program name with arguments.
9114 # Allow CC to be a program name with arguments.
9119 lt_save_with_gnu_ld=$with_gnu_ld
9120 lt_save_path_LD=$lt_cv_path_LD
9121 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9122 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9124 unset lt_cv_prog_gnu_ld
9126 if test -n "${lt_cv_path_LDCXX+set}"; then
9127 lt_cv_path_LD=$lt_cv_path_LDCXX
9131 test -z "${LDCXX+set}" || LD=$LDCXX
9135 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9137 # We don't want -fno-exception wen compiling C++ code, so set the
9138 # no_builtin_flag separately
9139 if test "$GXX" = yes; then
9140 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9142 lt_prog_compiler_no_builtin_flag_CXX=
9145 if test "$GXX" = yes; then
9146 # Set up default GNU C++ configuration
9149 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9150 if test "${with_gnu_ld+set}" = set; then
9151 withval="$with_gnu_ld"
9152 test "$withval" = no || with_gnu_ld=yes
9157 if test "$GCC" = yes; then
9158 # Check if gcc -print-prog-name=ld gives a path.
9159 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9160 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9163 # gcc leaves a trailing carriage return which upsets mingw
9164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9169 # Accept absolute paths.
9171 re_direlt='/[^/][^/]*/\.\./'
9172 # Canonicalize the pathname of ld
9173 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9174 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9175 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9177 test -z "$LD" && LD="$ac_prog"
9180 # If it fails, then pretend we aren't using GCC.
9184 # If it is relative, then search for the first ld in PATH.
9188 elif test "$with_gnu_ld" = yes; then
9189 echo "$as_me:$LINENO: checking for GNU ld" >&5
9190 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9192 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9193 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9195 if test "${lt_cv_path_LD+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 if test -z "$LD"; then
9199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9200 for ac_dir in $PATH; do
9202 test -z "$ac_dir" && ac_dir=.
9203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9204 lt_cv_path_LD="$ac_dir/$ac_prog"
9205 # Check to see if the program is GNU ld. I'd rather use --version,
9206 # but apparently some GNU ld's only accept -v.
9207 # Break only if it was the GNU/non-GNU ld that we prefer.
9208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9209 *GNU* | *'with BFD'*)
9210 test "$with_gnu_ld" != no && break
9213 test "$with_gnu_ld" != yes && break
9220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9225 if test -n "$LD"; then
9226 echo "$as_me:$LINENO: result: $LD" >&5
9227 echo "${ECHO_T}$LD" >&6
9229 echo "$as_me:$LINENO: result: no" >&5
9230 echo "${ECHO_T}no" >&6
9232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9234 { (exit 1); exit 1; }; }
9235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9237 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9241 case `$LD -v 2>&1 </dev/null` in
9242 *GNU* | *'with BFD'*)
9243 lt_cv_prog_gnu_ld=yes
9246 lt_cv_prog_gnu_ld=no
9250 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9251 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9252 with_gnu_ld=$lt_cv_prog_gnu_ld
9256 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9257 # archiving commands below assume that GNU ld is being used.
9258 if test "$with_gnu_ld" = yes; then
9259 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 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'
9262 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9263 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9265 # If archive_cmds runs LD, not CC, wlarc should be empty
9266 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9267 # investigate it a little bit more. (MM)
9270 # ancient GNU ld didn't support --whole-archive et. al.
9271 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9272 grep 'no-whole-archive' > /dev/null; then
9273 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9275 whole_archive_flag_spec_CXX=
9281 # A generic and very simple default shared library creation
9282 # command for GNU C++ for the case where it uses the native
9283 # linker, instead of GNU ld. If possible, this setting should
9284 # overridden to take advantage of the native linker features on
9285 # the platform it is being used on.
9286 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9289 # Commands to make compiler produce verbose output that lists
9290 # what "hidden" libraries, object files and flags are used when
9291 # linking a shared library.
9292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9300 # PORTME: fill in a description of your system's C++ link characteristics
9301 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9302 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9306 # FIXME: insert proper C++ library support
9310 if test "$host_cpu" = ia64; then
9311 # On IA64, the linker does run time linking by default, so we don't
9312 # have to do anything special.
9313 aix_use_runtimelinking=no
9314 exp_sym_flag='-Bexport'
9317 aix_use_runtimelinking=no
9319 # Test if we are trying to use run time linking or normal
9320 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9321 # need to do runtime linking.
9322 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9323 for ld_flag in $LDFLAGS; do
9326 aix_use_runtimelinking=yes
9333 exp_sym_flag='-bexport'
9334 no_entry_flag='-bnoentry'
9337 # When large executables or shared objects are built, AIX ld can
9338 # have problems creating the table of contents. If linking a library
9339 # or program results in "error TOC overflow" add -mminimal-toc to
9340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9344 hardcode_direct_CXX=yes
9345 hardcode_libdir_separator_CXX=':'
9346 link_all_deplibs_CXX=yes
9348 if test "$GXX" = yes; then
9349 case $host_os in aix4.012|aix4.012.*)
9350 # We only want to do this on AIX 4.2 and lower, the check
9351 # below for broken collect2 doesn't work under 4.3+
9352 collect2name=`${CC} -print-prog-name=collect2`
9353 if test -f "$collect2name" && \
9354 strings "$collect2name" | grep resolve_lib_name >/dev/null
9356 # We have reworked collect2
9357 hardcode_direct_CXX=yes
9359 # We have old collect2
9360 hardcode_direct_CXX=unsupported
9361 # It fails to find uninstalled libraries when the uninstalled
9362 # path is not listed in the libpath. Setting hardcode_minus_L
9363 # to unsupported forces relinking
9364 hardcode_minus_L_CXX=yes
9365 hardcode_libdir_flag_spec_CXX='-L$libdir'
9366 hardcode_libdir_separator_CXX=
9369 shared_flag='-shared'
9372 if test "$host_cpu" = ia64; then
9373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9374 # chokes on -Wl,-G. The following line is correct:
9377 if test "$aix_use_runtimelinking" = yes; then
9378 shared_flag='${wl}-G'
9380 shared_flag='${wl}-bM:SRE'
9385 # It seems that -bexpall does not export symbols beginning with
9386 # underscore (_), so it is better to generate a list of symbols to export.
9387 always_export_symbols_CXX=yes
9388 if test "$aix_use_runtimelinking" = yes; then
9389 # Warning - without using the other runtime loading flags (-brtl),
9390 # -berok will link without error, but may produce a broken library.
9391 allow_undefined_flag_CXX='-berok'
9392 # Determine the default libpath from the value encoded in an empty executable.
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410 (eval $ac_link) 2>conftest.er1
9412 grep -v '^ *+' conftest.er1 >conftest.err
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -z "$ac_cxx_werror_flag"
9418 || test ! -s conftest.err'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; } &&
9424 { ac_try='test -s conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9433 # Check for a 64-bit object if we didn't find anything.
9434 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; }
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9441 rm -f conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9445 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9447 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"
9449 if test "$host_cpu" = ia64; then
9450 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9451 allow_undefined_flag_CXX="-z nodefs"
9452 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"
9454 # Determine the default libpath from the value encoded in an empty executable.
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>conftest.er1
9474 grep -v '^ *+' conftest.er1 >conftest.err
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_cxx_werror_flag"
9480 || test ! -s conftest.err'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest$ac_exeext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9495 # Check for a 64-bit object if we didn't find anything.
9496 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; }
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9503 rm -f conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9507 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9508 # Warning - without using the other run time loading flags,
9509 # -berok will link without error, but may produce a broken library.
9510 no_undefined_flag_CXX=' ${wl}-bernotok'
9511 allow_undefined_flag_CXX=' ${wl}-berok'
9512 # -bexpall does not export symbols beginning with underscore (_)
9513 always_export_symbols_CXX=yes
9514 # Exported symbols can be pulled into shared objects from archives
9515 whole_archive_flag_spec_CXX=' '
9516 archive_cmds_need_lc_CXX=yes
9517 # This is similar to how AIX traditionally builds it's shared libraries.
9518 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'
9523 case $cc_basename in
9525 # FIXME: insert proper C++ library support
9531 cygwin* | mingw* | pw32*)
9532 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9533 # as there is no search path for DLLs.
9534 hardcode_libdir_flag_spec_CXX='-L$libdir'
9535 allow_undefined_flag_CXX=unsupported
9536 always_export_symbols_CXX=no
9537 enable_shared_with_static_runtimes_CXX=yes
9539 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9540 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'
9541 # If the export-symbols file already is a .def file (1st line
9542 # is EXPORTS), use it as is; otherwise, prepend...
9543 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9544 cp $export_symbols $output_objdir/$soname.def;
9546 echo EXPORTS > $output_objdir/$soname.def;
9547 cat $export_symbols >> $output_objdir/$soname.def;
9549 $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'
9555 darwin* | rhapsody*)
9556 if test "$GXX" = yes; then
9557 archive_cmds_need_lc_CXX=no
9559 rhapsody* | darwin1.[012])
9560 allow_undefined_flag_CXX='-undefined suppress'
9563 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9564 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9566 case ${MACOSX_DEPLOYMENT_TARGET} in
9568 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9571 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9577 lt_int_apple_cc_single_mod=no
9578 output_verbose_link_cmd='echo'
9579 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9580 lt_int_apple_cc_single_mod=yes
9582 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9583 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9585 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9587 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9590 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9591 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}'
9593 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9595 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}'
9596 hardcode_direct_CXX=no
9597 hardcode_automatic_CXX=yes
9598 hardcode_shlibpath_var_CXX=unsupported
9599 whole_archive_flag_spec_CXX='-all_load $convenience'
9600 link_all_deplibs_CXX=yes
9607 case $cc_basename in
9609 # FIXME: insert proper C++ library support
9613 # Green Hills C++ Compiler
9614 # FIXME: insert proper C++ library support
9618 # FIXME: insert proper C++ library support
9624 # C++ shared libraries reported to be fairly broken before switch to ELF
9628 archive_cmds_need_lc_CXX=no
9630 freebsd* | kfreebsd*-gnu)
9631 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9638 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9639 hardcode_libdir_separator_CXX=:
9640 export_dynamic_flag_spec_CXX='${wl}-E'
9641 hardcode_direct_CXX=yes
9642 hardcode_minus_L_CXX=yes # Not in the search PATH,
9643 # but as the default
9644 # location of the library.
9646 case $cc_basename in
9648 # FIXME: insert proper C++ library support
9652 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'
9653 # Commands to make compiler produce verbose output that lists
9654 # what "hidden" libraries, object files and flags are used when
9655 # linking a shared library.
9657 # There doesn't appear to be a way to prevent this compiler from
9658 # explicitly linking system object files so we need to strip them
9659 # from the output so that they don't get included in the library
9661 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'
9664 if test "$GXX" = yes; then
9665 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'
9667 # FIXME: insert proper C++ library support
9674 if test $with_gnu_ld = no; then
9677 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9678 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9679 hardcode_libdir_separator_CXX=:
9682 hardcode_libdir_flag_spec_CXX='-L$libdir'
9685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9686 hardcode_libdir_separator_CXX=:
9687 export_dynamic_flag_spec_CXX='${wl}-E'
9693 hardcode_direct_CXX=no
9694 hardcode_shlibpath_var_CXX=no
9697 hardcode_direct_CXX=no
9698 hardcode_shlibpath_var_CXX=no
9699 hardcode_minus_L_CXX=yes # Not in the search PATH,
9700 # but as the default
9701 # location of the library.
9704 hardcode_direct_CXX=yes
9705 hardcode_minus_L_CXX=yes # Not in the search PATH,
9706 # but as the default
9707 # location of the library.
9711 case $cc_basename in
9713 # FIXME: insert proper C++ library support
9719 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9722 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9725 # Commands to make compiler produce verbose output that lists
9726 # what "hidden" libraries, object files and flags are used when
9727 # linking a shared library.
9729 # There doesn't appear to be a way to prevent this compiler from
9730 # explicitly linking system object files so we need to strip them
9731 # from the output so that they don't get included in the library
9733 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'
9736 if test "$GXX" = yes; then
9737 if test $with_gnu_ld = no; then
9740 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9743 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'
9748 # FIXME: insert proper C++ library support
9755 case $cc_basename in
9758 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'
9760 # Archives containing C++ object files must be created using
9761 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9762 # necessary to make sure instantiated templates are included
9764 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9767 if test "$GXX" = yes; then
9768 if test "$with_gnu_ld" = no; then
9769 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'
9771 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'
9774 link_all_deplibs_CXX=yes
9777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9778 hardcode_libdir_separator_CXX=:
9781 case $cc_basename in
9783 # Kuck and Associates, Inc. (KAI) C++ Compiler
9785 # KCC will only create a shared library if the output file
9786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9787 # to its proper name (with version) after linking.
9788 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'
9789 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'
9790 # Commands to make compiler produce verbose output that lists
9791 # what "hidden" libraries, object files and flags are used when
9792 # linking a shared library.
9794 # There doesn't appear to be a way to prevent this compiler from
9795 # explicitly linking system object files so we need to strip them
9796 # from the output so that they don't get included in the library
9798 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'
9800 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9803 # Archives containing C++ object files must be created using
9804 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9805 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9810 archive_cmds_need_lc_CXX=no
9811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812 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'
9813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9815 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820 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'
9822 runpath_var=LD_RUN_PATH
9823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9824 hardcode_libdir_separator_CXX=:
9826 # Commands to make compiler produce verbose output that lists
9827 # what "hidden" libraries, object files and flags are used when
9828 # linking a shared library.
9830 # There doesn't appear to be a way to prevent this compiler from
9831 # explicitly linking system object files so we need to strip them
9832 # from the output so that they don't get included in the library
9834 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'
9839 # FIXME: insert proper C++ library support
9843 # FIXME: insert proper C++ library support
9847 case $cc_basename in
9849 # FIXME: insert proper C++ library support
9853 # FIXME: insert proper C++ library support
9859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9860 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9862 hardcode_libdir_flag_spec_CXX='-R$libdir'
9863 hardcode_direct_CXX=yes
9864 hardcode_shlibpath_var_CXX=no
9866 # Workaround some broken pre-1.5 toolchains
9867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9870 case $cc_basename in
9872 # Kuck and Associates, Inc. (KAI) C++ Compiler
9874 # KCC will only create a shared library if the output file
9875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9876 # to its proper name (with version) after linking.
9877 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'
9879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9880 hardcode_libdir_separator_CXX=:
9882 # Archives containing C++ object files must be created using
9883 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9884 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9888 # Rational C++ 2.4.1
9889 # FIXME: insert proper C++ library support
9893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9894 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'
9896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator_CXX=:
9899 # Commands to make compiler produce verbose output that lists
9900 # what "hidden" libraries, object files and flags are used when
9901 # linking a shared library.
9903 # There doesn't appear to be a way to prevent this compiler from
9904 # explicitly linking system object files so we need to strip them
9905 # from the output so that they don't get included in the library
9907 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'
9910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9911 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9912 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'
9914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9915 hardcode_libdir_separator_CXX=:
9917 # Commands to make compiler produce verbose output that lists
9918 # what "hidden" libraries, object files and flags are used when
9919 # linking a shared library.
9920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9923 # FIXME: insert proper C++ library support
9930 case $cc_basename in
9932 # Kuck and Associates, Inc. (KAI) C++ Compiler
9934 # KCC will only create a shared library if the output file
9935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9936 # to its proper name (with version) after linking.
9937 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'
9939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9940 hardcode_libdir_separator_CXX=:
9942 # Archives containing C++ object files must be created using
9943 # the KAI C++ compiler.
9944 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9947 # Rational C++ 2.4.1
9948 # FIXME: insert proper C++ library support
9952 allow_undefined_flag_CXX=' -expect_unresolved \*'
9953 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'
9954 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9955 echo "-hidden">> $lib.exp~
9956 $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~
9959 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9960 hardcode_libdir_separator_CXX=:
9962 # Commands to make compiler produce verbose output that lists
9963 # what "hidden" libraries, object files and flags are used when
9964 # linking a shared library.
9966 # There doesn't appear to be a way to prevent this compiler from
9967 # explicitly linking system object files so we need to strip them
9968 # from the output so that they don't get included in the library
9970 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'
9973 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9975 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'
9977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9978 hardcode_libdir_separator_CXX=:
9980 # Commands to make compiler produce verbose output that lists
9981 # what "hidden" libraries, object files and flags are used when
9982 # linking a shared library.
9983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9986 # FIXME: insert proper C++ library support
9993 # FIXME: insert proper C++ library support
9997 archive_cmds_need_lc_CXX=no
9998 case $cc_basename in
10000 # FIXME: insert proper C++ library support
10004 # FIXME: insert proper C++ library support
10010 case $cc_basename in
10013 # FIXME: insert proper C++ library support
10018 # FIXME: insert proper C++ library support
10022 # FIXME: insert proper C++ library support
10028 case $cc_basename in
10030 # Sun C++ 4.2, 5.x and Centerline C++
10031 no_undefined_flag_CXX=' -zdefs'
10032 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10033 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10034 $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'
10036 hardcode_libdir_flag_spec_CXX='-R$libdir'
10037 hardcode_shlibpath_var_CXX=no
10039 solaris2.0-5 | solaris2.0-5.*) ;;
10041 # The C++ compiler is used as linker so we must use $wl
10042 # flag to pass the commands to the underlying system
10044 # Supported since Solaris 2.6 (maybe 2.5.1?)
10045 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10048 link_all_deplibs_CXX=yes
10050 # Commands to make compiler produce verbose output that lists
10051 # what "hidden" libraries, object files and flags are used when
10052 # linking a shared library.
10054 # There doesn't appear to be a way to prevent this compiler from
10055 # explicitly linking system object files so we need to strip them
10056 # from the output so that they don't get included in the library
10058 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'
10060 # Archives containing C++ object files must be created using
10061 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10062 # necessary to make sure instantiated templates are included
10064 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10067 # Green Hills C++ Compiler
10068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10070 # The C++ compiler must be used to create the archive.
10071 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10074 # GNU C++ compiler with Solaris linker
10075 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10076 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10077 if $CC --version | grep -v '^2\.7' > /dev/null; then
10078 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10079 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10080 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10082 # Commands to make compiler produce verbose output that lists
10083 # what "hidden" libraries, object files and flags are used when
10084 # linking a shared library.
10085 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10087 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10089 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10090 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10091 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10093 # Commands to make compiler produce verbose output that lists
10094 # what "hidden" libraries, object files and flags are used when
10095 # linking a shared library.
10096 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10099 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10104 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10105 archive_cmds_need_lc_CXX=no
10108 case $cc_basename in
10110 # NonStop-UX NCC 3.20
10111 # FIXME: insert proper C++ library support
10115 # FIXME: insert proper C++ library support
10121 # FIXME: insert proper C++ library support
10125 # FIXME: insert proper C++ library support
10129 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10130 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10131 test "$ld_shlibs_CXX" = no && can_build_shared=no
10137 cat > conftest.$ac_ext <<EOF
10141 Foo (void) { a = 0; }
10147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10148 (eval $ac_compile) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; then
10152 # Parse the compiler output and extract the necessary
10153 # objects, libraries and library flags.
10155 # Sentinel used to keep track of whether or not we are before
10156 # the conftest object file.
10157 pre_test_object_deps_done=no
10159 # The `*' in the case matches for architectures that use `case' in
10160 # $output_verbose_cmd can trigger glob expansion during the loop
10161 # eval without this substitution.
10162 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10164 for p in `eval $output_verbose_link_cmd`; do
10168 # Some compilers place space between "-{L,R}" and the path.
10169 # Remove the space.
10170 if test $p = "-L" \
10171 || test $p = "-R"; then
10178 if test "$pre_test_object_deps_done" = no; then
10181 # Internal compiler library paths should come after those
10182 # provided the user. The postdeps already come after the
10183 # user supplied libs so there is no need to process them.
10184 if test -z "$compiler_lib_search_path_CXX"; then
10185 compiler_lib_search_path_CXX="${prev}${p}"
10187 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10190 # The "-l" case would never come before the object being
10191 # linked, so don't bother handling this case.
10194 if test -z "$postdeps_CXX"; then
10195 postdeps_CXX="${prev}${p}"
10197 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10203 # This assumes that the test object file only shows up
10204 # once in the compiler output.
10205 if test "$p" = "conftest.$objext"; then
10206 pre_test_object_deps_done=yes
10210 if test "$pre_test_object_deps_done" = no; then
10211 if test -z "$predep_objects_CXX"; then
10212 predep_objects_CXX="$p"
10214 predep_objects_CXX="$predep_objects_CXX $p"
10217 if test -z "$postdep_objects_CXX"; then
10218 postdep_objects_CXX="$p"
10220 postdep_objects_CXX="$postdep_objects_CXX $p"
10225 *) ;; # Ignore the rest.
10233 echo "libtool.m4: error: problem compiling CXX test program"
10236 $rm -f confest.$objext
10238 case " $postdeps_CXX " in
10239 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10242 lt_prog_compiler_wl_CXX=
10243 lt_prog_compiler_pic_CXX=
10244 lt_prog_compiler_static_CXX=
10246 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10247 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10249 # C++ specific cases for pic, static, wl, etc.
10250 if test "$GXX" = yes; then
10251 lt_prog_compiler_wl_CXX='-Wl,'
10252 lt_prog_compiler_static_CXX='-static'
10256 # All AIX code is PIC.
10257 if test "$host_cpu" = ia64; then
10258 # AIX 5 now supports IA64 processor
10259 lt_prog_compiler_static_CXX='-Bstatic'
10263 # FIXME: we need at least 68020 code to build shared libraries, but
10264 # adding the `-m68020' flag to GCC prevents building anything better,
10266 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10268 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10269 # PIC is the default for these OSes.
10271 mingw* | os2* | pw32*)
10272 # This hack is so that the source file can tell whether it is being
10273 # built for inclusion in a dll (and should export symbols for example).
10274 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10276 darwin* | rhapsody*)
10277 # PIC is the default on this platform
10278 # Common symbols not allowed in MH_DYLIB files
10279 lt_prog_compiler_pic_CXX='-fno-common'
10282 # DJGPP does not support shared libraries at all
10283 lt_prog_compiler_pic_CXX=
10286 if test -d /usr/nec; then
10287 lt_prog_compiler_pic_CXX=-Kconform_pic
10291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10292 # not for PA HP-UX.
10293 case "$host_cpu" in
10297 lt_prog_compiler_pic_CXX='-fPIC'
10302 lt_prog_compiler_pic_CXX='-fPIC'
10308 # All AIX code is PIC.
10309 if test "$host_cpu" = ia64; then
10310 # AIX 5 now supports IA64 processor
10311 lt_prog_compiler_static_CXX='-Bstatic'
10313 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10317 case $cc_basename in
10319 # Green Hills C++ Compiler
10320 # _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"
10325 case $cc_basename in
10327 lt_prog_compiler_pic_CXX='-KPIC'
10330 # Green Hills C++ Compiler
10331 lt_prog_compiler_pic_CXX='-pic'
10337 freebsd* | kfreebsd*-gnu)
10338 # FreeBSD uses GNU C++
10340 hpux9* | hpux10* | hpux11*)
10341 case $cc_basename in
10343 lt_prog_compiler_wl_CXX='-Wl,'
10344 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10345 if test "$host_cpu" != ia64; then
10346 lt_prog_compiler_pic_CXX='+Z'
10350 lt_prog_compiler_wl_CXX='-Wl,'
10351 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10352 case "$host_cpu" in
10357 lt_prog_compiler_pic_CXX='+Z'
10365 irix5* | irix6* | nonstopux*)
10366 case $cc_basename in
10368 lt_prog_compiler_wl_CXX='-Wl,'
10369 lt_prog_compiler_static_CXX='-non_shared'
10370 # CC pic flag -KPIC is the default.
10377 case $cc_basename in
10380 lt_prog_compiler_wl_CXX='--backend -Wl,'
10381 lt_prog_compiler_pic_CXX='-fPIC'
10385 lt_prog_compiler_wl_CXX='-Wl,'
10386 lt_prog_compiler_pic_CXX='-KPIC'
10387 lt_prog_compiler_static_CXX='-static'
10391 # Make sure the PIC flag is empty. It appears that all Alpha
10392 # Linux and Compaq Tru64 Unix objects are PIC.
10393 lt_prog_compiler_pic_CXX=
10394 lt_prog_compiler_static_CXX='-non_shared'
10405 case $cc_basename in
10407 lt_prog_compiler_pic_CXX='-W c,exportall'
10415 osf3* | osf4* | osf5*)
10416 case $cc_basename in
10418 lt_prog_compiler_wl_CXX='--backend -Wl,'
10421 # Rational C++ 2.4.1
10422 lt_prog_compiler_pic_CXX='-pic'
10425 # Digital/Compaq C++
10426 lt_prog_compiler_wl_CXX='-Wl,'
10427 # Make sure the PIC flag is empty. It appears that all Alpha
10428 # Linux and Compaq Tru64 Unix objects are PIC.
10429 lt_prog_compiler_pic_CXX=
10430 lt_prog_compiler_static_CXX='-non_shared'
10439 case $cc_basename in
10441 lt_prog_compiler_pic_CXX='-fPIC'
10448 case $cc_basename in
10450 # Sun C++ 4.2, 5.x and Centerline C++
10451 lt_prog_compiler_pic_CXX='-KPIC'
10452 lt_prog_compiler_static_CXX='-Bstatic'
10453 lt_prog_compiler_wl_CXX='-Qoption ld '
10456 # Green Hills C++ Compiler
10457 lt_prog_compiler_pic_CXX='-PIC'
10464 case $cc_basename in
10467 lt_prog_compiler_pic_CXX='-pic'
10468 lt_prog_compiler_static_CXX='-Bstatic'
10472 lt_prog_compiler_pic_CXX='-pic'
10479 case $cc_basename in
10481 # NonStop-UX NCC 3.20
10482 lt_prog_compiler_pic_CXX='-KPIC'
10493 lt_prog_compiler_can_build_shared_CXX=no
10498 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10499 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10502 # Check to make sure the PIC flag actually works.
10504 if test -n "$lt_prog_compiler_pic_CXX"; then
10506 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10507 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10508 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 lt_prog_compiler_pic_works_CXX=no
10512 ac_outfile=conftest.$ac_objext
10513 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10514 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10515 # Insert the option either (1) after the last *FLAGS variable, or
10516 # (2) before a word containing "conftest.", or (3) at the end.
10517 # Note that $ac_compile itself does not contain backslashes and begins
10518 # with a dollar sign (not a hyphen), so the echo should work correctly.
10519 # The option is referenced via a variable to avoid confusing sed.
10520 lt_compile=`echo "$ac_compile" | $SED \
10521 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10523 -e 's:$: $lt_compiler_flag:'`
10524 (eval echo "\"\$as_me:10524: $lt_compile\"" >&5)
10525 (eval "$lt_compile" 2>conftest.err)
10527 cat conftest.err >&5
10528 echo "$as_me:10528: \$? = $ac_status" >&5
10529 if (exit $ac_status) && test -s "$ac_outfile"; then
10530 # The compiler can only warn and ignore the option if not recognized
10531 # So say no if there are warnings
10532 if test ! -s conftest.err; then
10533 lt_prog_compiler_pic_works_CXX=yes
10539 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10540 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10542 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10543 case $lt_prog_compiler_pic_CXX in
10545 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10548 lt_prog_compiler_pic_CXX=
10549 lt_prog_compiler_can_build_shared_CXX=no
10554 # For platforms which do not support PIC, -DPIC is meaningless:
10556 lt_prog_compiler_pic_CXX=
10559 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10563 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10564 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10565 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 lt_cv_prog_compiler_c_o_CXX=no
10569 $rm -r conftest 2>/dev/null
10573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10575 lt_compiler_flag="-o out/conftest2.$ac_objext"
10576 # Insert the option either (1) after the last *FLAGS variable, or
10577 # (2) before a word containing "conftest.", or (3) at the end.
10578 # Note that $ac_compile itself does not contain backslashes and begins
10579 # with a dollar sign (not a hyphen), so the echo should work correctly.
10580 lt_compile=`echo "$ac_compile" | $SED \
10581 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10583 -e 's:$: $lt_compiler_flag:'`
10584 (eval echo "\"\$as_me:10584: $lt_compile\"" >&5)
10585 (eval "$lt_compile" 2>out/conftest.err)
10587 cat out/conftest.err >&5
10588 echo "$as_me:10588: \$? = $ac_status" >&5
10589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10591 # The compiler can only warn and ignore the option if not recognized
10592 # So say no if there are warnings
10593 if test ! -s out/conftest.err; then
10594 lt_cv_prog_compiler_c_o_CXX=yes
10599 # SGI C++ compiler will create directory out/ii_files/ for
10600 # template instantiation
10601 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10602 $rm out/* && rmdir out
10608 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10609 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10612 hard_links="nottested"
10613 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10614 # do not overwrite the value of need_locks provided by the user
10615 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10616 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10621 ln conftest.a conftest.b 2>&5 || hard_links=no
10622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10623 echo "$as_me:$LINENO: result: $hard_links" >&5
10624 echo "${ECHO_T}$hard_links" >&6
10625 if test "$hard_links" = no; then
10626 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10627 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10634 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10640 # If we're using GNU nm, then we don't want the "-C" option.
10641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10642 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10643 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'
10645 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'
10649 export_symbols_cmds_CXX="$ltdll_cmds"
10652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10655 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10659 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10660 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10661 test "$ld_shlibs_CXX" = no && can_build_shared=no
10663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10664 if test "$GCC" = yes; then
10665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10669 # Do we need to explicitly link libc?
10671 case "x$archive_cmds_need_lc_CXX" in
10673 # Assume -lc should be added
10674 archive_cmds_need_lc_CXX=yes
10676 if test "$enable_shared" = yes && test "$GCC" = yes; then
10677 case $archive_cmds_CXX in
10679 # FIXME: we may have to deal with multi-command sequences.
10682 # Test whether the compiler implicitly links with -lc since on some
10683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10684 # to ld, don't add -lc before -lgcc.
10685 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10686 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691 (eval $ac_compile) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } 2>conftest.err; then
10697 libobjs=conftest.$ac_objext
10699 wl=$lt_prog_compiler_wl_CXX
10705 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10706 allow_undefined_flag_CXX=
10707 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10708 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }
10713 archive_cmds_need_lc_CXX=no
10715 archive_cmds_need_lc_CXX=yes
10717 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10719 cat conftest.err 1>&5
10722 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10723 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10730 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10731 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10732 library_names_spec=
10733 libname_spec='lib$name'
10737 postuninstall_cmds=
10741 shlibpath_overrides_runpath=unknown
10743 dynamic_linker="$host_os ld.so"
10744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10745 if test "$GCC" = yes; then
10746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10747 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10748 # if the path contains ";" then we assume it to be the separator
10749 # otherwise default to the standard path separator (i.e. ":") - it is
10750 # assumed that no part of a normal pathname contains ";" but that should
10751 # okay in the real world where ";" in dirpaths is itself problematic.
10752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10759 need_lib_prefix=unknown
10760 hardcode_into_libs=no
10762 # when you set need_version to no, make sure it does not cause -set_version
10763 # flags to be left without arguments
10764 need_version=unknown
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10770 shlibpath_var=LIBPATH
10772 # AIX 3 has no versioning support, so we append a major version to the name.
10773 soname_spec='${libname}${release}${shared_ext}$major'
10780 hardcode_into_libs=yes
10781 if test "$host_cpu" = ia64; then
10782 # AIX 5 supports IA64
10783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10784 shlibpath_var=LD_LIBRARY_PATH
10786 # With GCC up to 2.95.x, collect2 would create an import file
10787 # for dependence libraries. The import file would start with
10788 # the line `#! .'. This would cause the generated library to
10789 # depend on `.', always an invalid library. This was fixed in
10790 # development snapshots of GCC prior to 3.0.
10792 aix4 | aix4.[01] | aix4.[01].*)
10793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10798 can_build_shared=no
10802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10803 # soname into executable. Probably we can add versioning support to
10804 # collect2, so additional links can be useful in future.
10805 if test "$aix_use_runtimelinking" = yes; then
10806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10807 # instead of lib<name>.a to let people know that these are not
10808 # typical AIX shared libraries.
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 # We preserve .a as extension for shared libraries through AIX4.2
10812 # and later when we are not doing run time linking.
10813 library_names_spec='${libname}${release}.a $libname.a'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10816 shlibpath_var=LIBPATH
10821 library_names_spec='$libname.ixlibrary $libname.a'
10822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10823 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'
10827 library_names_spec='${libname}${shared_ext}'
10828 dynamic_linker="$host_os ld.so"
10829 shlibpath_var=LIBRARY_PATH
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10841 # the default ld.so.conf also contains /usr/contrib/lib and
10842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10843 # libtool to hard-code these into programs
10846 cygwin* | mingw* | pw32*)
10847 version_type=windows
10852 case $GCC,$host_os in
10853 yes,cygwin* | yes,mingw* | yes,pw32*)
10854 library_names_spec='$libname.dll.a'
10855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10856 postinstall_cmds='base_file=`basename \${file}`~
10857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10858 dldir=$destdir/`dirname \$dlpath`~
10859 test -d \$dldir || mkdir -p \$dldir~
10860 $install_prog $dir/$dlname \$dldir/$dlname'
10861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10862 dlpath=$dir/\$dldll~
10864 shlibpath_overrides_runpath=yes
10868 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10869 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10870 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10873 # MinGW DLLs use traditional 'lib' prefix
10874 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10876 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10877 # It is most probably a Windows format PATH printed by
10878 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10879 # path with ; separators, and with drive letters. We can handle the
10880 # drive letters (cygwin fileutils understands them), so leave them,
10881 # especially as we might pass files found there to a mingw objdump,
10882 # which wouldn't understand a cygwinified path. Ahh.
10883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10889 # pw32 DLLs use 'pw' prefix rather than 'lib'
10890 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10896 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10899 dynamic_linker='Win32 ld.exe'
10900 # FIXME: first we should search . and the directory the executable is in
10904 darwin* | rhapsody*)
10905 dynamic_linker="$host_os dyld"
10906 version_type=darwin
10909 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10910 soname_spec='${libname}${release}${major}$shared_ext'
10911 shlibpath_overrides_runpath=yes
10912 shlibpath_var=DYLD_LIBRARY_PATH
10913 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10914 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10915 if test "$GCC" = yes; then
10916 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"`
10918 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10920 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LD_LIBRARY_PATH
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10945 dynamic_linker='GNU ld.so'
10949 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10950 version_type=freebsd-$objformat
10951 case $version_type in
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10962 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10967 freebsd3.01* | freebsdelf3.01*)
10968 shlibpath_overrides_runpath=yes
10969 hardcode_into_libs=yes
10972 shlibpath_overrides_runpath=no
10973 hardcode_into_libs=yes
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 hardcode_into_libs=yes
10988 hpux9* | hpux10* | hpux11*)
10989 # Give a soname corresponding to the major version so that dld.sl refuses to
10990 # link against other versions.
10994 case "$host_cpu" in
10997 hardcode_into_libs=yes
10998 dynamic_linker="$host_os dld.so"
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 if test "X$HPUX_IA64_MODE" = X32; then
11004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11012 hardcode_into_libs=yes
11013 dynamic_linker="$host_os dld.sl"
11014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11023 dynamic_linker="$host_os dld.sl"
11024 shlibpath_var=SHLIB_PATH
11025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
11030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11031 postinstall_cmds='chmod 555 $lib'
11034 irix5* | irix6* | nonstopux*)
11036 nonstopux*) version_type=nonstopux ;;
11038 if test "$lt_cv_prog_gnu_ld" = yes; then
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11049 irix5* | nonstopux*)
11050 libsuff= shlibsuff=
11053 case $LD in # libtool.m4 will add one of these switches to LD
11054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11055 libsuff= shlibsuff= libmagic=32-bit;;
11056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11057 libsuff=32 shlibsuff=N32 libmagic=N32;;
11058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11060 *) libsuff= shlibsuff= libmagic=never-match;;
11064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11065 shlibpath_overrides_runpath=no
11066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11068 hardcode_into_libs=yes
11071 # No shared lib support for Linux oldld, aout, or coff.
11072 linux*oldld* | linux*aout* | linux*coff*)
11076 # This must be Linux ELF.
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 shlibpath_overrides_runpath=no
11086 # This implies no fast_install, which is unacceptable.
11087 # Some rework will be needed to allow for fast_install
11088 # before this can be enabled.
11089 hardcode_into_libs=yes
11091 # find out which ABI we are using
11093 case "$host_cpu" in
11094 x86_64*|s390x*|powerpc64*)
11095 echo '#line 11095 "configure"' > conftest.$ac_ext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; then
11101 case `/usr/bin/file conftest.$ac_objext` in
11104 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11112 # Append ld.so.conf contents to the search path
11113 if test -f /etc/ld.so.conf; then
11114 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11115 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11118 # We used to test for /lib/ld.so.1 and disable shared libraries on
11119 # powerpc, because MkLinux only supported shared libraries with the
11120 # GNU dynamic linker. Since this was broken with cross compilers,
11121 # most powerpc-linux boxes support dynamic linking these days and
11122 # people can always --disable-shared, the test was removed, and we
11123 # assume the GNU/Linux dynamic linker is in use.
11124 dynamic_linker='GNU/Linux ld.so'
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11136 dynamic_linker='GNU ld.so'
11143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11146 dynamic_linker='NetBSD (a.out) ld.so'
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 dynamic_linker='NetBSD ld.elf_so'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes
11154 hardcode_into_libs=yes
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11183 openbsd2.[89] | openbsd2.[89].*)
11184 shlibpath_overrides_runpath=no
11187 shlibpath_overrides_runpath=yes
11191 shlibpath_overrides_runpath=yes
11196 libname_spec='$name'
11199 library_names_spec='$libname${shared_ext} $libname.a'
11200 dynamic_linker='OS/2 ld.exe'
11201 shlibpath_var=LIBPATH
11204 osf3* | osf4* | osf5*)
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 shlibpath_var=LD_LIBRARY_PATH
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 shlibpath_overrides_runpath=yes
11230 hardcode_into_libs=yes
11231 # ldd complains unless libraries are executable
11232 postinstall_cmds='chmod +x $lib'
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes
11241 if test "$with_gnu_ld" = yes; then
11247 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 case $host_vendor in
11254 shlibpath_overrides_runpath=no
11256 export_dynamic_flag_spec='${wl}-Blargedynsym'
11257 runpath_var=LD_RUN_PATH
11265 shlibpath_overrides_runpath=no
11266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11272 if test -d /usr/nec ;then
11274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11275 soname_spec='$libname${shared_ext}.$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11291 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11292 echo "${ECHO_T}$dynamic_linker" >&6
11293 test "$dynamic_linker" = no && can_build_shared=no
11295 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11296 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11297 hardcode_action_CXX=
11298 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11299 test -n "$runpath_var CXX" || \
11300 test "X$hardcode_automatic_CXX"="Xyes" ; then
11302 # We can hardcode non-existant directories.
11303 if test "$hardcode_direct_CXX" != no &&
11304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11305 # have to relink, otherwise we might link with an installed library
11306 # when we should be linking with a yet-to-be-installed one
11307 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11308 test "$hardcode_minus_L_CXX" != no; then
11309 # Linking always hardcodes the temporary library directory.
11310 hardcode_action_CXX=relink
11312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11313 hardcode_action_CXX=immediate
11316 # We cannot hardcode anything, or else we can only hardcode existing
11318 hardcode_action_CXX=unsupported
11320 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11321 echo "${ECHO_T}$hardcode_action_CXX" >&6
11323 if test "$hardcode_action_CXX" = relink; then
11324 # Fast installation is not supported
11325 enable_fast_install=no
11326 elif test "$shlibpath_overrides_runpath" = yes ||
11327 test "$enable_shared" = no; then
11328 # Fast installation is not necessary
11329 enable_fast_install=needless
11334 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11335 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11336 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11337 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11338 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11339 echo "$as_me:$LINENO: result: yes" >&5
11340 echo "${ECHO_T}yes" >&6
11342 # FIXME - insert some real tests, host_os isn't really good enough
11345 if test -n "$STRIP" ; then
11346 striplib="$STRIP -x"
11347 echo "$as_me:$LINENO: result: yes" >&5
11348 echo "${ECHO_T}yes" >&6
11350 echo "$as_me:$LINENO: result: no" >&5
11351 echo "${ECHO_T}no" >&6
11355 echo "$as_me:$LINENO: result: no" >&5
11356 echo "${ECHO_T}no" >&6
11361 if test "x$enable_dlopen" != xyes; then
11362 enable_dlopen=unknown
11363 enable_dlopen_self=unknown
11364 enable_dlopen_self_static=unknown
11371 lt_cv_dlopen="load_add_on"
11373 lt_cv_dlopen_self=yes
11377 lt_cv_dlopen="LoadLibrary"
11382 lt_cv_dlopen="dlopen"
11387 # if libdl is installed we need to link against it
11388 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11389 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11390 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 ac_check_lib_save_LIBS=$LIBS
11395 cat >conftest.$ac_ext <<_ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11402 /* Override any gcc2 internal prototype to avoid an error. */
11406 /* We use char because int might match the return type of a gcc2
11407 builtin and then its argument prototype would still apply. */
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11419 (eval $ac_link) 2>conftest.er1
11421 grep -v '^ *+' conftest.er1 >conftest.err
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_cxx_werror_flag"
11427 || test ! -s conftest.err'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 ac_cv_lib_dl_dlopen=yes
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 ac_cv_lib_dl_dlopen=no
11446 rm -f conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11450 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11452 if test $ac_cv_lib_dl_dlopen = yes; then
11453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11456 lt_cv_dlopen="dyld"
11458 lt_cv_dlopen_self=yes
11465 echo "$as_me:$LINENO: checking for shl_load" >&5
11466 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11467 if test "${ac_cv_func_shl_load+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11478 #define shl_load innocuous_shl_load
11480 /* System header to define __stub macros and hopefully few prototypes,
11481 which can conflict with char shl_load (); below.
11482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11483 <limits.h> exists even on freestanding compilers. */
11486 # include <limits.h>
11488 # include <assert.h>
11493 /* Override any gcc2 internal prototype to avoid an error. */
11498 /* We use char because int might match the return type of a gcc2
11499 builtin and then its argument prototype would still apply. */
11501 /* The GNU C library defines this for functions which it implements
11502 to always fail with ENOSYS. Some functions are actually named
11503 something starting with __ and the normal name is an alias. */
11504 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11507 char (*f) () = shl_load;
11516 return f != shl_load;
11521 rm -f conftest.$ac_objext conftest$ac_exeext
11522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11523 (eval $ac_link) 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
11530 { ac_try='test -z "$ac_cxx_werror_flag"
11531 || test ! -s conftest.err'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest$ac_exeext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 ac_cv_func_shl_load=yes
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ac_cv_func_shl_load=no
11550 rm -f conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11553 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11554 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11555 if test $ac_cv_func_shl_load = yes; then
11556 lt_cv_dlopen="shl_load"
11558 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 ac_check_lib_save_LIBS=$LIBS
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11572 /* Override any gcc2 internal prototype to avoid an error. */
11576 /* We use char because int might match the return type of a gcc2
11577 builtin and then its argument prototype would still apply. */
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589 (eval $ac_link) 2>conftest.er1
11591 grep -v '^ *+' conftest.er1 >conftest.err
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_cxx_werror_flag"
11597 || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest$ac_exeext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_cv_lib_dld_shl_load=yes
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11614 ac_cv_lib_dld_shl_load=no
11616 rm -f conftest.err conftest.$ac_objext \
11617 conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_lib_save_LIBS
11620 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11622 if test $ac_cv_lib_dld_shl_load = yes; then
11623 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11625 echo "$as_me:$LINENO: checking for dlopen" >&5
11626 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11627 if test "${ac_cv_func_dlopen+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11638 #define dlopen innocuous_dlopen
11640 /* System header to define __stub macros and hopefully few prototypes,
11641 which can conflict with char dlopen (); below.
11642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11643 <limits.h> exists even on freestanding compilers. */
11646 # include <limits.h>
11648 # include <assert.h>
11653 /* Override any gcc2 internal prototype to avoid an error. */
11658 /* We use char because int might match the return type of a gcc2
11659 builtin and then its argument prototype would still apply. */
11661 /* The GNU C library defines this for functions which it implements
11662 to always fail with ENOSYS. Some functions are actually named
11663 something starting with __ and the normal name is an alias. */
11664 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11667 char (*f) () = dlopen;
11676 return f != dlopen;
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683 (eval $ac_link) 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_cxx_werror_flag"
11691 || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_func_dlopen=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_cv_func_dlopen=no
11710 rm -f conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11714 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11715 if test $ac_cv_func_dlopen = yes; then
11716 lt_cv_dlopen="dlopen"
11718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 ac_check_lib_save_LIBS=$LIBS
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11732 /* Override any gcc2 internal prototype to avoid an error. */
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>conftest.er1
11751 grep -v '^ *+' conftest.er1 >conftest.err
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_cxx_werror_flag"
11757 || test ! -s conftest.err'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_lib_dl_dlopen=yes
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_cv_lib_dl_dlopen=no
11776 rm -f conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778 LIBS=$ac_check_lib_save_LIBS
11780 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11781 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11782 if test $ac_cv_lib_dl_dlopen = yes; then
11783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11785 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11786 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11787 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 ac_check_lib_save_LIBS=$LIBS
11791 LIBS="-lsvld $LIBS"
11792 cat >conftest.$ac_ext <<_ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11799 /* Override any gcc2 internal prototype to avoid an error. */
11803 /* We use char because int might match the return type of a gcc2
11804 builtin and then its argument prototype would still apply. */
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816 (eval $ac_link) 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_cxx_werror_flag"
11824 || test ! -s conftest.err'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 ac_cv_lib_svld_dlopen=yes
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_cv_lib_svld_dlopen=no
11843 rm -f conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11845 LIBS=$ac_check_lib_save_LIBS
11847 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11848 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11849 if test $ac_cv_lib_svld_dlopen = yes; then
11850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11852 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11853 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11854 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 ac_check_lib_save_LIBS=$LIBS
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11866 /* Override any gcc2 internal prototype to avoid an error. */
11870 /* We use char because int might match the return type of a gcc2
11871 builtin and then its argument prototype would still apply. */
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883 (eval $ac_link) 2>conftest.er1
11885 grep -v '^ *+' conftest.er1 >conftest.err
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -z "$ac_cxx_werror_flag"
11891 || test ! -s conftest.err'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest$ac_exeext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 ac_cv_lib_dld_dld_link=yes
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 ac_cv_lib_dld_dld_link=no
11910 rm -f conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11914 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11915 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11916 if test $ac_cv_lib_dld_dld_link = yes; then
11917 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11938 if test "x$lt_cv_dlopen" != xno; then
11944 case $lt_cv_dlopen in
11946 save_CPPFLAGS="$CPPFLAGS"
11947 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11949 save_LDFLAGS="$LDFLAGS"
11950 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11953 LIBS="$lt_cv_dlopen_libs $LIBS"
11955 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11956 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11957 if test "${lt_cv_dlopen_self+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 if test "$cross_compiling" = yes; then :
11961 lt_cv_dlopen_self=cross
11963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11964 lt_status=$lt_dlunknown
11965 cat > conftest.$ac_ext <<EOF
11966 #line 11966 "configure"
11967 #include "confdefs.h"
11976 # define LT_DLGLOBAL RTLD_GLOBAL
11979 # define LT_DLGLOBAL DL_GLOBAL
11981 # define LT_DLGLOBAL 0
11985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11986 find out it does not work in some platform. */
11987 #ifndef LT_DLLAZY_OR_NOW
11989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11992 # define LT_DLLAZY_OR_NOW DL_LAZY
11995 # define LT_DLLAZY_OR_NOW RTLD_NOW
11998 # define LT_DLLAZY_OR_NOW DL_NOW
12000 # define LT_DLLAZY_OR_NOW 0
12008 extern "C" void exit (int);
12011 void fnord() { int i=42;}
12014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12015 int status = $lt_dlunknown;
12019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12021 /* dlclose (self); */
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12032 (./conftest; exit; ) 2>/dev/null
12034 case x$lt_status in
12035 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12036 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12037 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12040 # compilation failed
12041 lt_cv_dlopen_self=no
12048 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12049 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12051 if test "x$lt_cv_dlopen_self" = xyes; then
12052 LDFLAGS="$LDFLAGS $link_static_flag"
12053 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12054 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12055 if test "${lt_cv_dlopen_self_static+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 if test "$cross_compiling" = yes; then :
12059 lt_cv_dlopen_self_static=cross
12061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12062 lt_status=$lt_dlunknown
12063 cat > conftest.$ac_ext <<EOF
12064 #line 12064 "configure"
12065 #include "confdefs.h"
12074 # define LT_DLGLOBAL RTLD_GLOBAL
12077 # define LT_DLGLOBAL DL_GLOBAL
12079 # define LT_DLGLOBAL 0
12083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12084 find out it does not work in some platform. */
12085 #ifndef LT_DLLAZY_OR_NOW
12087 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12090 # define LT_DLLAZY_OR_NOW DL_LAZY
12093 # define LT_DLLAZY_OR_NOW RTLD_NOW
12096 # define LT_DLLAZY_OR_NOW DL_NOW
12098 # define LT_DLLAZY_OR_NOW 0
12106 extern "C" void exit (int);
12109 void fnord() { int i=42;}
12112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12113 int status = $lt_dlunknown;
12117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12118 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12119 /* dlclose (self); */
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12130 (./conftest; exit; ) 2>/dev/null
12132 case x$lt_status in
12133 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12134 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12135 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12138 # compilation failed
12139 lt_cv_dlopen_self_static=no
12146 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12147 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12150 CPPFLAGS="$save_CPPFLAGS"
12151 LDFLAGS="$save_LDFLAGS"
12156 case $lt_cv_dlopen_self in
12157 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12158 *) enable_dlopen_self=unknown ;;
12161 case $lt_cv_dlopen_self_static in
12162 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12163 *) enable_dlopen_self_static=unknown ;;
12168 # The else clause should only fire when bootstrapping the
12169 # libtool distribution, otherwise you forgot to ship ltmain.sh
12170 # with your package, and you will get complaints that there are
12171 # no rules to generate ltmain.sh.
12172 if test -f "$ltmain"; then
12173 # See if we are running on zsh, and set the options which allow our commands through
12174 # without removal of \ escapes.
12175 if test -n "${ZSH_VERSION+set}" ; then
12176 setopt NO_GLOB_SUBST
12178 # Now quote all the things that may contain metacharacters while being
12179 # careful not to overquote the AC_SUBSTed values. We take copies of the
12180 # variables and quote the copies for generation of the libtool script.
12181 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12183 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12184 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12185 deplibs_check_method reload_flag reload_cmds need_locks \
12186 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12187 lt_cv_sys_global_symbol_to_c_name_address \
12188 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12189 old_postinstall_cmds old_postuninstall_cmds \
12193 lt_prog_compiler_wl_CXX \
12194 lt_prog_compiler_pic_CXX \
12195 lt_prog_compiler_static_CXX \
12196 lt_prog_compiler_no_builtin_flag_CXX \
12197 export_dynamic_flag_spec_CXX \
12198 thread_safe_flag_spec_CXX \
12199 whole_archive_flag_spec_CXX \
12200 enable_shared_with_static_runtimes_CXX \
12201 old_archive_cmds_CXX \
12202 old_archive_from_new_cmds_CXX \
12203 predep_objects_CXX \
12204 postdep_objects_CXX \
12207 compiler_lib_search_path_CXX \
12209 archive_expsym_cmds_CXX \
12210 postinstall_cmds_CXX \
12211 postuninstall_cmds_CXX \
12212 old_archive_from_expsyms_cmds_CXX \
12213 allow_undefined_flag_CXX \
12214 no_undefined_flag_CXX \
12215 export_symbols_cmds_CXX \
12216 hardcode_libdir_flag_spec_CXX \
12217 hardcode_libdir_flag_spec_ld_CXX \
12218 hardcode_libdir_separator_CXX \
12219 hardcode_automatic_CXX \
12221 module_expsym_cmds_CXX \
12222 lt_cv_prog_compiler_c_o_CXX \
12223 exclude_expsyms_CXX \
12224 include_expsyms_CXX; do
12227 old_archive_cmds_CXX | \
12228 old_archive_from_new_cmds_CXX | \
12229 archive_cmds_CXX | \
12230 archive_expsym_cmds_CXX | \
12231 module_cmds_CXX | \
12232 module_expsym_cmds_CXX | \
12233 old_archive_from_expsyms_cmds_CXX | \
12234 export_symbols_cmds_CXX | \
12235 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12236 postinstall_cmds | postuninstall_cmds | \
12237 old_postinstall_cmds | old_postuninstall_cmds | \
12238 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12239 # Double-quote double-evaled strings.
12240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12249 *'\$0 --fallback-echo"')
12250 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12256 cat <<__EOF__ >> "$cfgfile"
12257 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12261 # Shell to use when invoking shell scripts.
12264 # Whether or not to build shared libraries.
12265 build_libtool_libs=$enable_shared
12267 # Whether or not to build static libraries.
12268 build_old_libs=$enable_static
12270 # Whether or not to add -lc for building shared libraries.
12271 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12273 # Whether or not to disallow shared libs when runtime libs are static
12274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12276 # Whether or not to optimize for fast installation.
12277 fast_install=$enable_fast_install
12280 host_alias=$host_alias
12283 # An echo program that does not interpret backslashes.
12288 AR_FLAGS=$lt_AR_FLAGS
12293 # A language-specific compiler.
12294 CC=$lt_compiler_CXX
12296 # Is the compiler the GNU C compiler?
12302 # The linker used to build libraries.
12305 # Whether we need hard or soft links.
12308 # A BSD-compatible nm program.
12311 # A symbol stripping program
12314 # Used to examine libraries when file_magic_cmd begins "file"
12315 MAGIC_CMD=$MAGIC_CMD
12317 # Used on cygwin: DLL creation program.
12320 # Used on cygwin: object dumper.
12323 # Used on cygwin: assembler.
12326 # The name of the directory that contains temporary libtool files.
12329 # How to create reloadable object files.
12330 reload_flag=$lt_reload_flag
12331 reload_cmds=$lt_reload_cmds
12333 # How to pass a linker flag through the compiler.
12334 wl=$lt_lt_prog_compiler_wl_CXX
12336 # Object file suffix (normally "o").
12337 objext="$ac_objext"
12339 # Old archive suffix (normally "a").
12342 # Shared library suffix (normally ".so").
12343 shrext_cmds='$shrext_cmds'
12345 # Executable file suffix (normally "").
12348 # Additional compiler flags for building library objects.
12349 pic_flag=$lt_lt_prog_compiler_pic_CXX
12352 # What is the maximum length of a command?
12353 max_cmd_len=$lt_cv_sys_max_cmd_len
12355 # Does compiler simultaneously support -c and -o options?
12356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12358 # Must we lock files when doing compilation ?
12359 need_locks=$lt_need_locks
12361 # Do we need the lib prefix for modules?
12362 need_lib_prefix=$need_lib_prefix
12364 # Do we need a version for libraries?
12365 need_version=$need_version
12367 # Whether dlopen is supported.
12368 dlopen_support=$enable_dlopen
12370 # Whether dlopen of programs is supported.
12371 dlopen_self=$enable_dlopen_self
12373 # Whether dlopen of statically linked programs is supported.
12374 dlopen_self_static=$enable_dlopen_self_static
12376 # Compiler flag to prevent dynamic linking.
12377 link_static_flag=$lt_lt_prog_compiler_static_CXX
12379 # Compiler flag to turn off builtin functions.
12380 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12382 # Compiler flag to allow reflexive dlopens.
12383 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12385 # Compiler flag to generate shared objects directly from archives.
12386 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12388 # Compiler flag to generate thread-safe objects.
12389 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12391 # Library versioning type.
12392 version_type=$version_type
12394 # Format of library name prefix.
12395 libname_spec=$lt_libname_spec
12397 # List of archive names. First name is the real one, the rest are links.
12398 # The last name is the one that the linker finds with -lNAME.
12399 library_names_spec=$lt_library_names_spec
12401 # The coded name of the library, if different from the real name.
12402 soname_spec=$lt_soname_spec
12404 # Commands used to build and install an old-style archive.
12406 old_archive_cmds=$lt_old_archive_cmds_CXX
12407 old_postinstall_cmds=$lt_old_postinstall_cmds
12408 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12410 # Create an old-style archive from a shared archive.
12411 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12413 # Create a temporary old-style archive to link instead of a shared archive.
12414 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12416 # Commands used to build and install a shared archive.
12417 archive_cmds=$lt_archive_cmds_CXX
12418 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12419 postinstall_cmds=$lt_postinstall_cmds
12420 postuninstall_cmds=$lt_postuninstall_cmds
12422 # Commands used to build a loadable module (assumed same as above if empty)
12423 module_cmds=$lt_module_cmds_CXX
12424 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12426 # Commands to strip libraries.
12427 old_striplib=$lt_old_striplib
12428 striplib=$lt_striplib
12430 # Dependencies to place before the objects being linked to create a
12432 predep_objects=$lt_predep_objects_CXX
12434 # Dependencies to place after the objects being linked to create a
12436 postdep_objects=$lt_postdep_objects_CXX
12438 # Dependencies to place before the objects being linked to create a
12440 predeps=$lt_predeps_CXX
12442 # Dependencies to place after the objects being linked to create a
12444 postdeps=$lt_postdeps_CXX
12446 # The library search path used internally by the compiler when linking
12447 # a shared library.
12448 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12450 # Method to check whether dependent libraries are shared objects.
12451 deplibs_check_method=$lt_deplibs_check_method
12453 # Command to use when deplibs_check_method == file_magic.
12454 file_magic_cmd=$lt_file_magic_cmd
12456 # Flag that allows shared libraries with undefined symbols to be built.
12457 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12459 # Flag that forces no undefined symbols.
12460 no_undefined_flag=$lt_no_undefined_flag_CXX
12462 # Commands used to finish a libtool library installation in a directory.
12463 finish_cmds=$lt_finish_cmds
12465 # Same as above, but a single script fragment to be evaled but not shown.
12466 finish_eval=$lt_finish_eval
12468 # Take the output of nm and produce a listing of raw symbols and C names.
12469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12471 # Transform the output of nm in a proper C declaration
12472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12474 # Transform the output of nm in a C name address pair
12475 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12477 # This is the shared library runtime path variable.
12478 runpath_var=$runpath_var
12480 # This is the shared library path variable.
12481 shlibpath_var=$shlibpath_var
12483 # Is shlibpath searched before the hard-coded library search path?
12484 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12486 # How to hardcode a shared library path into an executable.
12487 hardcode_action=$hardcode_action_CXX
12489 # Whether we should hardcode library paths into libraries.
12490 hardcode_into_libs=$hardcode_into_libs
12492 # Flag to hardcode \$libdir into a binary during linking.
12493 # This must work even if \$libdir does not exist.
12494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12496 # If ld is used when linking, flag to hardcode \$libdir into
12497 # a binary during linking. This must work even if \$libdir does
12499 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12501 # Whether we need a single -rpath flag with a separated argument.
12502 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12504 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12505 # resulting binary.
12506 hardcode_direct=$hardcode_direct_CXX
12508 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12509 # resulting binary.
12510 hardcode_minus_L=$hardcode_minus_L_CXX
12512 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12513 # the resulting binary.
12514 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12516 # Set to yes if building a shared library automatically hardcodes DIR into the library
12517 # and all subsequent libraries and executables linked against it.
12518 hardcode_automatic=$hardcode_automatic_CXX
12520 # Variables whose values should be saved in libtool wrapper scripts and
12521 # restored at relink time.
12522 variables_saved_for_relink="$variables_saved_for_relink"
12524 # Whether libtool must link a program against all its dependency libraries.
12525 link_all_deplibs=$link_all_deplibs_CXX
12527 # Compile-time system search path for libraries
12528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12530 # Run-time system search path for libraries
12531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12533 # Fix the shell variable \$srcfile for the compiler.
12534 fix_srcfile_path="$fix_srcfile_path_CXX"
12536 # Set to yes if exported symbols are required.
12537 always_export_symbols=$always_export_symbols_CXX
12539 # The commands to list exported symbols.
12540 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12542 # The commands to extract the exported symbol list from a shared archive.
12543 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12545 # Symbols that should not be listed in the preloaded symbols.
12546 exclude_expsyms=$lt_exclude_expsyms_CXX
12548 # Symbols that must always be exported.
12549 include_expsyms=$lt_include_expsyms_CXX
12551 # ### END LIBTOOL TAG CONFIG: $tagname
12557 # If there is no Makefile yet, we rely on a make rule to execute
12558 # `config.status --recheck' to rerun these tests and create the
12559 # libtool script then.
12560 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12561 if test -f "$ltmain_in"; then
12562 test -f Makefile && make "$ltmain"
12568 ac_cpp='$CPP $CPPFLAGS'
12569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12577 with_gnu_ldcxx=$with_gnu_ld
12578 with_gnu_ld=$lt_save_with_gnu_ld
12579 lt_cv_path_LDCXX=$lt_cv_path_LD
12580 lt_cv_path_LD=$lt_save_path_LD
12581 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12582 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12590 if test -n "$F77" && test "X$F77" != "Xno"; then
12593 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12594 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12595 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12598 archive_cmds_need_lc_F77=no
12599 allow_undefined_flag_F77=
12600 always_export_symbols_F77=no
12601 archive_expsym_cmds_F77=
12602 export_dynamic_flag_spec_F77=
12603 hardcode_direct_F77=no
12604 hardcode_libdir_flag_spec_F77=
12605 hardcode_libdir_flag_spec_ld_F77=
12606 hardcode_libdir_separator_F77=
12607 hardcode_minus_L_F77=no
12608 hardcode_automatic_F77=no
12610 module_expsym_cmds_F77=
12611 link_all_deplibs_F77=unknown
12612 old_archive_cmds_F77=$old_archive_cmds
12613 no_undefined_flag_F77=
12614 whole_archive_flag_spec_F77=
12615 enable_shared_with_static_runtimes_F77=no
12617 # Source file extension for f77 test sources.
12620 # Object file extension for compiled f77 test sources.
12624 # Code to be used in simple compile tests
12625 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12627 # Code to be used in simple link tests
12628 lt_simple_link_test_code=" program t\n end\n"
12630 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12632 # If no C compiler was specified, use CC.
12635 # Allow CC to be a program name with arguments.
12639 # Allow CC to be a program name with arguments.
12644 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12646 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12647 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12648 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12649 echo "${ECHO_T}$can_build_shared" >&6
12651 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12652 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12653 test "$can_build_shared" = "no" && enable_shared=no
12655 # On AIX, shared libraries and static libraries use the same namespace, and
12656 # are all built from PIC.
12659 test "$enable_shared" = yes && enable_static=no
12660 if test -n "$RANLIB"; then
12661 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12662 postinstall_cmds='$RANLIB $lib'
12666 test "$enable_shared" = yes && enable_static=no
12669 echo "$as_me:$LINENO: result: $enable_shared" >&5
12670 echo "${ECHO_T}$enable_shared" >&6
12672 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12673 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12674 # Make sure either enable_shared or enable_static is yes.
12675 test "$enable_shared" = yes || enable_static=yes
12676 echo "$as_me:$LINENO: result: $enable_static" >&5
12677 echo "${ECHO_T}$enable_static" >&6
12679 test "$ld_shlibs_F77" = no && can_build_shared=no
12684 lt_prog_compiler_wl_F77=
12685 lt_prog_compiler_pic_F77=
12686 lt_prog_compiler_static_F77=
12688 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12689 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12691 if test "$GCC" = yes; then
12692 lt_prog_compiler_wl_F77='-Wl,'
12693 lt_prog_compiler_static_F77='-static'
12697 # All AIX code is PIC.
12698 if test "$host_cpu" = ia64; then
12699 # AIX 5 now supports IA64 processor
12700 lt_prog_compiler_static_F77='-Bstatic'
12705 # FIXME: we need at least 68020 code to build shared libraries, but
12706 # adding the `-m68020' flag to GCC prevents building anything better,
12708 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12711 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12712 # PIC is the default for these OSes.
12715 mingw* | pw32* | os2*)
12716 # This hack is so that the source file can tell whether it is being
12717 # built for inclusion in a dll (and should export symbols for example).
12718 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12721 darwin* | rhapsody*)
12722 # PIC is the default on this platform
12723 # Common symbols not allowed in MH_DYLIB files
12724 lt_prog_compiler_pic_F77='-fno-common'
12728 # Just because we use GCC doesn't mean we suddenly get shared libraries
12729 # on systems that don't support them.
12730 lt_prog_compiler_can_build_shared_F77=no
12735 if test -d /usr/nec; then
12736 lt_prog_compiler_pic_F77=-Kconform_pic
12741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12742 # not for PA HP-UX.
12743 case "$host_cpu" in
12748 lt_prog_compiler_pic_F77='-fPIC'
12754 lt_prog_compiler_pic_F77='-fPIC'
12758 # PORTME Check for flag to pass linker flags through the system compiler.
12761 lt_prog_compiler_wl_F77='-Wl,'
12762 if test "$host_cpu" = ia64; then
12763 # AIX 5 now supports IA64 processor
12764 lt_prog_compiler_static_F77='-Bstatic'
12766 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12770 mingw* | pw32* | os2*)
12771 # This hack is so that the source file can tell whether it is being
12772 # built for inclusion in a dll (and should export symbols for example).
12773 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12776 hpux9* | hpux10* | hpux11*)
12777 lt_prog_compiler_wl_F77='-Wl,'
12778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12779 # not for PA HP-UX.
12780 case "$host_cpu" in
12785 lt_prog_compiler_pic_F77='+Z'
12788 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12789 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12792 irix5* | irix6* | nonstopux*)
12793 lt_prog_compiler_wl_F77='-Wl,'
12794 # PIC (with -KPIC) is the default.
12795 lt_prog_compiler_static_F77='-non_shared'
12799 lt_prog_compiler_pic_F77='-KPIC'
12800 lt_prog_compiler_static_F77='-Bstatic'
12806 lt_prog_compiler_wl_F77='-Wl,'
12807 lt_prog_compiler_pic_F77='-KPIC'
12808 lt_prog_compiler_static_F77='-static'
12811 lt_prog_compiler_wl_F77='-Wl,'
12812 # All Alpha code is PIC.
12813 lt_prog_compiler_static_F77='-non_shared'
12818 osf3* | osf4* | osf5*)
12819 lt_prog_compiler_wl_F77='-Wl,'
12820 # All OSF/1 code is PIC.
12821 lt_prog_compiler_static_F77='-non_shared'
12825 lt_prog_compiler_pic_F77='-Kpic'
12826 lt_prog_compiler_static_F77='-dn'
12830 lt_prog_compiler_wl_F77='-Wl,'
12831 lt_prog_compiler_pic_F77='-KPIC'
12832 lt_prog_compiler_static_F77='-Bstatic'
12836 lt_prog_compiler_wl_F77='-Qoption ld '
12837 lt_prog_compiler_pic_F77='-PIC'
12838 lt_prog_compiler_static_F77='-Bstatic'
12841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12842 lt_prog_compiler_wl_F77='-Wl,'
12843 lt_prog_compiler_pic_F77='-KPIC'
12844 lt_prog_compiler_static_F77='-Bstatic'
12848 if test -d /usr/nec ;then
12849 lt_prog_compiler_pic_F77='-Kconform_pic'
12850 lt_prog_compiler_static_F77='-Bstatic'
12855 lt_prog_compiler_pic_F77='-pic'
12856 lt_prog_compiler_static_F77='-Bstatic'
12860 lt_prog_compiler_can_build_shared_F77=no
12865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12866 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12869 # Check to make sure the PIC flag actually works.
12871 if test -n "$lt_prog_compiler_pic_F77"; then
12873 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12874 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12875 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 lt_prog_compiler_pic_works_F77=no
12879 ac_outfile=conftest.$ac_objext
12880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12881 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12882 # Insert the option either (1) after the last *FLAGS variable, or
12883 # (2) before a word containing "conftest.", or (3) at the end.
12884 # Note that $ac_compile itself does not contain backslashes and begins
12885 # with a dollar sign (not a hyphen), so the echo should work correctly.
12886 # The option is referenced via a variable to avoid confusing sed.
12887 lt_compile=`echo "$ac_compile" | $SED \
12888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12890 -e 's:$: $lt_compiler_flag:'`
12891 (eval echo "\"\$as_me:12891: $lt_compile\"" >&5)
12892 (eval "$lt_compile" 2>conftest.err)
12894 cat conftest.err >&5
12895 echo "$as_me:12895: \$? = $ac_status" >&5
12896 if (exit $ac_status) && test -s "$ac_outfile"; then
12897 # The compiler can only warn and ignore the option if not recognized
12898 # So say no if there are warnings
12899 if test ! -s conftest.err; then
12900 lt_prog_compiler_pic_works_F77=yes
12906 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12907 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12909 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12910 case $lt_prog_compiler_pic_F77 in
12912 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12915 lt_prog_compiler_pic_F77=
12916 lt_prog_compiler_can_build_shared_F77=no
12921 # For platforms which do not support PIC, -DPIC is meaningless:
12923 lt_prog_compiler_pic_F77=
12926 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12930 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12932 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 lt_cv_prog_compiler_c_o_F77=no
12936 $rm -r conftest 2>/dev/null
12940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12942 lt_compiler_flag="-o out/conftest2.$ac_objext"
12943 # Insert the option either (1) after the last *FLAGS variable, or
12944 # (2) before a word containing "conftest.", or (3) at the end.
12945 # Note that $ac_compile itself does not contain backslashes and begins
12946 # with a dollar sign (not a hyphen), so the echo should work correctly.
12947 lt_compile=`echo "$ac_compile" | $SED \
12948 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12950 -e 's:$: $lt_compiler_flag:'`
12951 (eval echo "\"\$as_me:12951: $lt_compile\"" >&5)
12952 (eval "$lt_compile" 2>out/conftest.err)
12954 cat out/conftest.err >&5
12955 echo "$as_me:12955: \$? = $ac_status" >&5
12956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12958 # The compiler can only warn and ignore the option if not recognized
12959 # So say no if there are warnings
12960 if test ! -s out/conftest.err; then
12961 lt_cv_prog_compiler_c_o_F77=yes
12966 # SGI C++ compiler will create directory out/ii_files/ for
12967 # template instantiation
12968 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12969 $rm out/* && rmdir out
12975 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12976 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12979 hard_links="nottested"
12980 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12981 # do not overwrite the value of need_locks provided by the user
12982 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12988 ln conftest.a conftest.b 2>&5 || hard_links=no
12989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12990 echo "$as_me:$LINENO: result: $hard_links" >&5
12991 echo "${ECHO_T}$hard_links" >&6
12992 if test "$hard_links" = no; then
12993 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13001 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13005 allow_undefined_flag_F77=
13006 enable_shared_with_static_runtimes_F77=no
13008 archive_expsym_cmds_F77=
13009 old_archive_From_new_cmds_F77=
13010 old_archive_from_expsyms_cmds_F77=
13011 export_dynamic_flag_spec_F77=
13012 whole_archive_flag_spec_F77=
13013 thread_safe_flag_spec_F77=
13014 hardcode_libdir_flag_spec_F77=
13015 hardcode_libdir_flag_spec_ld_F77=
13016 hardcode_libdir_separator_F77=
13017 hardcode_direct_F77=no
13018 hardcode_minus_L_F77=no
13019 hardcode_shlibpath_var_F77=unsupported
13020 link_all_deplibs_F77=unknown
13021 hardcode_automatic_F77=no
13023 module_expsym_cmds_F77=
13024 always_export_symbols_F77=no
13025 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13026 # include_expsyms should be a list of space-separated symbols to be *always*
13027 # included in the symbol list
13028 include_expsyms_F77=
13029 # exclude_expsyms can be an extended regexp of symbols to exclude
13030 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13031 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13032 # as well as any symbol that contains `d'.
13033 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13034 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13035 # platforms (ab)use it in PIC code, but their linkers get confused if
13036 # the symbol is explicitly referenced. Since portable code cannot
13037 # rely on this symbol name, it's probably fine to never include it in
13038 # preloaded symbol tables.
13039 extract_expsyms_cmds=
13042 cygwin* | mingw* | pw32*)
13043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13044 # When not using gcc, we currently assume that we are using
13045 # Microsoft Visual C++.
13046 if test "$GCC" != yes; then
13056 if test "$with_gnu_ld" = yes; then
13057 # If archive_cmds runs LD, not CC, wlarc should be empty
13060 # See if GNU ld supports shared libraries.
13062 aix3* | aix4* | aix5*)
13063 # On AIX/PPC, the GNU linker is very broken
13064 if test "$host_cpu" != ia64; then
13068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13069 *** to be unable to reliably create shared libraries on AIX.
13070 *** Therefore, libtool is disabling shared libraries support. If you
13071 *** really care for shared libraries, you may want to modify your PATH
13072 *** so that a non-GNU linker is found, and then restart.
13079 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)'
13080 hardcode_libdir_flag_spec_F77='-L$libdir'
13081 hardcode_minus_L_F77=yes
13083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13084 # that the semantics of dynamic libraries on AmigaOS, at least up
13085 # to version 4, is to share data among multiple programs linked
13086 # with the same dynamic library. Since this doesn't match the
13087 # behavior of shared libraries on other platforms, we can't use
13093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13094 allow_undefined_flag_F77=unsupported
13095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13096 # support --undefined. This deserves some investigation. FIXME
13097 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13103 cygwin* | mingw* | pw32*)
13104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13105 # as there is no search path for DLLs.
13106 hardcode_libdir_flag_spec_F77='-L$libdir'
13107 allow_undefined_flag_F77=unsupported
13108 always_export_symbols_F77=no
13109 enable_shared_with_static_runtimes_F77=yes
13110 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13113 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13114 # If the export-symbols file already is a .def file (1st line
13115 # is EXPORTS), use it as is; otherwise, prepend...
13116 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13117 cp $export_symbols $output_objdir/$soname.def;
13119 echo EXPORTS > $output_objdir/$soname.def;
13120 cat $export_symbols >> $output_objdir/$soname.def;
13122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13130 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13144 *** create shared libraries on Solaris systems. Therefore, libtool
13145 *** is disabling shared libraries support. We urge you to upgrade GNU
13146 *** binutils to release 2.9.1 or newer. Another option is to modify
13147 *** your PATH or compiler configuration so that the native linker is
13148 *** used, and then restart.
13151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13160 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13162 hardcode_direct_F77=yes
13163 hardcode_shlibpath_var_F77=no
13167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13168 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169 archive_cmds_F77="$tmp_archive_cmds"
13170 supports_anon_versioning=no
13171 case `$LD -v 2>/dev/null` in
13172 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13173 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13174 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13175 *\ 2.11.*) ;; # other 2.11 versions
13176 *) supports_anon_versioning=yes ;;
13178 if test $supports_anon_versioning = yes; then
13179 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13181 $echo "local: *; };" >> $output_objdir/$libname.ver~
13182 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13184 archive_expsym_cmds_F77="$tmp_archive_cmds"
13192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13193 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13201 if test "$ld_shlibs_F77" = yes; then
13202 runpath_var=LD_RUN_PATH
13203 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13204 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13205 # ancient GNU ld didn't support --whole-archive et. al.
13206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13207 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13209 whole_archive_flag_spec_F77=
13213 # PORTME fill in a description of your system's linker (not GNU ld)
13216 allow_undefined_flag_F77=unsupported
13217 always_export_symbols_F77=yes
13218 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'
13219 # Note: this linker hardcodes the directories in LIBPATH if there
13220 # are no directories specified by -L.
13221 hardcode_minus_L_F77=yes
13222 if test "$GCC" = yes && test -z "$link_static_flag"; then
13223 # Neither direct hardcoding nor static linking is supported with a
13225 hardcode_direct_F77=unsupported
13230 if test "$host_cpu" = ia64; then
13231 # On IA64, the linker does run time linking by default, so we don't
13232 # have to do anything special.
13233 aix_use_runtimelinking=no
13234 exp_sym_flag='-Bexport'
13237 # If we're using GNU nm, then we don't want the "-C" option.
13238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13240 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'
13242 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'
13244 aix_use_runtimelinking=no
13246 # Test if we are trying to use run time linking or normal
13247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13248 # need to do runtime linking.
13249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13250 for ld_flag in $LDFLAGS; do
13251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13252 aix_use_runtimelinking=yes
13258 exp_sym_flag='-bexport'
13259 no_entry_flag='-bnoentry'
13262 # When large executables or shared objects are built, AIX ld can
13263 # have problems creating the table of contents. If linking a library
13264 # or program results in "error TOC overflow" add -mminimal-toc to
13265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13268 archive_cmds_F77=''
13269 hardcode_direct_F77=yes
13270 hardcode_libdir_separator_F77=':'
13271 link_all_deplibs_F77=yes
13273 if test "$GCC" = yes; then
13274 case $host_os in aix4.012|aix4.012.*)
13275 # We only want to do this on AIX 4.2 and lower, the check
13276 # below for broken collect2 doesn't work under 4.3+
13277 collect2name=`${CC} -print-prog-name=collect2`
13278 if test -f "$collect2name" && \
13279 strings "$collect2name" | grep resolve_lib_name >/dev/null
13281 # We have reworked collect2
13282 hardcode_direct_F77=yes
13284 # We have old collect2
13285 hardcode_direct_F77=unsupported
13286 # It fails to find uninstalled libraries when the uninstalled
13287 # path is not listed in the libpath. Setting hardcode_minus_L
13288 # to unsupported forces relinking
13289 hardcode_minus_L_F77=yes
13290 hardcode_libdir_flag_spec_F77='-L$libdir'
13291 hardcode_libdir_separator_F77=
13294 shared_flag='-shared'
13297 if test "$host_cpu" = ia64; then
13298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299 # chokes on -Wl,-G. The following line is correct:
13302 if test "$aix_use_runtimelinking" = yes; then
13303 shared_flag='${wl}-G'
13305 shared_flag='${wl}-bM:SRE'
13310 # It seems that -bexpall does not export symbols beginning with
13311 # underscore (_), so it is better to generate a list of symbols to export.
13312 always_export_symbols_F77=yes
13313 if test "$aix_use_runtimelinking" = yes; then
13314 # Warning - without using the other runtime loading flags (-brtl),
13315 # -berok will link without error, but may produce a broken library.
13316 allow_undefined_flag_F77='-berok'
13317 # Determine the default libpath from the value encoded in an empty executable.
13318 cat >conftest.$ac_ext <<_ACEOF
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325 (eval $ac_link) 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_f77_werror_flag"
13333 || test ! -s conftest.err'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest$ac_exeext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13348 # Check for a 64-bit object if we didn't find anything.
13349 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; }
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13356 rm -f conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13360 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13361 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"
13363 if test "$host_cpu" = ia64; then
13364 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13365 allow_undefined_flag_F77="-z nodefs"
13366 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"
13368 # Determine the default libpath from the value encoded in an empty executable.
13369 cat >conftest.$ac_ext <<_ACEOF
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13376 (eval $ac_link) 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_f77_werror_flag"
13384 || test ! -s conftest.err'
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); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13399 # Check for a 64-bit object if we didn't find anything.
13400 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; }
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13407 rm -f conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13411 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13412 # Warning - without using the other run time loading flags,
13413 # -berok will link without error, but may produce a broken library.
13414 no_undefined_flag_F77=' ${wl}-bernotok'
13415 allow_undefined_flag_F77=' ${wl}-berok'
13416 # -bexpall does not export symbols beginning with underscore (_)
13417 always_export_symbols_F77=yes
13418 # Exported symbols can be pulled into shared objects from archives
13419 whole_archive_flag_spec_F77=' '
13420 archive_cmds_need_lc_F77=yes
13421 # This is similar to how AIX traditionally builds it's shared libraries.
13422 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'
13428 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)'
13429 hardcode_libdir_flag_spec_F77='-L$libdir'
13430 hardcode_minus_L_F77=yes
13431 # see comment about different semantics on the GNU ld section
13436 export_dynamic_flag_spec_F77=-rdynamic
13439 cygwin* | mingw* | pw32*)
13440 # When not using gcc, we currently assume that we are using
13441 # Microsoft Visual C++.
13442 # hardcode_libdir_flag_spec is actually meaningless, as there is
13443 # no search path for DLLs.
13444 hardcode_libdir_flag_spec_F77=' '
13445 allow_undefined_flag_F77=unsupported
13446 # Tell ltmain to make .lib files, not .a files.
13448 # Tell ltmain to make .dll files, not .so files.
13450 # FIXME: Setting linknames here is a bad hack.
13451 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13452 # The linker will automatically build a .lib file if we build a DLL.
13453 old_archive_From_new_cmds_F77='true'
13454 # FIXME: Should let the user specify the lib program.
13455 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13456 fix_srcfile_path='`cygpath -w "$srcfile"`'
13457 enable_shared_with_static_runtimes_F77=yes
13460 darwin* | rhapsody*)
13461 if test "$GXX" = yes ; then
13462 archive_cmds_need_lc_F77=no
13464 rhapsody* | darwin1.[012])
13465 allow_undefined_flag_F77='-undefined suppress'
13468 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13469 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13471 case ${MACOSX_DEPLOYMENT_TARGET} in
13473 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13476 allow_undefined_flag_F77='-undefined dynamic_lookup'
13482 lt_int_apple_cc_single_mod=no
13483 output_verbose_link_cmd='echo'
13484 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13485 lt_int_apple_cc_single_mod=yes
13487 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13488 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13490 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13492 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13494 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13495 archive_expsym_cmds_F77='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}'
13497 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13499 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}'
13500 hardcode_direct_F77=no
13501 hardcode_automatic_F77=yes
13502 hardcode_shlibpath_var_F77=unsupported
13503 whole_archive_flag_spec_F77='-all_load $convenience'
13504 link_all_deplibs_F77=yes
13511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13512 hardcode_libdir_flag_spec_F77='-L$libdir'
13513 hardcode_shlibpath_var_F77=no
13520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13521 # support. Future versions do this automatically, but an explicit c++rt0.o
13522 # does not break anything, and helps significantly (at the cost of a little
13525 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13526 hardcode_libdir_flag_spec_F77='-R$libdir'
13527 hardcode_direct_F77=yes
13528 hardcode_shlibpath_var_F77=no
13531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13533 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13534 hardcode_direct_F77=yes
13535 hardcode_minus_L_F77=yes
13536 hardcode_shlibpath_var_F77=no
13539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13540 freebsd* | kfreebsd*-gnu)
13541 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13542 hardcode_libdir_flag_spec_F77='-R$libdir'
13543 hardcode_direct_F77=yes
13544 hardcode_shlibpath_var_F77=no
13548 if test "$GCC" = yes; then
13549 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'
13551 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'
13553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13554 hardcode_libdir_separator_F77=:
13555 hardcode_direct_F77=yes
13557 # hardcode_minus_L: Not really in the search PATH,
13558 # but as the default location of the library.
13559 hardcode_minus_L_F77=yes
13560 export_dynamic_flag_spec_F77='${wl}-E'
13564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13565 case "$host_cpu" in
13567 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13570 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13574 case "$host_cpu" in
13576 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13579 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13583 if test "$with_gnu_ld" = no; then
13584 case "$host_cpu" in
13586 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13587 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13588 hardcode_libdir_separator_F77=:
13589 hardcode_direct_F77=no
13590 hardcode_shlibpath_var_F77=no
13593 hardcode_libdir_flag_spec_F77='-L$libdir'
13594 hardcode_direct_F77=no
13595 hardcode_shlibpath_var_F77=no
13597 # hardcode_minus_L: Not really in the search PATH,
13598 # but as the default location of the library.
13599 hardcode_minus_L_F77=yes
13602 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13603 hardcode_libdir_separator_F77=:
13604 hardcode_direct_F77=yes
13605 export_dynamic_flag_spec_F77='${wl}-E'
13607 # hardcode_minus_L: Not really in the search PATH,
13608 # but as the default location of the library.
13609 hardcode_minus_L_F77=yes
13615 irix5* | irix6* | nonstopux*)
13616 if test "$GCC" = yes; then
13617 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'
13619 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'
13620 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13622 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13623 hardcode_libdir_separator_F77=:
13624 link_all_deplibs_F77=yes
13628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13631 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13633 hardcode_libdir_flag_spec_F77='-R$libdir'
13634 hardcode_direct_F77=yes
13635 hardcode_shlibpath_var_F77=no
13639 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13640 hardcode_direct_F77=yes
13641 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13642 hardcode_libdir_separator_F77=:
13643 hardcode_shlibpath_var_F77=no
13647 hardcode_direct_F77=yes
13648 hardcode_shlibpath_var_F77=no
13649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13650 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13652 export_dynamic_flag_spec_F77='${wl}-E'
13655 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13656 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13657 hardcode_libdir_flag_spec_F77='-R$libdir'
13660 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13661 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13668 hardcode_libdir_flag_spec_F77='-L$libdir'
13669 hardcode_minus_L_F77=yes
13670 allow_undefined_flag_F77=unsupported
13671 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'
13672 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13676 if test "$GCC" = yes; then
13677 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13678 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'
13680 allow_undefined_flag_F77=' -expect_unresolved \*'
13681 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'
13683 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13684 hardcode_libdir_separator_F77=:
13687 osf4* | osf5*) # as osf3* with the addition of -msym flag
13688 if test "$GCC" = yes; then
13689 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13690 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'
13691 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13693 allow_undefined_flag_F77=' -expect_unresolved \*'
13694 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'
13695 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~
13696 $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'
13698 # Both c and cxx compiler support -rpath directly
13699 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13701 hardcode_libdir_separator_F77=:
13705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13706 hardcode_shlibpath_var_F77=no
13707 export_dynamic_flag_spec_F77='${wl}-Bexport'
13708 runpath_var=LD_RUN_PATH
13709 hardcode_runpath_var=yes
13713 no_undefined_flag_F77=' -z text'
13714 if test "$GCC" = yes; then
13715 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13717 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13719 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13720 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13723 hardcode_libdir_flag_spec_F77='-R$libdir'
13724 hardcode_shlibpath_var_F77=no
13726 solaris2.[0-5] | solaris2.[0-5].*) ;;
13727 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13728 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13730 link_all_deplibs_F77=yes
13734 if test "x$host_vendor" = xsequent; then
13735 # Use $CC to link under sequent, because it throws in some extra .o
13736 # files that make .init and .fini sections work.
13737 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13741 hardcode_libdir_flag_spec_F77='-L$libdir'
13742 hardcode_direct_F77=yes
13743 hardcode_minus_L_F77=yes
13744 hardcode_shlibpath_var_F77=no
13748 case $host_vendor in
13750 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13751 hardcode_direct_F77=yes # is this really true???
13754 ## LD is ld it makes a PLAMLIB
13755 ## CC just makes a GrossModule.
13756 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13757 reload_cmds_F77='$CC -r -o $output$reload_objs'
13758 hardcode_direct_F77=no
13761 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13762 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13765 runpath_var='LD_RUN_PATH'
13766 hardcode_shlibpath_var_F77=no
13770 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_shlibpath_var_F77=no
13772 export_dynamic_flag_spec_F77='-Bexport'
13776 if test -d /usr/nec; then
13777 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_shlibpath_var_F77=no
13779 runpath_var=LD_RUN_PATH
13780 hardcode_runpath_var=yes
13786 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_direct_F77=yes
13788 hardcode_minus_L_F77=no
13789 hardcode_shlibpath_var_F77=no
13790 hardcode_runpath_var=yes
13791 runpath_var=LD_RUN_PATH
13794 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13795 no_undefined_flag_F77='${wl}-z ${wl}text'
13796 if test "$GCC" = yes; then
13797 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 runpath_var='LD_RUN_PATH'
13802 hardcode_shlibpath_var_F77=no
13806 no_undefined_flag_F77=' -z text'
13807 # $CC -shared without GNU ld will not create a library from C++
13808 # object files and a static libstdc++, better avoid it by now
13809 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13810 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13811 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13812 hardcode_libdir_flag_spec_F77=
13813 hardcode_shlibpath_var_F77=no
13814 runpath_var='LD_RUN_PATH'
13818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 hardcode_libdir_flag_spec_F77='-L$libdir'
13820 hardcode_shlibpath_var_F77=no
13829 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13830 echo "${ECHO_T}$ld_shlibs_F77" >&6
13831 test "$ld_shlibs_F77" = no && can_build_shared=no
13833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13834 if test "$GCC" = yes; then
13835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13839 # Do we need to explicitly link libc?
13841 case "x$archive_cmds_need_lc_F77" in
13843 # Assume -lc should be added
13844 archive_cmds_need_lc_F77=yes
13846 if test "$enable_shared" = yes && test "$GCC" = yes; then
13847 case $archive_cmds_F77 in
13849 # FIXME: we may have to deal with multi-command sequences.
13852 # Test whether the compiler implicitly links with -lc since on some
13853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13854 # to ld, don't add -lc before -lgcc.
13855 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13856 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13861 (eval $ac_compile) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } 2>conftest.err; then
13867 libobjs=conftest.$ac_objext
13869 wl=$lt_prog_compiler_wl_F77
13875 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13876 allow_undefined_flag_F77=
13877 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13878 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }
13883 archive_cmds_need_lc_F77=no
13885 archive_cmds_need_lc_F77=yes
13887 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13889 cat conftest.err 1>&5
13892 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13893 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13900 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13901 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13902 library_names_spec=
13903 libname_spec='lib$name'
13907 postuninstall_cmds=
13911 shlibpath_overrides_runpath=unknown
13913 dynamic_linker="$host_os ld.so"
13914 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13915 if test "$GCC" = yes; then
13916 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13917 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13918 # if the path contains ";" then we assume it to be the separator
13919 # otherwise default to the standard path separator (i.e. ":") - it is
13920 # assumed that no part of a normal pathname contains ";" but that should
13921 # okay in the real world where ";" in dirpaths is itself problematic.
13922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13929 need_lib_prefix=unknown
13930 hardcode_into_libs=no
13932 # when you set need_version to no, make sure it does not cause -set_version
13933 # flags to be left without arguments
13934 need_version=unknown
13939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13940 shlibpath_var=LIBPATH
13942 # AIX 3 has no versioning support, so we append a major version to the name.
13943 soname_spec='${libname}${release}${shared_ext}$major'
13950 hardcode_into_libs=yes
13951 if test "$host_cpu" = ia64; then
13952 # AIX 5 supports IA64
13953 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13954 shlibpath_var=LD_LIBRARY_PATH
13956 # With GCC up to 2.95.x, collect2 would create an import file
13957 # for dependence libraries. The import file would start with
13958 # the line `#! .'. This would cause the generated library to
13959 # depend on `.', always an invalid library. This was fixed in
13960 # development snapshots of GCC prior to 3.0.
13962 aix4 | aix4.[01] | aix4.[01].*)
13963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13965 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13968 can_build_shared=no
13972 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13973 # soname into executable. Probably we can add versioning support to
13974 # collect2, so additional links can be useful in future.
13975 if test "$aix_use_runtimelinking" = yes; then
13976 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13977 # instead of lib<name>.a to let people know that these are not
13978 # typical AIX shared libraries.
13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 # We preserve .a as extension for shared libraries through AIX4.2
13982 # and later when we are not doing run time linking.
13983 library_names_spec='${libname}${release}.a $libname.a'
13984 soname_spec='${libname}${release}${shared_ext}$major'
13986 shlibpath_var=LIBPATH
13991 library_names_spec='$libname.ixlibrary $libname.a'
13992 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13993 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'
13997 library_names_spec='${libname}${shared_ext}'
13998 dynamic_linker="$host_os ld.so"
13999 shlibpath_var=LIBRARY_PATH
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 soname_spec='${libname}${release}${shared_ext}$major'
14007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14008 shlibpath_var=LD_LIBRARY_PATH
14009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14011 # the default ld.so.conf also contains /usr/contrib/lib and
14012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14013 # libtool to hard-code these into programs
14016 cygwin* | mingw* | pw32*)
14017 version_type=windows
14022 case $GCC,$host_os in
14023 yes,cygwin* | yes,mingw* | yes,pw32*)
14024 library_names_spec='$libname.dll.a'
14025 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14026 postinstall_cmds='base_file=`basename \${file}`~
14027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14028 dldir=$destdir/`dirname \$dlpath`~
14029 test -d \$dldir || mkdir -p \$dldir~
14030 $install_prog $dir/$dlname \$dldir/$dlname'
14031 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14032 dlpath=$dir/\$dldll~
14034 shlibpath_overrides_runpath=yes
14038 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14039 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14040 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14043 # MinGW DLLs use traditional 'lib' prefix
14044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14046 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14047 # It is most probably a Windows format PATH printed by
14048 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14049 # path with ; separators, and with drive letters. We can handle the
14050 # drive letters (cygwin fileutils understands them), so leave them,
14051 # especially as we might pass files found there to a mingw objdump,
14052 # which wouldn't understand a cygwinified path. Ahh.
14053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14059 # pw32 DLLs use 'pw' prefix rather than 'lib'
14060 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14066 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14069 dynamic_linker='Win32 ld.exe'
14070 # FIXME: first we should search . and the directory the executable is in
14074 darwin* | rhapsody*)
14075 dynamic_linker="$host_os dyld"
14076 version_type=darwin
14079 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14080 soname_spec='${libname}${release}${major}$shared_ext'
14081 shlibpath_overrides_runpath=yes
14082 shlibpath_var=DYLD_LIBRARY_PATH
14083 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14084 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14085 if test "$GCC" = yes; then
14086 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"`
14088 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14098 soname_spec='${libname}${release}${shared_ext}$major'
14099 shlibpath_var=LD_LIBRARY_PATH
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 shlibpath_overrides_runpath=no
14114 hardcode_into_libs=yes
14115 dynamic_linker='GNU ld.so'
14119 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14120 version_type=freebsd-$objformat
14121 case $version_type in
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14132 shlibpath_var=LD_LIBRARY_PATH
14135 shlibpath_overrides_runpath=yes
14137 freebsd3.01* | freebsdelf3.01*)
14138 shlibpath_overrides_runpath=yes
14139 hardcode_into_libs=yes
14142 shlibpath_overrides_runpath=no
14143 hardcode_into_libs=yes
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 hardcode_into_libs=yes
14158 hpux9* | hpux10* | hpux11*)
14159 # Give a soname corresponding to the major version so that dld.sl refuses to
14160 # link against other versions.
14164 case "$host_cpu" in
14167 hardcode_into_libs=yes
14168 dynamic_linker="$host_os dld.so"
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 if test "X$HPUX_IA64_MODE" = X32; then
14174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14182 hardcode_into_libs=yes
14183 dynamic_linker="$host_os dld.sl"
14184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14193 dynamic_linker="$host_os dld.sl"
14194 shlibpath_var=SHLIB_PATH
14195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 soname_spec='${libname}${release}${shared_ext}$major'
14200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14201 postinstall_cmds='chmod 555 $lib'
14204 irix5* | irix6* | nonstopux*)
14206 nonstopux*) version_type=nonstopux ;;
14208 if test "$lt_cv_prog_gnu_ld" = yes; then
14216 soname_spec='${libname}${release}${shared_ext}$major'
14217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14219 irix5* | nonstopux*)
14220 libsuff= shlibsuff=
14223 case $LD in # libtool.m4 will add one of these switches to LD
14224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14225 libsuff= shlibsuff= libmagic=32-bit;;
14226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14227 libsuff=32 shlibsuff=N32 libmagic=N32;;
14228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14230 *) libsuff= shlibsuff= libmagic=never-match;;
14234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14235 shlibpath_overrides_runpath=no
14236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14238 hardcode_into_libs=yes
14241 # No shared lib support for Linux oldld, aout, or coff.
14242 linux*oldld* | linux*aout* | linux*coff*)
14246 # This must be Linux ELF.
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=no
14256 # This implies no fast_install, which is unacceptable.
14257 # Some rework will be needed to allow for fast_install
14258 # before this can be enabled.
14259 hardcode_into_libs=yes
14261 # find out which ABI we are using
14263 case "$host_cpu" in
14264 x86_64*|s390x*|powerpc64*)
14265 echo '#line 14265 "configure"' > conftest.$ac_ext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; then
14271 case `/usr/bin/file conftest.$ac_objext` in
14274 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14282 # Append ld.so.conf contents to the search path
14283 if test -f /etc/ld.so.conf; then
14284 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14285 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14288 # We used to test for /lib/ld.so.1 and disable shared libraries on
14289 # powerpc, because MkLinux only supported shared libraries with the
14290 # GNU dynamic linker. Since this was broken with cross compilers,
14291 # most powerpc-linux boxes support dynamic linking these days and
14292 # people can always --disable-shared, the test was removed, and we
14293 # assume the GNU/Linux dynamic linker is in use.
14294 dynamic_linker='GNU/Linux ld.so'
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 shlibpath_overrides_runpath=no
14305 hardcode_into_libs=yes
14306 dynamic_linker='GNU ld.so'
14313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14316 dynamic_linker='NetBSD (a.out) ld.so'
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 dynamic_linker='NetBSD ld.elf_so'
14322 shlibpath_var=LD_LIBRARY_PATH
14323 shlibpath_overrides_runpath=yes
14324 hardcode_into_libs=yes
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330 shlibpath_var=LD_LIBRARY_PATH
14331 shlibpath_overrides_runpath=yes
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 shlibpath_var=LD_LIBRARY_PATH
14341 shlibpath_overrides_runpath=yes
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14353 openbsd2.[89] | openbsd2.[89].*)
14354 shlibpath_overrides_runpath=no
14357 shlibpath_overrides_runpath=yes
14361 shlibpath_overrides_runpath=yes
14366 libname_spec='$name'
14369 library_names_spec='$libname${shared_ext} $libname.a'
14370 dynamic_linker='OS/2 ld.exe'
14371 shlibpath_var=LIBPATH
14374 osf3* | osf4* | osf5*)
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 shlibpath_var=LD_LIBRARY_PATH
14381 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14382 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14387 soname_spec='${libname}${release}${shared_ext}$major'
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 shlibpath_var=LD_LIBRARY_PATH
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 shlibpath_var=LD_LIBRARY_PATH
14399 shlibpath_overrides_runpath=yes
14400 hardcode_into_libs=yes
14401 # ldd complains unless libraries are executable
14402 postinstall_cmds='chmod +x $lib'
14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14409 shlibpath_var=LD_LIBRARY_PATH
14410 shlibpath_overrides_runpath=yes
14411 if test "$with_gnu_ld" = yes; then
14417 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 shlibpath_var=LD_LIBRARY_PATH
14422 case $host_vendor in
14424 shlibpath_overrides_runpath=no
14426 export_dynamic_flag_spec='${wl}-Blargedynsym'
14427 runpath_var=LD_RUN_PATH
14435 shlibpath_overrides_runpath=no
14436 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14442 if test -d /usr/nec ;then
14444 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14445 soname_spec='$libname${shared_ext}.$major'
14446 shlibpath_var=LD_LIBRARY_PATH
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 shlibpath_var=LD_LIBRARY_PATH
14461 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14462 echo "${ECHO_T}$dynamic_linker" >&6
14463 test "$dynamic_linker" = no && can_build_shared=no
14465 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14466 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14467 hardcode_action_F77=
14468 if test -n "$hardcode_libdir_flag_spec_F77" || \
14469 test -n "$runpath_var F77" || \
14470 test "X$hardcode_automatic_F77"="Xyes" ; then
14472 # We can hardcode non-existant directories.
14473 if test "$hardcode_direct_F77" != no &&
14474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14475 # have to relink, otherwise we might link with an installed library
14476 # when we should be linking with a yet-to-be-installed one
14477 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14478 test "$hardcode_minus_L_F77" != no; then
14479 # Linking always hardcodes the temporary library directory.
14480 hardcode_action_F77=relink
14482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14483 hardcode_action_F77=immediate
14486 # We cannot hardcode anything, or else we can only hardcode existing
14488 hardcode_action_F77=unsupported
14490 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14491 echo "${ECHO_T}$hardcode_action_F77" >&6
14493 if test "$hardcode_action_F77" = relink; then
14494 # Fast installation is not supported
14495 enable_fast_install=no
14496 elif test "$shlibpath_overrides_runpath" = yes ||
14497 test "$enable_shared" = no; then
14498 # Fast installation is not necessary
14499 enable_fast_install=needless
14504 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14505 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14506 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14507 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14508 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14509 echo "$as_me:$LINENO: result: yes" >&5
14510 echo "${ECHO_T}yes" >&6
14512 # FIXME - insert some real tests, host_os isn't really good enough
14515 if test -n "$STRIP" ; then
14516 striplib="$STRIP -x"
14517 echo "$as_me:$LINENO: result: yes" >&5
14518 echo "${ECHO_T}yes" >&6
14520 echo "$as_me:$LINENO: result: no" >&5
14521 echo "${ECHO_T}no" >&6
14525 echo "$as_me:$LINENO: result: no" >&5
14526 echo "${ECHO_T}no" >&6
14533 # The else clause should only fire when bootstrapping the
14534 # libtool distribution, otherwise you forgot to ship ltmain.sh
14535 # with your package, and you will get complaints that there are
14536 # no rules to generate ltmain.sh.
14537 if test -f "$ltmain"; then
14538 # See if we are running on zsh, and set the options which allow our commands through
14539 # without removal of \ escapes.
14540 if test -n "${ZSH_VERSION+set}" ; then
14541 setopt NO_GLOB_SUBST
14543 # Now quote all the things that may contain metacharacters while being
14544 # careful not to overquote the AC_SUBSTed values. We take copies of the
14545 # variables and quote the copies for generation of the libtool script.
14546 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14548 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14549 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14550 deplibs_check_method reload_flag reload_cmds need_locks \
14551 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14552 lt_cv_sys_global_symbol_to_c_name_address \
14553 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14554 old_postinstall_cmds old_postuninstall_cmds \
14558 lt_prog_compiler_wl_F77 \
14559 lt_prog_compiler_pic_F77 \
14560 lt_prog_compiler_static_F77 \
14561 lt_prog_compiler_no_builtin_flag_F77 \
14562 export_dynamic_flag_spec_F77 \
14563 thread_safe_flag_spec_F77 \
14564 whole_archive_flag_spec_F77 \
14565 enable_shared_with_static_runtimes_F77 \
14566 old_archive_cmds_F77 \
14567 old_archive_from_new_cmds_F77 \
14568 predep_objects_F77 \
14569 postdep_objects_F77 \
14572 compiler_lib_search_path_F77 \
14574 archive_expsym_cmds_F77 \
14575 postinstall_cmds_F77 \
14576 postuninstall_cmds_F77 \
14577 old_archive_from_expsyms_cmds_F77 \
14578 allow_undefined_flag_F77 \
14579 no_undefined_flag_F77 \
14580 export_symbols_cmds_F77 \
14581 hardcode_libdir_flag_spec_F77 \
14582 hardcode_libdir_flag_spec_ld_F77 \
14583 hardcode_libdir_separator_F77 \
14584 hardcode_automatic_F77 \
14586 module_expsym_cmds_F77 \
14587 lt_cv_prog_compiler_c_o_F77 \
14588 exclude_expsyms_F77 \
14589 include_expsyms_F77; do
14592 old_archive_cmds_F77 | \
14593 old_archive_from_new_cmds_F77 | \
14594 archive_cmds_F77 | \
14595 archive_expsym_cmds_F77 | \
14596 module_cmds_F77 | \
14597 module_expsym_cmds_F77 | \
14598 old_archive_from_expsyms_cmds_F77 | \
14599 export_symbols_cmds_F77 | \
14600 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14601 postinstall_cmds | postuninstall_cmds | \
14602 old_postinstall_cmds | old_postuninstall_cmds | \
14603 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14604 # Double-quote double-evaled strings.
14605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14614 *'\$0 --fallback-echo"')
14615 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14621 cat <<__EOF__ >> "$cfgfile"
14622 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14626 # Shell to use when invoking shell scripts.
14629 # Whether or not to build shared libraries.
14630 build_libtool_libs=$enable_shared
14632 # Whether or not to build static libraries.
14633 build_old_libs=$enable_static
14635 # Whether or not to add -lc for building shared libraries.
14636 build_libtool_need_lc=$archive_cmds_need_lc_F77
14638 # Whether or not to disallow shared libs when runtime libs are static
14639 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14641 # Whether or not to optimize for fast installation.
14642 fast_install=$enable_fast_install
14645 host_alias=$host_alias
14648 # An echo program that does not interpret backslashes.
14653 AR_FLAGS=$lt_AR_FLAGS
14658 # A language-specific compiler.
14659 CC=$lt_compiler_F77
14661 # Is the compiler the GNU C compiler?
14667 # The linker used to build libraries.
14670 # Whether we need hard or soft links.
14673 # A BSD-compatible nm program.
14676 # A symbol stripping program
14679 # Used to examine libraries when file_magic_cmd begins "file"
14680 MAGIC_CMD=$MAGIC_CMD
14682 # Used on cygwin: DLL creation program.
14685 # Used on cygwin: object dumper.
14688 # Used on cygwin: assembler.
14691 # The name of the directory that contains temporary libtool files.
14694 # How to create reloadable object files.
14695 reload_flag=$lt_reload_flag
14696 reload_cmds=$lt_reload_cmds
14698 # How to pass a linker flag through the compiler.
14699 wl=$lt_lt_prog_compiler_wl_F77
14701 # Object file suffix (normally "o").
14702 objext="$ac_objext"
14704 # Old archive suffix (normally "a").
14707 # Shared library suffix (normally ".so").
14708 shrext_cmds='$shrext_cmds'
14710 # Executable file suffix (normally "").
14713 # Additional compiler flags for building library objects.
14714 pic_flag=$lt_lt_prog_compiler_pic_F77
14717 # What is the maximum length of a command?
14718 max_cmd_len=$lt_cv_sys_max_cmd_len
14720 # Does compiler simultaneously support -c and -o options?
14721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14723 # Must we lock files when doing compilation ?
14724 need_locks=$lt_need_locks
14726 # Do we need the lib prefix for modules?
14727 need_lib_prefix=$need_lib_prefix
14729 # Do we need a version for libraries?
14730 need_version=$need_version
14732 # Whether dlopen is supported.
14733 dlopen_support=$enable_dlopen
14735 # Whether dlopen of programs is supported.
14736 dlopen_self=$enable_dlopen_self
14738 # Whether dlopen of statically linked programs is supported.
14739 dlopen_self_static=$enable_dlopen_self_static
14741 # Compiler flag to prevent dynamic linking.
14742 link_static_flag=$lt_lt_prog_compiler_static_F77
14744 # Compiler flag to turn off builtin functions.
14745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14747 # Compiler flag to allow reflexive dlopens.
14748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14750 # Compiler flag to generate shared objects directly from archives.
14751 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14753 # Compiler flag to generate thread-safe objects.
14754 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14756 # Library versioning type.
14757 version_type=$version_type
14759 # Format of library name prefix.
14760 libname_spec=$lt_libname_spec
14762 # List of archive names. First name is the real one, the rest are links.
14763 # The last name is the one that the linker finds with -lNAME.
14764 library_names_spec=$lt_library_names_spec
14766 # The coded name of the library, if different from the real name.
14767 soname_spec=$lt_soname_spec
14769 # Commands used to build and install an old-style archive.
14771 old_archive_cmds=$lt_old_archive_cmds_F77
14772 old_postinstall_cmds=$lt_old_postinstall_cmds
14773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14775 # Create an old-style archive from a shared archive.
14776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14778 # Create a temporary old-style archive to link instead of a shared archive.
14779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14781 # Commands used to build and install a shared archive.
14782 archive_cmds=$lt_archive_cmds_F77
14783 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14784 postinstall_cmds=$lt_postinstall_cmds
14785 postuninstall_cmds=$lt_postuninstall_cmds
14787 # Commands used to build a loadable module (assumed same as above if empty)
14788 module_cmds=$lt_module_cmds_F77
14789 module_expsym_cmds=$lt_module_expsym_cmds_F77
14791 # Commands to strip libraries.
14792 old_striplib=$lt_old_striplib
14793 striplib=$lt_striplib
14795 # Dependencies to place before the objects being linked to create a
14797 predep_objects=$lt_predep_objects_F77
14799 # Dependencies to place after the objects being linked to create a
14801 postdep_objects=$lt_postdep_objects_F77
14803 # Dependencies to place before the objects being linked to create a
14805 predeps=$lt_predeps_F77
14807 # Dependencies to place after the objects being linked to create a
14809 postdeps=$lt_postdeps_F77
14811 # The library search path used internally by the compiler when linking
14812 # a shared library.
14813 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14815 # Method to check whether dependent libraries are shared objects.
14816 deplibs_check_method=$lt_deplibs_check_method
14818 # Command to use when deplibs_check_method == file_magic.
14819 file_magic_cmd=$lt_file_magic_cmd
14821 # Flag that allows shared libraries with undefined symbols to be built.
14822 allow_undefined_flag=$lt_allow_undefined_flag_F77
14824 # Flag that forces no undefined symbols.
14825 no_undefined_flag=$lt_no_undefined_flag_F77
14827 # Commands used to finish a libtool library installation in a directory.
14828 finish_cmds=$lt_finish_cmds
14830 # Same as above, but a single script fragment to be evaled but not shown.
14831 finish_eval=$lt_finish_eval
14833 # Take the output of nm and produce a listing of raw symbols and C names.
14834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14836 # Transform the output of nm in a proper C declaration
14837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14839 # Transform the output of nm in a C name address pair
14840 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14842 # This is the shared library runtime path variable.
14843 runpath_var=$runpath_var
14845 # This is the shared library path variable.
14846 shlibpath_var=$shlibpath_var
14848 # Is shlibpath searched before the hard-coded library search path?
14849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14851 # How to hardcode a shared library path into an executable.
14852 hardcode_action=$hardcode_action_F77
14854 # Whether we should hardcode library paths into libraries.
14855 hardcode_into_libs=$hardcode_into_libs
14857 # Flag to hardcode \$libdir into a binary during linking.
14858 # This must work even if \$libdir does not exist.
14859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14861 # If ld is used when linking, flag to hardcode \$libdir into
14862 # a binary during linking. This must work even if \$libdir does
14864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14866 # Whether we need a single -rpath flag with a separated argument.
14867 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14869 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14870 # resulting binary.
14871 hardcode_direct=$hardcode_direct_F77
14873 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14874 # resulting binary.
14875 hardcode_minus_L=$hardcode_minus_L_F77
14877 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14878 # the resulting binary.
14879 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14881 # Set to yes if building a shared library automatically hardcodes DIR into the library
14882 # and all subsequent libraries and executables linked against it.
14883 hardcode_automatic=$hardcode_automatic_F77
14885 # Variables whose values should be saved in libtool wrapper scripts and
14886 # restored at relink time.
14887 variables_saved_for_relink="$variables_saved_for_relink"
14889 # Whether libtool must link a program against all its dependency libraries.
14890 link_all_deplibs=$link_all_deplibs_F77
14892 # Compile-time system search path for libraries
14893 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14895 # Run-time system search path for libraries
14896 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14898 # Fix the shell variable \$srcfile for the compiler.
14899 fix_srcfile_path="$fix_srcfile_path_F77"
14901 # Set to yes if exported symbols are required.
14902 always_export_symbols=$always_export_symbols_F77
14904 # The commands to list exported symbols.
14905 export_symbols_cmds=$lt_export_symbols_cmds_F77
14907 # The commands to extract the exported symbol list from a shared archive.
14908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14910 # Symbols that should not be listed in the preloaded symbols.
14911 exclude_expsyms=$lt_exclude_expsyms_F77
14913 # Symbols that must always be exported.
14914 include_expsyms=$lt_include_expsyms_F77
14916 # ### END LIBTOOL TAG CONFIG: $tagname
14922 # If there is no Makefile yet, we rely on a make rule to execute
14923 # `config.status --recheck' to rerun these tests and create the
14924 # libtool script then.
14925 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14926 if test -f "$ltmain_in"; then
14927 test -f Makefile && make "$ltmain"
14933 ac_cpp='$CPP $CPPFLAGS'
14934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14946 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14950 # Source file extension for Java test sources.
14953 # Object file extension for compiled Java test sources.
14957 # Code to be used in simple compile tests
14958 lt_simple_compile_test_code="class foo {}\n"
14960 # Code to be used in simple link tests
14961 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14965 # If no C compiler was specified, use CC.
14968 # Allow CC to be a program name with arguments.
14972 # Allow CC to be a program name with arguments.
14978 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14979 archive_cmds_need_lc_GCJ=no
14982 lt_prog_compiler_no_builtin_flag_GCJ=
14984 if test "$GCC" = yes; then
14985 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14988 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14989 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14990 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 lt_cv_prog_compiler_rtti_exceptions=no
14994 ac_outfile=conftest.$ac_objext
14995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14996 lt_compiler_flag="-fno-rtti -fno-exceptions"
14997 # Insert the option either (1) after the last *FLAGS variable, or
14998 # (2) before a word containing "conftest.", or (3) at the end.
14999 # Note that $ac_compile itself does not contain backslashes and begins
15000 # with a dollar sign (not a hyphen), so the echo should work correctly.
15001 # The option is referenced via a variable to avoid confusing sed.
15002 lt_compile=`echo "$ac_compile" | $SED \
15003 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15005 -e 's:$: $lt_compiler_flag:'`
15006 (eval echo "\"\$as_me:15006: $lt_compile\"" >&5)
15007 (eval "$lt_compile" 2>conftest.err)
15009 cat conftest.err >&5
15010 echo "$as_me:15010: \$? = $ac_status" >&5
15011 if (exit $ac_status) && test -s "$ac_outfile"; then
15012 # The compiler can only warn and ignore the option if not recognized
15013 # So say no if there are warnings
15014 if test ! -s conftest.err; then
15015 lt_cv_prog_compiler_rtti_exceptions=yes
15021 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15022 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15024 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15025 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15032 lt_prog_compiler_wl_GCJ=
15033 lt_prog_compiler_pic_GCJ=
15034 lt_prog_compiler_static_GCJ=
15036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15039 if test "$GCC" = yes; then
15040 lt_prog_compiler_wl_GCJ='-Wl,'
15041 lt_prog_compiler_static_GCJ='-static'
15045 # All AIX code is PIC.
15046 if test "$host_cpu" = ia64; then
15047 # AIX 5 now supports IA64 processor
15048 lt_prog_compiler_static_GCJ='-Bstatic'
15053 # FIXME: we need at least 68020 code to build shared libraries, but
15054 # adding the `-m68020' flag to GCC prevents building anything better,
15056 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15059 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15060 # PIC is the default for these OSes.
15063 mingw* | pw32* | os2*)
15064 # This hack is so that the source file can tell whether it is being
15065 # built for inclusion in a dll (and should export symbols for example).
15066 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15069 darwin* | rhapsody*)
15070 # PIC is the default on this platform
15071 # Common symbols not allowed in MH_DYLIB files
15072 lt_prog_compiler_pic_GCJ='-fno-common'
15076 # Just because we use GCC doesn't mean we suddenly get shared libraries
15077 # on systems that don't support them.
15078 lt_prog_compiler_can_build_shared_GCJ=no
15083 if test -d /usr/nec; then
15084 lt_prog_compiler_pic_GCJ=-Kconform_pic
15089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15090 # not for PA HP-UX.
15091 case "$host_cpu" in
15096 lt_prog_compiler_pic_GCJ='-fPIC'
15102 lt_prog_compiler_pic_GCJ='-fPIC'
15106 # PORTME Check for flag to pass linker flags through the system compiler.
15109 lt_prog_compiler_wl_GCJ='-Wl,'
15110 if test "$host_cpu" = ia64; then
15111 # AIX 5 now supports IA64 processor
15112 lt_prog_compiler_static_GCJ='-Bstatic'
15114 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15118 mingw* | pw32* | os2*)
15119 # This hack is so that the source file can tell whether it is being
15120 # built for inclusion in a dll (and should export symbols for example).
15121 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15124 hpux9* | hpux10* | hpux11*)
15125 lt_prog_compiler_wl_GCJ='-Wl,'
15126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15127 # not for PA HP-UX.
15128 case "$host_cpu" in
15133 lt_prog_compiler_pic_GCJ='+Z'
15136 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15137 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15140 irix5* | irix6* | nonstopux*)
15141 lt_prog_compiler_wl_GCJ='-Wl,'
15142 # PIC (with -KPIC) is the default.
15143 lt_prog_compiler_static_GCJ='-non_shared'
15147 lt_prog_compiler_pic_GCJ='-KPIC'
15148 lt_prog_compiler_static_GCJ='-Bstatic'
15154 lt_prog_compiler_wl_GCJ='-Wl,'
15155 lt_prog_compiler_pic_GCJ='-KPIC'
15156 lt_prog_compiler_static_GCJ='-static'
15159 lt_prog_compiler_wl_GCJ='-Wl,'
15160 # All Alpha code is PIC.
15161 lt_prog_compiler_static_GCJ='-non_shared'
15166 osf3* | osf4* | osf5*)
15167 lt_prog_compiler_wl_GCJ='-Wl,'
15168 # All OSF/1 code is PIC.
15169 lt_prog_compiler_static_GCJ='-non_shared'
15173 lt_prog_compiler_pic_GCJ='-Kpic'
15174 lt_prog_compiler_static_GCJ='-dn'
15178 lt_prog_compiler_wl_GCJ='-Wl,'
15179 lt_prog_compiler_pic_GCJ='-KPIC'
15180 lt_prog_compiler_static_GCJ='-Bstatic'
15184 lt_prog_compiler_wl_GCJ='-Qoption ld '
15185 lt_prog_compiler_pic_GCJ='-PIC'
15186 lt_prog_compiler_static_GCJ='-Bstatic'
15189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15190 lt_prog_compiler_wl_GCJ='-Wl,'
15191 lt_prog_compiler_pic_GCJ='-KPIC'
15192 lt_prog_compiler_static_GCJ='-Bstatic'
15196 if test -d /usr/nec ;then
15197 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15198 lt_prog_compiler_static_GCJ='-Bstatic'
15203 lt_prog_compiler_pic_GCJ='-pic'
15204 lt_prog_compiler_static_GCJ='-Bstatic'
15208 lt_prog_compiler_can_build_shared_GCJ=no
15213 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15214 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15217 # Check to make sure the PIC flag actually works.
15219 if test -n "$lt_prog_compiler_pic_GCJ"; then
15221 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15222 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15223 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 lt_prog_compiler_pic_works_GCJ=no
15227 ac_outfile=conftest.$ac_objext
15228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15229 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15230 # Insert the option either (1) after the last *FLAGS variable, or
15231 # (2) before a word containing "conftest.", or (3) at the end.
15232 # Note that $ac_compile itself does not contain backslashes and begins
15233 # with a dollar sign (not a hyphen), so the echo should work correctly.
15234 # The option is referenced via a variable to avoid confusing sed.
15235 lt_compile=`echo "$ac_compile" | $SED \
15236 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15238 -e 's:$: $lt_compiler_flag:'`
15239 (eval echo "\"\$as_me:15239: $lt_compile\"" >&5)
15240 (eval "$lt_compile" 2>conftest.err)
15242 cat conftest.err >&5
15243 echo "$as_me:15243: \$? = $ac_status" >&5
15244 if (exit $ac_status) && test -s "$ac_outfile"; then
15245 # The compiler can only warn and ignore the option if not recognized
15246 # So say no if there are warnings
15247 if test ! -s conftest.err; then
15248 lt_prog_compiler_pic_works_GCJ=yes
15254 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15255 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15257 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15258 case $lt_prog_compiler_pic_GCJ in
15260 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15263 lt_prog_compiler_pic_GCJ=
15264 lt_prog_compiler_can_build_shared_GCJ=no
15269 # For platforms which do not support PIC, -DPIC is meaningless:
15271 lt_prog_compiler_pic_GCJ=
15274 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15278 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15280 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 lt_cv_prog_compiler_c_o_GCJ=no
15284 $rm -r conftest 2>/dev/null
15288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15290 lt_compiler_flag="-o out/conftest2.$ac_objext"
15291 # Insert the option either (1) after the last *FLAGS variable, or
15292 # (2) before a word containing "conftest.", or (3) at the end.
15293 # Note that $ac_compile itself does not contain backslashes and begins
15294 # with a dollar sign (not a hyphen), so the echo should work correctly.
15295 lt_compile=`echo "$ac_compile" | $SED \
15296 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15298 -e 's:$: $lt_compiler_flag:'`
15299 (eval echo "\"\$as_me:15299: $lt_compile\"" >&5)
15300 (eval "$lt_compile" 2>out/conftest.err)
15302 cat out/conftest.err >&5
15303 echo "$as_me:15303: \$? = $ac_status" >&5
15304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15306 # The compiler can only warn and ignore the option if not recognized
15307 # So say no if there are warnings
15308 if test ! -s out/conftest.err; then
15309 lt_cv_prog_compiler_c_o_GCJ=yes
15314 # SGI C++ compiler will create directory out/ii_files/ for
15315 # template instantiation
15316 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15317 $rm out/* && rmdir out
15323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15327 hard_links="nottested"
15328 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15329 # do not overwrite the value of need_locks provided by the user
15330 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15336 ln conftest.a conftest.b 2>&5 || hard_links=no
15337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15338 echo "$as_me:$LINENO: result: $hard_links" >&5
15339 echo "${ECHO_T}$hard_links" >&6
15340 if test "$hard_links" = no; then
15341 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15349 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15353 allow_undefined_flag_GCJ=
15354 enable_shared_with_static_runtimes_GCJ=no
15356 archive_expsym_cmds_GCJ=
15357 old_archive_From_new_cmds_GCJ=
15358 old_archive_from_expsyms_cmds_GCJ=
15359 export_dynamic_flag_spec_GCJ=
15360 whole_archive_flag_spec_GCJ=
15361 thread_safe_flag_spec_GCJ=
15362 hardcode_libdir_flag_spec_GCJ=
15363 hardcode_libdir_flag_spec_ld_GCJ=
15364 hardcode_libdir_separator_GCJ=
15365 hardcode_direct_GCJ=no
15366 hardcode_minus_L_GCJ=no
15367 hardcode_shlibpath_var_GCJ=unsupported
15368 link_all_deplibs_GCJ=unknown
15369 hardcode_automatic_GCJ=no
15371 module_expsym_cmds_GCJ=
15372 always_export_symbols_GCJ=no
15373 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15374 # include_expsyms should be a list of space-separated symbols to be *always*
15375 # included in the symbol list
15376 include_expsyms_GCJ=
15377 # exclude_expsyms can be an extended regexp of symbols to exclude
15378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15380 # as well as any symbol that contains `d'.
15381 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15383 # platforms (ab)use it in PIC code, but their linkers get confused if
15384 # the symbol is explicitly referenced. Since portable code cannot
15385 # rely on this symbol name, it's probably fine to never include it in
15386 # preloaded symbol tables.
15387 extract_expsyms_cmds=
15390 cygwin* | mingw* | pw32*)
15391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15392 # When not using gcc, we currently assume that we are using
15393 # Microsoft Visual C++.
15394 if test "$GCC" != yes; then
15404 if test "$with_gnu_ld" = yes; then
15405 # If archive_cmds runs LD, not CC, wlarc should be empty
15408 # See if GNU ld supports shared libraries.
15410 aix3* | aix4* | aix5*)
15411 # On AIX/PPC, the GNU linker is very broken
15412 if test "$host_cpu" != ia64; then
15416 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15417 *** to be unable to reliably create shared libraries on AIX.
15418 *** Therefore, libtool is disabling shared libraries support. If you
15419 *** really care for shared libraries, you may want to modify your PATH
15420 *** so that a non-GNU linker is found, and then restart.
15427 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)'
15428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15429 hardcode_minus_L_GCJ=yes
15431 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15432 # that the semantics of dynamic libraries on AmigaOS, at least up
15433 # to version 4, is to share data among multiple programs linked
15434 # with the same dynamic library. Since this doesn't match the
15435 # behavior of shared libraries on other platforms, we can't use
15441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15442 allow_undefined_flag_GCJ=unsupported
15443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15444 # support --undefined. This deserves some investigation. FIXME
15445 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451 cygwin* | mingw* | pw32*)
15452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15453 # as there is no search path for DLLs.
15454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15455 allow_undefined_flag_GCJ=unsupported
15456 always_export_symbols_GCJ=no
15457 enable_shared_with_static_runtimes_GCJ=yes
15458 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15462 # If the export-symbols file already is a .def file (1st line
15463 # is EXPORTS), use it as is; otherwise, prepend...
15464 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15465 cp $export_symbols $output_objdir/$soname.def;
15467 echo EXPORTS > $output_objdir/$soname.def;
15468 cat $export_symbols >> $output_objdir/$soname.def;
15470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15478 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15487 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15492 *** create shared libraries on Solaris systems. Therefore, libtool
15493 *** is disabling shared libraries support. We urge you to upgrade GNU
15494 *** binutils to release 2.9.1 or newer. Another option is to modify
15495 *** your PATH or compiler configuration so that the native linker is
15496 *** used, and then restart.
15499 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15508 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15510 hardcode_direct_GCJ=yes
15511 hardcode_shlibpath_var_GCJ=no
15515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15516 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517 archive_cmds_GCJ="$tmp_archive_cmds"
15518 supports_anon_versioning=no
15519 case `$LD -v 2>/dev/null` in
15520 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15521 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15522 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15523 *\ 2.11.*) ;; # other 2.11 versions
15524 *) supports_anon_versioning=yes ;;
15526 if test $supports_anon_versioning = yes; then
15527 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15529 $echo "local: *; };" >> $output_objdir/$libname.ver~
15530 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15532 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15541 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15542 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15549 if test "$ld_shlibs_GCJ" = yes; then
15550 runpath_var=LD_RUN_PATH
15551 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15552 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15553 # ancient GNU ld didn't support --whole-archive et. al.
15554 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15555 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15557 whole_archive_flag_spec_GCJ=
15561 # PORTME fill in a description of your system's linker (not GNU ld)
15564 allow_undefined_flag_GCJ=unsupported
15565 always_export_symbols_GCJ=yes
15566 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'
15567 # Note: this linker hardcodes the directories in LIBPATH if there
15568 # are no directories specified by -L.
15569 hardcode_minus_L_GCJ=yes
15570 if test "$GCC" = yes && test -z "$link_static_flag"; then
15571 # Neither direct hardcoding nor static linking is supported with a
15573 hardcode_direct_GCJ=unsupported
15578 if test "$host_cpu" = ia64; then
15579 # On IA64, the linker does run time linking by default, so we don't
15580 # have to do anything special.
15581 aix_use_runtimelinking=no
15582 exp_sym_flag='-Bexport'
15585 # If we're using GNU nm, then we don't want the "-C" option.
15586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15588 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'
15590 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'
15592 aix_use_runtimelinking=no
15594 # Test if we are trying to use run time linking or normal
15595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15596 # need to do runtime linking.
15597 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15598 for ld_flag in $LDFLAGS; do
15599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15600 aix_use_runtimelinking=yes
15606 exp_sym_flag='-bexport'
15607 no_entry_flag='-bnoentry'
15610 # When large executables or shared objects are built, AIX ld can
15611 # have problems creating the table of contents. If linking a library
15612 # or program results in "error TOC overflow" add -mminimal-toc to
15613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15616 archive_cmds_GCJ=''
15617 hardcode_direct_GCJ=yes
15618 hardcode_libdir_separator_GCJ=':'
15619 link_all_deplibs_GCJ=yes
15621 if test "$GCC" = yes; then
15622 case $host_os in aix4.012|aix4.012.*)
15623 # We only want to do this on AIX 4.2 and lower, the check
15624 # below for broken collect2 doesn't work under 4.3+
15625 collect2name=`${CC} -print-prog-name=collect2`
15626 if test -f "$collect2name" && \
15627 strings "$collect2name" | grep resolve_lib_name >/dev/null
15629 # We have reworked collect2
15630 hardcode_direct_GCJ=yes
15632 # We have old collect2
15633 hardcode_direct_GCJ=unsupported
15634 # It fails to find uninstalled libraries when the uninstalled
15635 # path is not listed in the libpath. Setting hardcode_minus_L
15636 # to unsupported forces relinking
15637 hardcode_minus_L_GCJ=yes
15638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15639 hardcode_libdir_separator_GCJ=
15642 shared_flag='-shared'
15645 if test "$host_cpu" = ia64; then
15646 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15647 # chokes on -Wl,-G. The following line is correct:
15650 if test "$aix_use_runtimelinking" = yes; then
15651 shared_flag='${wl}-G'
15653 shared_flag='${wl}-bM:SRE'
15658 # It seems that -bexpall does not export symbols beginning with
15659 # underscore (_), so it is better to generate a list of symbols to export.
15660 always_export_symbols_GCJ=yes
15661 if test "$aix_use_runtimelinking" = yes; then
15662 # Warning - without using the other runtime loading flags (-brtl),
15663 # -berok will link without error, but may produce a broken library.
15664 allow_undefined_flag_GCJ='-berok'
15665 # Determine the default libpath from the value encoded in an empty executable.
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15683 (eval $ac_link) 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } &&
15690 { ac_try='test -z "$ac_c_werror_flag"
15691 || test ! -s conftest.err'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest$ac_exeext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15706 # Check for a 64-bit object if we didn't find anything.
15707 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; }
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15714 rm -f conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15718 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15719 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"
15721 if test "$host_cpu" = ia64; then
15722 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15723 allow_undefined_flag_GCJ="-z nodefs"
15724 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"
15726 # Determine the default libpath from the value encoded in an empty executable.
15727 cat >conftest.$ac_ext <<_ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15744 (eval $ac_link) 2>conftest.er1
15746 grep -v '^ *+' conftest.er1 >conftest.err
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest$ac_exeext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15767 # Check for a 64-bit object if we didn't find anything.
15768 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; }
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15775 rm -f conftest.err conftest.$ac_objext \
15776 conftest$ac_exeext conftest.$ac_ext
15777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15779 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15780 # Warning - without using the other run time loading flags,
15781 # -berok will link without error, but may produce a broken library.
15782 no_undefined_flag_GCJ=' ${wl}-bernotok'
15783 allow_undefined_flag_GCJ=' ${wl}-berok'
15784 # -bexpall does not export symbols beginning with underscore (_)
15785 always_export_symbols_GCJ=yes
15786 # Exported symbols can be pulled into shared objects from archives
15787 whole_archive_flag_spec_GCJ=' '
15788 archive_cmds_need_lc_GCJ=yes
15789 # This is similar to how AIX traditionally builds it's shared libraries.
15790 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'
15796 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)'
15797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15798 hardcode_minus_L_GCJ=yes
15799 # see comment about different semantics on the GNU ld section
15804 export_dynamic_flag_spec_GCJ=-rdynamic
15807 cygwin* | mingw* | pw32*)
15808 # When not using gcc, we currently assume that we are using
15809 # Microsoft Visual C++.
15810 # hardcode_libdir_flag_spec is actually meaningless, as there is
15811 # no search path for DLLs.
15812 hardcode_libdir_flag_spec_GCJ=' '
15813 allow_undefined_flag_GCJ=unsupported
15814 # Tell ltmain to make .lib files, not .a files.
15816 # Tell ltmain to make .dll files, not .so files.
15818 # FIXME: Setting linknames here is a bad hack.
15819 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15820 # The linker will automatically build a .lib file if we build a DLL.
15821 old_archive_From_new_cmds_GCJ='true'
15822 # FIXME: Should let the user specify the lib program.
15823 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15824 fix_srcfile_path='`cygpath -w "$srcfile"`'
15825 enable_shared_with_static_runtimes_GCJ=yes
15828 darwin* | rhapsody*)
15829 if test "$GXX" = yes ; then
15830 archive_cmds_need_lc_GCJ=no
15832 rhapsody* | darwin1.[012])
15833 allow_undefined_flag_GCJ='-undefined suppress'
15836 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15837 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15839 case ${MACOSX_DEPLOYMENT_TARGET} in
15841 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15844 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15850 lt_int_apple_cc_single_mod=no
15851 output_verbose_link_cmd='echo'
15852 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15853 lt_int_apple_cc_single_mod=yes
15855 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15856 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15858 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15860 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15862 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15863 archive_expsym_cmds_GCJ='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}'
15865 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15867 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}'
15868 hardcode_direct_GCJ=no
15869 hardcode_automatic_GCJ=yes
15870 hardcode_shlibpath_var_GCJ=unsupported
15871 whole_archive_flag_spec_GCJ='-all_load $convenience'
15872 link_all_deplibs_GCJ=yes
15879 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15881 hardcode_shlibpath_var_GCJ=no
15888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15889 # support. Future versions do this automatically, but an explicit c++rt0.o
15890 # does not break anything, and helps significantly (at the cost of a little
15893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15895 hardcode_direct_GCJ=yes
15896 hardcode_shlibpath_var_GCJ=no
15899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15902 hardcode_direct_GCJ=yes
15903 hardcode_minus_L_GCJ=yes
15904 hardcode_shlibpath_var_GCJ=no
15907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15908 freebsd* | kfreebsd*-gnu)
15909 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15911 hardcode_direct_GCJ=yes
15912 hardcode_shlibpath_var_GCJ=no
15916 if test "$GCC" = yes; then
15917 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'
15919 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'
15921 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15922 hardcode_libdir_separator_GCJ=:
15923 hardcode_direct_GCJ=yes
15925 # hardcode_minus_L: Not really in the search PATH,
15926 # but as the default location of the library.
15927 hardcode_minus_L_GCJ=yes
15928 export_dynamic_flag_spec_GCJ='${wl}-E'
15932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15933 case "$host_cpu" in
15935 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15942 case "$host_cpu" in
15944 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15947 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15951 if test "$with_gnu_ld" = no; then
15952 case "$host_cpu" in
15954 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15955 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15956 hardcode_libdir_separator_GCJ=:
15957 hardcode_direct_GCJ=no
15958 hardcode_shlibpath_var_GCJ=no
15961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15962 hardcode_direct_GCJ=no
15963 hardcode_shlibpath_var_GCJ=no
15965 # hardcode_minus_L: Not really in the search PATH,
15966 # but as the default location of the library.
15967 hardcode_minus_L_GCJ=yes
15970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15971 hardcode_libdir_separator_GCJ=:
15972 hardcode_direct_GCJ=yes
15973 export_dynamic_flag_spec_GCJ='${wl}-E'
15975 # hardcode_minus_L: Not really in the search PATH,
15976 # but as the default location of the library.
15977 hardcode_minus_L_GCJ=yes
15983 irix5* | irix6* | nonstopux*)
15984 if test "$GCC" = yes; then
15985 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'
15987 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'
15988 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15991 hardcode_libdir_separator_GCJ=:
15992 link_all_deplibs_GCJ=yes
15996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15999 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16002 hardcode_direct_GCJ=yes
16003 hardcode_shlibpath_var_GCJ=no
16007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008 hardcode_direct_GCJ=yes
16009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16010 hardcode_libdir_separator_GCJ=:
16011 hardcode_shlibpath_var_GCJ=no
16015 hardcode_direct_GCJ=yes
16016 hardcode_shlibpath_var_GCJ=no
16017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16018 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16020 export_dynamic_flag_spec_GCJ='${wl}-E'
16023 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16024 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16037 hardcode_minus_L_GCJ=yes
16038 allow_undefined_flag_GCJ=unsupported
16039 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'
16040 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16044 if test "$GCC" = yes; then
16045 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16046 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'
16048 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16049 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'
16051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16052 hardcode_libdir_separator_GCJ=:
16055 osf4* | osf5*) # as osf3* with the addition of -msym flag
16056 if test "$GCC" = yes; then
16057 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16058 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'
16059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16061 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16062 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'
16063 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~
16064 $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'
16066 # Both c and cxx compiler support -rpath directly
16067 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16069 hardcode_libdir_separator_GCJ=:
16073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074 hardcode_shlibpath_var_GCJ=no
16075 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16076 runpath_var=LD_RUN_PATH
16077 hardcode_runpath_var=yes
16081 no_undefined_flag_GCJ=' -z text'
16082 if test "$GCC" = yes; then
16083 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16084 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16085 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16087 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16092 hardcode_shlibpath_var_GCJ=no
16094 solaris2.[0-5] | solaris2.[0-5].*) ;;
16095 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16096 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16098 link_all_deplibs_GCJ=yes
16102 if test "x$host_vendor" = xsequent; then
16103 # Use $CC to link under sequent, because it throws in some extra .o
16104 # files that make .init and .fini sections work.
16105 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16107 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16110 hardcode_direct_GCJ=yes
16111 hardcode_minus_L_GCJ=yes
16112 hardcode_shlibpath_var_GCJ=no
16116 case $host_vendor in
16118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_direct_GCJ=yes # is this really true???
16122 ## LD is ld it makes a PLAMLIB
16123 ## CC just makes a GrossModule.
16124 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16125 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16126 hardcode_direct_GCJ=no
16129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16133 runpath_var='LD_RUN_PATH'
16134 hardcode_shlibpath_var_GCJ=no
16138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16139 hardcode_shlibpath_var_GCJ=no
16140 export_dynamic_flag_spec_GCJ='-Bexport'
16144 if test -d /usr/nec; then
16145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146 hardcode_shlibpath_var_GCJ=no
16147 runpath_var=LD_RUN_PATH
16148 hardcode_runpath_var=yes
16154 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16155 hardcode_direct_GCJ=yes
16156 hardcode_minus_L_GCJ=no
16157 hardcode_shlibpath_var_GCJ=no
16158 hardcode_runpath_var=yes
16159 runpath_var=LD_RUN_PATH
16162 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16163 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16164 if test "$GCC" = yes; then
16165 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 runpath_var='LD_RUN_PATH'
16170 hardcode_shlibpath_var_GCJ=no
16174 no_undefined_flag_GCJ=' -z text'
16175 # $CC -shared without GNU ld will not create a library from C++
16176 # object files and a static libstdc++, better avoid it by now
16177 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16178 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16180 hardcode_libdir_flag_spec_GCJ=
16181 hardcode_shlibpath_var_GCJ=no
16182 runpath_var='LD_RUN_PATH'
16186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188 hardcode_shlibpath_var_GCJ=no
16197 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16198 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16199 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16202 if test "$GCC" = yes; then
16203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16207 # Do we need to explicitly link libc?
16209 case "x$archive_cmds_need_lc_GCJ" in
16211 # Assume -lc should be added
16212 archive_cmds_need_lc_GCJ=yes
16214 if test "$enable_shared" = yes && test "$GCC" = yes; then
16215 case $archive_cmds_GCJ in
16217 # FIXME: we may have to deal with multi-command sequences.
16220 # Test whether the compiler implicitly links with -lc since on some
16221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16222 # to ld, don't add -lc before -lgcc.
16223 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16224 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16229 (eval $ac_compile) 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } 2>conftest.err; then
16235 libobjs=conftest.$ac_objext
16237 wl=$lt_prog_compiler_wl_GCJ
16243 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16244 allow_undefined_flag_GCJ=
16245 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16246 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }
16251 archive_cmds_need_lc_GCJ=no
16253 archive_cmds_need_lc_GCJ=yes
16255 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16257 cat conftest.err 1>&5
16260 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16261 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16268 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16269 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16270 library_names_spec=
16271 libname_spec='lib$name'
16275 postuninstall_cmds=
16279 shlibpath_overrides_runpath=unknown
16281 dynamic_linker="$host_os ld.so"
16282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16283 if test "$GCC" = yes; then
16284 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16285 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16286 # if the path contains ";" then we assume it to be the separator
16287 # otherwise default to the standard path separator (i.e. ":") - it is
16288 # assumed that no part of a normal pathname contains ";" but that should
16289 # okay in the real world where ";" in dirpaths is itself problematic.
16290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16295 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16297 need_lib_prefix=unknown
16298 hardcode_into_libs=no
16300 # when you set need_version to no, make sure it does not cause -set_version
16301 # flags to be left without arguments
16302 need_version=unknown
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16308 shlibpath_var=LIBPATH
16310 # AIX 3 has no versioning support, so we append a major version to the name.
16311 soname_spec='${libname}${release}${shared_ext}$major'
16318 hardcode_into_libs=yes
16319 if test "$host_cpu" = ia64; then
16320 # AIX 5 supports IA64
16321 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16322 shlibpath_var=LD_LIBRARY_PATH
16324 # With GCC up to 2.95.x, collect2 would create an import file
16325 # for dependence libraries. The import file would start with
16326 # the line `#! .'. This would cause the generated library to
16327 # depend on `.', always an invalid library. This was fixed in
16328 # development snapshots of GCC prior to 3.0.
16330 aix4 | aix4.[01] | aix4.[01].*)
16331 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16333 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16336 can_build_shared=no
16340 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16341 # soname into executable. Probably we can add versioning support to
16342 # collect2, so additional links can be useful in future.
16343 if test "$aix_use_runtimelinking" = yes; then
16344 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16345 # instead of lib<name>.a to let people know that these are not
16346 # typical AIX shared libraries.
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 # We preserve .a as extension for shared libraries through AIX4.2
16350 # and later when we are not doing run time linking.
16351 library_names_spec='${libname}${release}.a $libname.a'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16354 shlibpath_var=LIBPATH
16359 library_names_spec='$libname.ixlibrary $libname.a'
16360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16361 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'
16365 library_names_spec='${libname}${shared_ext}'
16366 dynamic_linker="$host_os ld.so"
16367 shlibpath_var=LIBRARY_PATH
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16376 shlibpath_var=LD_LIBRARY_PATH
16377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16379 # the default ld.so.conf also contains /usr/contrib/lib and
16380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16381 # libtool to hard-code these into programs
16384 cygwin* | mingw* | pw32*)
16385 version_type=windows
16390 case $GCC,$host_os in
16391 yes,cygwin* | yes,mingw* | yes,pw32*)
16392 library_names_spec='$libname.dll.a'
16393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16394 postinstall_cmds='base_file=`basename \${file}`~
16395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16396 dldir=$destdir/`dirname \$dlpath`~
16397 test -d \$dldir || mkdir -p \$dldir~
16398 $install_prog $dir/$dlname \$dldir/$dlname'
16399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16400 dlpath=$dir/\$dldll~
16402 shlibpath_overrides_runpath=yes
16406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16411 # MinGW DLLs use traditional 'lib' prefix
16412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16415 # It is most probably a Windows format PATH printed by
16416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16417 # path with ; separators, and with drive letters. We can handle the
16418 # drive letters (cygwin fileutils understands them), so leave them,
16419 # especially as we might pass files found there to a mingw objdump,
16420 # which wouldn't understand a cygwinified path. Ahh.
16421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16427 # pw32 DLLs use 'pw' prefix rather than 'lib'
16428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16437 dynamic_linker='Win32 ld.exe'
16438 # FIXME: first we should search . and the directory the executable is in
16442 darwin* | rhapsody*)
16443 dynamic_linker="$host_os dyld"
16444 version_type=darwin
16447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16448 soname_spec='${libname}${release}${major}$shared_ext'
16449 shlibpath_overrides_runpath=yes
16450 shlibpath_var=DYLD_LIBRARY_PATH
16451 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16453 if test "$GCC" = yes; then
16454 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"`
16456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16466 soname_spec='${libname}${release}${shared_ext}$major'
16467 shlibpath_var=LD_LIBRARY_PATH
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=no
16482 hardcode_into_libs=yes
16483 dynamic_linker='GNU ld.so'
16487 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16488 version_type=freebsd-$objformat
16489 case $version_type in
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16500 shlibpath_var=LD_LIBRARY_PATH
16503 shlibpath_overrides_runpath=yes
16505 freebsd3.01* | freebsdelf3.01*)
16506 shlibpath_overrides_runpath=yes
16507 hardcode_into_libs=yes
16510 shlibpath_overrides_runpath=no
16511 hardcode_into_libs=yes
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 hardcode_into_libs=yes
16526 hpux9* | hpux10* | hpux11*)
16527 # Give a soname corresponding to the major version so that dld.sl refuses to
16528 # link against other versions.
16532 case "$host_cpu" in
16535 hardcode_into_libs=yes
16536 dynamic_linker="$host_os dld.so"
16537 shlibpath_var=LD_LIBRARY_PATH
16538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 if test "X$HPUX_IA64_MODE" = X32; then
16542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16550 hardcode_into_libs=yes
16551 dynamic_linker="$host_os dld.sl"
16552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16561 dynamic_linker="$host_os dld.sl"
16562 shlibpath_var=SHLIB_PATH
16563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16569 postinstall_cmds='chmod 555 $lib'
16572 irix5* | irix6* | nonstopux*)
16574 nonstopux*) version_type=nonstopux ;;
16576 if test "$lt_cv_prog_gnu_ld" = yes; then
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16587 irix5* | nonstopux*)
16588 libsuff= shlibsuff=
16591 case $LD in # libtool.m4 will add one of these switches to LD
16592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16593 libsuff= shlibsuff= libmagic=32-bit;;
16594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16595 libsuff=32 shlibsuff=N32 libmagic=N32;;
16596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16598 *) libsuff= shlibsuff= libmagic=never-match;;
16602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16603 shlibpath_overrides_runpath=no
16604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16606 hardcode_into_libs=yes
16609 # No shared lib support for Linux oldld, aout, or coff.
16610 linux*oldld* | linux*aout* | linux*coff*)
16614 # This must be Linux ELF.
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=no
16624 # This implies no fast_install, which is unacceptable.
16625 # Some rework will be needed to allow for fast_install
16626 # before this can be enabled.
16627 hardcode_into_libs=yes
16629 # find out which ABI we are using
16631 case "$host_cpu" in
16632 x86_64*|s390x*|powerpc64*)
16633 echo '#line 16633 "configure"' > conftest.$ac_ext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635 (eval $ac_compile) 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; then
16639 case `/usr/bin/file conftest.$ac_objext` in
16642 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16650 # Append ld.so.conf contents to the search path
16651 if test -f /etc/ld.so.conf; then
16652 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16653 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16656 # We used to test for /lib/ld.so.1 and disable shared libraries on
16657 # powerpc, because MkLinux only supported shared libraries with the
16658 # GNU dynamic linker. Since this was broken with cross compilers,
16659 # most powerpc-linux boxes support dynamic linking these days and
16660 # people can always --disable-shared, the test was removed, and we
16661 # assume the GNU/Linux dynamic linker is in use.
16662 dynamic_linker='GNU/Linux ld.so'
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16670 soname_spec='${libname}${release}${shared_ext}$major'
16671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=no
16673 hardcode_into_libs=yes
16674 dynamic_linker='GNU ld.so'
16681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16684 dynamic_linker='NetBSD (a.out) ld.so'
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 dynamic_linker='NetBSD ld.elf_so'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath=yes
16692 hardcode_into_libs=yes
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 shlibpath_var=LD_LIBRARY_PATH
16699 shlibpath_overrides_runpath=yes
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 soname_spec='${libname}${release}${shared_ext}$major'
16708 shlibpath_var=LD_LIBRARY_PATH
16709 shlibpath_overrides_runpath=yes
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16718 shlibpath_var=LD_LIBRARY_PATH
16719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16721 openbsd2.[89] | openbsd2.[89].*)
16722 shlibpath_overrides_runpath=no
16725 shlibpath_overrides_runpath=yes
16729 shlibpath_overrides_runpath=yes
16734 libname_spec='$name'
16737 library_names_spec='$libname${shared_ext} $libname.a'
16738 dynamic_linker='OS/2 ld.exe'
16739 shlibpath_var=LIBPATH
16742 osf3* | osf4* | osf5*)
16746 soname_spec='${libname}${release}${shared_ext}$major'
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 shlibpath_var=LD_LIBRARY_PATH
16749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16750 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16755 soname_spec='${libname}${release}${shared_ext}$major'
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 shlibpath_var=LD_LIBRARY_PATH
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765 soname_spec='${libname}${release}${shared_ext}$major'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=yes
16768 hardcode_into_libs=yes
16769 # ldd complains unless libraries are executable
16770 postinstall_cmds='chmod +x $lib'
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16777 shlibpath_var=LD_LIBRARY_PATH
16778 shlibpath_overrides_runpath=yes
16779 if test "$with_gnu_ld" = yes; then
16785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 case $host_vendor in
16792 shlibpath_overrides_runpath=no
16794 export_dynamic_flag_spec='${wl}-Blargedynsym'
16795 runpath_var=LD_RUN_PATH
16803 shlibpath_overrides_runpath=no
16804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16810 if test -d /usr/nec ;then
16812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16813 soname_spec='$libname${shared_ext}.$major'
16814 shlibpath_var=LD_LIBRARY_PATH
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16829 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16830 echo "${ECHO_T}$dynamic_linker" >&6
16831 test "$dynamic_linker" = no && can_build_shared=no
16833 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16835 hardcode_action_GCJ=
16836 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16837 test -n "$runpath_var GCJ" || \
16838 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16840 # We can hardcode non-existant directories.
16841 if test "$hardcode_direct_GCJ" != no &&
16842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16843 # have to relink, otherwise we might link with an installed library
16844 # when we should be linking with a yet-to-be-installed one
16845 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16846 test "$hardcode_minus_L_GCJ" != no; then
16847 # Linking always hardcodes the temporary library directory.
16848 hardcode_action_GCJ=relink
16850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16851 hardcode_action_GCJ=immediate
16854 # We cannot hardcode anything, or else we can only hardcode existing
16856 hardcode_action_GCJ=unsupported
16858 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16859 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16861 if test "$hardcode_action_GCJ" = relink; then
16862 # Fast installation is not supported
16863 enable_fast_install=no
16864 elif test "$shlibpath_overrides_runpath" = yes ||
16865 test "$enable_shared" = no; then
16866 # Fast installation is not necessary
16867 enable_fast_install=needless
16872 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16873 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16874 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16877 echo "$as_me:$LINENO: result: yes" >&5
16878 echo "${ECHO_T}yes" >&6
16880 # FIXME - insert some real tests, host_os isn't really good enough
16883 if test -n "$STRIP" ; then
16884 striplib="$STRIP -x"
16885 echo "$as_me:$LINENO: result: yes" >&5
16886 echo "${ECHO_T}yes" >&6
16888 echo "$as_me:$LINENO: result: no" >&5
16889 echo "${ECHO_T}no" >&6
16893 echo "$as_me:$LINENO: result: no" >&5
16894 echo "${ECHO_T}no" >&6
16899 if test "x$enable_dlopen" != xyes; then
16900 enable_dlopen=unknown
16901 enable_dlopen_self=unknown
16902 enable_dlopen_self_static=unknown
16909 lt_cv_dlopen="load_add_on"
16911 lt_cv_dlopen_self=yes
16915 lt_cv_dlopen="LoadLibrary"
16920 lt_cv_dlopen="dlopen"
16925 # if libdl is installed we need to link against it
16926 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16927 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16928 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 ac_check_lib_save_LIBS=$LIBS
16933 cat >conftest.$ac_ext <<_ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h. */
16940 /* Override any gcc2 internal prototype to avoid an error. */
16944 /* We use char because int might match the return type of a gcc2
16945 builtin and then its argument prototype would still apply. */
16955 rm -f conftest.$ac_objext conftest$ac_exeext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16957 (eval $ac_link) 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -z "$ac_c_werror_flag"
16965 || test ! -s conftest.err'
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 ac_cv_lib_dl_dlopen=yes
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 ac_cv_lib_dl_dlopen=no
16984 rm -f conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_lib_save_LIBS
16988 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16989 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16990 if test $ac_cv_lib_dl_dlopen = yes; then
16991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16994 lt_cv_dlopen="dyld"
16996 lt_cv_dlopen_self=yes
17003 echo "$as_me:$LINENO: checking for shl_load" >&5
17004 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17005 if test "${ac_cv_func_shl_load+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 cat >conftest.$ac_ext <<_ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17016 #define shl_load innocuous_shl_load
17018 /* System header to define __stub macros and hopefully few prototypes,
17019 which can conflict with char shl_load (); below.
17020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17021 <limits.h> exists even on freestanding compilers. */
17024 # include <limits.h>
17026 # include <assert.h>
17031 /* Override any gcc2 internal prototype to avoid an error. */
17036 /* We use char because int might match the return type of a gcc2
17037 builtin and then its argument prototype would still apply. */
17039 /* The GNU C library defines this for functions which it implements
17040 to always fail with ENOSYS. Some functions are actually named
17041 something starting with __ and the normal name is an alias. */
17042 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17045 char (*f) () = shl_load;
17054 return f != shl_load;
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>conftest.er1
17063 grep -v '^ *+' conftest.er1 >conftest.err
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try='test -s conftest$ac_exeext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_func_shl_load=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_cv_func_shl_load=no
17088 rm -f conftest.err conftest.$ac_objext \
17089 conftest$ac_exeext conftest.$ac_ext
17091 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17092 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17093 if test $ac_cv_func_shl_load = yes; then
17094 lt_cv_dlopen="shl_load"
17096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17097 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17098 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17101 ac_check_lib_save_LIBS=$LIBS
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17110 /* Override any gcc2 internal prototype to avoid an error. */
17114 /* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_lib_dld_shl_load=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_cv_lib_dld_shl_load=no
17154 rm -f conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17160 if test $ac_cv_lib_dld_shl_load = yes; then
17161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17163 echo "$as_me:$LINENO: checking for dlopen" >&5
17164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17165 if test "${ac_cv_func_dlopen+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 cat >conftest.$ac_ext <<_ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17176 #define dlopen innocuous_dlopen
17178 /* System header to define __stub macros and hopefully few prototypes,
17179 which can conflict with char dlopen (); below.
17180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181 <limits.h> exists even on freestanding compilers. */
17184 # include <limits.h>
17186 # include <assert.h>
17191 /* Override any gcc2 internal prototype to avoid an error. */
17196 /* We use char because int might match the return type of a gcc2
17197 builtin and then its argument prototype would still apply. */
17199 /* The GNU C library defines this for functions which it implements
17200 to always fail with ENOSYS. Some functions are actually named
17201 something starting with __ and the normal name is an alias. */
17202 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17205 char (*f) () = dlopen;
17214 return f != dlopen;
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221 (eval $ac_link) 2>conftest.er1
17223 grep -v '^ *+' conftest.er1 >conftest.err
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest$ac_exeext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_cv_func_dlopen=yes
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 ac_cv_func_dlopen=no
17248 rm -f conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17251 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17252 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17253 if test $ac_cv_func_dlopen = yes; then
17254 lt_cv_dlopen="dlopen"
17256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 ac_check_lib_save_LIBS=$LIBS
17263 cat >conftest.$ac_ext <<_ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17270 /* Override any gcc2 internal prototype to avoid an error. */
17274 /* We use char because int might match the return type of a gcc2
17275 builtin and then its argument prototype would still apply. */
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287 (eval $ac_link) 2>conftest.er1
17289 grep -v '^ *+' conftest.er1 >conftest.err
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_c_werror_flag"
17295 || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_cv_lib_dl_dlopen=yes
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 ac_cv_lib_dl_dlopen=no
17314 rm -f conftest.err conftest.$ac_objext \
17315 conftest$ac_exeext conftest.$ac_ext
17316 LIBS=$ac_check_lib_save_LIBS
17318 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17319 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17320 if test $ac_cv_lib_dl_dlopen = yes; then
17321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17323 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17324 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17325 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 ac_check_lib_save_LIBS=$LIBS
17329 LIBS="-lsvld $LIBS"
17330 cat >conftest.$ac_ext <<_ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h. */
17337 /* Override any gcc2 internal prototype to avoid an error. */
17341 /* We use char because int might match the return type of a gcc2
17342 builtin and then its argument prototype would still apply. */
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17354 (eval $ac_link) 2>conftest.er1
17356 grep -v '^ *+' conftest.er1 >conftest.err
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest$ac_exeext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_lib_svld_dlopen=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_lib_svld_dlopen=no
17381 rm -f conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17385 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17386 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17387 if test $ac_cv_lib_svld_dlopen = yes; then
17388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17390 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17391 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17392 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 ac_check_lib_save_LIBS=$LIBS
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 /* Override any gcc2 internal prototype to avoid an error. */
17408 /* We use char because int might match the return type of a gcc2
17409 builtin and then its argument prototype would still apply. */
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421 (eval $ac_link) 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_lib_dld_dld_link=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 ac_cv_lib_dld_dld_link=no
17448 rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17452 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17453 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17454 if test $ac_cv_lib_dld_dld_link = yes; then
17455 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17476 if test "x$lt_cv_dlopen" != xno; then
17482 case $lt_cv_dlopen in
17484 save_CPPFLAGS="$CPPFLAGS"
17485 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17487 save_LDFLAGS="$LDFLAGS"
17488 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17491 LIBS="$lt_cv_dlopen_libs $LIBS"
17493 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17494 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17495 if test "${lt_cv_dlopen_self+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 if test "$cross_compiling" = yes; then :
17499 lt_cv_dlopen_self=cross
17501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17502 lt_status=$lt_dlunknown
17503 cat > conftest.$ac_ext <<EOF
17504 #line 17504 "configure"
17505 #include "confdefs.h"
17514 # define LT_DLGLOBAL RTLD_GLOBAL
17517 # define LT_DLGLOBAL DL_GLOBAL
17519 # define LT_DLGLOBAL 0
17523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17524 find out it does not work in some platform. */
17525 #ifndef LT_DLLAZY_OR_NOW
17527 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17530 # define LT_DLLAZY_OR_NOW DL_LAZY
17533 # define LT_DLLAZY_OR_NOW RTLD_NOW
17536 # define LT_DLLAZY_OR_NOW DL_NOW
17538 # define LT_DLLAZY_OR_NOW 0
17546 extern "C" void exit (int);
17549 void fnord() { int i=42;}
17552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17553 int status = $lt_dlunknown;
17557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17559 /* dlclose (self); */
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17570 (./conftest; exit; ) 2>/dev/null
17572 case x$lt_status in
17573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17575 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17578 # compilation failed
17579 lt_cv_dlopen_self=no
17586 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17587 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17589 if test "x$lt_cv_dlopen_self" = xyes; then
17590 LDFLAGS="$LDFLAGS $link_static_flag"
17591 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17592 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17593 if test "${lt_cv_dlopen_self_static+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 if test "$cross_compiling" = yes; then :
17597 lt_cv_dlopen_self_static=cross
17599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17600 lt_status=$lt_dlunknown
17601 cat > conftest.$ac_ext <<EOF
17602 #line 17602 "configure"
17603 #include "confdefs.h"
17612 # define LT_DLGLOBAL RTLD_GLOBAL
17615 # define LT_DLGLOBAL DL_GLOBAL
17617 # define LT_DLGLOBAL 0
17621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17622 find out it does not work in some platform. */
17623 #ifndef LT_DLLAZY_OR_NOW
17625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17628 # define LT_DLLAZY_OR_NOW DL_LAZY
17631 # define LT_DLLAZY_OR_NOW RTLD_NOW
17634 # define LT_DLLAZY_OR_NOW DL_NOW
17636 # define LT_DLLAZY_OR_NOW 0
17644 extern "C" void exit (int);
17647 void fnord() { int i=42;}
17650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17651 int status = $lt_dlunknown;
17655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17657 /* dlclose (self); */
17663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17664 (eval $ac_link) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17668 (./conftest; exit; ) 2>/dev/null
17670 case x$lt_status in
17671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17673 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17676 # compilation failed
17677 lt_cv_dlopen_self_static=no
17684 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17685 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17688 CPPFLAGS="$save_CPPFLAGS"
17689 LDFLAGS="$save_LDFLAGS"
17694 case $lt_cv_dlopen_self in
17695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17696 *) enable_dlopen_self=unknown ;;
17699 case $lt_cv_dlopen_self_static in
17700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17701 *) enable_dlopen_self_static=unknown ;;
17706 # The else clause should only fire when bootstrapping the
17707 # libtool distribution, otherwise you forgot to ship ltmain.sh
17708 # with your package, and you will get complaints that there are
17709 # no rules to generate ltmain.sh.
17710 if test -f "$ltmain"; then
17711 # See if we are running on zsh, and set the options which allow our commands through
17712 # without removal of \ escapes.
17713 if test -n "${ZSH_VERSION+set}" ; then
17714 setopt NO_GLOB_SUBST
17716 # Now quote all the things that may contain metacharacters while being
17717 # careful not to overquote the AC_SUBSTed values. We take copies of the
17718 # variables and quote the copies for generation of the libtool script.
17719 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17721 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17722 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17723 deplibs_check_method reload_flag reload_cmds need_locks \
17724 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17725 lt_cv_sys_global_symbol_to_c_name_address \
17726 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17727 old_postinstall_cmds old_postuninstall_cmds \
17731 lt_prog_compiler_wl_GCJ \
17732 lt_prog_compiler_pic_GCJ \
17733 lt_prog_compiler_static_GCJ \
17734 lt_prog_compiler_no_builtin_flag_GCJ \
17735 export_dynamic_flag_spec_GCJ \
17736 thread_safe_flag_spec_GCJ \
17737 whole_archive_flag_spec_GCJ \
17738 enable_shared_with_static_runtimes_GCJ \
17739 old_archive_cmds_GCJ \
17740 old_archive_from_new_cmds_GCJ \
17741 predep_objects_GCJ \
17742 postdep_objects_GCJ \
17745 compiler_lib_search_path_GCJ \
17747 archive_expsym_cmds_GCJ \
17748 postinstall_cmds_GCJ \
17749 postuninstall_cmds_GCJ \
17750 old_archive_from_expsyms_cmds_GCJ \
17751 allow_undefined_flag_GCJ \
17752 no_undefined_flag_GCJ \
17753 export_symbols_cmds_GCJ \
17754 hardcode_libdir_flag_spec_GCJ \
17755 hardcode_libdir_flag_spec_ld_GCJ \
17756 hardcode_libdir_separator_GCJ \
17757 hardcode_automatic_GCJ \
17759 module_expsym_cmds_GCJ \
17760 lt_cv_prog_compiler_c_o_GCJ \
17761 exclude_expsyms_GCJ \
17762 include_expsyms_GCJ; do
17765 old_archive_cmds_GCJ | \
17766 old_archive_from_new_cmds_GCJ | \
17767 archive_cmds_GCJ | \
17768 archive_expsym_cmds_GCJ | \
17769 module_cmds_GCJ | \
17770 module_expsym_cmds_GCJ | \
17771 old_archive_from_expsyms_cmds_GCJ | \
17772 export_symbols_cmds_GCJ | \
17773 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17774 postinstall_cmds | postuninstall_cmds | \
17775 old_postinstall_cmds | old_postuninstall_cmds | \
17776 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17777 # Double-quote double-evaled strings.
17778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17787 *'\$0 --fallback-echo"')
17788 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17794 cat <<__EOF__ >> "$cfgfile"
17795 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17797 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17799 # Shell to use when invoking shell scripts.
17802 # Whether or not to build shared libraries.
17803 build_libtool_libs=$enable_shared
17805 # Whether or not to build static libraries.
17806 build_old_libs=$enable_static
17808 # Whether or not to add -lc for building shared libraries.
17809 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17811 # Whether or not to disallow shared libs when runtime libs are static
17812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17814 # Whether or not to optimize for fast installation.
17815 fast_install=$enable_fast_install
17818 host_alias=$host_alias
17821 # An echo program that does not interpret backslashes.
17826 AR_FLAGS=$lt_AR_FLAGS
17831 # A language-specific compiler.
17832 CC=$lt_compiler_GCJ
17834 # Is the compiler the GNU C compiler?
17840 # The linker used to build libraries.
17843 # Whether we need hard or soft links.
17846 # A BSD-compatible nm program.
17849 # A symbol stripping program
17852 # Used to examine libraries when file_magic_cmd begins "file"
17853 MAGIC_CMD=$MAGIC_CMD
17855 # Used on cygwin: DLL creation program.
17858 # Used on cygwin: object dumper.
17861 # Used on cygwin: assembler.
17864 # The name of the directory that contains temporary libtool files.
17867 # How to create reloadable object files.
17868 reload_flag=$lt_reload_flag
17869 reload_cmds=$lt_reload_cmds
17871 # How to pass a linker flag through the compiler.
17872 wl=$lt_lt_prog_compiler_wl_GCJ
17874 # Object file suffix (normally "o").
17875 objext="$ac_objext"
17877 # Old archive suffix (normally "a").
17880 # Shared library suffix (normally ".so").
17881 shrext_cmds='$shrext_cmds'
17883 # Executable file suffix (normally "").
17886 # Additional compiler flags for building library objects.
17887 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17890 # What is the maximum length of a command?
17891 max_cmd_len=$lt_cv_sys_max_cmd_len
17893 # Does compiler simultaneously support -c and -o options?
17894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17896 # Must we lock files when doing compilation ?
17897 need_locks=$lt_need_locks
17899 # Do we need the lib prefix for modules?
17900 need_lib_prefix=$need_lib_prefix
17902 # Do we need a version for libraries?
17903 need_version=$need_version
17905 # Whether dlopen is supported.
17906 dlopen_support=$enable_dlopen
17908 # Whether dlopen of programs is supported.
17909 dlopen_self=$enable_dlopen_self
17911 # Whether dlopen of statically linked programs is supported.
17912 dlopen_self_static=$enable_dlopen_self_static
17914 # Compiler flag to prevent dynamic linking.
17915 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17917 # Compiler flag to turn off builtin functions.
17918 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17920 # Compiler flag to allow reflexive dlopens.
17921 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17923 # Compiler flag to generate shared objects directly from archives.
17924 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17926 # Compiler flag to generate thread-safe objects.
17927 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17929 # Library versioning type.
17930 version_type=$version_type
17932 # Format of library name prefix.
17933 libname_spec=$lt_libname_spec
17935 # List of archive names. First name is the real one, the rest are links.
17936 # The last name is the one that the linker finds with -lNAME.
17937 library_names_spec=$lt_library_names_spec
17939 # The coded name of the library, if different from the real name.
17940 soname_spec=$lt_soname_spec
17942 # Commands used to build and install an old-style archive.
17944 old_archive_cmds=$lt_old_archive_cmds_GCJ
17945 old_postinstall_cmds=$lt_old_postinstall_cmds
17946 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17948 # Create an old-style archive from a shared archive.
17949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17951 # Create a temporary old-style archive to link instead of a shared archive.
17952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17954 # Commands used to build and install a shared archive.
17955 archive_cmds=$lt_archive_cmds_GCJ
17956 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17957 postinstall_cmds=$lt_postinstall_cmds
17958 postuninstall_cmds=$lt_postuninstall_cmds
17960 # Commands used to build a loadable module (assumed same as above if empty)
17961 module_cmds=$lt_module_cmds_GCJ
17962 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17964 # Commands to strip libraries.
17965 old_striplib=$lt_old_striplib
17966 striplib=$lt_striplib
17968 # Dependencies to place before the objects being linked to create a
17970 predep_objects=$lt_predep_objects_GCJ
17972 # Dependencies to place after the objects being linked to create a
17974 postdep_objects=$lt_postdep_objects_GCJ
17976 # Dependencies to place before the objects being linked to create a
17978 predeps=$lt_predeps_GCJ
17980 # Dependencies to place after the objects being linked to create a
17982 postdeps=$lt_postdeps_GCJ
17984 # The library search path used internally by the compiler when linking
17985 # a shared library.
17986 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17988 # Method to check whether dependent libraries are shared objects.
17989 deplibs_check_method=$lt_deplibs_check_method
17991 # Command to use when deplibs_check_method == file_magic.
17992 file_magic_cmd=$lt_file_magic_cmd
17994 # Flag that allows shared libraries with undefined symbols to be built.
17995 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17997 # Flag that forces no undefined symbols.
17998 no_undefined_flag=$lt_no_undefined_flag_GCJ
18000 # Commands used to finish a libtool library installation in a directory.
18001 finish_cmds=$lt_finish_cmds
18003 # Same as above, but a single script fragment to be evaled but not shown.
18004 finish_eval=$lt_finish_eval
18006 # Take the output of nm and produce a listing of raw symbols and C names.
18007 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18009 # Transform the output of nm in a proper C declaration
18010 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18012 # Transform the output of nm in a C name address pair
18013 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18015 # This is the shared library runtime path variable.
18016 runpath_var=$runpath_var
18018 # This is the shared library path variable.
18019 shlibpath_var=$shlibpath_var
18021 # Is shlibpath searched before the hard-coded library search path?
18022 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18024 # How to hardcode a shared library path into an executable.
18025 hardcode_action=$hardcode_action_GCJ
18027 # Whether we should hardcode library paths into libraries.
18028 hardcode_into_libs=$hardcode_into_libs
18030 # Flag to hardcode \$libdir into a binary during linking.
18031 # This must work even if \$libdir does not exist.
18032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18034 # If ld is used when linking, flag to hardcode \$libdir into
18035 # a binary during linking. This must work even if \$libdir does
18037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18039 # Whether we need a single -rpath flag with a separated argument.
18040 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18042 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18043 # resulting binary.
18044 hardcode_direct=$hardcode_direct_GCJ
18046 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18047 # resulting binary.
18048 hardcode_minus_L=$hardcode_minus_L_GCJ
18050 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18051 # the resulting binary.
18052 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18054 # Set to yes if building a shared library automatically hardcodes DIR into the library
18055 # and all subsequent libraries and executables linked against it.
18056 hardcode_automatic=$hardcode_automatic_GCJ
18058 # Variables whose values should be saved in libtool wrapper scripts and
18059 # restored at relink time.
18060 variables_saved_for_relink="$variables_saved_for_relink"
18062 # Whether libtool must link a program against all its dependency libraries.
18063 link_all_deplibs=$link_all_deplibs_GCJ
18065 # Compile-time system search path for libraries
18066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18068 # Run-time system search path for libraries
18069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18071 # Fix the shell variable \$srcfile for the compiler.
18072 fix_srcfile_path="$fix_srcfile_path_GCJ"
18074 # Set to yes if exported symbols are required.
18075 always_export_symbols=$always_export_symbols_GCJ
18077 # The commands to list exported symbols.
18078 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18080 # The commands to extract the exported symbol list from a shared archive.
18081 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18083 # Symbols that should not be listed in the preloaded symbols.
18084 exclude_expsyms=$lt_exclude_expsyms_GCJ
18086 # Symbols that must always be exported.
18087 include_expsyms=$lt_include_expsyms_GCJ
18089 # ### END LIBTOOL TAG CONFIG: $tagname
18095 # If there is no Makefile yet, we rely on a make rule to execute
18096 # `config.status --recheck' to rerun these tests and create the
18097 # libtool script then.
18098 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18099 if test -f "$ltmain_in"; then
18100 test -f Makefile && make "$ltmain"
18106 ac_cpp='$CPP $CPPFLAGS'
18107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18122 # Source file extension for RC test sources.
18125 # Object file extension for compiled RC test sources.
18129 # Code to be used in simple compile tests
18130 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18132 # Code to be used in simple link tests
18133 lt_simple_link_test_code="$lt_simple_compile_test_code"
18135 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18137 # If no C compiler was specified, use CC.
18140 # Allow CC to be a program name with arguments.
18144 # Allow CC to be a program name with arguments.
18149 lt_cv_prog_compiler_c_o_RC=yes
18151 # The else clause should only fire when bootstrapping the
18152 # libtool distribution, otherwise you forgot to ship ltmain.sh
18153 # with your package, and you will get complaints that there are
18154 # no rules to generate ltmain.sh.
18155 if test -f "$ltmain"; then
18156 # See if we are running on zsh, and set the options which allow our commands through
18157 # without removal of \ escapes.
18158 if test -n "${ZSH_VERSION+set}" ; then
18159 setopt NO_GLOB_SUBST
18161 # Now quote all the things that may contain metacharacters while being
18162 # careful not to overquote the AC_SUBSTed values. We take copies of the
18163 # variables and quote the copies for generation of the libtool script.
18164 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18166 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18167 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18168 deplibs_check_method reload_flag reload_cmds need_locks \
18169 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18170 lt_cv_sys_global_symbol_to_c_name_address \
18171 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18172 old_postinstall_cmds old_postuninstall_cmds \
18176 lt_prog_compiler_wl_RC \
18177 lt_prog_compiler_pic_RC \
18178 lt_prog_compiler_static_RC \
18179 lt_prog_compiler_no_builtin_flag_RC \
18180 export_dynamic_flag_spec_RC \
18181 thread_safe_flag_spec_RC \
18182 whole_archive_flag_spec_RC \
18183 enable_shared_with_static_runtimes_RC \
18184 old_archive_cmds_RC \
18185 old_archive_from_new_cmds_RC \
18186 predep_objects_RC \
18187 postdep_objects_RC \
18190 compiler_lib_search_path_RC \
18192 archive_expsym_cmds_RC \
18193 postinstall_cmds_RC \
18194 postuninstall_cmds_RC \
18195 old_archive_from_expsyms_cmds_RC \
18196 allow_undefined_flag_RC \
18197 no_undefined_flag_RC \
18198 export_symbols_cmds_RC \
18199 hardcode_libdir_flag_spec_RC \
18200 hardcode_libdir_flag_spec_ld_RC \
18201 hardcode_libdir_separator_RC \
18202 hardcode_automatic_RC \
18204 module_expsym_cmds_RC \
18205 lt_cv_prog_compiler_c_o_RC \
18206 exclude_expsyms_RC \
18207 include_expsyms_RC; do
18210 old_archive_cmds_RC | \
18211 old_archive_from_new_cmds_RC | \
18212 archive_cmds_RC | \
18213 archive_expsym_cmds_RC | \
18215 module_expsym_cmds_RC | \
18216 old_archive_from_expsyms_cmds_RC | \
18217 export_symbols_cmds_RC | \
18218 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18219 postinstall_cmds | postuninstall_cmds | \
18220 old_postinstall_cmds | old_postuninstall_cmds | \
18221 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18222 # Double-quote double-evaled strings.
18223 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18232 *'\$0 --fallback-echo"')
18233 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18239 cat <<__EOF__ >> "$cfgfile"
18240 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18242 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18244 # Shell to use when invoking shell scripts.
18247 # Whether or not to build shared libraries.
18248 build_libtool_libs=$enable_shared
18250 # Whether or not to build static libraries.
18251 build_old_libs=$enable_static
18253 # Whether or not to add -lc for building shared libraries.
18254 build_libtool_need_lc=$archive_cmds_need_lc_RC
18256 # Whether or not to disallow shared libs when runtime libs are static
18257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18259 # Whether or not to optimize for fast installation.
18260 fast_install=$enable_fast_install
18263 host_alias=$host_alias
18266 # An echo program that does not interpret backslashes.
18271 AR_FLAGS=$lt_AR_FLAGS
18276 # A language-specific compiler.
18279 # Is the compiler the GNU C compiler?
18285 # The linker used to build libraries.
18288 # Whether we need hard or soft links.
18291 # A BSD-compatible nm program.
18294 # A symbol stripping program
18297 # Used to examine libraries when file_magic_cmd begins "file"
18298 MAGIC_CMD=$MAGIC_CMD
18300 # Used on cygwin: DLL creation program.
18303 # Used on cygwin: object dumper.
18306 # Used on cygwin: assembler.
18309 # The name of the directory that contains temporary libtool files.
18312 # How to create reloadable object files.
18313 reload_flag=$lt_reload_flag
18314 reload_cmds=$lt_reload_cmds
18316 # How to pass a linker flag through the compiler.
18317 wl=$lt_lt_prog_compiler_wl_RC
18319 # Object file suffix (normally "o").
18320 objext="$ac_objext"
18322 # Old archive suffix (normally "a").
18325 # Shared library suffix (normally ".so").
18326 shrext_cmds='$shrext_cmds'
18328 # Executable file suffix (normally "").
18331 # Additional compiler flags for building library objects.
18332 pic_flag=$lt_lt_prog_compiler_pic_RC
18335 # What is the maximum length of a command?
18336 max_cmd_len=$lt_cv_sys_max_cmd_len
18338 # Does compiler simultaneously support -c and -o options?
18339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18341 # Must we lock files when doing compilation ?
18342 need_locks=$lt_need_locks
18344 # Do we need the lib prefix for modules?
18345 need_lib_prefix=$need_lib_prefix
18347 # Do we need a version for libraries?
18348 need_version=$need_version
18350 # Whether dlopen is supported.
18351 dlopen_support=$enable_dlopen
18353 # Whether dlopen of programs is supported.
18354 dlopen_self=$enable_dlopen_self
18356 # Whether dlopen of statically linked programs is supported.
18357 dlopen_self_static=$enable_dlopen_self_static
18359 # Compiler flag to prevent dynamic linking.
18360 link_static_flag=$lt_lt_prog_compiler_static_RC
18362 # Compiler flag to turn off builtin functions.
18363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18365 # Compiler flag to allow reflexive dlopens.
18366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18368 # Compiler flag to generate shared objects directly from archives.
18369 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18371 # Compiler flag to generate thread-safe objects.
18372 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18374 # Library versioning type.
18375 version_type=$version_type
18377 # Format of library name prefix.
18378 libname_spec=$lt_libname_spec
18380 # List of archive names. First name is the real one, the rest are links.
18381 # The last name is the one that the linker finds with -lNAME.
18382 library_names_spec=$lt_library_names_spec
18384 # The coded name of the library, if different from the real name.
18385 soname_spec=$lt_soname_spec
18387 # Commands used to build and install an old-style archive.
18389 old_archive_cmds=$lt_old_archive_cmds_RC
18390 old_postinstall_cmds=$lt_old_postinstall_cmds
18391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18393 # Create an old-style archive from a shared archive.
18394 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18396 # Create a temporary old-style archive to link instead of a shared archive.
18397 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18399 # Commands used to build and install a shared archive.
18400 archive_cmds=$lt_archive_cmds_RC
18401 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18402 postinstall_cmds=$lt_postinstall_cmds
18403 postuninstall_cmds=$lt_postuninstall_cmds
18405 # Commands used to build a loadable module (assumed same as above if empty)
18406 module_cmds=$lt_module_cmds_RC
18407 module_expsym_cmds=$lt_module_expsym_cmds_RC
18409 # Commands to strip libraries.
18410 old_striplib=$lt_old_striplib
18411 striplib=$lt_striplib
18413 # Dependencies to place before the objects being linked to create a
18415 predep_objects=$lt_predep_objects_RC
18417 # Dependencies to place after the objects being linked to create a
18419 postdep_objects=$lt_postdep_objects_RC
18421 # Dependencies to place before the objects being linked to create a
18423 predeps=$lt_predeps_RC
18425 # Dependencies to place after the objects being linked to create a
18427 postdeps=$lt_postdeps_RC
18429 # The library search path used internally by the compiler when linking
18430 # a shared library.
18431 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18433 # Method to check whether dependent libraries are shared objects.
18434 deplibs_check_method=$lt_deplibs_check_method
18436 # Command to use when deplibs_check_method == file_magic.
18437 file_magic_cmd=$lt_file_magic_cmd
18439 # Flag that allows shared libraries with undefined symbols to be built.
18440 allow_undefined_flag=$lt_allow_undefined_flag_RC
18442 # Flag that forces no undefined symbols.
18443 no_undefined_flag=$lt_no_undefined_flag_RC
18445 # Commands used to finish a libtool library installation in a directory.
18446 finish_cmds=$lt_finish_cmds
18448 # Same as above, but a single script fragment to be evaled but not shown.
18449 finish_eval=$lt_finish_eval
18451 # Take the output of nm and produce a listing of raw symbols and C names.
18452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18454 # Transform the output of nm in a proper C declaration
18455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18457 # Transform the output of nm in a C name address pair
18458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18460 # This is the shared library runtime path variable.
18461 runpath_var=$runpath_var
18463 # This is the shared library path variable.
18464 shlibpath_var=$shlibpath_var
18466 # Is shlibpath searched before the hard-coded library search path?
18467 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18469 # How to hardcode a shared library path into an executable.
18470 hardcode_action=$hardcode_action_RC
18472 # Whether we should hardcode library paths into libraries.
18473 hardcode_into_libs=$hardcode_into_libs
18475 # Flag to hardcode \$libdir into a binary during linking.
18476 # This must work even if \$libdir does not exist.
18477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18479 # If ld is used when linking, flag to hardcode \$libdir into
18480 # a binary during linking. This must work even if \$libdir does
18482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18484 # Whether we need a single -rpath flag with a separated argument.
18485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18488 # resulting binary.
18489 hardcode_direct=$hardcode_direct_RC
18491 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_minus_L=$hardcode_minus_L_RC
18495 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18496 # the resulting binary.
18497 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18499 # Set to yes if building a shared library automatically hardcodes DIR into the library
18500 # and all subsequent libraries and executables linked against it.
18501 hardcode_automatic=$hardcode_automatic_RC
18503 # Variables whose values should be saved in libtool wrapper scripts and
18504 # restored at relink time.
18505 variables_saved_for_relink="$variables_saved_for_relink"
18507 # Whether libtool must link a program against all its dependency libraries.
18508 link_all_deplibs=$link_all_deplibs_RC
18510 # Compile-time system search path for libraries
18511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18513 # Run-time system search path for libraries
18514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18516 # Fix the shell variable \$srcfile for the compiler.
18517 fix_srcfile_path="$fix_srcfile_path_RC"
18519 # Set to yes if exported symbols are required.
18520 always_export_symbols=$always_export_symbols_RC
18522 # The commands to list exported symbols.
18523 export_symbols_cmds=$lt_export_symbols_cmds_RC
18525 # The commands to extract the exported symbol list from a shared archive.
18526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18528 # Symbols that should not be listed in the preloaded symbols.
18529 exclude_expsyms=$lt_exclude_expsyms_RC
18531 # Symbols that must always be exported.
18532 include_expsyms=$lt_include_expsyms_RC
18534 # ### END LIBTOOL TAG CONFIG: $tagname
18540 # If there is no Makefile yet, we rely on a make rule to execute
18541 # `config.status --recheck' to rerun these tests and create the
18542 # libtool script then.
18543 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18544 if test -f "$ltmain_in"; then
18545 test -f Makefile && make "$ltmain"
18551 ac_cpp='$CPP $CPPFLAGS'
18552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18561 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18562 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18563 { (exit 1); exit 1; }; }
18567 # Append the new tag name to the list of available tags.
18568 if test -n "$tagname" ; then
18569 available_tags="$available_tags $tagname"
18575 # Now substitute the updated list of available tags.
18576 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18577 mv "${ofile}T" "$ofile"
18581 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18582 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18583 { (exit 1); exit 1; }; }
18589 # This can be used to rebuild libtool when needed
18590 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18592 # Always use our own libtool.
18593 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18595 # Prevent multiple expansion
18616 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18617 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18618 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18619 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18620 echo $ECHO_N "(cached) $ECHO_C" >&6
18622 cat >conftest.make <<\_ACEOF
18624 @echo 'ac_maketemp="$(MAKE)"'
18626 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18627 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18628 if test -n "$ac_maketemp"; then
18629 eval ac_cv_prog_make_${ac_make}_set=yes
18631 eval ac_cv_prog_make_${ac_make}_set=no
18633 rm -f conftest.make
18635 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18636 echo "$as_me:$LINENO: result: yes" >&5
18637 echo "${ECHO_T}yes" >&6
18640 echo "$as_me:$LINENO: result: no" >&5
18641 echo "${ECHO_T}no" >&6
18642 SET_MAKE="MAKE=${MAKE-make}"
18646 if test "$athena" = true; then
18648 prefix=/afs/.athena.mit.edu/system/moira
18649 bindir=$prefix/arch/$ATHENA_SYS/bin
18650 libdir=$prefix/arch/$ATHENA_SYS/lib
18655 *-I/usr/athena/include*) ;;
18656 *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
18660 case $PRO_C_INCLUDES in
18661 *INCLUDE=/usr/athena/include*) ;;
18662 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
18668 *-L/usr/athena/lib*) ;;
18669 *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
18674 # We currently just don't support changing this
18675 mrbindir=/moira/bin
18678 # Athena-local policy decisions
18679 echo "$as_me:$LINENO: checking for Athena" >&5
18680 echo $ECHO_N "checking for Athena... $ECHO_C" >&6
18681 # Check whether --enable-athena or --disable-athena was given.
18682 if test "${enable_athena+set}" = set; then
18683 enableval="$enable_athena"
18686 if test "$athena" = true; then
18692 echo "$as_me:$LINENO: result: $enableval" >&5
18693 echo "${ECHO_T}$enableval" >&6
18694 if test "$enableval" = yes; then
18696 cat >>confdefs.h <<\_ACEOF
18701 case $PRO_C_DEFS in
18702 *DEFINE=ATHENA*) ;;
18703 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
18709 # Networking libraries
18710 { echo "$as_me:$LINENO: checking network libraries......" >&5
18711 echo "$as_me: checking network libraries......" >&6;}
18712 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18713 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18714 if test "${ac_cv_func_gethostbyname+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18725 #define gethostbyname innocuous_gethostbyname
18727 /* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char gethostbyname (); below.
18729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18730 <limits.h> exists even on freestanding compilers. */
18733 # include <limits.h>
18735 # include <assert.h>
18738 #undef gethostbyname
18740 /* Override any gcc2 internal prototype to avoid an error. */
18745 /* We use char because int might match the return type of a gcc2
18746 builtin and then its argument prototype would still apply. */
18747 char gethostbyname ();
18748 /* The GNU C library defines this for functions which it implements
18749 to always fail with ENOSYS. Some functions are actually named
18750 something starting with __ and the normal name is an alias. */
18751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18754 char (*f) () = gethostbyname;
18763 return f != gethostbyname;
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18770 (eval $ac_link) 2>conftest.er1
18772 grep -v '^ *+' conftest.er1 >conftest.err
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try='test -z "$ac_c_werror_flag"
18778 || test ! -s conftest.err'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest$ac_exeext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_func_gethostbyname=yes
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 ac_cv_func_gethostbyname=no
18797 rm -f conftest.err conftest.$ac_objext \
18798 conftest$ac_exeext conftest.$ac_ext
18800 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18801 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18802 if test $ac_cv_func_gethostbyname = yes; then
18806 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18807 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18808 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 ac_check_lib_save_LIBS=$LIBS
18813 cat >conftest.$ac_ext <<_ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18820 /* Override any gcc2 internal prototype to avoid an error. */
18824 /* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826 char gethostbyname ();
18835 rm -f conftest.$ac_objext conftest$ac_exeext
18836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18837 (eval $ac_link) 2>conftest.er1
18839 grep -v '^ *+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag"
18845 || test ! -s conftest.err'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
18851 { ac_try='test -s conftest$ac_exeext'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_lib_nsl_gethostbyname=yes
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_cv_lib_nsl_gethostbyname=no
18864 rm -f conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18868 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18869 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18870 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872 #define HAVE_LIBNSL 1
18879 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
18880 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
18881 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 ac_check_lib_save_LIBS=$LIBS
18885 LIBS="-lresolv $LIBS"
18886 cat >conftest.$ac_ext <<_ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18893 /* Override any gcc2 internal prototype to avoid an error. */
18897 /* We use char because int might match the return type of a gcc2
18898 builtin and then its argument prototype would still apply. */
18899 char gethostbyname ();
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910 (eval $ac_link) 2>conftest.er1
18912 grep -v '^ *+' conftest.er1 >conftest.err
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag"
18918 || test ! -s conftest.err'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ac_cv_lib_resolv_gethostbyname=yes
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_cv_lib_resolv_gethostbyname=no
18937 rm -f conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18939 LIBS=$ac_check_lib_save_LIBS
18941 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
18942 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
18943 if test $ac_cv_lib_resolv_gethostbyname = yes; then
18944 cat >>confdefs.h <<_ACEOF
18945 #define HAVE_LIBRESOLV 1
18948 LIBS="-lresolv $LIBS"
18956 echo "$as_me:$LINENO: checking for socket" >&5
18957 echo $ECHO_N "checking for socket... $ECHO_C" >&6
18958 if test "${ac_cv_func_socket+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18969 #define socket innocuous_socket
18971 /* System header to define __stub macros and hopefully few prototypes,
18972 which can conflict with char socket (); below.
18973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18974 <limits.h> exists even on freestanding compilers. */
18977 # include <limits.h>
18979 # include <assert.h>
18984 /* Override any gcc2 internal prototype to avoid an error. */
18989 /* We use char because int might match the return type of a gcc2
18990 builtin and then its argument prototype would still apply. */
18992 /* The GNU C library defines this for functions which it implements
18993 to always fail with ENOSYS. Some functions are actually named
18994 something starting with __ and the normal name is an alias. */
18995 #if defined (__stub_socket) || defined (__stub___socket)
18998 char (*f) () = socket;
19007 return f != socket;
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014 (eval $ac_link) 2>conftest.er1
19016 grep -v '^ *+' conftest.er1 >conftest.err
19018 cat conftest.err >&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
19021 { ac_try='test -z "$ac_c_werror_flag"
19022 || test ! -s conftest.err'
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_func_socket=yes
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 ac_cv_func_socket=no
19041 rm -f conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19044 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19045 echo "${ECHO_T}$ac_cv_func_socket" >&6
19046 if test $ac_cv_func_socket = yes; then
19050 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19051 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
19052 if test "${ac_cv_lib_socket_socket+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 ac_check_lib_save_LIBS=$LIBS
19056 LIBS="-lsocket $LIBS"
19057 cat >conftest.$ac_ext <<_ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19064 /* Override any gcc2 internal prototype to avoid an error. */
19068 /* We use char because int might match the return type of a gcc2
19069 builtin and then its argument prototype would still apply. */
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>conftest.er1
19083 grep -v '^ *+' conftest.er1 >conftest.err
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest$ac_exeext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_lib_socket_socket=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_cv_lib_socket_socket=no
19108 rm -f conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19112 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19113 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
19114 if test $ac_cv_lib_socket_socket = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116 #define HAVE_LIBSOCKET 1
19119 LIBS="-lsocket $LIBS"
19122 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19123 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
19124 if test "${ac_cv_lib_socket_socket+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 ac_check_lib_save_LIBS=$LIBS
19128 LIBS="-lsocket -lnsl $LIBS"
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19136 /* Override any gcc2 internal prototype to avoid an error. */
19140 /* We use char because int might match the return type of a gcc2
19141 builtin and then its argument prototype would still apply. */
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19153 (eval $ac_link) 2>conftest.er1
19155 grep -v '^ *+' conftest.er1 >conftest.err
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } &&
19160 { ac_try='test -z "$ac_c_werror_flag"
19161 || test ! -s conftest.err'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest$ac_exeext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_lib_socket_socket=yes
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19178 ac_cv_lib_socket_socket=no
19180 rm -f conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_check_lib_save_LIBS
19184 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19185 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
19186 if test $ac_cv_lib_socket_socket = yes; then
19187 LIBS="-lsocket -lnsl $LIBS"
19197 # com_err (required, but can be built)
19198 echo "$as_me:$LINENO: checking for com_err" >&5
19199 echo $ECHO_N "checking for com_err... $ECHO_C" >&6
19201 # Check whether --with-com_err or --without-com_err was given.
19202 if test "${with_com_err+set}" = set; then
19203 withval="$with_com_err"
19204 echo "$as_me:$LINENO: result: $withval" >&5
19205 echo "${ECHO_T}$withval" >&6
19206 if test $withval = "no"; then
19207 { { echo "$as_me:$LINENO: error: com_err is required for Moira" >&5
19208 echo "$as_me: error: com_err is required for Moira" >&2;}
19209 { (exit 1); exit 1; }; }
19211 if test $withval != "yes"; then
19215 *-I$withval/include*) ;;
19216 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
19220 case $PRO_C_INCLUDES in
19221 *INCLUDE=$withval/include*) ;;
19222 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
19228 *-L$withval/lib*) ;;
19229 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
19233 COMPILE_ET=compile_et
19235 echo "$as_me:$LINENO: result: util/et" >&5
19236 echo "${ECHO_T}util/et" >&6
19240 *-I`pwd`/util/et*) ;;
19241 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
19245 case $PRO_C_INCLUDES in
19246 *INCLUDE=`pwd`/util/et*) ;;
19247 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
19253 *-L`pwd`/util/et*) ;;
19254 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
19257 COMPILE_ET=`pwd`/util/et/compile_et
19260 subdirs="$subdirs util/et"
19266 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
19267 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
19268 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 ac_check_lib_save_LIBS=$LIBS
19272 LIBS="-lk5crypto $LIBS"
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291 (eval $ac_link) 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
19298 { ac_try='test -z "$ac_c_werror_flag"
19299 || test ! -s conftest.err'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest$ac_exeext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 ac_cv_lib_k5crypto_main=yes
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19316 ac_cv_lib_k5crypto_main=no
19318 rm -f conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19320 LIBS=$ac_check_lib_save_LIBS
19322 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
19323 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
19324 if test $ac_cv_lib_k5crypto_main = yes; then
19327 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
19328 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
19329 if test "${ac_cv_lib_crypto_main+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lcrypto $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352 (eval $ac_link) 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag"
19360 || test ! -s conftest.err'
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest$ac_exeext'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_cv_lib_crypto_main=yes
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_lib_crypto_main=no
19379 rm -f conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19381 LIBS=$ac_check_lib_save_LIBS
19383 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
19384 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
19385 if test $ac_cv_lib_crypto_main = yes; then
19392 # Kerberos (Kerberos 4 optional, Kerberos 5 required)
19393 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
19394 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
19396 # Check whether --with-krb4 or --without-krb4 was given.
19397 if test "${with_krb4+set}" = set; then
19398 withval="$with_krb4"
19403 echo "$as_me:$LINENO: result: $krb4" >&5
19404 echo "${ECHO_T}$krb4" >&6
19405 if test "$krb4" != no; then
19406 if test "$krb4" != yes; then
19410 *-I$krb4/include*) ;;
19411 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
19415 case $PRO_C_INCLUDES in
19416 *INCLUDE=$krb4/include*) ;;
19417 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
19421 if test -d "$krb4/include/kerberosIV"; then
19425 *-I$krb4/include/kerberosIV*) ;;
19426 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
19430 case $PRO_C_INCLUDES in
19431 *INCLUDE=$krb4/include/kerberosIV*) ;;
19432 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
19440 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
19443 elif test -d /usr/include/kerberosIV; then
19447 *-I/usr/include/kerberosIV*) ;;
19448 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
19452 case $PRO_C_INCLUDES in
19453 *INCLUDE=/usr/include/kerberosIV*) ;;
19454 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
19460 cat >>confdefs.h <<\_ACEOF
19461 #define HAVE_KRB4 1
19465 case $PRO_C_DEFS in
19466 *DEFINE=HAVE_KRB4*) ;;
19467 *) PRO_C_DEFS=DEFINE=HAVE_KRB4\ $PRO_C_DEFS ;;
19471 echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
19472 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6
19473 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv $LIBS"
19478 cat >conftest.$ac_ext <<_ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19485 /* Override any gcc2 internal prototype to avoid an error. */
19489 /* We use char because int might match the return type of a gcc2
19490 builtin and then its argument prototype would still apply. */
19491 char krb_rd_req ();
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19502 (eval $ac_link) 2>conftest.er1
19504 grep -v '^ *+' conftest.er1 >conftest.err
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } &&
19509 { ac_try='test -z "$ac_c_werror_flag"
19510 || test ! -s conftest.err'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest$ac_exeext'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 ac_cv_lib_krb4_krb_rd_req=yes
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 ac_cv_lib_krb4_krb_rd_req=no
19529 rm -f conftest.err conftest.$ac_objext \
19530 conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19533 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
19534 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6
19535 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
19536 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv"
19538 echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
19539 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6
19540 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lkrb $LIBPATH -ldes $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19552 /* Override any gcc2 internal prototype to avoid an error. */
19556 /* We use char because int might match the return type of a gcc2
19557 builtin and then its argument prototype would still apply. */
19558 char krb_rd_req ();
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>conftest.er1
19571 grep -v '^ *+' conftest.er1 >conftest.err
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest$ac_exeext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_lib_krb_krb_rd_req=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_lib_krb_krb_rd_req=no
19596 rm -f conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19600 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
19601 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6
19602 if test $ac_cv_lib_krb_krb_rd_req = yes; then
19603 KRB4_LIBS="-lkrb -ldes"
19605 { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
19606 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
19607 { (exit 1); exit 1; }; }
19614 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
19615 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
19617 # Check whether --with-krb5 or --without-krb5 was given.
19618 if test "${with_krb5+set}" = set; then
19619 withval="$with_krb5"
19624 echo "$as_me:$LINENO: result: $krb5" >&5
19625 echo "${ECHO_T}$krb5" >&6
19626 if test "$krb5" != no; then
19627 REG_SVR_DEFS=-DKRB5
19628 if test "$krb5" != yes; then
19629 REG_SVR_INCLUDES=-I$krb5/include
19630 REG_SVR_LIBS=-L$krb5/lib
19634 *-I$krb5/include*) ;;
19635 *) CPPFLAGS=-I$krb5/include\ $CPPFLAGS ;;
19639 case $PRO_C_INCLUDES in
19640 *INCLUDE=$krb5/include*) ;;
19641 *) PRO_C_INCLUDES=INCLUDE=$krb5/include\ $PRO_C_INCLUDES ;;
19648 *) LIBPATH=-L$krb5/lib\ $LIBPATH ;;
19653 cat >>confdefs.h <<\_ACEOF
19654 #define HAVE_KRB5 1
19658 case $PRO_C_DEFS in
19659 *DEFINE=HAVE_KRB5*) ;;
19660 *) PRO_C_DEFS=DEFINE=HAVE_KRB5\ $PRO_C_DEFS ;;
19664 KRB5_LIBS="-lkrb5 -l${crypto} -lcom_err -lresolv"
19665 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -lkrb5 -l${crypto} -lresolv"
19667 REG_SVR_DEFS=-DKRB4
19668 REG_SVR_LIBS=-lkadm
19675 echo "$as_me:$LINENO: checking for Hesiod" >&5
19676 echo $ECHO_N "checking for Hesiod... $ECHO_C" >&6
19678 # Check whether --with-hesiod or --without-hesiod was given.
19679 if test "${with_hesiod+set}" = set; then
19680 withval="$with_hesiod"
19685 echo "$as_me:$LINENO: result: $hesiod" >&5
19686 echo "${ECHO_T}$hesiod" >&6
19687 if test "$hesiod" != no; then
19688 if test "$hesiod" != yes; then
19692 *-I$hesiod/include*) ;;
19693 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
19697 case $PRO_C_INCLUDES in
19698 *INCLUDE=$hesiod/include*) ;;
19699 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
19705 *-L$hesiod/lib*) ;;
19706 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
19710 echo "$as_me:$LINENO: checking for res_send" >&5
19711 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
19712 if test "${ac_cv_func_res_send+set}" = set; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19723 #define res_send innocuous_res_send
19725 /* System header to define __stub macros and hopefully few prototypes,
19726 which can conflict with char res_send (); below.
19727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19728 <limits.h> exists even on freestanding compilers. */
19731 # include <limits.h>
19733 # include <assert.h>
19738 /* Override any gcc2 internal prototype to avoid an error. */
19743 /* We use char because int might match the return type of a gcc2
19744 builtin and then its argument prototype would still apply. */
19746 /* The GNU C library defines this for functions which it implements
19747 to always fail with ENOSYS. Some functions are actually named
19748 something starting with __ and the normal name is an alias. */
19749 #if defined (__stub_res_send) || defined (__stub___res_send)
19752 char (*f) () = res_send;
19761 return f != res_send;
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19768 (eval $ac_link) 2>conftest.er1
19770 grep -v '^ *+' conftest.er1 >conftest.err
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
19775 { ac_try='test -z "$ac_c_werror_flag"
19776 || test ! -s conftest.err'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest$ac_exeext'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_cv_func_res_send=yes
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19793 ac_cv_func_res_send=no
19795 rm -f conftest.err conftest.$ac_objext \
19796 conftest$ac_exeext conftest.$ac_ext
19798 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19799 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19800 if test $ac_cv_func_res_send = yes; then
19804 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19805 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19806 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 ac_check_lib_save_LIBS=$LIBS
19810 LIBS="-lresolv $LIBS"
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19818 /* Override any gcc2 internal prototype to avoid an error. */
19822 /* We use char because int might match the return type of a gcc2
19823 builtin and then its argument prototype would still apply. */
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835 (eval $ac_link) 2>conftest.er1
19837 grep -v '^ *+' conftest.er1 >conftest.err
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
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); }; } &&
19849 { ac_try='test -s conftest$ac_exeext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_lib_resolv_res_send=yes
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_lib_resolv_res_send=no
19862 rm -f conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19864 LIBS=$ac_check_lib_save_LIBS
19866 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19867 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19868 if test $ac_cv_lib_resolv_res_send = yes; then
19869 cat >>confdefs.h <<_ACEOF
19870 #define HAVE_LIBRESOLV 1
19873 LIBS="-lresolv $LIBS"
19879 echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
19880 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6
19881 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 ac_check_lib_save_LIBS=$LIBS
19885 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
19886 cat >conftest.$ac_ext <<_ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19893 /* Override any gcc2 internal prototype to avoid an error. */
19897 /* We use char because int might match the return type of a gcc2
19898 builtin and then its argument prototype would still apply. */
19899 char hes_resolve ();
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910 (eval $ac_link) 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest$ac_exeext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_cv_lib_hesiod_hes_resolve=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_lib_hesiod_hes_resolve=no
19937 rm -f conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19941 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
19942 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6
19943 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
19946 { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
19947 echo "$as_me: error: Hesiod library not found" >&2;}
19948 { (exit 1); exit 1; }; }
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_HESIOD 1
19957 case $PRO_C_DEFS in
19958 *DEFINE=HAVE_HESIOD*) ;;
19959 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
19966 echo "$as_me:$LINENO: checking for Zephyr" >&5
19967 echo $ECHO_N "checking for Zephyr... $ECHO_C" >&6
19969 # Check whether --with-zephyr or --without-zephyr was given.
19970 if test "${with_zephyr+set}" = set; then
19971 withval="$with_zephyr"
19976 echo "$as_me:$LINENO: result: $zephyr" >&5
19977 echo "${ECHO_T}$zephyr" >&6
19978 if test "$zephyr" != no; then
19979 if test "$zephyr" != yes; then
19983 *-I$zephyr/include*) ;;
19984 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
19988 case $PRO_C_INCLUDES in
19989 *INCLUDE=$zephyr/include*) ;;
19990 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
19996 *-L$zephyr/lib*) ;;
19997 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
20001 echo "$as_me:$LINENO: checking for ZInitialize in -lzephyr" >&5
20002 echo $ECHO_N "checking for ZInitialize in -lzephyr... $ECHO_C" >&6
20003 if test "${ac_cv_lib_zephyr_ZInitialize+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 ac_check_lib_save_LIBS=$LIBS
20007 LIBS="-lzephyr $LIBPATH $KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20015 /* Override any gcc2 internal prototype to avoid an error. */
20019 /* We use char because int might match the return type of a gcc2
20020 builtin and then its argument prototype would still apply. */
20021 char ZInitialize ();
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20032 (eval $ac_link) 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest$ac_exeext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20052 ac_cv_lib_zephyr_ZInitialize=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20057 ac_cv_lib_zephyr_ZInitialize=no
20059 rm -f conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext conftest.$ac_ext
20061 LIBS=$ac_check_lib_save_LIBS
20063 echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitialize" >&5
20064 echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitialize" >&6
20065 if test $ac_cv_lib_zephyr_ZInitialize = yes; then
20068 { { echo "$as_me:$LINENO: error: Zephyr library not found" >&5
20069 echo "$as_me: error: Zephyr library not found" >&2;}
20070 { (exit 1); exit 1; }; }
20074 cat >>confdefs.h <<\_ACEOF
20075 #define HAVE_ZEPHYR 1
20079 case $PRO_C_DEFS in
20080 *DEFINE=HAVE_ZEPHYR*) ;;
20081 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
20087 # RSAREF support (default: build util/rsaref if present)
20088 echo "$as_me:$LINENO: checking for RSAREF" >&5
20089 echo $ECHO_N "checking for RSAREF... $ECHO_C" >&6
20091 # Check whether --with-rsaref or --without-rsaref was given.
20092 if test "${with_rsaref+set}" = set; then
20093 withval="$with_rsaref"
20095 RSAREF_CPPFLAGS="-I$rsaref/include"
20096 RSAREF_LIBS="$rsaref/lib/rsaref.a"
20098 RSAREF_SUBDIRS=reg_svr
20099 if test -d $srcdir/util/rsaref; then
20100 rsaref=$srcdir/util/rsaref
20101 RSAREF_SUBDIRS="util/rsaref reg_svr"
20102 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
20103 # autoconf can't deal with creating util/rsaref if util doesn't exist
20104 if test ! -d util; then
20107 RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
20108 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
20109 RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
20114 echo "$as_me:$LINENO: result: $rsaref" >&5
20115 echo "${ECHO_T}$rsaref" >&6
20116 if test "$rsaref" != no; then
20118 cat >>confdefs.h <<\_ACEOF
20119 #define HAVE_RSAREF 1
20123 case $PRO_C_DEFS in
20124 *DEFINE=HAVE_RSAREF*) ;;
20125 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
20135 # Oracle (default: yes, if $ORACLE_HOME is set)
20136 echo "$as_me:$LINENO: checking for Oracle" >&5
20137 echo $ECHO_N "checking for Oracle... $ECHO_C" >&6
20139 # Check whether --with-oracle or --without-oracle was given.
20140 if test "${with_oracle+set}" = set; then
20141 withval="$with_oracle"
20144 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
20145 oracle=$ORACLE_HOME
20150 echo "$as_me:$LINENO: result: $oracle" >&5
20151 echo "${ECHO_T}$oracle" >&6
20152 if test "$oracle" != no; then
20153 echo "$as_me:$LINENO: checking Pro*C version" >&5
20154 echo $ECHO_N "checking Pro*C version... $ECHO_C" >&6
20155 ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
20156 echo "$as_me:$LINENO: result: $release" >&5
20157 echo "${ECHO_T}$release" >&6
20160 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
20163 SQL_LIBS="-L$oracle/lib -lclntsh -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 `cat $oracle/rdbms/lib/sysliblist` -lm -lthread"
20166 SQL_LIBS="-L$oracle/lib -lclntsh `cat $oracle/lib/sysliblist` -R$oracle/lib -laio -lm -lthread"
20169 SQL_LIBS="-L$oracle/lib32 -lclntsh `cat $oracle/lib32/ldflags` `cat $oracle/lib32/sysliblist` -R$oracle/lib32 -laio -lposix4 -lm -lthread"
20172 { { echo "$as_me:$LINENO: error: Unsupported Oracle release" >&5
20173 echo "$as_me: error: Unsupported Oracle release" >&2;}
20174 { (exit 1); exit 1; }; }
20177 SVRSUBDIRS='$(SVRDIRS)'
20178 SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile incremental/mailman/Makefile reg_svr/Makefile regtape/Makefile"
20179 PRO_C=$oracle/bin/proc
20180 PRO_C_OPTS=CODE=ANSI_C
20181 PRO_C_DEFS="DEFINE=_PROC_ DEFINE=__sparc $PRO_C_DEFS"
20190 # Java support, for webmoira
20191 echo "$as_me:$LINENO: checking for Java" >&5
20192 echo $ECHO_N "checking for Java... $ECHO_C" >&6
20194 # Check whether --with-java or --without-java was given.
20195 if test "${with_java+set}" = set; then
20196 withval="$with_java"
20199 if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
20205 echo "$as_me:$LINENO: result: $java" >&5
20206 echo "${ECHO_T}$java" >&6
20207 if test "$java" != no; then
20208 if test "$java" != yes; then
20209 JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_JAVA 1
20217 case $PRO_C_DEFS in
20218 *DEFINE=HAVE_JAVA*) ;;
20219 *) PRO_C_DEFS=DEFINE=HAVE_JAVA\ $PRO_C_DEFS ;;
20224 WEBMOIRA_SUBDIRS="webmoira"
20225 WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
20231 echo "$as_me:$LINENO: checking for LDAP" >&5
20232 echo $ECHO_N "checking for LDAP... $ECHO_C" >&6
20234 # Check whether --with-ldap or --without-ldap was given.
20235 if test "${with_ldap+set}" = set; then
20236 withval="$with_ldap"
20239 if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
20245 echo "$as_me:$LINENO: result: $ldap" >&5
20246 echo "${ECHO_T}$ldap" >&6
20247 if test "$ldap" != no -a "$oracle" != no; then
20248 if test "$ldap" != yes; then
20249 LDAP_CPPFLAGS="-I$ldap/include"
20250 LDAP_LIBS="-L$ldap/lib"
20253 cat >>confdefs.h <<\_ACEOF
20254 #define HAVE_LDAP 1
20258 case $PRO_C_DEFS in
20259 *DEFINE=HAVE_LDAP*) ;;
20260 *) PRO_C_DEFS=DEFINE=HAVE_LDAP\ $PRO_C_DEFS ;;
20265 WINAD_SUBDIRS="winad ldap"
20266 WINAD_OUTPUT_FILES="incremental/winad/Makefile incremental/ldap/Makefile"
20273 echo "$as_me:$LINENO: checking for AFS" >&5
20274 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
20276 # Check whether --with-afs or --without-afs was given.
20277 if test "${with_afs+set}" = set; then
20278 withval="$with_afs"
20283 echo "$as_me:$LINENO: result: $afs" >&5
20284 echo "${ECHO_T}$afs" >&6
20285 if test "$afs" != no -a "$oracle" != no; then
20286 if test "$afs" != yes; then
20287 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
20288 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
20289 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
20292 echo "$as_me:$LINENO: checking for pioctl in -lsys" >&5
20293 echo $ECHO_N "checking for pioctl in -lsys... $ECHO_C" >&6
20294 if test "${ac_cv_lib_sys_pioctl+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 ac_check_lib_save_LIBS=$LIBS
20298 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys -lafsutil $LIBS"
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20306 /* Override any gcc2 internal prototype to avoid an error. */
20310 /* We use char because int might match the return type of a gcc2
20311 builtin and then its argument prototype would still apply. */
20321 rm -f conftest.$ac_objext conftest$ac_exeext
20322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20323 (eval $ac_link) 2>conftest.er1
20325 grep -v '^ *+' conftest.er1 >conftest.err
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } &&
20330 { ac_try='test -z "$ac_c_werror_flag"
20331 || test ! -s conftest.err'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; } &&
20337 { ac_try='test -s conftest$ac_exeext'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 ac_cv_lib_sys_pioctl=yes
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_lib_sys_pioctl=no
20350 rm -f conftest.err conftest.$ac_objext \
20351 conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20354 echo "$as_me:$LINENO: result: $ac_cv_lib_sys_pioctl" >&5
20355 echo "${ECHO_T}$ac_cv_lib_sys_pioctl" >&6
20356 if test $ac_cv_lib_sys_pioctl = yes; then
20359 { { echo "$as_me:$LINENO: error: AFS libraries not found" >&5
20360 echo "$as_me: error: AFS libraries not found" >&2;}
20361 { (exit 1); exit 1; }; }
20365 cat >>confdefs.h <<\_ACEOF
20370 case $PRO_C_DEFS in
20371 *DEFINE=HAVE_AFS*) ;;
20372 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
20378 AFS_OUTPUT_FILES="incremental/afs/Makefile"
20379 if test -d $srcdir/afssync; then
20380 AFS_SYNCDIR="afssync"
20381 AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
20392 { echo "$as_me:$LINENO: checking for GNU readline......" >&5
20393 echo "$as_me: checking for GNU readline......" >&6;}
20395 # Check whether --with-readline or --without-readline was given.
20396 if test "${with_readline+set}" = set; then
20397 withval="$with_readline"
20398 readline="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
20399 echo "${ECHO_T}$withval" >&6
20401 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20402 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20403 if test "${ac_cv_lib_readline_readline+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 ac_check_lib_save_LIBS=$LIBS
20407 LIBS="-lreadline -ltermcap $LIBS"
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 /* Override any gcc2 internal prototype to avoid an error. */
20419 /* We use char because int might match the return type of a gcc2
20420 builtin and then its argument prototype would still apply. */
20430 rm -f conftest.$ac_objext conftest$ac_exeext
20431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20432 (eval $ac_link) 2>conftest.er1
20434 grep -v '^ *+' conftest.er1 >conftest.err
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } &&
20439 { ac_try='test -z "$ac_c_werror_flag"
20440 || test ! -s conftest.err'
20441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442 (eval $ac_try) 2>&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; } &&
20446 { ac_try='test -s conftest$ac_exeext'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
20452 ac_cv_lib_readline_readline=yes
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_cv_lib_readline_readline=no
20459 rm -f conftest.err conftest.$ac_objext \
20460 conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20463 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20464 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20465 if test $ac_cv_lib_readline_readline = yes; then
20468 if test "$athena" = true; then
20469 unset ac_cv_lib_readline_readline
20470 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20471 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20472 if test "${ac_cv_lib_readline_readline+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 ac_check_lib_save_LIBS=$LIBS
20476 LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20484 /* Override any gcc2 internal prototype to avoid an error. */
20488 /* We use char because int might match the return type of a gcc2
20489 builtin and then its argument prototype would still apply. */
20499 rm -f conftest.$ac_objext conftest$ac_exeext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20501 (eval $ac_link) 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest$ac_exeext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_cv_lib_readline_readline=yes
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ac_cv_lib_readline_readline=no
20528 rm -f conftest.err conftest.$ac_objext \
20529 conftest$ac_exeext conftest.$ac_ext
20530 LIBS=$ac_check_lib_save_LIBS
20532 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20533 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20534 if test $ac_cv_lib_readline_readline = yes; then
20544 if test "$readline" != no; then
20545 if test "$readline" != yes; then
20546 READLINE_CPPFLAGS="-I$readline/include"
20547 READLINE_LIBS="-L$readline/lib"
20549 READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
20550 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
20557 { echo "$as_me:$LINENO: checking for curses..." >&5
20558 echo "$as_me: checking for curses..." >&6;}
20559 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
20560 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
20561 if test "${ac_cv_lib_curses_main+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 ac_check_lib_save_LIBS=$LIBS
20565 LIBS="-lcurses $LIBS"
20566 cat >conftest.$ac_ext <<_ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20582 rm -f conftest.$ac_objext conftest$ac_exeext
20583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20584 (eval $ac_link) 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } &&
20591 { ac_try='test -z "$ac_c_werror_flag"
20592 || test ! -s conftest.err'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; } &&
20598 { ac_try='test -s conftest$ac_exeext'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 ac_cv_lib_curses_main=yes
20606 echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20609 ac_cv_lib_curses_main=no
20611 rm -f conftest.err conftest.$ac_objext \
20612 conftest$ac_exeext conftest.$ac_ext
20613 LIBS=$ac_check_lib_save_LIBS
20615 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
20616 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
20617 if test $ac_cv_lib_curses_main = yes; then
20620 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
20621 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
20622 if test "${ac_cv_lib_ncurses_main+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 ac_check_lib_save_LIBS=$LIBS
20626 LIBS="-lncurses $LIBS"
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20645 (eval $ac_link) 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try='test -z "$ac_c_werror_flag"
20653 || test ! -s conftest.err'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try='test -s conftest$ac_exeext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_lib_ncurses_main=yes
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_cv_lib_ncurses_main=no
20672 rm -f conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext conftest.$ac_ext
20674 LIBS=$ac_check_lib_save_LIBS
20676 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
20677 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
20678 if test $ac_cv_lib_ncurses_main = yes; then
20684 if test -n "$curses"; then
20687 { echo "$as_me:$LINENO: checking if curses needs termcap..." >&5
20688 echo "$as_me: checking if curses needs termcap..." >&6;}
20689 if test "$cross_compiling" = yes; then
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 #include <curses.h>
20699 main(int argc, char **argv)
20706 rm -f conftest$ac_exeext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20708 (eval $ac_link) 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 CURSES_LIBS="-l$curses"
20719 echo "$as_me: program exited with status $ac_status" >&5
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ( exit $ac_status )
20724 LIBS="-l$curses -ltermcap"
20725 if test "$cross_compiling" = yes; then
20728 cat >conftest.$ac_ext <<_ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 #include <curses.h>
20735 main(int argc, char **argv)
20742 rm -f conftest$ac_exeext
20743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20744 (eval $ac_link) 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 CURSES_LIBS="-l$curses -ltermcap"
20755 echo "$as_me: program exited with status $ac_status" >&5
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ( exit $ac_status )
20762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20769 if test -n "$CURSES_LIBS"; then
20772 cat >conftest.$ac_ext <<_ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20778 #include <curses.h>
20782 WINDOW *w; getmaxx(w);
20787 rm -f conftest.$ac_objext conftest$ac_exeext
20788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20789 (eval $ac_link) 2>conftest.er1
20791 grep -v '^ *+' conftest.er1 >conftest.err
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } &&
20796 { ac_try='test -z "$ac_c_werror_flag"
20797 || test ! -s conftest.err'
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest$ac_exeext'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 cat >conftest.$ac_ext <<_ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 #include <curses.h>
20824 WINDOW *w; w->_maxx;
20829 rm -f conftest.$ac_objext
20830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831 (eval $ac_compile) 2>conftest.er1
20833 grep -v '^ *+' conftest.er1 >conftest.err
20835 cat conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } &&
20838 { ac_try='test -z "$ac_c_werror_flag"
20839 || test ! -s conftest.err'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; } &&
20845 { ac_try='test -s conftest.$ac_objext'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
20858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20860 rm -f conftest.err conftest.$ac_objext \
20861 conftest$ac_exeext conftest.$ac_ext
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <curses.h>
20872 newterm(NULL, NULL, NULL);
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879 (eval $ac_link) 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest$ac_exeext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20905 rm -f conftest.err conftest.$ac_objext \
20906 conftest$ac_exeext conftest.$ac_ext
20908 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
20909 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
20911 { echo "$as_me:$LINENO: WARNING: Couldn't find -lcurses" >&5
20912 echo "$as_me: WARNING: Couldn't find -lcurses" >&2;}
20924 for ac_func in getusershell strlcpy strlcat uname strvis
20926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20927 echo "$as_me:$LINENO: checking for $ac_func" >&5
20928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20929 if eval "test \"\${$as_ac_var+set}\" = set"; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20940 #define $ac_func innocuous_$ac_func
20942 /* System header to define __stub macros and hopefully few prototypes,
20943 which can conflict with char $ac_func (); below.
20944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20945 <limits.h> exists even on freestanding compilers. */
20948 # include <limits.h>
20950 # include <assert.h>
20955 /* Override any gcc2 internal prototype to avoid an error. */
20960 /* We use char because int might match the return type of a gcc2
20961 builtin and then its argument prototype would still apply. */
20963 /* The GNU C library defines this for functions which it implements
20964 to always fail with ENOSYS. Some functions are actually named
20965 something starting with __ and the normal name is an alias. */
20966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20969 char (*f) () = $ac_func;
20978 return f != $ac_func;
20983 rm -f conftest.$ac_objext conftest$ac_exeext
20984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20985 (eval $ac_link) 2>conftest.er1
20987 grep -v '^ *+' conftest.er1 >conftest.err
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } &&
20992 { ac_try='test -z "$ac_c_werror_flag"
20993 || test ! -s conftest.err'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest$ac_exeext'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 eval "$as_ac_var=yes"
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 eval "$as_ac_var=no"
21012 rm -f conftest.err conftest.$ac_objext \
21013 conftest$ac_exeext conftest.$ac_ext
21015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21017 if test `eval echo '${'$as_ac_var'}'` = yes; then
21018 cat >>confdefs.h <<_ACEOF
21019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21026 echo "$as_me:$LINENO: checking for sigaction" >&5
21027 echo $ECHO_N "checking for sigaction... $ECHO_C" >&6
21028 if test "${ac_cv_func_sigaction+set}" = set; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 /* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction.
21038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21039 #define sigaction innocuous_sigaction
21041 /* System header to define __stub macros and hopefully few prototypes,
21042 which can conflict with char sigaction (); below.
21043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21044 <limits.h> exists even on freestanding compilers. */
21047 # include <limits.h>
21049 # include <assert.h>
21054 /* Override any gcc2 internal prototype to avoid an error. */
21059 /* We use char because int might match the return type of a gcc2
21060 builtin and then its argument prototype would still apply. */
21062 /* The GNU C library defines this for functions which it implements
21063 to always fail with ENOSYS. Some functions are actually named
21064 something starting with __ and the normal name is an alias. */
21065 #if defined (__stub_sigaction) || defined (__stub___sigaction)
21068 char (*f) () = sigaction;
21077 return f != sigaction;
21082 rm -f conftest.$ac_objext conftest$ac_exeext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084 (eval $ac_link) 2>conftest.er1
21086 grep -v '^ *+' conftest.er1 >conftest.err
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -z "$ac_c_werror_flag"
21092 || test ! -s conftest.err'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; } &&
21098 { ac_try='test -s conftest$ac_exeext'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }; then
21104 ac_cv_func_sigaction=yes
21106 echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 ac_cv_func_sigaction=no
21111 rm -f conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
21114 echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5
21115 echo "${ECHO_T}$ac_cv_func_sigaction" >&6
21116 if test $ac_cv_func_sigaction = yes; then
21117 cat >>confdefs.h <<\_ACEOF
21118 #define HAVE_POSIX_SIGNALS 1
21126 for ac_header in unistd.h getopt.h
21128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21130 echo "$as_me:$LINENO: checking for $ac_header" >&5
21131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21138 # Is the header compilable?
21139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 $ac_includes_default
21148 #include <$ac_header>
21150 rm -f conftest.$ac_objext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21152 (eval $ac_compile) 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest.$ac_objext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_header_compiler=yes
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ac_header_compiler=no
21179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21181 echo "${ECHO_T}$ac_header_compiler" >&6
21183 # Is the header present?
21184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21186 cat >conftest.$ac_ext <<_ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21192 #include <$ac_header>
21194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } >/dev/null; then
21202 if test -s conftest.err; then
21203 ac_cpp_err=$ac_c_preproc_warn_flag
21204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21211 if test -z "$ac_cpp_err"; then
21212 ac_header_preproc=yes
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ac_header_preproc=no
21219 rm -f conftest.err conftest.$ac_ext
21220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21221 echo "${ECHO_T}$ac_header_preproc" >&6
21223 # So? What about this header?
21224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21230 ac_header_preproc=yes
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21247 ## ------------------------------------------ ##
21248 ## Report this to the AC_PACKAGE_NAME lists. ##
21249 ## ------------------------------------------ ##
21252 sed "s/^/$as_me: WARNING: /" >&2
21255 echo "$as_me:$LINENO: checking for $ac_header" >&5
21256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 eval "$as_ac_Header=\$ac_header_preproc"
21262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21267 cat >>confdefs.h <<_ACEOF
21268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21276 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21277 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21278 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21279 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21283 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21285 # Is the header compilable?
21286 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21287 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21288 cat >conftest.$ac_ext <<_ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h. */
21294 $ac_includes_default
21295 #include <netinet/in.h>
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299 (eval $ac_compile) 2>conftest.er1
21301 grep -v '^ *+' conftest.er1 >conftest.err
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag"
21307 || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_header_compiler=yes
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_header_compiler=no
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21328 echo "${ECHO_T}$ac_header_compiler" >&6
21330 # Is the header present?
21331 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21332 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 #include <netinet/in.h>
21341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } >/dev/null; then
21349 if test -s conftest.err; then
21350 ac_cpp_err=$ac_c_preproc_warn_flag
21351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21358 if test -z "$ac_cpp_err"; then
21359 ac_header_preproc=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ac_header_preproc=no
21366 rm -f conftest.err conftest.$ac_ext
21367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368 echo "${ECHO_T}$ac_header_preproc" >&6
21370 # So? What about this header?
21371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21374 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21376 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21377 ac_header_preproc=yes
21380 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21381 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21383 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21385 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21387 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21389 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21391 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21394 ## ------------------------------------------ ##
21395 ## Report this to the AC_PACKAGE_NAME lists. ##
21396 ## ------------------------------------------ ##
21399 sed "s/^/$as_me: WARNING: /" >&2
21402 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21403 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21404 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 ac_cv_header_netinet_in_h=$ac_header_preproc
21409 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21410 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21413 if test $ac_cv_header_netinet_in_h = yes; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_NETINET_IN_H 1
21424 if test "$no_netinet_in" != "yes"; then
21425 echo "$as_me:$LINENO: checking for in_addr_t defined in netinet/in.h" >&5
21426 echo $ECHO_N "checking for in_addr_t defined in netinet/in.h... $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 #include <netinet/in.h>
21436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21437 $EGREP "in_addr_t" >/dev/null 2>&1; then
21438 ac_cv_type_in_addr_t=yes
21440 ac_cv_type_in_addr_t=no
21444 echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21445 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
21448 if test "$ac_cv_type_in_addr_t" != "yes"; then
21449 cat >>confdefs.h <<\_ACEOF
21450 #define in_addr_t uint32_t
21456 case $PRO_C_INCLUDES in
21457 *INCLUDE='$(srcdir)'*) ;;
21458 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
21464 *-I'$(SRCTOP)/include'*) ;;
21465 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
21469 case $PRO_C_INCLUDES in
21470 *INCLUDE='$(SRCTOP)/include'*) ;;
21471 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
21478 *-I'$(SRCTOP)/lib'*) ;;
21479 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
21483 case $PRO_C_INCLUDES in
21484 *INCLUDE='$(SRCTOP)/lib'*) ;;
21485 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
21492 *-I'$(BUILDTOP)/lib'*) ;;
21493 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
21497 case $PRO_C_INCLUDES in
21498 *INCLUDE='$(BUILDTOP)/lib'*) ;;
21499 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
21506 *-I'$(BUILDTOP)/db'*) ;;
21507 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
21511 case $PRO_C_INCLUDES in
21512 *INCLUDE='$(BUILDTOP)/db'*) ;;
21513 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
21520 *-I'$(srcdir)'*) ;;
21521 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
21525 case $PRO_C_INCLUDES in
21526 *INCLUDE='$(srcdir)'*) ;;
21527 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
21531 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
21532 KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
21534 if test "$hesiod" != no; then
21535 KLIBS="-lhesiod $KLIBS"
21537 KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $KLIBS"
21538 if test "$zephyr" != no; then
21539 KLIBS="-lzephyr $KLIBS"
21541 LIBS="-lmoira $KLIBS"
21544 MR_LIBDEP='$(BUILDTOP)/lib/libmoira.la'
21547 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile clients/Makefile clients/lib/Makefile clients/addusr/Makefile clients/blanche/Makefile clients/chfn/Makefile clients/chpobox/Makefile clients/chsh/Makefile clients/mailmaint/Makefile clients/mitch/Makefile clients/moira/Makefile clients/mrcheck/Makefile clients/mrtest/Makefile clients/stanley/Makefile clients/stella/Makefile update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"
21548 cat >confcache <<\_ACEOF
21549 # This file is a shell script that caches the results of configure
21550 # tests run on this system so they can be shared between configure
21551 # scripts and configure runs, see configure's option --config-cache.
21552 # It is not useful on other systems. If it contains results you don't
21553 # want to keep, you may remove or edit it.
21555 # config.status only pays attention to the cache file if you give it
21556 # the --recheck option to rerun configure.
21558 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21559 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21560 # following values.
21564 # The following way of writing the cache mishandles newlines in values,
21565 # but we know of no workaround that is simple, portable, and efficient.
21566 # So, don't put newlines in cache variables' values.
21567 # Ultrix sh set writes to stderr and can't be redirected directly,
21568 # and sets the high bit in the cache file unless we assign to the vars.
21571 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21573 # `set' does not quote correctly, so add quotes (double-quote
21574 # substitution turns \\\\ into \\, and sed turns \\ into \).
21577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21580 # `set' quotes correctly as required by POSIX, so do not add quotes.
21582 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21589 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21591 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21593 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21594 if test -w $cache_file; then
21595 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21596 cat confcache >$cache_file
21598 echo "not updating unwritable cache $cache_file"
21603 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21604 # Let make expand exec_prefix.
21605 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21607 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21608 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21609 # trailing colons and then remove the whole line if VPATH becomes empty
21610 # (actually we leave an empty line to preserve line numbers).
21611 if test "x$srcdir" = x.; then
21612 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21613 s/:*\$(srcdir):*/:/;
21614 s/:*\${srcdir}:*/:/;
21616 s/^\([^=]*=[ ]*\):*/\1/;
21622 # Transform confdefs.h into DEFS.
21623 # Protect against shell expansion while executing Makefile rules.
21624 # Protect against Makefile macro expansion.
21626 # If the first sed substitution is executed (which looks for macros that
21627 # take arguments), then we branch to the quote section. Otherwise,
21628 # look for a macro that doesn't take arguments.
21629 cat >confdef2opt.sed <<\_ACEOF
21632 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
21634 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
21638 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
21644 # We use echo to avoid assuming a particular line-breaking character.
21645 # The extra dot is to prevent the shell from consuming trailing
21646 # line-breaks from the sub-command output. A line-break within
21647 # single-quotes doesn't work because, if this script is created in a
21648 # platform that uses two characters for line-breaks (e.g., DOS), tr
21650 ac_LF_and_DOT=`echo; echo .`
21651 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21652 rm -f confdef2opt.sed
21657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21658 # 1. Remove the extension, and $U if already installed.
21659 ac_i=`echo "$ac_i" |
21660 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21662 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21663 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21665 LIBOBJS=$ac_libobjs
21667 LTLIBOBJS=$ac_ltlibobjs
21671 : ${CONFIG_STATUS=./config.status}
21672 ac_clean_files_save=$ac_clean_files
21673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21676 cat >$CONFIG_STATUS <<_ACEOF
21678 # Generated by $as_me.
21679 # Run this file to recreate the current configuration.
21680 # Compiler output produced by configure, useful for debugging
21681 # configure, is in config.log if it exists.
21684 ac_cs_recheck=false
21686 SHELL=\${CONFIG_SHELL-$SHELL}
21689 cat >>$CONFIG_STATUS <<\_ACEOF
21690 ## --------------------- ##
21691 ## M4sh Initialization. ##
21692 ## --------------------- ##
21694 # Be Bourne compatible
21695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21698 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21699 # is contrary to our usage. Disable this feature.
21700 alias -g '${1+"$@"}'='"$@"'
21701 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21704 DUALCASE=1; export DUALCASE # for MKS sh
21706 # Support unset when possible.
21707 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21714 # Work around bugs in pre-3.0 UWIN ksh.
21715 $as_unset ENV MAIL MAILPATH
21722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21724 LC_TELEPHONE LC_TIME
21726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21727 eval $as_var=C; export $as_var
21733 # Required to use basename.
21734 if expr a : '\(a\)' >/dev/null 2>&1; then
21740 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21741 as_basename=basename
21747 # Name of the executable.
21748 as_me=`$as_basename "$0" ||
21749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21750 X"$0" : 'X\(//\)$' \| \
21751 X"$0" : 'X\(/\)$' \| \
21752 . : '\(.\)' 2>/dev/null ||
21754 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21755 /^X\/\(\/\/\)$/{ s//\1/; q; }
21756 /^X\/\(\/\).*/{ s//\1/; q; }
21760 # PATH needs CR, and LINENO needs CR and PATH.
21761 # Avoid depending upon Character Ranges.
21762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21765 as_cr_digits='0123456789'
21766 as_cr_alnum=$as_cr_Letters$as_cr_digits
21768 # The user is always right.
21769 if test "${PATH_SEPARATOR+set}" != set; then
21770 echo "#! /bin/sh" >conf$$.sh
21771 echo "exit 0" >>conf$$.sh
21773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21782 as_lineno_1=$LINENO
21783 as_lineno_2=$LINENO
21784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21785 test "x$as_lineno_1" != "x$as_lineno_2" &&
21786 test "x$as_lineno_3" = "x$as_lineno_2" || {
21787 # Find who we are. Look in the path if we contain no path at all
21790 *[\\/]* ) as_myself=$0 ;;
21791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21792 for as_dir in $PATH
21795 test -z "$as_dir" && as_dir=.
21796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21801 # We did not find ourselves, most probably we were run as `sh COMMAND'
21802 # in which case we are not to be found in the path.
21803 if test "x$as_myself" = x; then
21806 if test ! -f "$as_myself"; then
21807 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21808 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21809 { (exit 1); exit 1; }; }
21811 case $CONFIG_SHELL in
21813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21814 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21817 test -z "$as_dir" && as_dir=.
21818 for as_base in sh bash ksh sh5; do
21821 if ("$as_dir/$as_base" -c '
21822 as_lineno_1=$LINENO
21823 as_lineno_2=$LINENO
21824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21825 test "x$as_lineno_1" != "x$as_lineno_2" &&
21826 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21827 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21828 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21829 CONFIG_SHELL=$as_dir/$as_base
21830 export CONFIG_SHELL
21831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21840 # uniformly replaced by the line number. The first 'sed' inserts a
21841 # line-number line before each line; the second 'sed' does the real
21842 # work. The second script uses 'N' to pair each line-number line
21843 # with the numbered line, and appends trailing '-' during
21844 # substitution so that $LINENO is not a special case at line end.
21845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21847 sed '=' <$as_myself |
21852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21855 s,^['$as_cr_digits']*\n,,
21856 ' >$as_me.lineno &&
21857 chmod +x $as_me.lineno ||
21858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21860 { (exit 1); exit 1; }; }
21862 # Don't try to exec as it changes $[0], causing all sort of problems
21863 # (the dirname of $[0] is not the place where we might find the
21864 # original and so on. Autoconf is especially sensible to this).
21866 # Exit status is that of the last command.
21871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21872 *c*,-n*) ECHO_N= ECHO_C='
21874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21878 if expr a : '\(a\)' >/dev/null 2>&1; then
21884 rm -f conf$$ conf$$.exe conf$$.file
21886 if ln -s conf$$.file conf$$ 2>/dev/null; then
21887 # We could just check for DJGPP; but this test a) works b) is more generic
21888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21889 if test -f conf$$.exe; then
21890 # Don't use ln at all; we don't have any links
21895 elif ln conf$$.file conf$$ 2>/dev/null; then
21900 rm -f conf$$ conf$$.exe conf$$.file
21902 if mkdir -p . 2>/dev/null; then
21905 test -d ./-p && rmdir ./-p
21909 as_executable_p="test -f"
21911 # Sed expression to map a string onto a valid CPP name.
21912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21914 # Sed expression to map a string onto a valid variable name.
21915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21919 # We need space, tab and new line, in precisely that order.
21929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21930 # report actual input values of CONFIG_FILES etc. instead of their
21931 # values after options handling. Logging --version etc. is OK.
21935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21936 ## Running $as_me. ##
21941 This file was extended by $as_me, which was
21942 generated by GNU Autoconf 2.59. Invocation command line was
21944 CONFIG_FILES = $CONFIG_FILES
21945 CONFIG_HEADERS = $CONFIG_HEADERS
21946 CONFIG_LINKS = $CONFIG_LINKS
21947 CONFIG_COMMANDS = $CONFIG_COMMANDS
21951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21955 # Files that config.status was made for.
21956 if test -n "$ac_config_files"; then
21957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21960 if test -n "$ac_config_headers"; then
21961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21964 if test -n "$ac_config_links"; then
21965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21968 if test -n "$ac_config_commands"; then
21969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21972 cat >>$CONFIG_STATUS <<\_ACEOF
21975 \`$as_me' instantiates files from templates according to the
21976 current configuration.
21978 Usage: $0 [OPTIONS] [FILE]...
21980 -h, --help print this help, then exit
21981 -V, --version print version number, then exit
21982 -q, --quiet do not print progress messages
21983 -d, --debug don't remove temporary files
21984 --recheck update $as_me by reconfiguring in the same conditions
21985 --file=FILE[:TEMPLATE]
21986 instantiate the configuration file FILE
21988 Configuration files:
21991 Report bugs to <bug-autoconf@gnu.org>."
21994 cat >>$CONFIG_STATUS <<_ACEOF
21997 configured by $0, generated by GNU Autoconf 2.59,
21998 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22000 Copyright (C) 2003 Free Software Foundation, Inc.
22001 This config.status script is free software; the Free Software Foundation
22002 gives unlimited permission to copy, distribute and modify it."
22007 cat >>$CONFIG_STATUS <<\_ACEOF
22008 # If no file are specified by the user, then we need to provide default
22009 # value. By we need to know if files were specified by the user.
22015 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22016 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22024 *) # This is not an option, so the user has probably given explicit
22027 ac_need_defaults=false;;
22031 # Handling of the options.
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22036 --version | --vers* | -V )
22037 echo "$ac_cs_version"; exit 0 ;;
22039 # Conflict between --help and --header
22040 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22041 Try \`$0 --help' for more information." >&5
22042 echo "$as_me: error: ambiguous option: $1
22043 Try \`$0 --help' for more information." >&2;}
22044 { (exit 1); exit 1; }; };;
22045 --help | --hel | -h )
22046 echo "$ac_cs_usage"; exit 0 ;;
22047 --debug | --d* | -d )
22049 --file | --fil | --fi | --f )
22051 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22052 ac_need_defaults=false;;
22053 --header | --heade | --head | --hea )
22055 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22056 ac_need_defaults=false;;
22057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22058 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22061 # This is an error.
22062 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22063 Try \`$0 --help' for more information." >&5
22064 echo "$as_me: error: unrecognized option: $1
22065 Try \`$0 --help' for more information." >&2;}
22066 { (exit 1); exit 1; }; } ;;
22068 *) ac_config_targets="$ac_config_targets $1" ;;
22074 ac_configure_extra_args=
22076 if $ac_cs_silent; then
22078 ac_configure_extra_args="$ac_configure_extra_args --silent"
22082 cat >>$CONFIG_STATUS <<_ACEOF
22083 if \$ac_cs_recheck; then
22084 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22085 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22094 cat >>$CONFIG_STATUS <<\_ACEOF
22095 for ac_config_target in $ac_config_targets
22097 case "$ac_config_target" in
22098 # Handling of arguments.
22099 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22100 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22101 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22102 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
22103 "clients/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lib/Makefile" ;;
22104 "clients/addusr/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/addusr/Makefile" ;;
22105 "clients/blanche/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/blanche/Makefile" ;;
22106 "clients/chfn/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chfn/Makefile" ;;
22107 "clients/chpobox/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chpobox/Makefile" ;;
22108 "clients/chsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chsh/Makefile" ;;
22109 "clients/mailmaint/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mailmaint/Makefile" ;;
22110 "clients/mitch/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mitch/Makefile" ;;
22111 "clients/moira/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/moira/Makefile" ;;
22112 "clients/mrcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrcheck/Makefile" ;;
22113 "clients/mrtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrtest/Makefile" ;;
22114 "clients/stanley/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stanley/Makefile" ;;
22115 "clients/stella/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stella/Makefile" ;;
22116 "update/Makefile" ) CONFIG_FILES="$CONFIG_FILES update/Makefile" ;;
22117 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22118 "$WEBMOIRA_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WEBMOIRA_OUTPUT_FILES" ;;
22119 "$SERVER_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $SERVER_OUTPUT_FILES" ;;
22120 "$WINAD_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WINAD_OUTPUT_FILES" ;;
22121 "$AFS_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $AFS_OUTPUT_FILES" ;;
22122 "$RSAREF_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $RSAREF_OUTPUT_FILES" ;;
22123 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22124 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22125 { (exit 1); exit 1; }; };;
22129 # If the user did not use the arguments to specify the items to instantiate,
22130 # then the envvar interface is used. Set only those that are not.
22131 # We use the long form for the default assignment because of an extremely
22132 # bizarre bug on SunOS 4.1.3.
22133 if $ac_need_defaults; then
22134 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22137 # Have a temporary directory for convenience. Make it in the build tree
22138 # simply because there is no reason to put it here, and in addition,
22139 # creating and moving files from /tmp can sometimes cause problems.
22140 # Create a temporary directory, and hook for its removal unless debugging.
22143 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22144 trap '{ (exit 1); exit 1; }' 1 2 13 15
22147 # Create a (secure) tmp directory for tmp files.
22150 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22151 test -n "$tmp" && test -d "$tmp"
22154 tmp=./confstat$$-$RANDOM
22155 (umask 077 && mkdir $tmp)
22158 echo "$me: cannot create a temporary directory in ." >&2
22159 { (exit 1); exit 1; }
22164 cat >>$CONFIG_STATUS <<_ACEOF
22167 # CONFIG_FILES section.
22170 # No need to generate the scripts if there are no CONFIG_FILES.
22171 # This happens for instance when ./config.status config.h
22172 if test -n "\$CONFIG_FILES"; then
22173 # Protect against being on the right side of a sed subst in config.status.
22174 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22175 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22176 s,@SHELL@,$SHELL,;t t
22177 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22178 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22179 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22180 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22181 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22182 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22183 s,@exec_prefix@,$exec_prefix,;t t
22184 s,@prefix@,$prefix,;t t
22185 s,@program_transform_name@,$program_transform_name,;t t
22186 s,@bindir@,$bindir,;t t
22187 s,@sbindir@,$sbindir,;t t
22188 s,@libexecdir@,$libexecdir,;t t
22189 s,@datadir@,$datadir,;t t
22190 s,@sysconfdir@,$sysconfdir,;t t
22191 s,@sharedstatedir@,$sharedstatedir,;t t
22192 s,@localstatedir@,$localstatedir,;t t
22193 s,@libdir@,$libdir,;t t
22194 s,@includedir@,$includedir,;t t
22195 s,@oldincludedir@,$oldincludedir,;t t
22196 s,@infodir@,$infodir,;t t
22197 s,@mandir@,$mandir,;t t
22198 s,@build_alias@,$build_alias,;t t
22199 s,@host_alias@,$host_alias,;t t
22200 s,@target_alias@,$target_alias,;t t
22201 s,@DEFS@,$DEFS,;t t
22202 s,@ECHO_C@,$ECHO_C,;t t
22203 s,@ECHO_N@,$ECHO_N,;t t
22204 s,@ECHO_T@,$ECHO_T,;t t
22205 s,@LIBS@,$LIBS,;t t
22206 s,@build@,$build,;t t
22207 s,@build_cpu@,$build_cpu,;t t
22208 s,@build_vendor@,$build_vendor,;t t
22209 s,@build_os@,$build_os,;t t
22210 s,@host@,$host,;t t
22211 s,@host_cpu@,$host_cpu,;t t
22212 s,@host_vendor@,$host_vendor,;t t
22213 s,@host_os@,$host_os,;t t
22214 s,@SO_LDFLAGS@,$SO_LDFLAGS,;t t
22216 s,@CFLAGS@,$CFLAGS,;t t
22217 s,@LDFLAGS@,$LDFLAGS,;t t
22218 s,@CPPFLAGS@,$CPPFLAGS,;t t
22219 s,@ac_ct_CC@,$ac_ct_CC,;t t
22220 s,@EXEEXT@,$EXEEXT,;t t
22221 s,@OBJEXT@,$OBJEXT,;t t
22222 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22223 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22224 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22225 s,@RANLIB@,$RANLIB,;t t
22226 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22227 s,@EGREP@,$EGREP,;t t
22228 s,@LN_S@,$LN_S,;t t
22229 s,@ECHO@,$ECHO,;t t
22231 s,@ac_ct_AR@,$ac_ct_AR,;t t
22232 s,@STRIP@,$STRIP,;t t
22233 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22236 s,@CXXFLAGS@,$CXXFLAGS,;t t
22237 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22238 s,@CXXCPP@,$CXXCPP,;t t
22240 s,@FFLAGS@,$FFLAGS,;t t
22241 s,@ac_ct_F77@,$ac_ct_F77,;t t
22242 s,@LIBTOOL@,$LIBTOOL,;t t
22243 s,@SET_MAKE@,$SET_MAKE,;t t
22244 s,@mrbindir@,$mrbindir,;t t
22245 s,@subdirs@,$subdirs,;t t
22246 s,@COM_ERR_SUBDIR@,$COM_ERR_SUBDIR,;t t
22247 s,@COMPILE_ET@,$COMPILE_ET,;t t
22248 s,@REG_SVR_DEFS@,$REG_SVR_DEFS,;t t
22249 s,@REG_SVR_INCLUDES@,$REG_SVR_INCLUDES,;t t
22250 s,@REG_SVR_LIBS@,$REG_SVR_LIBS,;t t
22251 s,@RSAREF_CPPFLAGS@,$RSAREF_CPPFLAGS,;t t
22252 s,@RSAREF_LIBS@,$RSAREF_LIBS,;t t
22253 s,@RSAREF_SUBDIRS@,$RSAREF_SUBDIRS,;t t
22254 s,@RSAREF_LIBDEP@,$RSAREF_LIBDEP,;t t
22255 s,@PRO_C@,$PRO_C,;t t
22256 s,@PRO_C_DEFS@,$PRO_C_DEFS,;t t
22257 s,@PRO_C_INCLUDES@,$PRO_C_INCLUDES,;t t
22258 s,@PRO_C_OPTS@,$PRO_C_OPTS,;t t
22259 s,@SQL_LIBS@,$SQL_LIBS,;t t
22260 s,@SVRSUBDIRS@,$SVRSUBDIRS,;t t
22261 s,@JAVA_CPPFLAGS@,$JAVA_CPPFLAGS,;t t
22262 s,@WEBMOIRA_SUBDIRS@,$WEBMOIRA_SUBDIRS,;t t
22263 s,@LDAP_CPPFLAGS@,$LDAP_CPPFLAGS,;t t
22264 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
22265 s,@WINAD_SUBDIRS@,$WINAD_SUBDIRS,;t t
22266 s,@AFS_CPPFLAGS@,$AFS_CPPFLAGS,;t t
22267 s,@AFS_PRO_C_INCLUDES@,$AFS_PRO_C_INCLUDES,;t t
22268 s,@AFS_LIBS@,$AFS_LIBS,;t t
22269 s,@AFS_DIR@,$AFS_DIR,;t t
22270 s,@AFS_SUBDIRS@,$AFS_SUBDIRS,;t t
22271 s,@AFS_SYNCDIR@,$AFS_SYNCDIR,;t t
22272 s,@READLINE_CPPFLAGS@,$READLINE_CPPFLAGS,;t t
22273 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
22274 s,@CURSES_CPPFLAGS@,$CURSES_CPPFLAGS,;t t
22275 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
22276 s,@CURSES_SUBDIRS@,$CURSES_SUBDIRS,;t t
22277 s,@KLIBS@,$KLIBS,;t t
22278 s,@MR_LIBDEP@,$MR_LIBDEP,;t t
22279 s,@LIBOBJS@,$LIBOBJS,;t t
22280 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22285 cat >>$CONFIG_STATUS <<\_ACEOF
22286 # Split the substitutions into bite-sized pieces for seds with
22287 # small command number limits, like on Digital OSF/1 and HP-UX.
22288 ac_max_sed_lines=48
22289 ac_sed_frag=1 # Number of current file.
22290 ac_beg=1 # First line for current file.
22291 ac_end=$ac_max_sed_lines # Line after last line for current file.
22294 while $ac_more_lines; do
22295 if test $ac_beg -gt 1; then
22296 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22298 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22300 if test ! -s $tmp/subs.frag; then
22301 ac_more_lines=false
22303 # The purpose of the label and of the branching condition is to
22304 # speed up the sed processing (if there are no `@' at all, there
22305 # is no need to browse any of the substitutions).
22306 # These are the two extra sed commands mentioned above.
22308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22309 if test -z "$ac_sed_cmds"; then
22310 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22312 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22314 ac_sed_frag=`expr $ac_sed_frag + 1`
22316 ac_end=`expr $ac_end + $ac_max_sed_lines`
22319 if test -z "$ac_sed_cmds"; then
22322 fi # test -n "$CONFIG_FILES"
22325 cat >>$CONFIG_STATUS <<\_ACEOF
22326 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22329 - | *:- | *:-:* ) # input from stdin
22331 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22333 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22334 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22335 * ) ac_file_in=$ac_file.in ;;
22338 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22339 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22341 X"$ac_file" : 'X\(//\)[^/]' \| \
22342 X"$ac_file" : 'X\(//\)$' \| \
22343 X"$ac_file" : 'X\(/\)' \| \
22344 . : '\(.\)' 2>/dev/null ||
22346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22348 /^X\(\/\/\)$/{ s//\1/; q; }
22349 /^X\(\/\).*/{ s//\1/; q; }
22351 { if $as_mkdir_p; then
22356 while test ! -d "$as_dir"; do
22357 as_dirs="$as_dir $as_dirs"
22358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22360 X"$as_dir" : 'X\(//\)[^/]' \| \
22361 X"$as_dir" : 'X\(//\)$' \| \
22362 X"$as_dir" : 'X\(/\)' \| \
22363 . : '\(.\)' 2>/dev/null ||
22365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22367 /^X\(\/\/\)$/{ s//\1/; q; }
22368 /^X\(\/\).*/{ s//\1/; q; }
22371 test ! -n "$as_dirs" || mkdir $as_dirs
22372 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22373 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22374 { (exit 1); exit 1; }; }; }
22378 if test "$ac_dir" != .; then
22379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22380 # A "../" for each directory in $ac_dir_suffix.
22381 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22383 ac_dir_suffix= ac_top_builddir=
22387 .) # No --srcdir option. We are building in place.
22389 if test -z "$ac_top_builddir"; then
22392 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22394 [\\/]* | ?:[\\/]* ) # Absolute path.
22395 ac_srcdir=$srcdir$ac_dir_suffix;
22396 ac_top_srcdir=$srcdir ;;
22397 *) # Relative path.
22398 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22399 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22402 # Do not use `cd foo && pwd` to compute absolute paths, because
22403 # the directories may not exist.
22405 .) ac_abs_builddir="$ac_dir";;
22408 .) ac_abs_builddir=`pwd`;;
22409 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22410 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22413 case $ac_abs_builddir in
22414 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22416 case ${ac_top_builddir}. in
22417 .) ac_abs_top_builddir=$ac_abs_builddir;;
22418 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22419 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22422 case $ac_abs_builddir in
22423 .) ac_abs_srcdir=$ac_srcdir;;
22426 .) ac_abs_srcdir=$ac_abs_builddir;;
22427 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22428 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22431 case $ac_abs_builddir in
22432 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22434 case $ac_top_srcdir in
22435 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22436 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22437 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22443 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22444 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22447 if test x"$ac_file" != x-; then
22448 { echo "$as_me:$LINENO: creating $ac_file" >&5
22449 echo "$as_me: creating $ac_file" >&6;}
22452 # Let's still pretend it is `configure' which instantiates (i.e., don't
22453 # use $as_me), people would be surprised to read:
22454 # /* config.h. Generated by config.status. */
22455 if test x"$ac_file" = x-; then
22458 configure_input="$ac_file. "
22460 configure_input=$configure_input"Generated from `echo $ac_file_in |
22461 sed 's,.*/,,'` by configure."
22463 # First look for the input files in the build tree, otherwise in the
22465 ac_file_inputs=`IFS=:
22466 for f in $ac_file_in; do
22468 -) echo $tmp/stdin ;;
22470 # Absolute (can't be DOS-style, as IFS=:)
22471 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22472 echo "$as_me: error: cannot find input file: $f" >&2;}
22473 { (exit 1); exit 1; }; }
22476 if test -f "$f"; then
22479 elif test -f "$srcdir/$f"; then
22484 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22485 echo "$as_me: error: cannot find input file: $f" >&2;}
22486 { (exit 1); exit 1; }; }
22489 done` || { (exit 1); exit 1; }
22491 cat >>$CONFIG_STATUS <<_ACEOF
22495 cat >>$CONFIG_STATUS <<\_ACEOF
22497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22498 s,@configure_input@,$configure_input,;t t
22499 s,@srcdir@,$ac_srcdir,;t t
22500 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22501 s,@top_srcdir@,$ac_top_srcdir,;t t
22502 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22503 s,@builddir@,$ac_builddir,;t t
22504 s,@abs_builddir@,$ac_abs_builddir,;t t
22505 s,@top_builddir@,$ac_top_builddir,;t t
22506 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22507 s,@INSTALL@,$ac_INSTALL,;t t
22508 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22510 if test x"$ac_file" != x-; then
22511 mv $tmp/out $ac_file
22520 cat >>$CONFIG_STATUS <<\_ACEOF
22522 { (exit 0); exit 0; }
22524 chmod +x $CONFIG_STATUS
22525 ac_clean_files=$ac_clean_files_save
22528 # configure is writing to config.log, and then calls config.status.
22529 # config.status does its own redirection, appending to config.log.
22530 # Unfortunately, on DOS this fails, as config.log is still kept open
22531 # by configure, so config.status won't be able to write to it; its
22532 # output is simply discarded. So we exec the FD to /dev/null,
22533 # effectively closing config.log, so it can be properly (re)opened and
22534 # appended to by config.status. When coming back to configure, we
22535 # need to make the FD available again.
22536 if test "$no_create" != yes; then
22538 ac_config_status_args=
22539 test "$silent" = yes &&
22540 ac_config_status_args="$ac_config_status_args --quiet"
22542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22545 # would make configure fail if this is the last instruction.
22546 $ac_cs_success || { (exit 1); exit 1; }
22550 # CONFIG_SUBDIRS section.
22552 if test "$no_recursion" != yes; then
22554 # Remove --cache-file and --srcdir arguments so they do not pile up.
22555 ac_sub_configure_args=
22557 for ac_arg in $ac_configure_args; do
22558 if test -n "$ac_prev"; then
22563 -cache-file | --cache-file | --cache-fil | --cache-fi \
22564 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22565 ac_prev=cache_file ;;
22566 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22567 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22570 --config-cache | -C)
22572 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22574 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22576 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22578 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22580 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22584 # Always prepend --prefix to ensure using the same prefix
22585 # in subdir configurations.
22586 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22589 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22591 # Do not complain, so a configure script can configure whichever
22592 # parts of a large source tree are present.
22593 test -d $srcdir/$ac_dir || continue
22595 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22596 echo "$as_me: configuring in $ac_dir" >&6;}
22597 { if $as_mkdir_p; then
22602 while test ! -d "$as_dir"; do
22603 as_dirs="$as_dir $as_dirs"
22604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606 X"$as_dir" : 'X\(//\)[^/]' \| \
22607 X"$as_dir" : 'X\(//\)$' \| \
22608 X"$as_dir" : 'X\(/\)' \| \
22609 . : '\(.\)' 2>/dev/null ||
22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613 /^X\(\/\/\)$/{ s//\1/; q; }
22614 /^X\(\/\).*/{ s//\1/; q; }
22617 test ! -n "$as_dirs" || mkdir $as_dirs
22618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22620 { (exit 1); exit 1; }; }; }
22624 if test "$ac_dir" != .; then
22625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22626 # A "../" for each directory in $ac_dir_suffix.
22627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22629 ac_dir_suffix= ac_top_builddir=
22633 .) # No --srcdir option. We are building in place.
22635 if test -z "$ac_top_builddir"; then
22638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22640 [\\/]* | ?:[\\/]* ) # Absolute path.
22641 ac_srcdir=$srcdir$ac_dir_suffix;
22642 ac_top_srcdir=$srcdir ;;
22643 *) # Relative path.
22644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22645 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22648 # Do not use `cd foo && pwd` to compute absolute paths, because
22649 # the directories may not exist.
22651 .) ac_abs_builddir="$ac_dir";;
22654 .) ac_abs_builddir=`pwd`;;
22655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22656 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22659 case $ac_abs_builddir in
22660 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22662 case ${ac_top_builddir}. in
22663 .) ac_abs_top_builddir=$ac_abs_builddir;;
22664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22668 case $ac_abs_builddir in
22669 .) ac_abs_srcdir=$ac_srcdir;;
22672 .) ac_abs_srcdir=$ac_abs_builddir;;
22673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22677 case $ac_abs_builddir in
22678 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22680 case $ac_top_srcdir in
22681 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22690 # Check for guested configure; otherwise get Cygnus style configure.
22691 if test -f $ac_srcdir/configure.gnu; then
22692 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22693 elif test -f $ac_srcdir/configure; then
22694 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22695 elif test -f $ac_srcdir/configure.in; then
22696 ac_sub_configure=$ac_configure
22698 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22699 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22703 # The recursion is here.
22704 if test -n "$ac_sub_configure"; then
22705 # Make the cache file name correct relative to the subdirectory.
22706 case $cache_file in
22707 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22708 *) # Relative path.
22709 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
22712 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22713 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22714 # The eval makes quoting arguments work.
22715 eval $ac_sub_configure $ac_sub_configure_args \
22716 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
22717 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22718 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22719 { (exit 1); exit 1; }; }